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
Return clifford lengths.
Return fit.
Return raw data.
Return the fit function rb_fit_fun.
Return all the results.
Return the number of loaded seeds.
Return ydata (means and std devs).
Methods
RBFitter.add_data
(new_backend_result[, …])Add a new result.
Retrieve probabilities of success from execution results.
Extract averages and std dev from the raw data (self._raw_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.