pub fn construct_random_circuit(circuit_length: usize, number_qubits: usize, seed: u64) -> Circuit {
    let mut rng = StdRng::seed_from_u64(seed);
    let mut circuit = Circuit::new();
    for _ in 0..circuit_length {
        let tmp_seed: u64 = rng.sample(Standard);
        add_random_operation(&mut circuit, number_qubits, tmp_seed)
    }
    circuit
}
/// Function to construct a random Circuit for stochastic gate tests.
///
/// # Arguments
///
/// * `circuit_length` - The number of gates to be added to the random Circuit.
/// * `number_qubits` - Number of qubits in the circuit.
/// * `seed` - Seed for the random number generator.
///
/// # Returns
///
/// * `circuit` - The constructed random roqoqo Circuit.
///
Function to construct a random Circuit for stochastic gate tests.
Function to construct a random Circuit for stochastic gate tests .
pub fn construct_random_circuit(circuit_length: usize, number_qubits: usize, seed: u64) -> Circuit {
    let mut rng = StdRng::seed_from_u64(seed);
    let mut circuit = Circuit::new();
    for _ in 0..circuit_length {
        let tmp_seed: u64 = rng.sample(Standard);
        add_random_operation(&mut circuit, number_qubits, tmp_seed)
    }
    circuit
}
pub fn construct_random_circuit ( circuit_length : usize , number_qubits : usize , seed : u64 ) -> Circuit { let mut rng = StdRng :: seed_from_u64 ( seed ) ; let mut circuit = Circuit :: new ( ) ; for _ in 0 .. circuit_length { let tmp_seed : u64 = rng . sample ( Standard ) ; add_random_operation ( & mut circuit , number_qubits , tmp_seed ) } circuit }
Function to construct a random Circuit for stochastic gate tests.
Function to construct a random Circuit for stochastic gate tests .
`circuit` - The constructed random roqoqo Circuit.
` circuit ` - The constructed random roqoqo Circuit .
circuit_length
usize
number_qubits
usize
seed
u64