qiskit.opflow.expectations.CVaRExpectation.compute_variance¶
- CVaRExpectation.compute_variance(exp_op)[fuente]¶
Returns the variance of the CVaR calculation
- Parámetros
exp_op (OperatorBase) – The operator whose evaluation yields an expectation of some StateFn against a diagonal observable.
- Devuelve
- The variance of the CVaR estimate corresponding to the converted
exp_op.
- Muestra
ValueError – If the exp_op does not correspond to an expectation value.
- Tipo del valor devuelto
Union[list, float]