iqm.pulse.gates.register_operation

iqm.pulse.gates.register_operation#

iqm.pulse.gates.register_operation(operations, op, overwrite=False)#

Register a new QuantumOp to the given operations table.

Parameters:
  • operations (dict[str, QuantumOp]) – Known operations, to which the new operation is added.

  • op (QuantumOp) – Definition for the new operation.

  • overwrite (bool) – If True, allows replacing an existing operation in operations.

Raises:
  • ValueErrorop.name exists in operations and overwrite==False.

  • ValueErrorop.name is the name of a canonical operation in iqm-pulse.

Return type:

None