random_circuit

CRXGateSet.random_circuit(n_gates, seed=None)

Generate a random circuit drawn from the native gate set.

Every native gate is sampled uniformly and emitted with random angles.

Raises:

QuasarError – If a sampled native gate has no emitter.