Returns the expectation value of an operator between two states as \( \langle b | \left( \hat O | a \rangle \right) \).
a | the first state, not complex conjugated, acted upon by \( \hat O \) |
b | the second state, to be complex-conjugated |
op | the operator |
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().