grogupy._core.commutator

grogupy._core.commutator(a: ndarray[Any, dtype[float64]], b: ndarray[Any, dtype[float64]]) ndarray[Any, dtype[float64]][source]

Shorthand for commutator.

Commutator of two matrices in the mathematical sense.

Parameters

a: NDArray

The first matrix

b: NDArray

The second matrix

Returns

NDArray

The commutator of a and b