quantcore_circuits.layouts.qubits.sqdmetal_cells¶
Qubits re-implemented from sqdlab/SQDMetal (Apache-2.0, © Prasanna Pakkiam and the SQDMetal authors): the geometry is re-drawn here as KQC Elements in µm with pya (SQDMetal was read, never imported or run).
TransmonTaperedInsets—SQDMetal/Comps/Qubits.py::TransmonTaperedInsets: a floating two-pad transmon with tapered junction leads, optional pad insets / coupler teeth and connection pads, in a filleted pocket.
SQDMetal builds the pads with shapely buffers: buffer(+r).buffer(-r) (a closing) then buffer(-r).buffer(+r)
(an opening) with r = fillet_radius; here both are morphological operations with a disc
(closing() / opening(), Minkowski sums with a 4 × fillet_resolution-gon), which is what the buffers
compute up to shapely’s mitre joins at sharp concave corners (filleted away by the closing first).
Attributes¶
Classes¶
Floating tapered-pad transmon in a filleted pocket (SQDMetal |
Functions¶
|
shapely |
|
|
|
|
|
Closed |
|
|
|
shapely |
Module Contents¶
- class quantcore_circuits.layouts.qubits.sqdmetal_cells.TransmonTaperedInsets¶
Bases:
kqcircuits.qubits.qubit.QubitFloating tapered-pad transmon in a filleted pocket (SQDMetal
TransmonTaperedInsets).Re-implemented from sqdlab/SQDMetal
SQDMetal/Comps/Qubits.py(Apache-2.0), same option names in µm, qubit centre at the origin, pads stacked in y (SQDMetalorientation0; use the placement rotation for others). Twopad_width×pad_heightpads with round endspad_gapapart, each with ataper_width_base→taper_width_toptaper oftaper_heighttowards the junction (at x = 0, or at a pad end withjunction_position“right” / “left” andjunction_x_offset), pad corners filleted withfillet_radius; optional insets (inset_width×inset_depthnotches in the pad ends) and coupler teeth on the top pad (coupled_pad_*, drawn when a connection pad sits at loc_W 0, loc_H +1). The pocket ispocket_width× (pocket_height−pocket_lower_tighten) withfillet_radius_gapcorners, top edge atpocket_height / 2. The pads, connection pads and wires are also drawn onbase_metal_addition(SQDMetal metal is positive: it wins over any etch on top of it, e.g. a capacitor’s clearance box in the pocket).connection_pads(dict / JSON{name: {options}}, SQDMetal defaults:pad_gap100,pad_width200,pad_height30,cpw_width10,cpw_gap6,cpw_extend200,loc_W0,loc_H1, …): a filleted padpad_gapbeyond the qubit pad with a CPW wire out of the pocket to port<name>(a/b = cpw_width / cpw_gap). SQDMetal ends a loc_W 0 wire atpocket_width / 2 + cpw_extendfrom the centre (it uses the pocket width there); kept.Ports at SQDMetal’s pins, with SQDMetal’s normals (kept as they are, a/b = the element
a/b):top_right_pin/top_left_pin(x = ±(pocket_width/2 + chrgln_pin_y_offset), level with the top pad +chrgln_pin_x_offset; both face +x),bottom_right_pin/bottom_left_pin(level with the bottom pad; face +y),top_pocket_pin(0, pocket_height/2; faces +x),bottom_pocket_pin(0, −pocket_height/2; faces −x). These mark where a charge line or aSmoothCapacitorSemicirclegoes; they are not CPW ends. SQDMetal’s junction pins are refpointspin_island/pin_reservoir.Junction: SQDMetal draws only a junction line (
inductor_width×inductor_height, centred); its ends areport_squid_a(top pad = island) /port_squid_b.junction_type(KQC / Quantcore junction cell,"No Squid"= none) is placed across the taper-tip gap,junction_paramsgo to it.- build()¶
- classmethod qcc_params(params: dict) dict¶
design.json params → PCell params: dict-valued
connection_pads/junction_params→ JSON.
- classmethod qcc_port_widths(params: dict) dict¶
Connection-pad wires: a/b = their cpw_width / cpw_gap.
- chrgln_pin_x_offset¶
- chrgln_pin_y_offset¶
- connection_pads¶
- coupled_pad_gap¶
- coupled_pad_height¶
- coupled_pad_width¶
- fillet_radius¶
- fillet_radius_gap¶
- fillet_resolution¶
- inductor_height¶
- inductor_width¶
- inset_depth¶
- inset_fillet_radius¶
- inset_width¶
- junction_params¶
- junction_pin_inset¶
- junction_position¶
- junction_type¶
- junction_x_offset¶
- pad_gap¶
- pad_height¶
- pad_width¶
- pocket_height¶
- pocket_lower_tighten¶
- pocket_width¶
- qcc_category = 'qubit'¶
- taper_fillet_radius¶
- taper_height¶
- taper_width_base¶
- taper_width_top¶
- quantcore_circuits.layouts.qubits.sqdmetal_cells.closing(region: kqcircuits.pya_resolver.pya.Region, r: float, n: int = 64) kqcircuits.pya_resolver.pya.Region¶
shapely
buffer(r).buffer(-r): fills concave corners with radiusr.
- quantcore_circuits.layouts.qubits.sqdmetal_cells.connection_pad_options(name: str, options: dict) dict¶
- quantcore_circuits.layouts.qubits.sqdmetal_cells.dilate(region: kqcircuits.pya_resolver.pya.Region, r: float, n: int = 64) kqcircuits.pya_resolver.pya.Region¶
- quantcore_circuits.layouts.qubits.sqdmetal_cells.disc_polygon(r: float, n: int) kqcircuits.pya_resolver.pya.Polygon¶
Closed
n-gon inscribed in a circle of radiusr(dbu) about the origin.
- quantcore_circuits.layouts.qubits.sqdmetal_cells.erode(region: kqcircuits.pya_resolver.pya.Region, r: float, n: int = 64) kqcircuits.pya_resolver.pya.Region¶
- quantcore_circuits.layouts.qubits.sqdmetal_cells.opening(region: kqcircuits.pya_resolver.pya.Region, r: float, n: int = 64) kqcircuits.pya_resolver.pya.Region¶
shapely
buffer(-r).buffer(r): rounds convex corners with radiusr, drops parts narrower than 2r.
- quantcore_circuits.layouts.qubits.sqdmetal_cells.DEFAULT_CONNECTION_PAD¶