qiskit.quantum_info.DensityMatrix.purity¶ DensityMatrix.purity()[ソース]¶ Return the purity of the quantum state.