qiskit.opflow.expectations.PauliExpectation.compute_variance¶
- PauliExpectation.compute_variance(exp_op)[Quellcode]¶
Compute the variance of the expectation estimator.
- Parameter
exp_op (OperatorBase) – The full expectation value Operator after sampling.
- Rückgabe
The variances or lists thereof (if exp_op contains ListOps) of the expectation value estimation.
- Rückgabetyp
Union[list, float, ndarray]