+1 vote
asked by (250 points)

Dear Matt and Miles,

I recently wrote a code for TDVP of infinite MPSs in part of my research. I see that in the external code section of iTensor, there is only TDVP for finite MPSs, so I thought it might be good to share the iTDVP code, which is here on github: https://github.com/yantaow/iTDVP/tree/master

The code is based on iTensor (C++, v3) and does not require any external libraries. It has a class for infinite MPSs, which can i) bring the iMPS to the canonical form iteratively, ii) compute the quasi-fixed point of the MPO-transfer matrix, and iii) perform the TDVP for iMPS.
This code is also a good starting point to write, for example the VUMPS algorithm, because of its iMPS member functions.

I have benefited greatly from the codes from iTensor, so I thought it might be good to contribute back a tiny bit.

Anyways, please let me know whether you are interested. The final code on github is already in a pretty good shape.


1 Answer

0 votes
answered by (52.6k points)

Hi Yantao,
Thanks for pointing this out! I just added it to the Codes page of the website (C++ part of the codes page of course). Please let me know if you would like to alter the description text, and I can easily change it for you or you can send a pull request since the ITensor.org website is itself open-source.

Appreciate your contribution -


commented by (250 points)
Dear Miles,
My pleasure. I need to say that the code only works after the bug is corrected in
 this post  https://itensor.org/support/2590/bug-report-in-localop-h

This is C++, version 3.1.3

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.