Skip to main contentIBM Quantum Documentation

GenericPass

qiskit.passmanager.GenericPassGitHub(opens in a new tab)

Bases: Task, ABC(opens in a new tab)

Base class of a single pass manager task.

A pass instance can read and write to the provided PropertySet, and may modify the input pass manager IR.


Methods

execute

execute(passmanager_ir, state, callback=None)

Execute optimization task for input Qiskit IR.

Parameters

Returns

Optimized Qiskit IR and state of the workflow.

Return type

tuple(opens in a new tab)[Any(opens in a new tab), qiskit.passmanager.compilation_status.PassManagerState]

name

name()

Name of the pass.

Return type

str(opens in a new tab)

run

abstract run(passmanager_ir)

Run optimization task.

Parameters

passmanager_ir (Any(opens in a new tab)) – Qiskit IR to optimize.

Returns

Optimized Qiskit IR.

Return type

Any(opens in a new tab)

update_status

update_status(state, run_state)

Update workflow status.

Parameters

  • state (PassManagerState) – Pass manager state to update.
  • run_state (RunState) – Completion status of current task.

Returns

Updated pass manager state.

Return type

PassManagerState

Was this page helpful?