quantcore_circuits.layouts.others.cpwe

CPW-E cells (ported from the components/python/cpwe.py drawing library of the Glasgow group, used by the pymacros/Cong macros: bond pads, the capacitively coupled λ/4 resonators, finger/gap capacitors, tapers, meanders).

The legacy library draws the CPW gaps (etched) with an implicit pen (x, y, ori) in nm (dbu 0.001); arcs are KLayout Basic.ARC cells. CpwePen reproduces it call for call (same pya boxes, transforms and ARC PCell), collecting the gaps in a Region. The cells below wrap one legacy function each, horizontal (ori='h'), starting at the origin, with parameters in µm (a/b = legacy w/s):

Geometry → base_metal_gap_wo_grid. Ports face outward; CPW widths from the relevant w/s.

Classes

CpweBondPad

Bond pad: open end tl, wide line bl (pad_width/pad_gap), taper btl to the CPW a/b

CpweFingerCapacitor

Interdigital capacitor interrupting the centre line (legacy cpwe.finger_cap); ports a (−x), b.

CpweFingerLine

CPW with interdigital fingers between centre line and ground on both sides (legacy cpwe.finger_line);

CpweGapCapacitor

Gap in the centre line (legacy cpwe.gap_cap); ports a (−x), b (+x).

CpweMeanderLine

Meandered CPW (legacy cpwe.meander_line; with lead > 0 it is legacy cpwe.quarter_wave: lead,

CpweOpenEnd

Open CPW termination (legacy cpwe.term_open): the gap box of length; port a at the origin (−x).

CpwePen

The legacy cpwe functions, drawing into self.region (dbu = nm) instead of the global current cell.

CpweQuarterWaveResonator

λ/4 resonator capacitively coupled through an open-ended arm parallel to the feedline (legacy

CpweTaper

Taper from a/b to a_end/b_end (legacy cpwe.tapper: linear or exponential profiles).

Functions

exp_pts(x_start, x_end, y_start, y_end, b, t_type, npts)

Legacy draw.exp_pts (exponential taper profiles).

Module Contents

class quantcore_circuits.layouts.others.cpwe.CpweBondPad

Bases: _Cpwe

Bond pad: open end tl, wide line bl (pad_width/pad_gap), taper btl to the CPW a/b (legacy cpwe.b_pad, horizontal). Port a at the CPW end facing +x (mirror: at the origin, −x). Refpoints pad_center and lumped_signal / lumped_ground (across the side gap at the pad centre: the simulation builder’s 50 Ω lumped port, as for BondPad).

build()
end_length
markers
mirror
pad_gap
pad_length
pad_width
qcc_category = 'launcher'
taper_length
taper_type
weight
class quantcore_circuits.layouts.others.cpwe.CpweFingerCapacitor

Bases: _Cpwe

Interdigital capacitor interrupting the centre line (legacy cpwe.finger_cap); ports a (−x), b.

build()
finger_gap
finger_length
fingers
qcc_category = 'capacitor'
class quantcore_circuits.layouts.others.cpwe.CpweFingerLine

Bases: _Cpwe

CPW with interdigital fingers between centre line and ground on both sides (legacy cpwe.finger_line); ports a (−x) and b (+x).

build()
finger_gap
finger_length
finger_width
fingers
qcc_category = 'capacitor'
class quantcore_circuits.layouts.others.cpwe.CpweGapCapacitor

Bases: _Cpwe

Gap in the centre line (legacy cpwe.gap_cap); ports a (−x), b (+x).

build()
cap_gap
qcc_category = 'capacitor'
class quantcore_circuits.layouts.others.cpwe.CpweMeanderLine

Bases: _Cpwe

Meandered CPW (legacy cpwe.meander_line; with lead > 0 it is legacy cpwe.quarter_wave: lead, meander, lead). Starts at the origin going +x; ports a (start, −x) and b (end).

build()
bias
flip
lead
meander_length
meander_radius
meanders
term_early
class quantcore_circuits.layouts.others.cpwe.CpweOpenEnd

Bases: _Cpwe

Open CPW termination (legacy cpwe.term_open): the gap box of length; port a at the origin (−x).

build()
length
qcc_category = 'termination'
class quantcore_circuits.layouts.others.cpwe.CpwePen(dbu: float = 0.001)

The legacy cpwe functions, drawing into self.region (dbu = nm) instead of the global current cell.

arc(x, y, ori, w, s, turn, start_angle, end_angle, m_radius, npoints)
b_pad(x, y, ori, wb, sb, w, s, tl, bl, btl, t_type, weight, rev, mirror, markers)
finger_cap(x, y, ori, w, s, f_sep, f_length, f_n, rev)
finger_line(x, y, ori, w, s, f_sep, f_length, f_width, f_n, rev)
gap_cap(x, y, ori, w, s, cap_sep, rev)
line(x, y, ori, w, s, length, rev)
marker(x, y)
meander_line(x, y, ori, w, s, m_radius, m_length, m_bias, n, flip, term_early)
quarter_cap_coupled(x, y, ori, w, s, wcap, scap, cap_len, cap_rad, t_len, m_radius, m_length, m_n, ex1, ex2, flip)
tapper(x, y, ori, w_start, s_start, w_end, s_end, length, t_type, weight, rev)
term_open(x, y, ori, w, s, length, rev)
dbu = 0.001
region
class quantcore_circuits.layouts.others.cpwe.CpweQuarterWaveResonator

Bases: _Cpwe

λ/4 resonator capacitively coupled through an open-ended arm parallel to the feedline (legacy cpwe.quarter_cap_coupled): open end at the origin, coupler arm along x (cap_length, CPW cap_width/cap_gap), bend, taper to the resonator CPW a/b, meander, shorted end.

Refpoints: open_end (origin), short_end, coupler_center. qcc_resonator_length() gives the legacy returned length (µm, without the open-end box).

build()
classmethod qcc_resonator_length(params: dict) → float

Centre-line length from the open end to the short (legacy return value, without the open-end box), µm.

cap_gap
cap_length
cap_radius
cap_width
excess_1
excess_2
flip
meander_length
meander_radius
meanders
qcc_category = 'resonator'
taper_length
class quantcore_circuits.layouts.others.cpwe.CpweTaper

Bases: _Cpwe

Taper from a/b to a_end/b_end (legacy cpwe.tapper: linear or exponential profiles).

build()
classmethod qcc_port_widths(params: dict) → dict
a_end
b_end
length
taper_type
weight
quantcore_circuits.layouts.others.cpwe.exp_pts(x_start, x_end, y_start, y_end, b, t_type, npts)

Legacy draw.exp_pts (exponential taper profiles).