cirq.testing.random_density_matrix

Returns a random density matrix distributed with Hilbert-Schmidt measure.

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

The sampled density matrix.

'Random Bures mixed states and the distribution of their purity' https://arxiv.org/abs/0909.5094