# cirq.testing.random_special_unitary¶

cirq.testing.random_special_unitary(dim: int) → numpy.ndarray[source]

Returns a random special unitary distributed with Haar measure.

Parameters: dim – The width and height of the matrix. The sampled special unitary.