random_circuit_with_set_observable

Function random_circuit_with_set_observable 

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

Creates a random circuit with 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. The observables are placed on the given qubits. The gates are placed with the given probabilities and only on qubit pairs specified by the connectivity.