DenseTensor< 2, SRDef > syten::mutualInfo::allSiteEntropy | ( | MPS::State & | input, |
Index const | width | ||
) |
Calculates the two site entropy of a state on all sites i != j and single site entropy on all sites i == j Works identical to entropyTwoSite but reduces the overhead by storing and reusing some Tensors.
input | MPS input state |
width | If width != 0 only entropy of sites on the same ring with supplied width is calculated |
merge the upper and lower indices together
References syten::entropy(), syten::Basis::flipped(), std::floor(), syten::genFuse(), syten::genSplit(), syten::Tensor< rank >::getBasis(), syten::MPS::State::leftnorm(), syten::MPS::State::lIdx, syten::MPS::State::rIdx, syten::MPS::State::rightnorm(), syten::MPS::State::size(), syten::sum(), and syten::MPS::State::uIdx.