EvolutionSynthesis

class EvolutionSynthesis

Bases: object

A F2QSynthesisPlugin for transpiling a Evolution.

Attributes

mapper_fn: Callable[[OperatorTrait, int], SparseObservable]

The fermion-to-qubit operator mapping function.

The two input arguments should be the following:

  1. the operator to be mapped.

  2. the number of qubits that the resulting operator should be defined on.

Note

It is the user’s responsibility to ensure that this function is in-sync with the global transpilation F2QLayout setting.

Methods

run(in_node, out_dag, *, f2q_layout)

Runs this transpilation plugin.

Parameters:

See also

The documentation of F2QSynthesisPlugin for more detailed explanations of the arguments.

Raises:

NotImplementedError – when in_node acts on fermionic modes that are spread across multiple FermionicRegister instances.

Parameters: