pygsti.report.Results.init_Ls_and_germs¶
-
Results.
init_Ls_and_germs
(objective, targetGateset, dataset, seedGateset, Ls, germs, gatesetsByL, gateStringListByL, prepStrs, effectStrs, truncFn, constrainToTP, fidPairs=None, gatesetsByL_noGaugeOpt=None)¶ Initialize this Results object from the inputs and outputs of an iterative GST method based on gate string lists containing germs repeated up to a maximum-L value that increases with iteration.
Parameters: - objective ({‘chi2’, ‘logl’}) – Whether gateset was obtained by minimizing chi^2 or maximizing the log-likelihood.
- targetGateset (GateSet) – The target gateset used when optimizing the objective.
- dataset (DataSet) – The dataset used when optimizing the objective.
- seedGateset (GateSet) – The initial gateset used to seed the iterative part of the objective optimization. Typically this is obtained via LGST.
- Ls (list of ints) – List of maximum-L values used in the iterations.
- germs (list of GateStrings) – List of germ gate strings used in the objective optimization.
- gatesetsByL (list of GateSets) – The estimated gateset at each L value.
- gateStringListByL (list of lists of GateStrings) – The gate string list used at each L value.
- prepStrs (list of GateStrings) – The list of state preparation fiducial strings in the objective optimization.
- effectStrs (list of GateStrings) – The list of measurement fiducial strings in the objective optimization.
- truncFn (function) – The truncation function used, indicating how a germ should be repeated “L times”. Function should take parameters (germ, L) and return the repeated gate string. For example, see pygsti.construction.repeat_with_max_length.
- constrainToTP (boolean) – Whether or not the gatesetEstimate was constrained to lie within TP during the objective optimization.
- fidPairs (list of 2-tuples, optional) – Specifies a subset of all prepStr,effectStr string pairs to be used in this analysis. Each element of fidPairs is a (iRhoStr, iEStr) 2-tuple of integers, which index a string within the state preparation and measurement fiducial strings respectively.
- gatesetsByL_noGaugeOpt (list of GateSets, optional) – The value of the estimated gate sets before any gauge optimization was performed on it.
Returns: Return type: None