+1 vote
asked by (960 points)

While attempting to import a wavefunction and site data from files, and then analyze the wavefunctions, I got the following error:

From line 101, file itensor_operators.cc

Default constructed ITensor in product

Is this error message consistent with some kind of error in the wavefunction file that is somehow jamming either the import or analysis of the wavefunction?

1 Answer

+1 vote
answered by (70.1k points)

Hi Jon,
Yes I somtimes get that message when a file is made using a previous version of ITensor. We try to keep backwards compatibility of the file formats but currently the only guarantee is that files read using the same version of ITensor, on the same computer, are guaranteed to work correctly. ("Guaranteed" means what we consider a bug or not.)

So is it possible you wrote the file with a previous version of ITensor? If so that could be the culprit.

If not, can you tell me how you created the file? Like did you make it on a different computer possibly?

Miles

commented by (960 points)
I am running ITensor on COMET at the SDSC and I didn't allocate enough RAM for the calculation that produced the wavefunction and sites files. I am not sure, but I suspect that when I then imported these files for a subsequent calculation, they were incomplete. I did not get this error when the memory allocation was sufficient.

I asked the question to make sure that I am not misinterpreting the error.
commented by (70.1k points)
Hi Jon, yes if a file is not successfully written then I think that is very likely the cause of this error. It's a cryptic error I agree, but we haven't put in facilities for writing tensors to disk in a "transactional" way yet, meaning that either a whole tensor gets written or not at all. The reason is mainly that we are trying to keep the number of dependencies ITensor has very low, since other libraries are often surprisingly quite hard to install. I think in the future I will start providing optional dependencies, where people can turn on fancier features if they have certain libraries on their system (such as HDF5 for writing structured data files).
commented by (960 points)
Ok thanks.  I think the file did get written, since my program spent 30 minutes processing the imported wavefunction before the error came up.
commented by (960 points)
In the case where the file was empty, it came back with an error in a matter of seconds.
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

...