DragFitter

class DragFitter(backend_result, xdata, qubits, fit_p0, fit_bounds=None)[source]

Drag Experiment fitter

See IQFitter __init__

fit_p0 is [a, x0, c] where the fit is a*(x-x0)^2+c

Attributes

DragFitter.backend_result

Return the execution results

DragFitter.description

Return the fitter’s purpose, e.g.

DragFitter.fit_fun

Return the function used in the fit, e.g.

DragFitter.measured_qubits

Return the indices of the qubits to be characterized

DragFitter.params

Return the fit function parameters that were calculated by curve_fit

DragFitter.params_err

Return the error of the fit function parameters

DragFitter.series

Return the list of series for the data

DragFitter.xdata

Return the data points on the x-axis, the independenet parameter which is fit against

DragFitter.ydata

Return the data points on the y-axis

Methods

DragFitter.add_data(results[, recalc, refit])

Add new execution results to previous execution results

DragFitter.drag_amplitude([qind])

Return the drag amplitude from the fit

DragFitter.fit_data([qid, p0, bounds, series])

Fit the curve.

DragFitter.guess_params([qind])

Guess parameters for the drag fit

DragFitter.plot(qind[, series, ax, show_plot])

Plot the data and fit