+1 vote
asked by (760 points)

Suppose I have an MPS with conserved particle number. Is there an easy way to convert this MPS to one with no particle-number (but replaced by parity) quantum number?

1 Answer

+1 vote
answered by (70.1k points)
selected by
Best answer

Hi Chiamin,
Yes, there is a function called removeQNs(MPS const& psi) that you can call on an MPS that will remove all of the quantum numbers and make the storage dense.

There isn't any function that will remove only some of the quantum numbers and not others, however.

I think for these more technical kinds of things, we would need help adding these features to ITensor which could be quite a project. It's something we might consider doing in the Julia version first if it would be used often, then porting back to the C++ version.


P.S. would you be able to do the application you want just with a regular dense MPS rather than having to keep the parity quantum numbers?

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.