DensityMatrix.trace

DensityMatrix.trace()[source]

Return the trace of the density matrix.