+1 vote
asked by (610 points)

Dear all

How to create local identity operator at site j? Indirectly, one can use the identity "S^zjS^zj" or "projUp+projDn", which have built-in functions like op("Z",sites,j) and op("projDn",sites,j). Is there a more standard way?

Moreover, how about high-spin sites, fermion/electron sites?

Best,
Junsen

1 Answer

+1 vote
answered by (70.1k points)

Hi Junsen,
You can use the operator name "Id" to do this. So like op("Id",sites,j) or alternatively op("Id",ind) where ind is a Index object.

This particular operator ("Id") is actually defined for all indices, not just ones carrying special tags.

Hope that is the answer you need -

Miles

commented by (610 points)
thank you Miles, that's what I need :)
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

...