quantcore_circuits.layouts

Quantcore layout library: QWri cells re-implemented as KQCircuits Elements with ports.

Folders: chips/ (chip-level cells, DesignChip), wafers/ (wafer/mask layouts and fab export), junctions/, qubits/, others/ (pads, couplers, test structures, …), metal/ (any Quantum Metal QComponent as cell: "metal:<Class>"; Metal itself is imported only when such a cell is built). catalog lists every usable component (Quantcore, KQC, Metal) with its category.

Every PCell is registered into the KQC library of its base class (“Element Library”, “Junction Library”, “Qubit Library”, “Chip Library”), so Quantcore junctions are valid junction_type values for any KQC qubit and Quantcore elements can be used as KQC Node elements. Registration does not depend on folder names (unlike KQC’s SRC_PATHS user packages), and it works whether or not KQC libraries were loaded before.

Everything here depends only on KLayout + KQCircuits, so it also loads inside the KLayout GUI (see kplugin/).

Submodules

Functions

ensure_loaded() → None

Load the KQC libraries and register all Quantcore cells into them (idempotent, cheap after the first call).

pcell_classes() → list

All concrete Quantcore PCell classes (imports every module in the layout folders).

register_pcell_classes(classes) → None

Register PCell classes into their (already loaded) KQC libraries.

Package Contents

quantcore_circuits.layouts.ensure_loaded() → None

Load the KQC libraries and register all Quantcore cells into them (idempotent, cheap after the first call).

quantcore_circuits.layouts.pcell_classes() → list

All concrete Quantcore PCell classes (imports every module in the layout folders).

quantcore_circuits.layouts.register_pcell_classes(classes) → None

Register PCell classes into their (already loaded) KQC libraries.