pygsti.models.modelparaminterposer

Defines the ModelParamsInterposer class and supporting functionality.

Module Contents

Classes

ModelParamsInterposer

A function class that sits in between an OpModel's parameter vector and those of its operations.

LinearInterposer

Model parameters are linear combinations of operation parameters.

class pygsti.models.modelparaminterposer.ModelParamsInterposer(num_params, num_op_params)

Bases: object

A function class that sits in between an OpModel’s parameter vector and those of its operations.

model_paramvec_to_ops_paramvec(self, v)
ops_paramvec_to_model_paramvec(self, w)
ops_paramlbls_to_model_paramlbls(self, w)
deriv_op_params_wrt_model_params(self)
class pygsti.models.modelparaminterposer.LinearInterposer(transform_matrix)

Bases: ModelParamsInterposer

Model parameters are linear combinations of operation parameters.

FUTURE possibility: Also includes functionality for taking square/sqrt of parameters to be compatible with cases where the “true” parameter we want to include in the linear combination is the square of an actual parameter (to constrain it to being positive).

model_paramvec_to_ops_paramvec(self, v)
ops_paramvec_to_model_paramvec(self, w)
ops_paramlbls_to_model_paramlbls(self, wl)
deriv_op_params_wrt_model_params(self)