SyTen

◆ singValSqdToError()

SRDef syten::singValSqdToError ( SRDef const  squared_singular_values,
SRDef const  norm 
)

If squared_singular_values is the sum of the squares of the singular values discarded during a truncation step on a tensor of norm norm, this function returns the error between a normalised original state and a normalised version of the new state.

References norm(), and sqrt().

Referenced by syten::T3N::Contraction::decontractToPhysicalBranching(), syten::T3N::Contraction::decontractToPhysicalPhysical(), syten::IPEPS::horizontal_simple_update(), syten::MPS::State::leftnorm(), syten::MPS::TDVP::Worker::locally_expand_bond(), syten::T3N::TDVP::Worker::norm_bond(), syten::MPS::State::rightnorm(), syten::IPEPSv2::simple_update(), syten::MPS::TDVP::Worker::sweepLeftTwoSite(), syten::MPS::TDVP::Worker::sweepRightTwoSite(), syten::MPS::TDVP::Worker::sync(), syten::T3N::TDVP::Worker::update_phys_phys(), syten::IPEPS::vertical_simple_update(), and syten::IPEPS::vertical_simple_update_remover().

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