# cirq.testing.random_special_orthogonal¶

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

Returns a random special orthogonal matrix distributed with Haar measure.

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