German
Sprachen
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.opflow.expectations.ExpectationBase.compute_variance

abstract ExpectationBase.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, complex, ndarray]