pygsti.construction.make_elgst_experiment_list¶
-
pygsti.construction.
make_elgst_experiment_list
(gateLabels, germList, maxLengthList, truncScheme='whole germ powers')¶ Create a list of all the gate strings (i.e. the experiments) required for the extended LGST (eLGST) algorithm.
Returns a single list containing, without duplicates, all the gate strings required throughout all the iterations of eLGST given by maxLengthList. Thus, the returned list is equivalently the list of the experiments required to run eLGST using the supplied parameters, and so commonly used when construting data set templates or simulated data sets. The breakdown of which gate strings are used for which iteration(s) of eLGST is given by make_elgst_lists(...).
Parameters: - gateLabels (list or tuple) – List of gate labels. Only relevant when maxLengthList[0] == 0.
- germList (list of GateStrings) – List of the germ gate strings.
- maxLengthList (list of ints) – List of the maximum lengths. If maxLengthList[0] == 0 this results in special behavior where the length-1 gate label strings are included as the first returned list.
- truncScheme (str, optional) –
Truncation scheme used to interpret what the list of maximum lengths means. If unsure, leave as default. Allowed values are:
- ‘whole germ powers’ – germs are repeated an integer number of times such that the length is less than or equal to the max.
- ‘truncated germ powers’ – repeated germ string is truncated to be exactly equal to the max (partial germ at end is ok).
- ‘length as exponent’ – max. length is instead interpreted as the germ exponent (the number of germ repetitions).
Returns: Return type: list of GateStrings