qiskit.opflow.expectations.CVaRExpectation.compute_variance¶
- CVaRExpectation.compute_variance(exp_op)[소스]¶
Returns the variance of the CVaR calculation
- 매개변수
exp_op (OperatorBase) – The operator whose evaluation yields an expectation of some StateFn against a diagonal observable.
- 반환
- The variance of the CVaR estimate corresponding to the converted
exp_op.
- 예외 발생
ValueError – If the exp_op does not correspond to an expectation value.
- 반환 형식
Union[list, float]