pub fn add_random_operation(
    circuit: &mut Circuit,
    number_qubits: usize,
    seed: u64
)
Expand description

Function to add a random operation to the Circuit.

A random single- or two-qubit gate operation is added to the circuit. All arguments for the peration, like qubit number, rotation angle, etc. are randomly distributed.

§Arguments

  • circuit - Mutable roqoqo Circuit, where the operation is added.
  • number_qubits - Number of qubits in the circuit.
  • seed - Seed for the random number generator.