quantcore_circuits.layouts.metal ================================ .. py:module:: quantcore_circuits.layouts.metal .. autoapi-nested-parse:: Quantum Metal components as Quantcore/KQC cells: ``cell: "metal:"``. >>> d.add("Q1", "metal:TransmonPocket", at=(2000, 2000), pad_width=455, ... connection_pads={"a": {"loc_W": 1, "loc_H": 1}, "b": {"loc_W": -1, "loc_H": -1}}) >>> d.add("L1", "metal:LaunchpadWirebond", at=(500, 2000), rot=180) # port "tie" * ``params`` are the Metal options (flat, nested dicts allowed); bare numbers on length options are µm, strings with units (``"0.455mm"``) and Metal design variables (``"cpw_width"``) pass through. ``pos_x``/``pos_y``/ ``orientation`` are rejected: components are built at the origin, the placement rotates them. * Ports are the Metal pins (name, middle, outward normal, width/gap); junction lines give ``port_squid_a/b``. * :func:`metal_cell` returns the per-class subclass (``MetalTransmonPocket``, an attribute of this module, so the plan's ``cell_ref`` re-imports); all of them build the one registered ``Metal Component`` PCell (``metal_class`` + ``options`` JSON), which is also usable directly in the KLayout GUI. * Metal routes (``RouteStraight``, ``RouteMeander``, ...) are not cells; :data:`ROUTE_MAPPING` gives the qcc route to use instead. Submodules ---------- .. toctree:: :maxdepth: 1 /reference/api/quantcore_circuits/layouts/metal/component/index /reference/api/quantcore_circuits/layouts/metal/geometry/index Attributes ---------- .. autoapisummary:: quantcore_circuits.layouts.metal.PREFIX Functions --------- .. autoapisummary:: quantcore_circuits.layouts.metal.class_attr_name quantcore_circuits.layouts.metal.metal_cell quantcore_circuits.layouts.metal.resolve Package Contents ---------------- .. py:function:: class_attr_name(metal_class: str) -> str Name of the generated subclass for a Metal class (``TransmonPocket`` → ``MetalTransmonPocket``). .. py:function:: metal_cell(metal_class: str) -> type[component.MetalComponent] The (cached) MetalComponent subclass for a Metal class name (``"TransmonPocket"``) or dotted path. .. py:function:: resolve(ref: str) -> type[component.MetalComponent] ``"metal:"`` → its MetalComponent subclass. .. py:data:: PREFIX :value: 'metal:'