pub fn random_circuit<R>(
qubits: usize,
rounds: usize,
single_qubit_probability: f64,
two_qubit_probability: f64,
rng: &mut R,
connectivity: ConnectivityLayout,
) -> Tensorwhere
R: Rng,Expand description
Creates a random circuit.
The circuit has rounds many rounds of single and two qubit gate layers. Gates
are placed with the given probabilities and only on qubit pairs specified by the
connectivity.