F2QSynthesisPlugin¶
- class F2QSynthesisPlugin(*args, **kwargs)¶
Bases:
ProtocolThe protocol for plugins to the
F2QSynthesistranspiler pass.Methods
- run(in_node, out_dag, *, f2q_layout)¶
Translates the provided fermion-based circuit instruction to a qubit-based one.
- Parameters:
in_node (DAGOpNode) – a fermion-based circuit instruction stored in a
DAGOpNode. Specifically, this guarantees thatopis of typeFermionicGate.out_dag (DAGCircuit) – the qubit-based
DAGCircuitinto which this plugin must insert the translated circuit instruction.f2q_layout (dict[QuantumRegister, QuantumRegister]) – the
F2QLayoutsetting that is global to the transpilation process. It is the plugin’s responsibility to respect this mapping ofFermionicRegistertoQuantumRegister.
- Return type:
None