![]() |
Transposes the axes of a density matrix to a specified order.
cirq.linalg.transformations.transpose_density_matrix_to_axis_order(
t: np.ndarray, axes: Sequence[int]
)
Args | |
---|---|
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].
|
Returns | |
---|---|
The transposed density matrix. |