std::pair< SDef, SRDef > syten::MPS::variance | ( | S && | a, |
Operator const & | op, | ||
S && | b, | ||
SDef | norm = NAN |
||
) |
Calculates the expectation value and the variance.
References syten::abs(), expectation(), std::isnan(), norm(), overlap(), and sqaure_expectation().
Referenced by syten::calc_expval(), syten::do_expval(), and variance().