0 votes
asked by (570 points)

Dear itensor-developer,

In the example http://itensor.org/docs.cgi?page=formulas/tevol_mps_mpo
the "toExpH" function is used after defining the MPS to evolve.

auto psi = MPS(state);

but one uses

 auto expH = toExpH<ITensor>(ampo,tau);

rather than, for example, auto expH = toExpH(ampo,psi, tau);

what if I define psi1 and psi2 and after that use toEXPH? what is the initial state in this case?

Thank you in advance

1 Answer

+2 votes
answered by (480 points)

Hi,
toExpH only converts ampo object to exp(−tauH), you can use exactApplyMPO or fitApplyMPO to compute exp(−tauH)|psi>

e.g. psi1 is the initial state:
auto expH = toExpH<ITensor>(ampo,tau);
psi1 = exactApplyMPO(expH,psi1,args);

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

...