pub fn quantum_fluctuation( operator: &(impl LinearOperator + ?Sized), state: &[Complex64], ) -> Result<f64>
Variance ||A psi||^2 - |<psi|A|psi>|^2 for a normalized state.
||A psi||^2 - |<psi|A|psi>|^2