Skip to main content

squared_norm

Method of State.

squared_norm() -> real

Computes the squared norm of the quantum state.

Returns the squared L2 norm ψ2=ψψ\vert \vert \psi \vert \vert ^2 = \langle \psi \vert \psi \rangle of the quantum state.