qiskit.aqua.operators.list_ops.SummedOp.traverse¶
-
SummedOp.
traverse
(convert_fn, coeff=None)¶ Apply the convert_fn to each node in the oplist.
- Parameters
convert_fn (
Callable
) – The function to apply to the internal OperatorBase.coeff (
Union
[int
,float
,complex
,ParameterExpression
,None
]) – A coefficient to multiply by after applying convert_fn. If it is None, self.coeff is used instead.
- Return type
OperatorBase
- Returns
The converted ListOp.