+1 vote
asked by (170 points)

I wonder if it possible to reuse the old files in hams/ in ITensor 2. Is there some reason that they disappeared? Thank you!


1 Answer

+1 vote
answered by (70.1k points)
selected by
Best answer

Hi Xiongjie,
Thanks for the question. Any of those files should work in ITensor 2 with only minor updates. Let me know if there's a particular one you want to use and I could post an updated version.

However, the reason I didn't include them in the new version is that all of these Hamiltonians can now be made with AutoMPO, most very easily. The 2d Hamiltonians would be slightly tougher to do by hand, but to help with them I added some functions which work out the logic of making the 2d lattice for you.

I just added a Code Formula explaining how to use these lattice helper functions to make the triangular lattice Heisenberg model using AutoMPO. Here is the link:

To get these lattice helper functions you'll need to pull the very latest version of ITensor from github.

commented by (170 points)
Hi Miles,
Thank you! That Code Formula is quite helpful.

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.