0 votes
asked by (160 points)

Hello,mlils
I am curious about 1D bose-fermion mixture with fermion is spinfull (up and down) . I set QN like this.
if the site is fermion:
s=IQIndex(nameint("site=",n),
Index(nameint("Emp",n),1,Site), QN({0,1}, {0,-1},{0,1}), // vaccum
Index(nameint("Up",n),1,Site), QN({1,1},{+1,-1},{0,1}), // Up fermion
Index(nameint("Dn",n),1,Site), QN({-1,1},{+1,-1},{0,1}), // Dn fermion
Index(nameint("UpDn",n),1,Site), QN({0,1}, {2,-1},{0,1})); // UpDn fermion
if the site is ths bosons:
s=IQIndex(nameint("site=",n),
Index(nameint("Emp",n),1,Site),QN({0,1},{0,1},{0,1}),
Index(nameint("b1",n),1,Site), QN({0,1},{0,1},{1,1}),
Index(nameint("b2",n),1,Site), QN({0,1},{0,1},{2,1}),
Index(nameint("b3",n),1,Site), QN({0,1},{0,1},{3,1}));
Unfortuntanately, the program can be compiled, but can't work (IQIdex does not given QN block).
The first slot of QN mean "Sz", the second denotes fermion, the third is the boson.
can I do like this?

1 Answer

0 votes
answered by (160 points)
    Just  changing the sign of the mod of the  second slot if the site is bosons. the program can works well.
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

...