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¶
Circular arc path starting at the origin (legacy "Arc"): |
|
Archimedean spiral path from |
|
Text etched into the ground (legacy chips 01–06: |
Functions¶
|
Legacy |
|
Legacy |
Module Contents¶
- class quantcore_circuits.layouts.others.shapes.ArcPath¶
Bases:
_ShapeCircular arc path starting at the origin (legacy “Arc”):
length≥arc_length→ half circle of that length, shorter → a partial arc of radiusarc_length / π.- build()¶
- arc_length¶
- arc_points¶
- clockwise¶
- length¶
- width¶
- class quantcore_circuits.layouts.others.shapes.SpiralPath¶
Bases:
_ShapeArchimedean spiral path from
inner_rtoouter_r(legacy “Spiral”).- build()¶
- inner_r¶
- outer_r¶
- spacing¶
- turn_points¶
- width¶
- class quantcore_circuits.layouts.others.shapes.TextLabel¶
Bases:
_ShapeText 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).magis the legacy magnification (200 for “JS=…” / “TOP=…nm”, 300 for the qubit numbers);inverted= legacyinv: 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.arcfrom the origin (length/arc_lengthin µm), points in dbu.
- quantcore_circuits.layouts.others.shapes.spiral_points(dbu, inner_r, outer_r, width, spacing, n)¶
Legacy
Spiral.produce_impl(Archimedean, pitchwidth + spacingper turn), points in dbu.