Portuguese
Idiomas
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.opflow.state_fns.CVaRMeasurement.traverse

CVaRMeasurement.traverse(convert_fn, coeff=None)[código fonte]

Apply the convert_fn to the internal primitive if the primitive is an Operator (as in the case of OperatorStateFn). Otherwise do nothing. Used by converters.

Parâmetros
  • convert_fn (Callable) – The function to apply to the internal OperatorBase.

  • coeff (Optional[Union[complex, ParameterExpression]]) – A coefficient to multiply by after applying convert_fn. If it is None, self.coeff is used instead.

Retorno

The converted StateFn.

Tipo de retorno

OperatorBase