F2FSynthesisPluginManager
class F2FSynthesisPluginManager
Bases: object
A simple manager of the installed fermion-to-fermion synthesis plugins.
All plugins that are registered under the qiskit_fermions.circuit.synthesis entry-point will be available to this class and get exposed by the plugins attribute. 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 example OrbitalRotation.Givens. Below is the table from the pyproject.toml of 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
A dictionary mapping gate names to their synthesis methods.
The keys of this dictionary are names of FermionicGate classes. The values are the list of installed F2FSynthesisPlugin methods that may be used to synthesize the instances of that particular gate.
Methods
method
method(op_name, method_name)
Returns the requested F2FSynthesisPlugin type.
Parameters
- op_name (str) – the name of the gate whose plugin to return.
- method_name (str) – the name of the synthesis plugin.
Returns
The F2FSynthesisPlugin class.
Raises
KeyError – if no plugin is registered under that name.
Return type
method_names
method_names(op_name)
Returns the names of all installed plugin methods for a given gate.
Parameters
op_name (str) – the name of the gate whose synthesis methods to return.
Returns
The list of installed plugin method names.
Return type