RBFitter

class RBFitter(backend_result, cliff_lengths, rb_pattern=None)[source]

Class for fitters for randomized benchmarking.

Parameters
  • backend_result (Result) – list of results (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

RBFitter.cliff_lengths

Return clifford lengths.

RBFitter.fit

Return fit.

RBFitter.raw_data

Return raw data.

RBFitter.rb_fit_fun

Return the fit function rb_fit_fun.

RBFitter.results

Return all the results.

RBFitter.seeds

Return the number of loaded seeds.

RBFitter.ydata

Return ydata (means and std devs).

Methods

RBFitter.add_data(new_backend_result[, …])

Add a new result.

RBFitter.calc_data()

Retrieve probabilities of success from execution results.

RBFitter.calc_statistics()

Extract averages and std dev from the raw data (self._raw_data).

RBFitter.fit_data()

Fit the RB results to an exponential curve.

RBFitter.fit_data_pattern(patt_ind, fit_guess)

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

RBFitter.plot_rb_data([pattern_index, ax, …])

Plot randomized benchmarking data of a single pattern.