Hi,

This is a rudimentary question and maybe have been answered already but I couldn't find it myself. So here is my problem:

I am trying to store and access the MPS tensors that I get out of a DMRG algorithm. For example, in a chain of N=10 sites, I want to look at the MPS at the middle site and perform numerical operations using it. So, I use the code:

energy,psi = dmrg(H,psi0,sweeps).

I expect the middle site MPS to be of the dimension 2* D* D and I want to look at 2 of the D*D matrices that in contained there. In Matlab, this would correspond to something like:

psi[5] (1, :, :) and psi[5] (2, :, :) ; so my first question is if there is an equivalent way of accessing the tensors in Julia?

If not, how can I print the tensors out in a text/HDF5 file with their indices included so that they can be read off by a Matlab script?