iqm.benchmarks.randomized_benchmarking.randomized_benchmarking_common

iqm.benchmarks.randomized_benchmarking.randomized_benchmarking_common#

Common functions for Randomized Benchmarking-based techniques.

Functions

compute_inverse_clifford(qc_inv, ...)

Function to compute the inverse Clifford of a circuit.

edge_grab(qubit_set, n_layers, backend_arg)

Generate a list of random layers containing single-qubit Cliffords and two-qubit gates.

estimate_survival_probabilities(num_qubits, ...)

Compute a result's probability of being on the ground state.

exponential_rb(depths, ...)

Fit function for interleaved/non-interleaved RB.

fit_decay_lmfit(func, qubit_set, data, ...)

Perform a fitting routine for 0th-order (Ap^m+B) RB using lmfit.

generate_all_rb_circuits(qubits, ...)

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

generate_fixed_depth_parallel_rb_circuits(...)

Generates parallel RB circuits, before and after transpilation, at fixed depth.

generate_random_clifford_seq_circuits(...[, ...])

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

get_survival_probabilities(num_qubits, counts)

Compute a result's probability of being on the ground state.

import_native_gate_cliffords(-> dict[str, ...)

Import native gate Clifford dictionaries.

lmfit_minimizer(fit_parameters, fit_data, ...)

Perform minimization using lmfit.

plot_rb_decay(identifier, qubits_array, ...)

Plot the fidelity decay and the fit to the model.

relabel_qubits_array_from_zero(arr[, ...])

Helper function to relabel an array of qubits to an increasingly ordered one starting from zero.

submit_parallel_rb_job(backend_arg, ...[, ...])

Submit fixed-depth parallel MRB jobs for execution in the specified IQMBackend.

submit_sequential_rb_jobs(qubits, ...[, ...])

Submit sequential RB jobs for execution in the specified IQMBackend.

survival_probabilities_parallel(...[, ...])

Estimates marginalized survival probabilities from a parallel RB execution (at fixed depth).

validate_irb_gate(gate_id, backend_arg[, ...])

Validate that an input gate is Clifford and transpiled to IQM's native basis.

validate_rb_qubits(qubits_array, backend_arg)

Validate qubit inputs for a Clifford RB experiment.