pygsti.models.modelparaminterposer
Defines the ModelParamsInterposer class and supporting functionality.
Module Contents
Classes
A function class that sits in between an |
|
Model parameters are linear combinations of operation parameters. |
- class pygsti.models.modelparaminterposer.ModelParamsInterposer(num_params, num_op_params)
Bases:
pygsti.baseobjs.nicelyserializable.NicelySerializable
A function class that sits in between an
OpModel
’s parameter vector and those of its operations.- model_paramvec_to_ops_paramvec(v)
- ops_paramvec_to_model_paramvec(w)
- ops_paramlbls_to_model_paramlbls(w)
- deriv_op_params_wrt_model_params()
- ops_params_dependent_on_model_params(model_param_indices)
- 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(v)
- ops_paramvec_to_model_paramvec(w)
- ops_paramlbls_to_model_paramlbls(wl)
- deriv_op_params_wrt_model_params()
- ops_params_dependent_on_model_params(model_param_indices)
TODO: docstring: returns the indices of op parameters that are influenced by the given model params