% generated by scripts/make_component_docs.py -- do not edit. Put hand-written notes in docs/components/notes/CpwResonator.md (included below). # CpwResonator Meandered CPW resonator grounded at both ends (legacy ``CPW Resonator``); ports ``start`` and ``end``. **Source:** Quantcore. **Category:** resonator. **Module:** `quantcore_circuits.layouts.others.legacy_resonators`. See also the [catalog](../CATALOG.md). ## Pins ![Pins of CpwResonator](../../images/components/CpwResonator.png) Pin image (default parameters). Light = metal, dark = etched gap, colours = junction layers. A red dot and arrow is a pin and its direction (out of the cell); the red bar is the CPW width a + 2 b. Blue dot = a pin without direction. Units: µm. | pin | x (µm) | y (µm) | direction (°) | a (µm) | b (µm) | purpose | |---|---|---|---|---|---|---| | `end` | 389 | -381.972 | 0 | 10 | 6 | far end of the line / resonator (see the notes); LOM node `res` | | `start` | -12 | 0 | 180 | 10 | 6 | LOM node `res` | a, b: CPW centre width and gap where the pin declares them (`–` = not declared). Position and direction are in the cell's own frame (`at=(0, 0)`, `rot=0`). ## Parameters | name | default | unit | description | |---|---|---|---| | `a` | `10` | μm | Width of center conductor | | `b` | `6` | μm | Width of gap | | `r` | `100` | μm | Turn radius | | `width` | `500` | μm | Meander width (straight run between arcs) | | `arc_length` | `100` | μm | Arc length of a meander turn (radius = arc_length / π) | | `neck_length` | `100` | μm | Neck length | | `cgap` | `6` | μm | Coupling gap (ground strip around the shorted end) | | `tail_length` | `100` | μm | Tail length | | `cpw_len` | `4000` | μm | Length of the resonator | | `arc_points` | `256` | – | Points per arc (legacy n) | | `tail` | `false` | – | Tail | | `mid_tail` | `false` | – | Tail in the middle | Electrically relevant parameters (sizes, gaps, junction, ports) come first, the rest follows. ## LOM model The cell contributes to the lumped model: - no lumped branches | line | node | length (µm) | a (µm) | b (µm) | ends | |---|---|---|---|---|---| | `X` | `res` | 4011.996 | 10 | 6 | short / short | Nodes: `res`. - X: coupling to a feedline is not in the cell; declare it with d.couple(...) ## How to use In Python: ```python from quantcore_circuits.designer import Designer d = Designer("demo", box=(0, 0, 7500, 7500)) d.add("U1", "CpwResonator", at=(3750, 3750), a=10) # parameters: see the table above d.add("PAD", "BondPad", at=(1125, 3750), rot=270) # a launcher to connect to d.route("L1", "PAD.a", "U1.end") # a CPW from the pad to the pin ``` Pin names go into `d.route(...)` as `INSTANCE.pin`, and into `snap=` / `to=` when placing. From the shell: `qcc components CpwResonator` lists the pins; add `--schema` for the parameters. In KLayout: Quantcore panel ▸ Components ▸ double-click the cell, then click on the layout to place it. Rotate and mirror before the click; use Connect on two pins to route. GUI status (`kplugin/COMPONENTS_STATUS.md`): places ok, edit ok, connect ok, build ok.