cirq.testing.random_superposition

Returns a random unit-length vector from the uniform distribution.

dim The dimension of the vector.
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 unit-length vector.