Statevector.purity

Statevector.purity()[source]

Return the purity of the quantum state.