compute_su_generators

compute_su_generators(n)[source]

Computes the Lie algebra generators for SU(n).

Parameters:

n (int) – dimension of SU(n) algebra

Returns:

list of the SU(N) generators, note that they are Hermitian, but not neccesarily unitary.

Return type:

npt.NDArray[np.complex128]

Raises:

ValueError – if n<=0