- class PurityRBFitter(purity_result, npurity, cliff_lengths, rb_pattern=None)¶
Class for fitter for purity RB.
Derived from RBFitterBase class.
purity_result (list) – list of results of the 3^n purity RB sequences per seed (qiskit.Result).
npurity (int) – equals 3^n (where n is the dimension).
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.
Function than maps: 2^n x 3^n --> 4^n , namely: (a,b) --> c where a in 2^n, b in 3^n, c in 4^n
Add a new result.
Creating all Z-correlators in order to compute the expectation values.
Retrieve probabilities of success from execution results.
Extract averages and std dev from the raw data (self._raw_data).
Fit the Purity RB results to an exponential curve.
Fit the RB results of a particular pattern to an exponential curve.
Plot purity RB data of a single pattern.
Return clifford lengths.
Return the purity fit parameters.
Return raw data.
Return the fit function rb_fit_fun.
Return the purity RB fitter.
Return all the results.
Return the number of loaded seeds.
Return ydata (means and std devs).