DensityMatrix.add¶
- DensityMatrix.add(other)¶
Return the linear combination self + other.
DEPRECATED: use
state + other
instead.- Parameters
other (QuantumState) – a quantum state object.
- Returns
the linear combination self + other.
- Return type
LinearOperator
- Raises
QiskitError – if other is not a quantum state, or has incompatible dimensions.