EvolutionSynthesis¶
- class EvolutionSynthesis¶
Bases:
objectA
F2QSynthesisPluginfor transpiling aEvolution.Attributes
- mapper_fn: Callable[[FermionOperator | MajoranaOperator], SparseObservable]¶
The fermion-to-qubit operator mapping function.
Note
It is the user’s responsibility to ensure that this function is in-sync with the global transpilation
F2QLayoutsetting.
Methods
- run(in_node, out_dag, *, f2q_layout)¶
Runs this transpilation plugin.
- Parameters:
in_node (DAGOpNode) – the input fermion-based circuit instruction. When this plugin gets called, the
in_node.opattribute must be of typeEvolution.out_dag (DAGCircuit) – the output qubit-based circuit.
f2q_layout (dict[QuantumRegister, QuantumRegister]) – the global transpilation
F2QLayoutsetting.
See also
The documentation of
F2QSynthesisPluginfor more detailed explanations of the arguments.- Raises:
NotImplementedError – when
in_nodeacts on fermionic modes that are spread across multipleFermionRegisterinstances.- Parameters:
in_node (DAGOpNode)
out_dag (DAGCircuit)
f2q_layout (dict[QuantumRegister, QuantumRegister])