pygsti.objectivefns.objectivefns.ModelDatasetCircuitsStore#

class ModelDatasetCircuitsStore(model, dataset, circuits=None, resource_alloc=None, array_types=(), precomp_layout=None, verbosity=0, outcome_count_by_circuit=None)#

Bases: object

Contains all the information that we’d like to persist when performing (multiple) evaluations of the same circuits using the same model and data set. For instance, the evaluation of mubltiple (different) objective functions.

This class holds only quantities that do not depend on the contained model’s parameters. See EvaluatedObjectiveFunction for a class (TODO??) that holds the values of an objective function at a certain parameter-space point.

Methods

__init__(model, dataset[, circuits, ...])

add_count_vectors([force])

Ensure this store contains count and total-count vectors.

add_omitted_freqs([printer, force])

Detect omitted frequencies (assumed to be 0) so we can compute objective fn correctly

num_data_params()

The number of degrees of freedom in the data used by this objective function.

Attributes

opBasis

add_count_vectors(force=False)#

Ensure this store contains count and total-count vectors.

add_omitted_freqs(printer=None, force=False)#

Detect omitted frequencies (assumed to be 0) so we can compute objective fn correctly

num_data_params()#

The number of degrees of freedom in the data used by this objective function.

Return type:

int