quantcore_circuits.plugins

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 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

Classes

Functions

analysis_plugins() → dict[str, AnalysisPlugin]

register_cell_plugins() → list[type]

Import quantcore_circuits.cells entry points and register their PCells in the KQC libraries.

Module Contents

class quantcore_circuits.plugins.AnalysisPlugin
defaults: dict
description: str = ''
export: collections.abc.Callable
kind: Literal['capacitance', 'eigenmode', 'driven']
name: str
solver: str
quantcore_circuits.plugins.analysis_plugins() → dict[str, AnalysisPlugin]
quantcore_circuits.plugins.register_cell_plugins() → list[type]

Import quantcore_circuits.cells entry points and register their PCells in the KQC libraries.

quantcore_circuits.plugins.ANALYSIS_GROUP = 'quantcore_circuits.analyses'
quantcore_circuits.plugins.CELL_GROUP = 'quantcore_circuits.cells'