pygsti.processors.random_compilation.haar_random_u3#
- haar_random_u3(q, rand_state=None)#
Generates a Haar-random U3 gate.
- Parameters:
q (str) – The qubit label for which to generate the U3 gate.
rand_state (np.random.RandomState, optional) – A random state for reproducibility. Default is None, which initializes a new random state.
- Returns:
A label representing the randomly generated U3 gate for the specified qubit.
- Return type:
pygsti.baseobjs.Label