+1 vote
asked by (230 points)

Has Index findtype(ITensor T, IndexType t) been deprecated? What is the equivalent of this in the current version of ITensor?

1 Answer

0 votes
answered by (70.1k points)

Hi, so in version 3 of ITensor we have replaced the type of an Index with a set of “Index tags” which are up to four short strings such as “Site” or “n=5” which can describe or label an Index.

The function closest to findtype in version 3 is findIndex, which is described near the bottom of the following documentation page:

Please post a comment below if you have more questions about this or Index tags in v3.


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.