Portuguese
Idiomas
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.opflow.expectations.CVaRExpectation.compute_variance

CVaRExpectation.compute_variance(exp_op)[código fonte]

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.

Retorno

The variance of the CVaR estimate corresponding to the converted

exp_op.

Levanta

ValueError – If the exp_op does not correspond to an expectation value.

Tipo de retorno

Union[list, float]