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

TransmonTaperedInsets

Floating tapered-pad transmon in a filleted pocket (SQDMetal TransmonTaperedInsets).

Functions

closing(region, r[, n]) → kqcircuits.pya_resolver.pya.Region

shapely buffer(r).buffer(-r): fills concave corners with radius r.

connection_pad_options(name, options) → dict

dilate(region, r[, n]) → kqcircuits.pya_resolver.pya.Region

disc_polygon(r, n) → kqcircuits.pya_resolver.pya.Polygon

Closed n-gon inscribed in a circle of radius r (dbu) about the origin.

erode(region, r[, n]) → kqcircuits.pya_resolver.pya.Region

opening(region, r[, n]) → kqcircuits.pya_resolver.pya.Region

shapely buffer(-r).buffer(r): rounds convex corners with radius r, drops parts narrower than 2r.

Module Contents

class quantcore_circuits.layouts.qubits.sqdmetal_cells.TransmonTaperedInsets

Bases: kqcircuits.qubits.qubit.Qubit

Floating 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 (SQDMetal orientation 0; use the placement rotation for others). Two pad_width × pad_height pads with round ends pad_gap apart, each with a taper_width_base → taper_width_top taper of taper_height towards the junction (at x = 0, or at a pad end with junction_position “right” / “left” and junction_x_offset), pad corners filleted with fillet_radius; optional insets (inset_width × inset_depth notches 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 is pocket_width × (pocket_height − pocket_lower_tighten) with fillet_radius_gap corners, top edge at pocket_height / 2. The pads, connection pads and wires are also drawn on base_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_gap 100, pad_width 200, pad_height 30, cpw_width 10, cpw_gap 6, cpw_extend 200, loc_W 0, loc_H 1, …): a filleted pad pad_gap beyond 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 at pocket_width / 2 + cpw_extend from 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 a SmoothCapacitorSemicircle goes; they are not CPW ends. SQDMetal’s junction pins are refpoints pin_island / pin_reservoir.

Junction: SQDMetal draws only a junction line (inductor_width × inductor_height, centred); its ends are port_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_params go 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 radius r.

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 radius r (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 radius r, drops parts narrower than 2r.

quantcore_circuits.layouts.qubits.sqdmetal_cells.DEFAULT_CONNECTION_PAD