Tamil
மொழிகள்
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.quantum_info.Statevector.inner

Statevector.inner(other)[source]

Return the inner product of self and other as \(\langle self| other \rangle\).

Parameters

other (Statevector) -- a quantum state object.

Returns

the inner product of self and other, \(\langle self| other \rangle\).

Return type

np.complex128

Raises

QiskitError -- if other is not a quantum state or has different dimension.