PurityRBFitter¶
- class PurityRBFitter(purity_result, npurity, cliff_lengths, rb_pattern=None)[source]¶
Bases:
qiskit.ignis.verification.randomized_benchmarking.fitters.RBFitterBase
Class for fitter for purity RB.
Derived from RBFitterBase class.
- Parameters
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.
Methods
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.
Attributes
- cliff_lengths¶
Return clifford lengths.
- fit¶
Return the purity fit parameters.
- raw_data¶
Return raw data.
- rb_fit_fun¶
Return the fit function rb_fit_fun.
- rbfit_pur¶
Return the purity RB fitter.
- results¶
Return all the results.
- seeds¶
Return the number of loaded seeds.
- ydata¶
Return ydata (means and std devs).