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. Renvoie the purity (should equal 1). Type renvoyé double Lève QiskitError – if input is not a StabilizerState.