SyTen

◆ entropyTwoSite() [1/2]

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

Declaration.

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

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: