iqm.benchmarks.randomized_benchmarking.randomized_benchmarking_common.generate_all_rb_circuits

iqm.benchmarks.randomized_benchmarking.randomized_benchmarking_common.generate_all_rb_circuits#

iqm.benchmarks.randomized_benchmarking.randomized_benchmarking_common.generate_all_rb_circuits(qubits: list[int], sequence_lengths: list[int], clifford_dict: dict[str, IQMCircuit], num_circuit_samples: int, backend_arg: str | IQMBackendBase, interleaved_gate: IQMCircuit | None) tuple[dict[int, list[IQMCircuit]], dict[int, list[IQMCircuit]]]#

Generate all RB circuits, before and after transpilation, for all class-defined sequence lengths.

Parameters:
  • qubits (list[int]) – List of qubits

  • sequence_lengths (list[int]) – List of sequence lengths

  • clifford_dict (dict[str, IQMCircuit]) – the dictionary of Clifford circuits

  • num_circuit_samples (int) – the number of circuits samples

  • backend_arg (str | IQMBackendBase) – the backend fir which to generate the circuits.

  • interleaved_gate (IQMCircuit | None) – the name of the interleaved gate

Returns:

Tuple of untranspiled and transpiled circuits for all class-defined sequence lengths

Return type:

tuple[dict[int, list[IQMCircuit]], dict[int, list[IQMCircuit]]]