qit.utils.rand_SU

qit.utils.rand_SU(n)

Random SU(n) matrix.

Parameters

n (int) – matrix size

Returns

random special unitary n*n matrix

Return type

array[complex]

The matrix is random with respect to the Haar measure.