quantcore_circuits.plugins ========================== .. py:module:: quantcore_circuits.plugins .. autoapi-nested-parse:: Extension points for tool and solver adapters (Python entry points). A plugin is a separately installable package (for example the ``qcc-sonnet`` adapter) that declares entry points: ``quantcore_circuits.analyses`` an :class:`AnalysisPlugin` instance — a new ``sim_groups.*.analyses`` name, e.g. ``"sonnet_s"``. Its ``export(setup, job_dir, **settings)`` writes the solver input into the job directory; qcc adds ``job.json``. ``quantcore_circuits.cells`` a module whose KQC Element classes are registered next to the built-in layouts (extra component libraries). Example ``pyproject.toml`` of a plugin:: [project.entry-points."quantcore_circuits.analyses"] sonnet_s = "qcc_sonnet:SONNET" Attributes ---------- .. autoapisummary:: quantcore_circuits.plugins.ANALYSIS_GROUP quantcore_circuits.plugins.CELL_GROUP Classes ------- .. autoapisummary:: quantcore_circuits.plugins.AnalysisPlugin Functions --------- .. autoapisummary:: quantcore_circuits.plugins.analysis_plugins quantcore_circuits.plugins.register_cell_plugins Module Contents --------------- .. py:class:: AnalysisPlugin .. py:attribute:: defaults :type: dict .. py:attribute:: description :type: str :value: '' .. py:attribute:: export :type: collections.abc.Callable .. py:attribute:: kind :type: Literal['capacitance', 'eigenmode', 'driven'] .. py:attribute:: name :type: str .. py:attribute:: solver :type: str .. py:function:: analysis_plugins() -> dict[str, AnalysisPlugin] .. py:function:: register_cell_plugins() -> list[type] Import ``quantcore_circuits.cells`` entry points and register their PCells in the KQC libraries. .. py:data:: ANALYSIS_GROUP :value: 'quantcore_circuits.analyses' .. py:data:: CELL_GROUP :value: 'quantcore_circuits.cells'