SyTen

◆ energy()

std::pair< SRDef, SRDef > syten::MPS::DMRG::Worker::energy ( Index const  i)

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

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::Operator::lIdx, syten::MPS::State::lIdx, op, psi, syten::MPS::Operator::rIdx, syten::MPS::State::rIdx, syten::MPS::State::rInt, SYTEN_ASSERT_DEBUG, syten::MPS::Operator::uIdx, syten::MPS::State::uIdx, and syten::MPS::State::uInt.

Referenced by logIter(), and Worker().

+ Here is the caller graph for this function: