Task
class qiskit.passmanager.Task
Bases: ABC, Generic[IR, IR_OUT]
An interface of the pass manager task.
The task takes an IR, and outputs a (possibly different) IR after some operation on it. A task can rely on the PropertySet to communicate intermediate data among tasks.
Methods
execute
abstractmethod execute(passmanager_ir, state, callback=None)
Execute optimization task for input Qiskit IR.
Parameters
- passmanager_ir (IR) – Qiskit IR to optimize.
- state (PassManagerState) – State associated with workflow execution by the pass manager itself.
- callback (Callable[[Task, IR_OUT, PropertySet, float, int], None] | None) – A callback function which is called per execution of optimization task.
Returns
Optimized Qiskit IR and state of the workflow.
Return type
tuple[IR_OUT, PassManagerState]
Was this page helpful?
Report a bug, typo, or request content on GitHub.