pygsti.models.modelconstruction.create_explicit_alias_model#
- create_explicit_alias_model(mdl_primitives, alias_dict)#
Creates a model by applying aliases to an existing model.
The new model is created by composing the gates of an existing Model, mdl_primitives, according to a dictionary of Circuit`s, `alias_dict. The keys of alias_dict are the operation labels of the returned Model. state preparations and POVMs are unaltered, and simply copied from mdl_primitives.
- Parameters:
mdl_primitives (Model) – A Model containing the “primitive” gates (those used to compose the gates of the returned model).
alias_dict (dictionary) – A dictionary whose keys are strings and values are Circuit objects specifying sequences of primitive gates. Each key,value pair specifies the composition rule for a creating a gate in the returned model.
- Returns:
A model whose gates are compositions of primitive gates and whose spam operations are the same as those of mdl_primitives.
- Return type: