CNOTDihedralRBFitter

class CNOTDihedralRBFitter(cnotdihedral_Z_result, cnotdihedral_X_result, elmnts_lengths, rb_pattern=None)[source]

Class for fitters for non-Clifford CNOT-Dihedral RB.

Derived from RBFitterBase class. Contains two RBFitter objects.

Parameters
  • cnotdihedral_Z_result (qiskit.Result) – list of results of the RB sequence that measures the ground state.

  • cnotdihedral_X_result (qiskit.Result) – list of results of the RB sequence that measures the \(|+...+>\) state.

  • elmnts_lengths (list) – the group elements lengths, 2D list i x j where i is the number of patterns, j is the number of elements lengths.

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

Attributes

CNOTDihedralRBFitter.cliff_lengths

Return group elements lengths.

CNOTDihedralRBFitter.fit

Return fit as a 2 element list.

CNOTDihedralRBFitter.fit_cnotdihedral

Return cnotdihedral fit parameters.

CNOTDihedralRBFitter.raw_data

Return raw_data as 2 element list.

CNOTDihedralRBFitter.rb_fit_fun

Return the fit function rb_fit_fun.

CNOTDihedralRBFitter.rbfit_X

Return the cnotdihedral X fitter.

CNOTDihedralRBFitter.rbfit_Z

Return the cnotdihedral Z fitter.

CNOTDihedralRBFitter.results

Return all the results as a 2 element list.

CNOTDihedralRBFitter.seeds

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

CNOTDihedralRBFitter.ydata

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

Methods

CNOTDihedralRBFitter.add_data(…[, rerun_fit])

Add a new result.

CNOTDihedralRBFitter.calc_data()

Retrieve probabilities of success from execution results.

CNOTDihedralRBFitter.calc_statistics()

Extract averages and std dev.

CNOTDihedralRBFitter.fit_data()

Fit the non-Clifford cnot-dihedral RB results.

CNOTDihedralRBFitter.fit_data_pattern(…[, …])

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

CNOTDihedralRBFitter.plot_rb_data([…])

Plot non-Clifford cnot-dihedral randomized benchmarking data of a single pattern.