SyTen

◆ operator()() [2/3]

Tensor< 3 > const & syten::MPS::State::operator() ( Index  site) const

Returns a const reference to the tensor on that site.

Loads the tensor from disk if necessary, but does not store it there again if the reference is destroyed. site is 0-indexed. Due to being a const reference, the data file is not deleted from disk, allowing for efficiently saving the tensor again.

References data.