Spanish
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.opflow.list_ops.ListOp.traverse

ListOp.traverse(convert_fn, coeff=None)[fuente]

Apply the convert_fn to each node in the oplist.

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

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

Tipo del valor devuelto

ListOp

Devuelve

The converted ListOp.