quantcore_circuits.layouts.metal¶
Quantum Metal components as Quantcore/KQC cells: cell: "metal:<Class>".
>>> 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"
paramsare 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/orientationare 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.metal_cell()returns the per-class subclass (MetalTransmonPocket, an attribute of this module, so the plan’scell_refre-imports); all of them build the one registeredMetal ComponentPCell (metal_class+optionsJSON), which is also usable directly in the KLayout GUI.Metal routes (
RouteStraight,RouteMeander, …) are not cells;ROUTE_MAPPINGgives the qcc route to use instead.
Submodules¶
Attributes¶
Functions¶
|
Name of the generated subclass for a Metal class ( |
|
The (cached) MetalComponent subclass for a Metal class name ( |
|
|
Package Contents¶
- quantcore_circuits.layouts.metal.class_attr_name(metal_class: str) str¶
Name of the generated subclass for a Metal class (
TransmonPocket→MetalTransmonPocket).
- quantcore_circuits.layouts.metal.metal_cell(metal_class: str) type[component.MetalComponent]¶
The (cached) MetalComponent subclass for a Metal class name (
"TransmonPocket") or dotted path.
- quantcore_circuits.layouts.metal.resolve(ref: str) type[component.MetalComponent]¶
"metal:<Class>"→ its MetalComponent subclass.
- quantcore_circuits.layouts.metal.PREFIX = 'metal:'¶