pygsti.construction.build_spam_specs¶
-
pygsti.construction.
build_spam_specs
(fiducialGateStrings=None, prepStrs=None, effectStrs=None, prepSpecs=None, effectSpecs=None, prep_labels=('rho0', ), effect_labels=('E0', ))¶ - Computes rho and E specifiers based on optional arguments. This function
- is used to generate the (prepSpecs,effectSpecs) tuple needed by many of the Core GST routines.
Parameters: - fiducialGateStrings (list of (tuples or GateStrings), optional) – Each tuple contains gate labels specifying a fiducial gate string, and it is assumed that the zeroth rhoVec and EVec are used with this string to form a prep-specifier and effect-specifier, respectively. e.g. [ (), (‘Gx’,), (‘Gx’,’Gy’) ]
- prepStrs (list of (tuples or GateStrings), optional) – Each tuple contains gate labels and it is assumed that the zeroth rhoVec is used with this string to form a prep-specifier. e.g. [ (‘Gi’,) , (‘Gx’,’Gx’) , (‘Gx’,’Gi’,’Gy’) ]
- effectStrs (list of (tuples or GateStrings), optional) – Each tuple contains gate labels and it is assumed that the zeroth EVec is used with this string to form a effect-specifier. e.g. [ (‘Gi’,) , (‘Gi’) , (‘Gx’,’Gi’,’Gy’) ]
- prepSpecs (list of tuples, optional) – Each tuple contains gate labels followed by an integer indexing a rhoVec. e.g. [ (‘Gi’,0) , (‘Gx’,’Gx’,0) , (‘Gx’,’Gi’,’Gy’,0) ]
- effectSpecs (list of tuples, optional) – Each tuple contains an integer EVec index followed by gate labels. e.g. [ (0,’Gi’) , (1,’Gi’) , (0,’Gx’,’Gi’,’Gy’) ]
- prep_labels (tuple of strs, optional) – Labels to prepend to fiducial strings to create prepSpecs
- effect_labels (tuple of strs, optional) – Labels to append to fiducial strings to create effectSpecs
Returns: each of the form of the optional parameters prepSpecs and effectSpecs above.
Return type: (prepSpecs, effectSpecs)