# qiskit.quantum_info.DensityMatrix.reverse_qargs¶

DensityMatrix.reverse_qargs()[Quellcode]

Return a DensityMatrix with reversed subsystem ordering.

For a tensor product state this is equivalent to reversing the order of tensor product subsystems. For a density matrix $$\rho = \rho_{n-1} \otimes ... \otimes \rho_0$$ the returned state will be $$\rho_0 \otimes ... \otimes \rho_{n-1}$$.

Rückgabe

the state with reversed subsystem order.

Rückgabetyp

DensityMatrix