cirq.testing.random_special_unitary

Returns a random special unitary distributed with Haar measure.

Main aliases

cirq.testing.lin_alg_utils.random_special_unitary

dim The width and height of the matrix.
random_state A seed (int) or np.random.RandomState class to use when generating random values. If not set, defaults to using the module methods in np.random.

The sampled special unitary.