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, QuantumCircuit]) – 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) –

  • interleaved_gate (Optional[QuantumCircuit]) – Clifford native gate to be interleaved - None by default

Returns:

the list of self.num_samples random Clifford quantum circuits

Return type:

List[QuantumCircuit]