cirq.testing.random_unitary

Returns a random unitary matrix distributed with Haar measure.

Used in the notebooks

Used in the tutorials

dim The width and height of the matrix.
random_state A seed to use for random number generation.

The sampled unitary matrix.

'How to generate random matrices from the classical compact groups' http://arxiv.org/abs/math-ph/0609050