iqm.benchmarks.randomized_benchmarking.interleaved_rb.interleaved_rb.InterleavedRandomizedBenchmarking#
- class iqm.benchmarks.randomized_benchmarking.interleaved_rb.interleaved_rb.InterleavedRandomizedBenchmarking(backend_arg: IQMBackendBase | str, configuration: InterleavedRBConfiguration)#
Bases:
BenchmarkInterleaved RB estimates the average gate fidelity of a specific Clifford gate.
Attributes
Methods
add_all_circuits_to_dataset(dataset)Adds all generated circuits during execution to the dataset variable.
add_all_meta_to_dataset(dataset)Adds all configuration metadata and circuits to the dataset variable.
analysis_function(run)Analysis function for an Interleaved RB experiment.
execute(backend)Executes the benchmark.
name()Returns the name of the benchmark.
- Parameters:
backend_arg (IQMBackendBase | str)
configuration (InterleavedRBConfiguration)
- static analysis_function(run: BenchmarkRunResult) BenchmarkAnalysisResult#
Analysis function for an Interleaved RB experiment.
- Parameters:
run (BenchmarkRunResult) – An interleaved RB experiment run for which analysis result is created
- Returns:
AnalysisResult corresponding to Interleaved RB
- Return type:
- add_all_meta_to_dataset(dataset: Dataset) None#
Adds all configuration metadata and circuits to the dataset variable.
- Parameters:
dataset (Dataset) – The xarray dataset
- Return type:
None
- add_all_circuits_to_dataset(dataset: Dataset) None#
Adds all generated circuits during execution to the dataset variable.
- Parameters:
dataset (Dataset) – The xarray dataset
- Return type:
None
- execute(backend: IQMBackendBase) Dataset#
Executes the benchmark.
- Parameters:
backend (IQMBackendBase)
- Return type: