Skip to main content

dot

Method of State.

dot(const State rhs) -> complex

Computes the inner product between two quantum states.

Returns the complex inner product lhsrhs\langle \text{lhs} \vert \text{rhs} \rangle between two quantum states.

Parameters

  • rhs: Second quantum state (ket).