qiboteam / qibocal

Quantum calibration, characterization and validation module for Qibo.
https://qibo.science
Apache License 2.0
28 stars 4 forks source link

Plugins #866

Closed alecandido closed 1 month ago

alecandido commented 1 month ago

The gist of this proposal is to query further packages for Routines, to allow extending Qibocal once installed (without patching it at runtime).

The core of the idea is to register plugins in the Executor (since we're already using it to supervise the execution), directly or automatically, and then use the executor to retrieve the operation.

Direct registration will be done passing a list of Operation-like objects. Autodiscovery will inspect installed packages to match some pattern, automatically loading those objects.

alecandido commented 1 month ago

Closed in favor of direct Routine object usage https://github.com/qiboteam/qibocal/pull/865#issuecomment-2123923273