SyTen

◆ expectation() [2/2]

SDef syten::T3N::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(), and syten::T3N::Tree::Tree< T >::Root.

Referenced by syten::T3N::TDVP::Worker::run().

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