Korean
언어
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.opflow.expectations.MatrixExpectation.compute_variance

MatrixExpectation.compute_variance(exp_op)[소스]

Compute the variance of the expectation estimator. Because this expectation works by 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.

반환

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

반환 형식

Union[list, float]