pygsti.modelmembers.operations.opfactory.op_from_factories#
- op_from_factories(factory_dict, lbl)#
Create an operator for lbl from the factories in factory_dict.
If the label has arguments, then this function looks for an operator factory associated with the label without its arguments. If one exists, the operator is created by calling
OpFactory.create_simplified_op(). with the label’s arguments. Otherwise, it looks for a factory associated with the label’s name (lbl.name) and passes both the labe’s state-space-labels and arguments (if any) toOpFactory.create_simplified_op().Raises a KeyError if a matching factory cannot be found.
- Parameters:
- Return type: