0 votes
asked by (130 points)

Dear Itensor,

I'm computing the time evolution of MPS according to this webpage https://itensor.org/docs.cgi?page=formulas/tevol_mps_mpo. Say that before the time evolution, I have MPS psi0, and after the time evolution I end up with MPS psi1. How should I compute the inner product between psi0 and psi1? (I tried psi0 * psi1 directly, but it didn't seem to work.)

Thanks very much!
Yantao

commented by (130 points)
Never mind. I found the overlapC function!

1 Answer

+1 vote
answered by (37k points)

Yes, glad you figured out the answer, which is to use the function "overlap" in case you expect a real-valued overlap or the function "overlapC" if you expect a complex-valued output.

It's an interesting idea to define * to do overlap between MPS. We'll think about it. But one issue is simply a C++ issue, which is that function calls can only return a single type, so it would have to be a complex number to work in general. We could have psi * phi, where psi and phi are two MPS, result in a scalar ITensor though, which can be either real or complex.

Best regards,
Miles

commented by (130 points)
Dear Miles,

Thanks very much for the reply. Much appreciated!

Yantao
commented by (130 points)
Dear Miles,

I have another question: is there any (convenient) way to carry out the infinite algorithm of time evolution within ITensor. I tried the toExpH and applyMPO way and it works very well, but it would be very nice if these algorithms can somehow be adapted to the thermodynamic limit.

Thanks very much!
Yantao
commented by (130 points)
Hmm... I just found the ITEBD code (https://github.com/hoihui/itebd) by Hoi Hui. That seems to an infinite system algorithm. Am I right?
commented by (130 points)
Never mind again! I figured this is indeed a infinite system algorithm. (Sorry for all these trouble!
commented by (6.5k points)
I just want to add that the ITensor v3 syntax is to use the `innerC` function, `overlapC` is deprecated.
commented by (130 points)
Got it. Thanks!
Welcome to ITensor Support Q&A, where you can ask questions and receive answers from other members of the community.

Formatting Tips:
  • To format code, indent by four spaces
  • To format inline LaTeX, surround it by @@ on both sides
  • To format LaTeX on its own line, surround it by $$ above and below
  • For LaTeX, it may be necessary to backslash-escape underscore characters to obtain proper formatting. So for example writing \sum\_i to represent a sum over i.
If you cannot register due to firewall issues (e.g. you cannot see the capcha box) please email Miles Stoudenmire to ask for an account.

To report ITensor bugs, please use the issue tracker.

Categories

...