pygsti.objects.MultiDataSet.__init__¶
-
MultiDataSet.
__init__
(countsDict=None, gateStrings=None, gateStringIndices=None, spamLabels=None, spamLabelIndices=None, fileToLoadFrom=None)¶ Initialize a MultiDataSet.
Parameters: - countsDict (ordered dictionary, optional) – Keys specify dataset names. Values are 2D numpy arrays which specify counts. Rows of the arrays correspond to gate strings and columns to spam labels.
- gateStrings (list of (tuples or GateStrings), optional) – Each element is a tuple of gate labels or a GateString object. Indices for these strings are assumed to ascend from 0. These indices must correspond to rows/elements of counts (above). Only specify this argument OR gateStringIndices, not both.
- gateStringIndices (ordered dictionary, optional) – An OrderedDict with keys equal to gate strings (tuples of gate labels) and values equal to integer indices associating a row/element of counts with the gate string. Only specify this argument OR gateStrings, not both.
- spamLabels (list of strings, optional) – Specifies the set of spam labels for the DataSet. Indices for the spam labels are assumed to ascend from 0, starting with the first element of this list. These indices will index columns of the counts array/list. Only specify this argument OR spamLabelIndices, not both.
- spamLabelIndices (ordered dictionary, optional) – An OrderedDict with keys equal to spam labels (strings) and value equal to integer indices associating a spam label with a column of counts. Only specify this argument OR spamLabels, not both.
- fileToLoadFrom (string or file object, optional) – Specify this argument and no others to create a MultiDataSet by loading from a file (just like using the load(...) function).