qiskit.quantum_info.DensityMatrix.purity¶ DensityMatrix.purity()[código fonte]¶ Return the purity of the quantum state.