qiskit.quantum_info.DensityMatrix.trace¶ DensityMatrix.trace()[código fonte]¶ Return the trace of the density matrix.