quantcore_circuits.layouts ========================== .. py:module:: quantcore_circuits.layouts .. autoapi-nested-parse:: 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:"``; Metal itself is imported only when such a cell is built). :mod:`.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 ---------- .. toctree:: :maxdepth: 1 /reference/api/quantcore_circuits/layouts/catalog/index /reference/api/quantcore_circuits/layouts/chips/index /reference/api/quantcore_circuits/layouts/junctions/index /reference/api/quantcore_circuits/layouts/metal/index /reference/api/quantcore_circuits/layouts/others/index /reference/api/quantcore_circuits/layouts/ports/index /reference/api/quantcore_circuits/layouts/qubits/index /reference/api/quantcore_circuits/layouts/registry/index /reference/api/quantcore_circuits/layouts/wafers/index Functions --------- .. autoapisummary:: quantcore_circuits.layouts.ensure_loaded quantcore_circuits.layouts.pcell_classes quantcore_circuits.layouts.register_pcell_classes Package Contents ---------------- .. py:function:: ensure_loaded() -> None Load the KQC libraries and register all Quantcore cells into them (idempotent, cheap after the first call). .. py:function:: pcell_classes() -> list All concrete Quantcore PCell classes (imports every module in the layout folders). .. py:function:: register_pcell_classes(classes) -> None Register PCell classes into their (already loaded) KQC libraries.