0 votes
asked ago by (170 points)

Hi,
I want to know if it's possible to set two operators on the same site, like these:
ampo +="Cdagup",2,"Cdn",2; or
ampo +="Cdagup",2,"Cup",2;

I have tried these settings and got the errors:

AutoMPO: cannot put two operators on same site in a single term

So, I am wondering how to set the two operators on the same site.

Chenrong Liu

commented ago by (310 points)
Hi Chenrong,

I remembered using AutoMPO to make Hamiltonian with two operators on the same site myself before and it didn't cause any error, and I have seen others doing the same thing without any error on this forum, have you checked that you had the latest version of ITensor package? On the other hand, maybe you could use "Nup",2 instead of "Cdagup",2,"Cup",2 or make a new operator to represent the two operator on the same site.

Best,

Yixuan
commented ago by (170 points)
Thank you, I have solved this. I updated the package and it worked well now.

Please log in or register to answer this question.

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

...