SyTen

◆ energyM()

std::pair< SRDef, SRDef > syten::MPS::DMRG::LBOWorker::energyM ( Index const  i,
std::vector< Tensor< 4 > > const &  trans_ops 
)

Return the energy estimate from the specific site.

The first value is the calculation only for the first MPO, the second value is the sum for all MPOs.

Parameters
isite index
trans_opsLBO-transformed operator components

Requires the left- and right contractions to the left/right of that site to exist.

References contrLeft, contrRight, syten::MPS::Operator::dIdx, length, syten::MPS::LBOState::lIdx, syten::MPS::Operator::lIdx, syten::MPS::LBOState::m(), psi, syten::MPS::LBOState::rIdx, syten::MPS::Operator::rIdx, SYTEN_ASSERT_DEBUG, syten::MPS::LBOState::uIdx, and syten::MPS::Operator::uIdx.

Referenced by LBOWorker().

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