SyTen

◆ allSiteEntropy() [1/2]

DenseTensor<2,SRDef> syten::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.

Parameters
inputMPS input state
widthIf width != 0 only entropy of sites on the same ring with supplied width is calculated
Returns
Array filled with one and two site entropies on sites i,j (symmetric)

merge the upper and lower indices together

References entropy(), syten::Basis::flipped(), std::floor(), genFuse(), 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(), sum(), and syten::MPS::State::uIdx.

+ Here is the call graph for this function: