qiskit.opflow.list_ops.SummedOp.add¶
-
SummedOp.
add
(other)[source]¶ Return Operator addition of
self
andother
, overloaded by+
.Note
This appends
other
toself.oplist
without checkingother
is already included or not. If you want to simplify them, please usesimplify()
.- Parameters
other (
OperatorBase
) – AnOperatorBase
with the same number of qubits as self, and in the same ‘Operator’, ‘State function’, or ‘Measurement’ category as self (i.e. the same type of underlying function).- Return type
SummedOp
- Returns
A
SummedOp
equivalent to the sum of self and other.