InterleavedRBFitter

class InterleavedRBFitter(original_result, interleaved_result, cliff_lengths, rb_pattern=None)[source]

Class for fitters for interleaved RB, derived from RBFitterBase class.

Contains two RBFitter objects: the original RBFitter and the interleaved RBFitter.

Parameters
  • original_result (list) – list of results of the original RB sequence (qiskit.Result).

  • interleaved_result (list) – list of results of the interleaved RB sequence (qiskit.Result).

  • cliff_lengths (list) – the Clifford lengths, 2D list i x j where i is the number of patterns, j is the number of cliffords lengths.

  • rb_pattern (list) – the pattern for the RB sequences.

Attributes

InterleavedRBFitter.cliff_lengths

Return clifford lengths.

InterleavedRBFitter.fit

Return fit as a 2 element list.

InterleavedRBFitter.fit_int

Return interleaved fit parameters.

InterleavedRBFitter.raw_data

Return raw_data as a 2 element list.

InterleavedRBFitter.rb_fit_fun

Return the fit function rb_fit_fun.

InterleavedRBFitter.rbfit_int

Return the interleaved RB fitter.

InterleavedRBFitter.rbfit_std

Return the original RB fitter.

InterleavedRBFitter.results

Return all the results as a 2 element list.

InterleavedRBFitter.seeds

Return the number of loaded seeds as a 2 element list.

InterleavedRBFitter.ydata

Return ydata (means and std devs) as a 2 element list.

Methods

InterleavedRBFitter.add_data(…[, rerun_fit])

Add a new result.

InterleavedRBFitter.calc_data()

Retrieve probabilities of success from execution results.

InterleavedRBFitter.calc_statistics()

Extract averages and std dev.

InterleavedRBFitter.fit_data()

Fit the interleaved RB results.

InterleavedRBFitter.fit_data_pattern(…[, …])

Fit the RB results of a particular pattern to an exponential curve.

InterleavedRBFitter.plot_rb_data([…])

Plot interleaved randomized benchmarking data of a single pattern.