def reindex(self, axes: Sequence[int]) -> _BufferedStateVector:
        """Transposes the axes of a state vector to a specified order.

        Args:
            axes: The desired axis order.
        Returns:
            The transposed state vector.
        """
        new_tensor = transformations.transpose_state_vector_to_axis_order(self._state_vector, axes)
        return _BufferedStateVector(state_vector=new_tensor, buffer=np.empty_like(new_tensor))
Transposes the axes of a state vector to a specified order.

        Args:
            axes: The desired axis order.
        Returns:
            The transposed state vector.
        
cirq-core/cirq/sim/state_vector_simulation_state.py