We're celebrating World Quantum Day 2022! Join us


Transposes the axes of a density matrix to a specified order.

t The density matrix to transpose.
axes The desired axis order. Only the left axes should be provided. For example, to transpose [A,B,C,A,B,C] to [C,B,A,C,B,A], axes should be [2,1,0].

The transposed density matrix.