pygsti.algorithms.randomcircuit.sample_one_q_clifford_layer_as_compiled_circuit#
- sample_one_q_clifford_layer_as_compiled_circuit(pspec, absolute_compilation, qubit_labels=None, rand_state=None)#
Samples a uniformly random layer of 1-qubit Cliffords.
Create a uniformly random layer of 1-qubit Cliffords on all the qubits, and then converts it to the native gate-set of pspec. That is, an independent and uniformly random 1-qubit Clifford is sampled for each qubit.
- Parameters:
pspec (QubitProcessorSpec) – The QubitProcessorSpec for the device.
absolute_compilation (CompilationRules) – Rules for exactly (absolutely) compiling the “native” gates of pspec into clifford gates.
qubit_labels (list, optional) – If not None, a list of a subset of the qubits from pspec that the circuit should act on.
rand_state (RandomState, optional) – A np.random.RandomState object for seeding RNG
- Returns:
A circuit corresponding to an independent, uniformly random 1-qubit Clifford gate on each qubit.
- Return type: