qiskit.quantum_info.StabilizerState.purity¶ StabilizerState.purity()[source]¶ Return the purity of the quantum state, which equals to 1, since it is always a pure state. Returns the purity (should equal 1). Return type double Raises QiskitError – if input is not a StabilizerState.