random_circuit_with_observable

Function random_circuit_with_observable 

Source
pub fn random_circuit_with_observable<R>(
    qubits: usize,
    round: usize,
    single_qubit_probability: f64,
    two_qubit_probability: f64,
    observable_probability: f64,
    rng: &mut R,
    connectivity: ConnectivityLayout,
) -> Tensor
where R: Rng,
Expand description

Creates a random circuit.

The circuit has rounds many rounds of single and two qubit gate layers, then a layer of random observables followed by the same single and two qubit gate layers mirrored. Gates are placed with the given probabilities and only on qubit pairs specified by the connectivity.