SyTen

◆ entropyTwoSite()

SRDef syten::mutualInfo::entropyTwoSite ( MPS::State input,
Index  site1,
Index  site2 
)

Calculates the two site entropy of a state.

Parameters
inputInput state.
site1First site of the subsystem for which the entropy shall be calculated.
site2Second site of the subsystem.
Returns
Entropy of the subsystem consisting of site1 and site2.

merge the upper and lower indices together

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

+ Here is the call graph for this function: