pub fn prepare_monte_carlo_gate_test(
    gate: GateOperation,
    preparation_gates: Vec<SingleQubitGateOperation>,
    basis_rotations_gates: Vec<SingleQubitGateOperation>,
    two_qubit_gate: Option<TwoQubitGateOperation>,
    number_stochastic_tests: usize,
    number_projective_measurement: usize
) -> (PauliZProduct, HashMap<String, f64>)
Expand description

Provides input data to run a stochastic gate test.

§Arguments

  • gate - roqoqo GateOperation to be measured.
  • preparation_gates - List of roqoqo SingleQubitGateOperations for the randomly chosen initial state preparation.
  • basis_rotations_gates - List of roqoqo SingleQubitGateOperations to perform randomly chosen basis rotation.
  • two_qubit_gate - None or Some(TwoQubitGateOperation).
  • number_stochastic_tests - Number of the test runs.
  • number_projective_measurement - Number of the measurements.

§Returns

  • Tuple (measurement, expected_values)