cirq.linalg.transformations.transpose_density_matrix_to_axis_order

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.