+1 vote
asked by (130 points)

The internal format used by "writeToFile" and "readFromFile" is not explicit. Is there any way of writing things e.g. using a HDF5 format? This would be useful for inspecting the results using hdfview or silx, and to interface ITensor with other MPS programs. Any development planned in this direction?

1 Answer

0 votes
answered by (21.9k points)

Yes, HDF5 would be great to have and we are planning to support HDF5 at some point soon, probably starting this summer. But I'm not sure when it will happen since I'm the only developer currently and I'll be traveling quite a bit until July.

In the meantime, if you want to create your own code to export ITensor data to a format of your choosing, here is a documentation page showing how to extract the storage inside of a dense ITensor, which is just a std::vector of Real (double) or Cplx (std::complex) numbers:
http://itensor.org/docs.cgi?page=formulas/extractdense

If you decide to work on that and encounter a more complicated ITensor storage type (such as the storage of an IQTensor) I can discuss with you how to extract that storage and what format it has.

Best regards,
Miles

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

...