B2BSynthesisPluginManager¶
- class B2BSynthesisPluginManager¶
Bases:
objectA simple manager of the installed boson-to-boson synthesis plugins.
All plugins that are registered under the
qiskit_bosons.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 exampleModeRotation.Clements. Below is the table from thepyproject.tomlof this package itself:[project.entry-points."qiskit_bosons.circuit.synthesis"] "Evolution.LieTrotter" = "qiskit_bosons.circuit.library.synthesis:BosonicLieTrotter" "Evolution.SuzukiTrotter" = "qiskit_bosons.circuit.library.synthesis:BosonicSuzukiTrotter" "Evolution.QDrift" = "qiskit_bosons.circuit.library.synthesis:BosonicQDrift" "ModeRotation.Clements" = "qiskit_bosons.circuit.library.synthesis:BosonicClementsDecomposition"
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
BosonicGateclasses. The values are the list of installedB2BSynthesisPluginmethods that may be used to synthesize the instances of that particular gate.
Methods
- method(op_name, method_name)¶
Returns the requested
B2BSynthesisPlugintype.- Parameters:
- Returns:
The
B2BSynthesisPluginclass.- 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.