SyTen

◆ expectation() [1/2]

SDef syten::BTT::expectation ( State const &  a,
Operator const &  op,
State const &  b 
)

Returns the expectation value of an operator between two states as \( \langle b | \left( \hat O | a \rangle \right) \).

Parameters
athe first state, not complex conjugated, acted upon by \( \hat O \)
bthe second state, to be complex-conjugated
opthe operator
Returns
the scalar value \( \langle b | \left( \hat O | a \rangle \right) \)

References expectation_rec(), syten::genCombinator(), syten::genFuse(), syten::BTT::State::pleaseCache, and syten::BinaryTree::Tree< T >::r.

Referenced by syten::calc_expval(), expectation(), syten::Krylov::TensorNetworksImpl::HEffDenseExpectation::H_eff(), syten::Krylov::TensorNetworksImpl::HEffTridiagExpectation::H_eff(), and syten::BTT::State::load().

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