qiskit.quantum_info.DensityMatrix.trace¶ DensityMatrix.trace()[source]¶ Return the trace of the density matrix.