qiskit.opflow.primitive_ops.PrimitiveOp.add¶
- PrimitiveOp.add(other)[Quellcode]¶
Return Operator addition of self and other, overloaded by
+
.- Parameter
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).- Rückgabetyp
- Rückgabe
An
OperatorBase
equivalent to the sum of self and other.