German
Sprachen
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.opflow.list_ops.SummedOp.add

SummedOp.add(other)[Quellcode]

Return Operator addition of self and other, overloaded by +.

Bemerkung

This appends other to self.oplist without checking other is already included or not. If you want to simplify them, please use simplify().

Parameter

other (OperatorBase) – An OperatorBase 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ückgabe

A SummedOp equivalent to the sum of self and other.

Rückgabetyp

SummedOp