Statevector.add

Statevector.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.