FermionicCircuitToDAG

class FermionicCircuitToDAG

Bases: GenericPass[FermionicCircuit, DAGCircuit]

Converts a FermionicCircuit to a FermionicDAGCircuit.

Methods

run(passmanager_ir)

Runs this conversion pass.

Parameters:

passmanager_ir (FermionicCircuit) – the input circuit to convert.

Returns:

The converted circuit.

Return type:

DAGCircuit

Inherited Methods

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]

name()

Name of the pass.

Return type:

str

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