grogupy._core.tau_u

grogupy._core.tau_u(u: ndarray[Any, dtype[_ScalarType_co]]) ndarray[Any, dtype[_ScalarType_co]][source]

Pauli matrix in direction u.

Returns the vector u in the basis of the Pauli matrices.

Parameters

u: list or NDArray

The direction

Returns

NDArray

Arbitrary direction in the base of the Pauli matrices