pygsti.algorithms.core.run_gst_fit

Contents

pygsti.algorithms.core.run_gst_fit#

run_gst_fit(mdc_store, optimizer, objective_function_builder, verbosity=0)#

Performs core Gate Set Tomography function of model optimization.

Optimizes the model to the data within mdc_store by minimizing the objective function built by objective_function_builder.

Parameters:
  • mdc_store (ModelDatasetCircuitsStore) – An object holding a model, data set, and set of circuits. This defines the model to be optimized, the data to fit to, and the circuits where predicted vs. observed comparisons should be made. This object also contains additional information specific to the given model, data set, and circuit list, doubling as a cache for increased performance. This information is also specific to a particular resource allocation, which affects how cached values stored.

  • optimizer (Optimizer or dict) – The optimizer to use, or a dictionary of optimizer parameters from which a default optimizer can be built.

  • objective_function_builder (ObjectiveFunctionBuilder) – Defines the objective function that is optimized. Can also be anything readily converted to an objective function builder, e.g. “logl”. If None, then mdc_store must itself be an already-built objective function.

  • verbosity (int, optional) – How much detail to send to stdout.

Returns:

  • result (OptimizerResult) – the result of the optimization

  • objfn_store (MDCObjectiveFunction) – the objective function and store containing the best-fit model evaluated at the best-fit point.