pygsti.processors.random_compilation.haar_random_u3_layer#
- haar_random_u3_layer(qubits, rand_state=None)#
Generates a layer of Haar-random U3 gates.
- Parameters:
qubits (list[str]) – A list of qubit labels for which to generate U3 gates.
rand_state (np.random.RandomState, optional) – A random state for reproducibility. Default is None, which initializes a new random state.
- Returns:
A label containing the layer of randomly generated U3 gates.
- Return type:
pygsti.baseobjs.Label