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.
i | site index |
trans_ops | LBO-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().