qiskit.opflow.list_ops.ListOp.traverse¶
- ListOp.traverse(convert_fn, coeff=None)[source]¶
Apply the convert_fn to each node in the oplist.
- প্যারামিটার
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.
- রিটার্নস
The converted ListOp.
- রিটার্ন টাইপ