pygsti.tools.rb_decay_rate¶
-
pygsti.tools.
rb_decay_rate
(dataset, showPlot=False, xlim=None, ylim=None, saveFigPath=None)¶ Compute the Randomized Benchmarking (RB) decay rate given an data set containing counts for RB gate strings. Note: currently this function only works for 1-qubit dataset having SPAM labels ‘plus’ and ‘minus’.
Parameters: - dataset (DataSet) – The RB data set.
- showPlot (bool, optional) – Whether to show a plot of the fit to the RB data.
- xlim ((xmin,xmax), optional) – Specify x-axis limits for plot
- ylim ((ymin,ymax), optional) – Specify y-axis limits for plot
- saveFigPath (string, optional) – Pathname to save a plot of the fit to the RB data.
Returns: a,b – The best-fit decay curve parameters a and b, as defined in the rb_decay function.
Return type: float