F2FSynthesisPluginManager¶
- class F2FSynthesisPluginManager¶
Bases:
objectA simple manager of the installed fermion-to-fermion synthesis plugins.
All plugins that are registered under the
qiskit_fermions.circuit.synthesisentry-point will be available to this class and get exposed by thepluginsattribute. The name of an entry point is the name of the gate class followed by the name of the method, separated by a dot, for exampleOrbitalRotation.Givens. Below is the table from thepyproject.tomlof this package itself:[project.entry-points."qiskit_fermions.circuit.synthesis"] "Evolution.LieTrotter" = "qiskit_fermions.circuit.library.synthesis:FermionicLieTrotter" "Evolution.SuzukiTrotter" = "qiskit_fermions.circuit.library.synthesis:FermionicSuzukiTrotter" "Evolution.QDrift" = "qiskit_fermions.circuit.library.synthesis:FermionicQDrift" "OrbitalRotation.Givens" = "qiskit_fermions.circuit.library.synthesis:FermionicGivensDecomposition" "PrepareSlaterDeterminant.Givens" = "qiskit_fermions.circuit.library.synthesis:FermionicSlaterGivensDecomposition"
An overview of all builtin plugins is given here.
Attributes
- plugins: dict[str, list[str]]¶
A dictionary mapping gate names to their synthesis methods.
The keys of this dictionary are names of
FermionicGateclasses. The values are the list of installedF2FSynthesisPluginmethods that may be used to synthesize the instances of that particular gate.
Methods
- method(op_name, method_name)¶
Returns the requested
F2FSynthesisPlugintype.- Parameters:
- Returns:
The
F2FSynthesisPluginclass.- Raises:
KeyError – if no plugin is registered under that name.
- Return type:
- method_names(op_name)¶
Returns the names of all installed plugin methods for a given gate.