B2QSynthesisPluginManager¶
- class B2QSynthesisPluginManager¶
Bases:
objectA simple manager of the installed boson-to-qubit synthesis plugins.
All plugins that are registered under the
qiskit_bosons.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_bosons.transpiler.synthesis"] "Evolution.MapperFn" = "qiskit_bosons.transpiler.passes.synthesis:MapperFnEvolutionSynthesis" "InitializeModes.Occupation" = "qiskit_bosons.transpiler.passes.synthesis:OccupationInitializeModesSynthesis"
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
BosonicGateclasses. The values are the list of installedB2QSynthesisPluginmethods 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
B2QSynthesisPlugintype.- Parameters:
- Returns:
The
B2QSynthesisPluginclass.- Return type:
- method_names(op_name)¶
Returns the names of all installed plugin methods for a given circuit instruction.