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: Benchmark

Interleaved RB estimates the average gate fidelity of a specific Clifford gate

Attributes

name

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 :param dataset: The xarray dataset :type dataset: xr.Dataset

analysis_function(run)

Analysis function for an Interleaved RB experiment

execute(backend)

Executes the benchmark

Parameters:
static analysis_function(run: BenchmarkRunResult) BenchmarkAnalysisResult#

Analysis function for an Interleaved RB experiment

Parameters:

run (RunResult) – An interleaved RB experiment run for which analysis result is created

Returns:

AnalysisResult corresponding to Interleaved RB

Return type:

BenchmarkAnalysisResult

add_all_meta_to_dataset(dataset: Dataset)#

Adds all configuration metadata and circuits to the dataset variable :param dataset: The xarray dataset :type dataset: xr.Dataset

Parameters:

dataset (Dataset) –

add_all_circuits_to_dataset(dataset: Dataset)#

Adds all generated circuits during execution to the dataset variable

Parameters:

dataset (xr.Dataset) – The xarray dataset

Returns:

execute(backend: IQMBackendBase) Dataset#

Executes the benchmark

Parameters:

backend (IQMBackendBase) –

Return type:

Dataset