SRDef syten::entropyTwoSite | ( | MPS::State & | input, |
Index | site1, | ||
Index | site2 | ||
) |
Declaration.
Calculates the two site entropy of a state.
input | Input state. |
site1 | First site of the subsystem for which the entropy shall be calculated. |
site2 | Second site of the subsystem. |
merge the upper and lower indices together
merge the upper and lower indices together
References entropy(), entropyOneSite(), syten::Basis::flipped(), genFuse(), genSplit(), syten::Tensor< rank >::getBasis(), syten::MPS::State::leftnorm(), syten::MPS::State::lIdx, syten::IdentityDenseTensorImpl::merge(), syten::MPS::State::rIdx, syten::MPS::State::rightnorm(), syten::MPS::State::size(), sum(), std::swap(), and syten::MPS::State::uIdx.
Referenced by entropyOneSite(), and entropyTwoSite().