SyTen

◆ expectation() [2/5]

SDef syten::MPS::expectation ( LBOState const &  a,
Operator const &  op,
LBOState const &  b 
)

Calculates the expectation value \(\langle b | \left(\hat O | a \rangle\right)\).

References syten::genCombinator(), syten::genFuse(), lboify_mpo_cmp(), syten::MPS::LBOState::m(), syten::MPS::LBOState::size(), SYTEN_ASSERT_DEBUG, and syten::MPS::LBOState::v().

Referenced by expectation(), sqaure_expectation(), and variance().

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