pygsti.report.zoomed_direct_chi2_boxplot¶
-
pygsti.report.
zoomed_direct_chi2_boxplot
(xvals, yvals, xy_gatestring_dict, dataset, directGatesets, strs, xlabel='', ylabel='', m=None, M=None, scale=1.0, prec='compact', title='Direct Chi^2', minProbClipForWeighting=0.0001, save_to=None, ticSize=14)¶ Create an interactive zoomed color box plot of Direct-X chi^2 values (within an iPython notebook)
Parameters: - yvals (xvals,) – List of x and y values. Elements can be any hashable quantity, and will be converted into x and y tic labels. Tuples of strings are converted specially for nice latex rendering of gate strings.
- xy_gatestring_dict (dict) – Dictionary with keys == (x_value,y_value) tuples and values == gate strings, where a gate string can either be a GateString object or a tuple of gate labels. Provides the mapping between x,y pairs and gate strings. None values are allowed, and indicate that there is not data for that x,y pair and nothing should be plotted.
- dataset (DataSet) – The data used to specify frequencies and counts
- directGatesets (dict) – Dictionary with keys == gate strings and values == GateSets. directGatesets[sigma] must be a GateSet which contains an estimate of sigma stored under the gate label “sigmaLbl”.
- strs (2-tuple) – A (rhoStrs,EStrs) tuple usually generated by calling get_spam_strs(...)
- ylabel (xlabel,) – X and Y axis labels
- M (m,) – Min and max values of the color scale.
- scale (float, optional) – Scaling factor to adjust the size of the final figure.
- prec (int, optional) – Precision for box labels. Allowed values are: ‘compact’ = round to nearest whole number using at most 3 characters ‘compacthp’ = show as much precision as possible using at most 3 characters int >= 0 = fixed precision given by int int < 0 = number of significant figures given by -int
- title (string, optional) – Plot title (latex can be used)
- minProbClipForWeighting (float, optional) – defines the clipping interval for the statistical weight used within the chi^2 function (see chi2fn).
- save_to (str, optional) – save figure to this filename (usually ending in .pdf)
- ticSize (int, optional) – size of tic marks
Returns: Return type: None