pygsti.drivers.gauge_optimize_gs_list¶
-
pygsti.drivers.
gauge_optimize_gs_list
(gsList, targetGateset, constrainToTP=True, gateMetric='frobenius', spamMetric='frobenius', plot=True)¶ Optimizes the “spam weight” parameter used in gauge optimization by attempting spam a range of spam weights and taking the one the minimizes the average spam error multiplied by the average gate error (with respect to a target gate set).
Parameters: - gsList (list) – The list of GateSet objects to gauge optimize (simultaneously).
- targetGateset (GateSet) – The gateset to compare the gauge-optimized gates with, and also to gauge-optimize them to (as a parameter to optimize_gauge).
- constrainToTP (bool) – Whether to constrain the gauge optimization so that initially trace-preserving (TP) gates will remain TP.
- gateMetric ({ “frobenius”, “fidelity”, “tracedist” }, optional) – The metric used within the gauge optimization to determing error in the gates.
- spamMetric ({ “frobenius”, “fidelity”, “tracedist” }, optional) – The metric used within the gauge optimization to determing error in the state preparation and measurement.
- plot (bool, optional) – Whether to create a plot of the gateset-target discrepancy as a function of spam weight (figure displayed interactively).
Returns: The list of GateSets gauge-optimized using the best spamWeight.
Return type: list