iqm.benchmarks.randomized_benchmarking.randomized_benchmarking_common.generate_random_clifford_seq_circuits

iqm.benchmarks.randomized_benchmarking.randomized_benchmarking_common.generate_random_clifford_seq_circuits#

iqm.benchmarks.randomized_benchmarking.randomized_benchmarking_common.generate_random_clifford_seq_circuits(qubits: list[int], clifford_dict: dict[str, IQMCircuit], seq_length: int, num_circ_samples: int, backend_arg: str | IQMBackendBase, interleaved_gate: IQMCircuit | None = None) tuple[list[IQMCircuit], list[IQMCircuit]]#

Generate random Clifford circuits in native gates for a given sequence length.

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

  • clifford_dict (dict[str, IQMCircuit]) – A dictionary of Clifford gates labeled by (de)stabilizers

  • seq_length (int) – the sequence length

  • num_circ_samples (int) – the number of samples

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

  • interleaved_gate (IQMCircuit | None) – Clifford native gate to be interleaved - None by default

Returns:

The list of self.num_samples random Clifford quantum circuits

Return type:

tuple[list[IQMCircuit], list[IQMCircuit]]