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"
  • 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.

  • 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; ROUTE_MAPPING gives the qcc route to use instead.

Submodules

Attributes

Functions

class_attr_name(metal_class) → str

Name of the generated subclass for a Metal class (TransmonPocket → MetalTransmonPocket).

metal_cell(metal_class) → type[component.MetalComponent]

The (cached) MetalComponent subclass for a Metal class name ("TransmonPocket") or dotted path.

resolve(ref) → type[component.MetalComponent]

"metal:<Class>" → its MetalComponent subclass.

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