quantcore_circuits.layouts.others.shapes

Primitive shapes from the QWri library: ArcPath (Arc.lym “Arc”), SpiralPath (spiral.lym “Spiral”) and TextLabel (the chips’ pya.TextGenerator labels: qubit numbers, “JS=…”, “TOP=…nm”), drawn where the legacy code draws (layer 1/0 → base_metal_gap_wo_grid, i.e. etched); set metal to draw them as metal (base_metal_addition) instead. Same pya calls as the legacy code. No ports.

Classes

ArcPath

Circular arc path starting at the origin (legacy "Arc"): length ≥ arc_length → half circle of that

SpiralPath

Archimedean spiral path from inner_r to outer_r (legacy "Spiral").

TextLabel

Text etched into the ground (legacy chips 01–06: TextGenerator.default_generator().text(text, dbu, mag, inv) inserted on 1/0, and on 3/0 which the fab export derives from 1/0).

Functions

legacy_arc_points(dbu, length, n, flag, arc_length[, ...])

Legacy Arc.arc from the origin (length/arc_length in µm), points in dbu.

spiral_points(dbu, inner_r, outer_r, width, spacing, n)

Legacy Spiral.produce_impl (Archimedean, pitch width + spacing per turn), points in dbu.

Module Contents

class quantcore_circuits.layouts.others.shapes.ArcPath

Bases: _Shape

Circular arc path starting at the origin (legacy “Arc”): length ≥ arc_length → half circle of that length, shorter → a partial arc of radius arc_length / π.

build()
arc_length
arc_points
clockwise
length
width
class quantcore_circuits.layouts.others.shapes.SpiralPath

Bases: _Shape

Archimedean spiral path from inner_r to outer_r (legacy “Spiral”).

build()
inner_r
outer_r
spacing
turn_points
width
class quantcore_circuits.layouts.others.shapes.TextLabel

Bases: _Shape

Text etched into the ground (legacy chips 01–06: TextGenerator.default_generator().text(text, dbu, mag, inv) inserted on 1/0, and on 3/0 which the fab export derives from 1/0).

mag is the legacy magnification (200 for “JS=…” / “TOP=…nm”, 300 for the qubit numbers); inverted = legacy inv: the text’s box with the letters cut out (metal letters in an etched box). The legacy origin is kept: the text starts at (0, 0), so the legacy insertion points apply unchanged.

build()
bias
inverted
mag
text
quantcore_circuits.layouts.others.shapes.legacy_arc_points(dbu, length, n, flag, arc_length, angle=3 * math.pi / 2, angle_begin=math.pi / 2)

Legacy Arc.arc from the origin (length/arc_length in µm), points in dbu.

quantcore_circuits.layouts.others.shapes.spiral_points(dbu, inner_r, outer_r, width, spacing, n)

Legacy Spiral.produce_impl (Archimedean, pitch width + spacing per turn), points in dbu.