haar_rand_state¶
-
forest.benchmarking.operator_tools.random_operators.
haar_rand_state
(dim: int) → numpy.ndarray¶ Given a Hilbert space dimension dim this function returns a vector representing a random pure state operator drawn from the Haar measure.
Parameters: dim – Hilbert space dimension. Returns: Returns a dim by 1 vector drawn from the Haar measure.