0 votes
asked by (210 points)

Hi!
I would like to know if there is any example code to measure spinless fermion correlator using the Julia version of ITensor?

Also I would like to know if using 'commonind(psi[i],psi[i-1])' in Julia the same as using 'leftLinkIndex(psi,i)' in C++ ?

Thank You

1 Answer

0 votes
answered by (9.7k points)

Hi, you should be able to follow essentially the same code as: http://www.itensor.org/docs.cgi?vers=cppv3&page=formulas/spinless_correlator_mps

Yes, you can use commonind(psi[i],psi[i-1]) or linkind(psi, i-1) to get the left link index of site i.

commented by (210 points)
Ok, Thank You!
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

...