qiskit.quantum_info.DensityMatrix.trace¶ DensityMatrix.trace()[ソース]¶ Return the trace of the density matrix.