qiskit.aqua.operators.expectations.AerPauliExpectation.compute_variance¶

AerPauliExpectation.compute_variance(exp_op)[ソース]

Compute the variance of the expectation estimator. Because Aer takes this expectation with matrix multiplication, the estimation is exact and the variance is always 0, but we need to return those values in a way which matches the Operator’s structure.

パラメータ

exp_op (OperatorBase) – The full expectation value Operator after sampling.

Union[list, float]

The variances or lists thereof (if exp_op contains ListOps) of the expectation value estimation, equal to 0.