SRDef syten::BTT::DMRG::Run::energy | ( | Operator::Ptr | optr, |
State::Ptr | pptr, | ||
Ctrs::Ptr | cptr | ||
) |
Calculates the energy on the specified node, assuming that all neighbouring contractions exist and point in the correct direction.
References syten::BTT::Operator::aIdx, syten::BTT::State::aIdx, syten::BTT::State::aInt, syten::BTT::Operator::bIdx, syten::BTT::State::bIdx, syten::BTT::State::bInt, syten::BTT::Operator::dIdx, syten::BTT::State::pIdx, syten::BTT::State::pInt, syten::real(), syten::BTT::Operator::rIdx, syten::BTT::State::rIdx, syten::BTT::State::rInt, and syten::BTT::Operator::uIdx.