DensityMatrix.subtract

DensityMatrix.subtract(other)

Return the linear operator 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.