F2QSynthesisPluginManager¶
- class F2QSynthesisPluginManager¶
Bases:
objectA simple manager of the installed fermion-to-qubit synthesis plugins.
All plugins that are registered under the
qiskit_fermions.transpiler.synthesisentry-point will be available to this class and get exposed by thepluginsattribute. Below is an example from thepyproject.tomlof this package itself:[project.entry-points."qiskit_fermions.transpiler.synthesis"] "Evolution.MapperFn" = "qiskit_fermions.transpiler.passes.synthesis:MapperFnEvolutionSynthesis" "InitializeModes.TrivialOccupation" = "qiskit_fermions.transpiler.passes.synthesis:TrivialOccupationInitializeModesSynthesis" "FermionicMeasure.TrivialOccupation" = "qiskit_fermions.transpiler.passes.synthesis:TrivialOccupationFermionicMeasureSynthesis" # DEPRECATED all of the following entry-points are deprecated and subject to removal in a future release "OrbitalRotation.GivensDecomposition" = "qiskit_fermions.transpiler.passes.synthesis:GivensDecompositionOrbitalRotationSynthesis" "PrepareSlaterDeterminant.GivensDecompositionSlater" = "qiskit_fermions.transpiler.passes.synthesis:GivensDecompositionSlaterDeterminantSynthesis"
An overview of all builtin plugins is given here.
Attributes
- plugins: dict[str, list[str]]¶
A dictionary mapping circuit instruction names to their synthesis methods.
The keys of this dictionary are names of
FermionicGateclasses. The values are the list of installedF2QSynthesisPluginmethods that may be used to synthesize the instances of that particular gate to its qubit form.
Methods
- method(op_name, method_name)¶
Returns the requested
F2QSynthesisPlugintype.- Parameters:
- Returns:
The
F2QSynthesisPluginclass.- 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 circuit instruction.