Statevector.trace

Statevector.trace()[source]

Return the trace of the quantum state as a density matrix.