0 votes
asked by (300 points)
closed by

Hi,

I am not able to save a state using the WriteToFile function.
The code returns the following error:
Index::write: Index is default initialized

It's not clear to me why it's happening.
I have a bosonic system of size N with a certain cut-off to the Fock space.
The state is the following:
$$
|\psi\rangle = |0 0 ...\rangle \otimes |\psi0\rangle \otimes |00..0\rangle
$$
where @@|\psi
0\rangle@@ is a certain state. Since I am able to compute local quantites and perform a TEBD real time evolution I don't see any issue with the state itself (e.g. mismatch with indices).
Could you help me?

Thank you in advance.
Riccardo

closed with the note: There was a little error in the link indices when I built the state.
commented by (70.1k points)
Thanks for posting an update on this! I was going to ask. Glad you figured it out.
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

...