pygsti.models.explicitmodel.transform_composed_model#
- transform_composed_model(mdl, s)#
Return a copy of mdl whose members have been gauge-transformed by s, while retaining the parameterization of mdl.
Notes
We require that mdl use ComposedState and ComposedPOVM for SPAM modelmembers.
Each key-value pair in mdl.operations will be be updated to replace the value by a suitable ComposedOp object.
The key-value pairs (inst, lbl) in mdl.instruments will be updated in one of two ways, depending on the type of inst.
If inst is of type Instrument, then its component operations will be replaced with ComposedOp objects in a way that’s consistent with changes to operations in mdl.
If inst is of type TPInstrument, then it will be updated by calling its transform_inplace method. This may result in runtime errors if the gauge group element s is not compatible with the structure of inst.
This function ignores any factories that might be present in mdl.
- Parameters:
mdl (ExplicitOpModel)
- Return type: