squadds.components package#

Subpackages#

Submodules#

squadds.components.cavity_claw module#

class squadds.components.cavity_claw.CavityClaw(*args, **kwargs)[source]#

Bases: QComponent

QubitCavity class represents a coupled qubit-cavity system. It contains methods to create the qubit, cavity, coupler, and CPWs.

Return type:

Any

component_metadata#

Component metadata

copier(d, u)[source]#
make()[source]#
make_cavity()[source]#

This method is used to create a cavity in the coupled system. It calls the make_coupler() and make_cpws() methods to create the necessary components.

make_coupler()[source]#

Creates a coupler based on the specified coupling type in the cavity options.

Returns:

None

make_cpws()[source]#

Creates the CPWs (Coplanar Waveguides) for the coupled systems.

Returns:

None

make_pins()[source]#

Adds pins to the coupled system.

Retrieves pin information from the coupler and adds the pins to the system.

Parameters:

None

Returns:

None

make_qubit()[source]#

Creates a qubit based on the specified qubit options.

Returns:

None

make_wirebond_pads()[source]#
show(gui, include_wirebond_pads=False)[source]#
to_gds(options, include_wirebond_pads=False)[source]#

squadds.components.claw_coupler module#

class squadds.components.claw_coupler.TransmonClaw(*args, **kwargs)[source]#

Bases: BaseQubit

The base TransmonClaw class.

Inherits BaseQubit class.

‘claw_width’ and ‘claw_gap’ define the width/gap of the CPW line that makes up the connector. Note, DC SQUID currently represented by single inductance sheet

Add connectors to it using the connection_pads dictionary. See BaseQubit for more information.

Sketch:

Below is a sketch of the claw

                            claw_length
Claw:       _________                    Gap:
            |   ________________             _________    ____________
      ______|  |                             _________|  |____________
            |  |________________
            |_________
BaseQubit Default Options:
  • connection_pads: Empty Dict – The dictionary which contains all active connection lines for the qubit.

  • _default_connection_pads: empty Dict – The default values for the (if any) connection lines of the qubit.

Default Options:
  • cross_width: ‘20um’ – Width of the CPW center trace making up the Crossmon

  • cross_length: ‘200um’ – Length of one Crossmon arm (from center)

  • cross_gap: ‘20um’ – Width of the CPW gap making up the Crossmon

  • _default_connection_pads: Dict
    • connector_type: ‘0’ – 0 = Claw type, 1 = gap type

    • claw_length: ‘30um’ – Length of the claw ‘arms’, measured from the connector center trace

    • ground_spacing: ‘5um’ – Amount of ground plane between the connector and Crossmon arm (minimum should be based on fabrication capabilities)

    • claw_width: ‘10um’ – The width of the CPW center trace making up the claw/gap connector

    • claw_gap: ‘6um’ – The gap of the CPW center trace making up the claw/gap connector

    • connector_location: ‘0’ – 0 => ‘west’ arm, 90 => ‘north’ arm, 180 => ‘east’ arm

Return type:

Any

TOOLTIP = 'Simple Metal Transmon Cross.'#
component_metadata#

Component metadata

default_options#

Default options.

make()[source]#

This is executed by the GUI/user to generate the qgeometry for the component.

make_connection_pad(name)[source]#

Makes individual connector pad.

Parameters:

name (str) – Name of the connector pad

make_connection_pads()[source]#

Goes through connector pads and makes each one.

make_pocket()[source]#

Creates a pocket for the claw coupler.

This method uses the parsed values from the user options to determine the dimensions of the pocket. The pocket is created based on the cross width, cross length, cross gap, and chip name.

Parameters:

None

Returns:

None

squadds.components.component_registry module#

Resolve dataset component names to their Qiskit Metal implementations.

class squadds.components.component_registry.CouplerSpec(component_class, route_pin, exposed_pins, instance_suffix)[source]#

Bases: object

Construction and pin roles for a supported coupler.

component_class: type[qiskit_metal.qlibrary.core.QComponent]#
exposed_pins: tuple[str, ...]#
instance_suffix: str#
route_pin: str#
squadds.components.component_registry.build_component_from_design(design, row, name='cplr')[source]#

Build the exact component declared by a SQuADDS dataset row.

Both nested Hugging Face records and second-level flattened API records are accepted. Local generalized components are intentionally resolved only from squadds.components.

Return type:

qiskit_metal.qlibrary.core.QComponent

squadds.components.component_registry.create_component(component_name, design, name, options=None)[source]#

Instantiate any component registered by dataset-facing class name.

Return type:

qiskit_metal.qlibrary.core.QComponent

squadds.components.component_registry.create_coupler(component_name, design, name, options=None)[source]#

Instantiate a named coupler using its registered implementation.

Return type:

qiskit_metal.qlibrary.core.QComponent

squadds.components.component_registry.get_component_class(component_name)[source]#

Return a locally supported Qiskit Metal component implementation.

This registry is intentionally broader than get_coupler_spec(). Components such as GeneralizedCapStar have a design-dependent number of pins, so forcing them into the fixed route/exposed-pin coupler contract would discard useful topology information.

Return type:

type[qiskit_metal.qlibrary.core.QComponent]

squadds.components.component_registry.get_coupler_spec(component_name)[source]#

Return the implementation and pin roles for a coupler name.

Return type:

CouplerSpec

squadds.components.component_registry.row_campaign(row)[source]#

Simulation campaign of a nested or flattened dataset row (source_campaign, collection or the source_id prefix of its notes), or None.

Return type:

str | None

squadds.components.coupled_systems module#

class squadds.components.coupled_systems.QubitCavity(*args, **kwargs)[source]#

Bases: QComponent

QubitCavity class represents a coupled qubit-cavity system. It contains methods to create the qubit, cavity, coupler, and CPWs.

Return type:

Any

component_metadata#

Component metadata

copier(d, u)[source]#
make()[source]#
make_cavity()[source]#

This method is used to create a cavity in the coupled system. It calls the make_coupler() and make_cpws() methods to create the necessary components.

make_coupler()[source]#

Creates a coupler based on the specified coupling type in the cavity options.

Returns:

None

make_cpws()[source]#

Creates the CPWs (Coplanar Waveguides) for the coupled systems.

Returns:

None

make_pins()[source]#

Adds pins to the coupled system.

Retrieves pin information from the coupler and adds the pins to the system.

Parameters:

None

Returns:

None

make_qubit()[source]#

Creates a qubit based on the specified qubit options.

Returns:

None

make_wirebond_pads()[source]#
show(gui, include_wirebond_pads=False, **kwargs)[source]#
to_gds(filename, include_wirebond_pads=False)[source]#

squadds.components.export_fixups module#

Post-processing that reproduces the tl-squadds star dataset GDS export (exp11 / exp12).

The star layouts of the tl-squadds dataset were written by two versions of the squadds2-helpers export, the second in two environments. style selects one:

"original" (exp10, and exp11 as first written 2026-09-03..09)

Metal GDS renderer output (gdstk; polygons over 199 points fractured on write), pieces OR-ed back per body.

"reexport" (173 exp11 designs rewritten 2026-09-24..28; quantum-metal gdstk renderer, shapely 2.1 / GEOS 3.13) and "reexport_gdspy" (all of exp12, written 2026-09-29; gdspy-based qiskit-metal 0.1.x renderer, shapely 2.0 / GEOS 3.11)

Reconstructed from the dataset files (the export script is not in squadds2-helpers); each step is checked vertex by vertex against the dataset GDS:

  1. polygons are fractured at 199 points: by the gdstk renderer (reexport), or as the gdspy renderer does it (reexport_gdspy): gdspy.Polygon(exterior incl. closing point).fracture(199, 1e-9) for the bodies and gdspy.boolean(chip, cap_etch, "not", precision=1e-9, max_points=199) for the ground, snapped to 1 nm and the ground pieces OR-ed back. gdspy and gdstk place the cuts (and 1 nm boolean vertices) differently.

  2. pieces are re-assembled with the helpers’ _merge_cap_polys_by_shared_points: grouped by shared vertices or overlap, then OR-ed one at a time into every partial result. When the first two pieces of a group only touch, their OR returns both and the next piece is OR-ed into each, so the group yields two overlapping polygons. Of all polygons the export kept the largest n_bodies (star + enabled pads): this drops the smaller duplicate, i.e. the part of a pad beyond a fracture line (a straight chord, up to ~3,300 um^2), and any sliver piece that touched nothing.

  3. each body is reoriented clockwise (first vertex kept) and simplified by Douglas-Peucker at 10 nm (shapely, preserve_topology=False; if that splits a sliver off, the largest part is kept), which removes ~70 % of the pad vertices (the erode/dilate near-duplicates).

  4. every body is isolated from the ground: ground minus body.buffer(50 nm, join_style="bevel"). An unfed pad’s lead ends on the ground cut-out, so this leaves a 50 nm slit (35 nm across the bevelled corners) at its end; the fed pad (port etch) and the star are not affected.

The vertices also depend on the GEOS version that built the component (1 nm vertex choices, hence fracture cuts): exp12 reproduces exactly only under shapely 2.0.x (GEOS 3.11), exp11 only under shapely 2.1 (GEOS 3.13).

The component geometry itself (GeneralizedCapStar) is unchanged. Polygons are gdstk polygons in nm.

squadds.components.export_fixups.gdspy_fracture_nm(coords_mm, max_points=199, precision=1e-09)[source]#

Pieces (nm, 1 nm grid) of a polygon fractured like the gdspy Metal renderer writes it.

Return type:

list

squadds.components.export_fixups.gdspy_ground_nm(chip_box_mm, etch_coords_mm, max_points=199, precision=1e-09)[source]#

Ground (nm) of the gdspy renderer: chip box minus the cap etch, fractured, snapped to 1 nm and OR-ed back.

squadds.components.export_fixups.helpers_body_groups(polys)[source]#

Group fractured pieces by connectivity (union-find, input order) and OR each group the helpers’ way.

Return type:

list[list]

squadds.components.export_fixups.helpers_or_group(group)[source]#

squadds2-helpers _boolean_or_group: OR pieces one at a time into every partial result (kept verbatim).

Return type:

list

squadds.components.export_fixups.isolate_from_ground(ground, bodies, gap_nm=50.0)[source]#

Ground minus every body grown by gap_nm with bevelled corners (one polygon expected).

squadds.components.export_fixups.simplify_clockwise(poly, tol_nm=10.0)[source]#

Clockwise ring (first vertex kept) simplified by Douglas-Peucker (shapely, preserve_topology=False); the largest part if the simplification splits the ring.

squadds.components.export_fixups.star_dataset_bodies(geoms, style='reexport', n_bodies=None)[source]#

Signal bodies of a GeneralizedCapStar as the dataset export wrote them, one polygon per conductor.

geoms: the rendered (gdstk-fractured) pieces in nm for original / reexport; the component’s metal qgeometry polygons (shapely, mm, table order) for reexport_gdspy. n_bodies: star + enabled pads (re-export styles; defaults to len(geoms) for reexport_gdspy, else to the number of connected groups).

Return type:

list

squadds.components.export_fixups.star_dataset_ground(ground, bodies, style='reexport')[source]#

Ground as the dataset export wrote it. bodies: the exported signal bodies (the star, >= gap from the ground, is unaffected by the isolation).

squadds.components.generalized_cap_concentric module#

class squadds.components.generalized_cap_concentric.GeneralizedCapConcentric(*args, **kwargs)[source]#

Bases: QComponent

Two-terminal concentric capacitor with elliptical inner and outer bodies.

Traces (from inside out):
  1. Inner body outer edge (filled pad)

  2. Outer-body inner edge (ring hole)

  3. Outer-body outer edge (ring outline)

  4. Ground-plane inner edge (third ellipse) — gap between outer body and ground

When inner_feed is True (default), a south CPW reaches the inner pad through a clearance slot in the ring. When False, the outer ring stays continuous. A north CPW attaches to the outer ring. min_trace_gap is enforced between consecutive traces and around the inner feed.

Inspired by the circular pads in Qiskit Metal TransmonConcentric, rewritten as a lumped capacitor with independent elliptical traces.

Return type:

Any

TOOLTIP = 'Elliptical concentric capacitor with independent inner/outer/ground traces.'#
make()[source]#

squadds.components.generalized_cap_star module#

Generalized multi-terminal star capacitor (Wallraff / Surface-17 style).

Central n-pointed star plus up to n peripheral connector pads. Disabled pad sectors are filled by the ground plane while keeping an equidistant gap around the star. Each enabled pad gets a radial CPW stub / pin.

The tl-squadds star datasets (exp11, exp12) were written by an export step that post-processes this geometry; squadds.components.export_fixups reproduces it.

class squadds.components.generalized_cap_star.GeneralizedCapStar(*args, **kwargs)[source]#

Bases: QComponent

Star capacitor with optional peripheral connector pads.

Bodies:
  • star — central n-pointed star (always present)

  • pad_i — peripheral pads for each enabled connector (i = 0 .. n-1)

Pads sit in the valleys between fingers: each pad is disk(star_outer) minus star.buffer(gap_i) in that valley, so it matches the gap angle, keeps an equidistant clearance to the star, and stops at the finger tips. The ground opening is a circle of pocket_radius. Empty valleys are either left open to that circle (valley_ground=circle) or filled by ground with an equidistant gap to the star (valley_ground=fill), so tip outer arcs follow the star tip fillets at radius tip_radius + gap via star.buffer(gap). CPW stubs add a side gap only outside the capacitor pocket (cpw_width / cpw_gap), with a flat open end. Per-pad star gaps via pad_gaps; omitted => gap.

Return type:

Any

TOOLTIP = 'Multi-terminal star capacitor with optional connector pads.'#
make()[source]#

squadds.components.generalized_ncap_interdigital module#

class squadds.components.generalized_ncap_interdigital.GeneralizedCapNInterdigital(*args, **kwargs)[source]#

Bases: QComponent

Two-body interdigital capacitor (north and south spines with interleaved fingers) fed by CPW stubs.

Optional options, not in default_options so existing designs are unchanged when they are absent:
  • north_finger_width / south_finger_width: strip width of one body (paddles, finger_length=0); each falls back to finger_width.

  • spine_ledge_rule: "auto" (default) rounds the outer spine ledge with simple arcs when the edge fillet and the finger etch circle overlap, else with the tangent construction; "tangent" always uses the tangent construction, the first squadds2-helpers rule with which the exp6 and exp7 sweeps were generated.

Return type:

Any

make()[source]#

squadds.components.jjs module#

class squadds.components.jjs.JjDolan(*args, **kwargs)[source]#

Bases: QComponent

The base “JjDolan” inherits the “QComponent” class.

NOTE TO USER: Please be aware that when designing with this qcomponent, one must take care in accounting for the junction qgeometry when exporting to to GDS and/or to a simulator. This qcomponent should not be rendered for EM simulation.

This creates a “Dolan”-style Josephson Junction consisting a single junction slightly separated, adhearing to LFL’s prefererances.

Default Options:
  • bridge_length: ‘28um’ – lenght between pads

  • JJ_width: ‘0.188um’ – Josephson Junction width

  • bridge_layer: 1 – GDS layer for bridge, make sure it’s different from qubit + JJs

  • JJ_layer: 2 – GDS layer for JJ, make sure it’s different from qubit + bridge

Return type:

Any

TOOLTIP = 'Josephson Junctions used at LFL'#
component_metadata#

Component metadata

default_options#

Default options.

make()[source]#
class squadds.components.jjs.SquidLoopDolan(*args, **kwargs)[source]#

Bases: QComponent

The base “SquidLoopDolan” inherits the “QComponent” class.

NOTE TO USER: Please be aware that when designing with this qcomponent, one must take care in accounting for the junction qgeometry when exporting to to GDS and/or to a simulator. This qcomponent should not be rendered for EM simulation.

This creates a “Dolan”-style SQUID loop consisting of a slightly separated loop with 2 symmetrical JJs on each side.

Default Options:
  • SQUID_width: ‘63um’ – inner width (x-axis) of SQUID loop

  • SQUID_length: ‘9um’ – inner length (y-axis) of SQUID loop

  • stem1_length: ‘7um’ – length between bottom pad and loop

  • stem2_length: ‘7um’ – length between side pad and loop

  • stem1_offset: ‘0um’ – aligns stem1 some distance away from center

  • stem2_offset: ‘0um’ – aligns stem2 some distance away from center

  • JJ_width: ‘0.3um’ – correlated to setting the Lj of your SQUID

  • JJ_offset: ‘0um’ – aligns the JJs some distance away from center

  • mirror: 0 – input 0 or 1, want to mirror about the x-axis?

  • SQUID_layer: 1 – GDS layer for loop, make sure it’s different from qubit + JJs

  • JJ_layer: 2 – GDS layer for JJs, make sure it’s different from qubit + loop

Return type:

Any

component_metadata#

Component metadata

default_options#

Default drawing options

make()[source]#
make_junction()[source]#

Makes the JJs

make_loop()[source]#

Makes the SQUID loop structure

squadds.components.qubits module#

class squadds.components.qubits.TransmonCross(*args, **kwargs)[source]#

Bases: BaseQubit

The base TransmonCross class.

Inherits BaseQubit class.

Simple Metal Transmon Cross object. Creates the X cross-shaped island, the “junction” on the south end, and up to 3 connectors on the remaining arms (claw or gap).

‘claw_width’ and ‘claw_gap’ define the width/gap of the CPW line that makes up the connector. Note, DC SQUID currently represented by single inductance sheet

Add connectors to it using the connection_pads dictionary. See BaseQubit for more information.

Sketch:

Below is a sketch of the qubit

                            claw_length
Claw:       _________                    Gap:
            |   ________________             _________    ____________
      ______|  |                             _________|  |____________
            |  |________________
            |_________
source/transmon_cross.png
BaseQubit Default Options:
  • connection_pads: Empty Dict – The dictionary which contains all active connection lines for the qubit.

  • _default_connection_pads: empty Dict – The default values for the (if any) connection lines of the qubit.

Default Options:
  • cross_width: ‘20um’ – Width of the CPW center trace making up the Crossmon

  • cross_length: ‘200um’ – Length of one Crossmon arm (from center)

  • cross_gap: ‘20um’ – Width of the CPW gap making up the Crossmon

  • _default_connection_pads: Dict
    • connector_type: ‘0’ – 0 = Claw type, 1 = gap type

    • claw_length: ‘30um’ – Length of the claw ‘arms’, measured from the connector center trace

    • ground_spacing: ‘5um’ – Amount of ground plane between the connector and Crossmon arm (minimum should be based on fabrication capabilities)

    • claw_width: ‘10um’ – The width of the CPW center trace making up the claw/gap connector

    • claw_gap: ‘6um’ – The gap of the CPW center trace making up the claw/gap connector

    • connector_location: ‘0’ – 0 => ‘west’ arm, 90 => ‘north’ arm, 180 => ‘east’ arm

  • style: ‘default’ – Change the Josephson Junction style.

    NOTE TO USER: Non-default choices shouldn’t be rendered for simulation. They are for GDS rendering. Choose from the following: * ‘default’ – Used for simulation in Ansys * ‘SQUID_LOOP_Dolan’ – Makes a SQUID loop in Dolan style. Use ‘SQUID_LOOP’ for options. * ‘JJ_Dolan’ – Makes a Josephson Junction in Dolan style. Use ‘Dolan_JJ’ for options.

  • SQUID_LOOP: Dict
    • SQUID_width: ‘40um’ – Interior width (x-axis) of the SQUID LOOP

    • SQUID_length: ‘5um’ – Interior length (y-axis) of the SQUID LOOP

    • SQUID_offset: ‘5um’ – Distance between the edge of the bottom pad and the grounding plane across of the cross

    • JJ_width: ‘150nm’ – Josephson Junction width. Governs Lj.

    • JJ_flip: False – Switch the direction of the Josephson Junctions.

  • Dolan_JJ: Dict
    • JJ_width: ‘150nm’ – Josephson Junction width. Governs Lj.

    • JJ_flip: False – Switch the direction of the Josephson Junctions.

Return type:

Any

TOOLTIP = 'Simple Metal Transmon Cross used at LFL'#
component_metadata#

Component metadata

default_options#

Default options.

make()[source]#

This is executed by the GUI/user to generate the qgeometry for the component.

make_connection_pad(name)[source]#

Makes individual connector pad.

Parameters:

name (str) – Name of the connector pad

make_connection_pads()[source]#

Goes through connector pads and makes each one.

make_pocket()[source]#

Makes a basic Crossmon, 4 arm cross.

class squadds.components.qubits.TransmonCrossFL(*args, **kwargs)[source]#

Bases: TransmonCross

The base TransmonCrossFL class. Inherits TransmonCross class Description:

Simple Metal Transmon Cross object. Creates the X cross-shaped island, the “junction” on the south end, and up to 3 connectors on the remaining arms (claw or gap). ‘claw_width’ and ‘claw_gap’ define the width/gap of the CPW line that makes up the connector. Note, DC SQUID currently represented by single inductance sheet Add connectors to it using the connection_pads dictonary. See BaseQubit for more information. Flux line is added by default to the ‘south’ arm where the DC SQUID is located, default is a symmetric T style Default Options: Convention: Values (unless noted) are strings with units included, (e.g., ‘30um’) * make_fl - (Boolean) If True, adds a flux line * fl_style - (String) Choose a style to construct the flux line

  • “none” - Qiskit’s default.
    • t_top - length of the flux line for mutual inductance to the SQUID

    • t_inductive_gap - amount of metallization between the flux line and SQUID

    • t_offset - degree by which the tail of the T is offset from the center

    • t_width - width of the flux line’s transmission line center trace

    • t_gap - dielectric gap of the flux line’s transmission line

  • “tapered” - Tapered / trapazoidal flux line.
    • t_length length of the flux line

    • t_width_i width of side further away from the qubit

    • t_width_f width of side closer to the qubit

    • t_gap_i dielectric gap of flux line’s tranmission line, further away from qubit

    • t_gap_f dielectric gap of flux line’s tranmission line, closer to qubit

    • t_punch_through length of how much the flux line punches through ground plane

    • t_hanger_para_length length of hanger which moves along the x-axis

    • t_hanger_para_width width of hanger which moves along the x-axis

    • t_hanger_para_gap dielectric gap of the x-axis hanger

    • t_hanger_perp_length length of hanger which moves along the y-axis

    • t_hanger_perp_width width of hanger which moves along the y-axis

    • t_hanger_perp_gap dielectric gap of the y-axis hanger

source/transmon_cross_fl.png
Return type:

Any

TOOLTIP = 'The base `TransmonCrossFL` class.'#
component_metadata#

Component metadata

default_options#

Default drawing options

make()[source]#

Define the way the options are turned into QGeometry.

make_flux_line()[source]#

Creates the charge line if the user has charge line option to TRUE.

This is Qiskit Metal’s default.

make_flux_line_tapered()[source]#

Creates the charge line which is taper w/ a hanging bar.

Activates when all of these conditions are met: - self.options.make_fl == True - self.options.fl_options.lfl_style == “tapered”

squadds.components.shielded_cap_concentric module#

class squadds.components.shielded_cap_concentric.ShieldedCapConcentric(*args, **kwargs)[source]#

Bases: QComponent

Concentric capacitor with guard rings between the inner disk and the outer ring.

From the centre out: an inner disk (one conductor), one or more guard rings, an outer ring fed by a north CPW (another conductor) and the circular ground opening. Each guard ring is either floating (its own conductor) or grounded, in which case a radial strap joins it to the ground plane through slots in every ring outside it, so the outer ring becomes a split ring. All outlines are circles stretched by aspect along x.

Options (lengths with units; lists comma-separated, one entry per guard ring from the inside out):
  • inner_radius: radius of the inner disk

  • aspect: x/y stretch of every outline

  • guard_gaps, guard_widths: gap to the previous body and width of each guard ring

  • guard_grounded: 1 (grounded through a strap) or 0 (floating) per guard ring

  • ring_gap, ring_width: gap between the last guard and the outer ring, and the outer ring width

  • ground_gap: gap between the outer ring and the ground opening

  • strap_width, strap_gap: width of the grounding strap and the clearance of the slots it passes through

  • cpw_length, cpw_width, cpw_gap: the north feed line beyond the ground opening

  • circle_quad_segs: segments per quarter circle

Qgeometry names: inner (the disk), outer_ring (with its feed), guard_<k> for each floating guard (k counts floating guards from 1), and the subtractive cap_etch. This is the component of the tl-squadds shielded concentric family (exp15).

Return type:

Any

TOOLTIP = 'Concentric capacitor with floating or grounded guard rings.'#
geometry_um()[source]#

Shapes at the origin in micrometres: metal per qgeometry name, the etch and the feed pin height.

Return type:

dict

make()[source]#
squadds.components.shielded_cap_concentric.shielded_options_from_generator(params)[source]#

Map a tl-squadds exp15 generator record (lengths as floats in micrometres) to component options.

Return type:

dict

squadds.components.xmon module#

class squadds.components.xmon.Xmon(*args, **kwargs)[source]#

Bases: TransmonCross

Xmon capacitor: a four-arm cross in a ground pocket with one or two claw couplers.

The geometry is quantum-metal’s TransmonCross (cross, cross etch and claw connectors, pins included) without the junction, so the layout is the capacitive network of an Xmon: the cross is one conductor and every claw another. The readout claw sits on the north arm by default; add a second claw with another entry in connection_pads (for example bus with connector_location "0" (west) or "180" (east); as in the dataset, any angle above 135 is the east arm).

Pins are quantum-metal’s: the claw pin line runs from -claw_cpw_width/2 to +claw_width/2 across the claw feed, so its middle is offset from the feed axis when the two widths differ. The dataset’s port stubs and ground end slots were cut at these pins.

This is the component of the tl-squadds Xmon family (exp13). It differs from squadds.components.qubits.TransmonCross, which draws the SQuADDS qubit with its junction options.

Return type:

Any

TOOLTIP = 'Xmon cross with one or two claw couplers (no junction).'#
make_connection_pad(name)[source]#

Claw connector as drawn for the dataset (quantum-metal 0.5): connector_location above 135 is the east arm, above 45 the north arm, otherwise the west arm. quantum-metal 0.9 maps 270 to the south arm instead.

make_pocket()[source]#

Cross and its etch, as in quantum-metal’s TransmonCross, without the junction.

Module contents#

class squadds.components.GeneralizedCapConcentric(*args, **kwargs)[source]#

Bases: QComponent

Two-terminal concentric capacitor with elliptical inner and outer bodies.

Traces (from inside out):
  1. Inner body outer edge (filled pad)

  2. Outer-body inner edge (ring hole)

  3. Outer-body outer edge (ring outline)

  4. Ground-plane inner edge (third ellipse) — gap between outer body and ground

When inner_feed is True (default), a south CPW reaches the inner pad through a clearance slot in the ring. When False, the outer ring stays continuous. A north CPW attaches to the outer ring. min_trace_gap is enforced between consecutive traces and around the inner feed.

Inspired by the circular pads in Qiskit Metal TransmonConcentric, rewritten as a lumped capacitor with independent elliptical traces.

Return type:

Any

TOOLTIP = 'Elliptical concentric capacitor with independent inner/outer/ground traces.'#
make()[source]#
class squadds.components.GeneralizedCapNInterdigital(*args, **kwargs)[source]#

Bases: QComponent

Two-body interdigital capacitor (north and south spines with interleaved fingers) fed by CPW stubs.

Optional options, not in default_options so existing designs are unchanged when they are absent:
  • north_finger_width / south_finger_width: strip width of one body (paddles, finger_length=0); each falls back to finger_width.

  • spine_ledge_rule: "auto" (default) rounds the outer spine ledge with simple arcs when the edge fillet and the finger etch circle overlap, else with the tangent construction; "tangent" always uses the tangent construction, the first squadds2-helpers rule with which the exp6 and exp7 sweeps were generated.

Return type:

Any

make()[source]#
class squadds.components.GeneralizedCapStar(*args, **kwargs)[source]#

Bases: QComponent

Star capacitor with optional peripheral connector pads.

Bodies:
  • star — central n-pointed star (always present)

  • pad_i — peripheral pads for each enabled connector (i = 0 .. n-1)

Pads sit in the valleys between fingers: each pad is disk(star_outer) minus star.buffer(gap_i) in that valley, so it matches the gap angle, keeps an equidistant clearance to the star, and stops at the finger tips. The ground opening is a circle of pocket_radius. Empty valleys are either left open to that circle (valley_ground=circle) or filled by ground with an equidistant gap to the star (valley_ground=fill), so tip outer arcs follow the star tip fillets at radius tip_radius + gap via star.buffer(gap). CPW stubs add a side gap only outside the capacitor pocket (cpw_width / cpw_gap), with a flat open end. Per-pad star gaps via pad_gaps; omitted => gap.

Return type:

Any

TOOLTIP = 'Multi-terminal star capacitor with optional connector pads.'#
make()[source]#
class squadds.components.ShieldedCapConcentric(*args, **kwargs)[source]#

Bases: QComponent

Concentric capacitor with guard rings between the inner disk and the outer ring.

From the centre out: an inner disk (one conductor), one or more guard rings, an outer ring fed by a north CPW (another conductor) and the circular ground opening. Each guard ring is either floating (its own conductor) or grounded, in which case a radial strap joins it to the ground plane through slots in every ring outside it, so the outer ring becomes a split ring. All outlines are circles stretched by aspect along x.

Options (lengths with units; lists comma-separated, one entry per guard ring from the inside out):
  • inner_radius: radius of the inner disk

  • aspect: x/y stretch of every outline

  • guard_gaps, guard_widths: gap to the previous body and width of each guard ring

  • guard_grounded: 1 (grounded through a strap) or 0 (floating) per guard ring

  • ring_gap, ring_width: gap between the last guard and the outer ring, and the outer ring width

  • ground_gap: gap between the outer ring and the ground opening

  • strap_width, strap_gap: width of the grounding strap and the clearance of the slots it passes through

  • cpw_length, cpw_width, cpw_gap: the north feed line beyond the ground opening

  • circle_quad_segs: segments per quarter circle

Qgeometry names: inner (the disk), outer_ring (with its feed), guard_<k> for each floating guard (k counts floating guards from 1), and the subtractive cap_etch. This is the component of the tl-squadds shielded concentric family (exp15).

Return type:

Any

TOOLTIP = 'Concentric capacitor with floating or grounded guard rings.'#
geometry_um()[source]#

Shapes at the origin in micrometres: metal per qgeometry name, the etch and the feed pin height.

Return type:

dict

make()[source]#
class squadds.components.Xmon(*args, **kwargs)[source]#

Bases: TransmonCross

Xmon capacitor: a four-arm cross in a ground pocket with one or two claw couplers.

The geometry is quantum-metal’s TransmonCross (cross, cross etch and claw connectors, pins included) without the junction, so the layout is the capacitive network of an Xmon: the cross is one conductor and every claw another. The readout claw sits on the north arm by default; add a second claw with another entry in connection_pads (for example bus with connector_location "0" (west) or "180" (east); as in the dataset, any angle above 135 is the east arm).

Pins are quantum-metal’s: the claw pin line runs from -claw_cpw_width/2 to +claw_width/2 across the claw feed, so its middle is offset from the feed axis when the two widths differ. The dataset’s port stubs and ground end slots were cut at these pins.

This is the component of the tl-squadds Xmon family (exp13). It differs from squadds.components.qubits.TransmonCross, which draws the SQuADDS qubit with its junction options.

Return type:

Any

TOOLTIP = 'Xmon cross with one or two claw couplers (no junction).'#
make_connection_pad(name)[source]#

Claw connector as drawn for the dataset (quantum-metal 0.5): connector_location above 135 is the east arm, above 45 the north arm, otherwise the west arm. quantum-metal 0.9 maps 270 to the south arm instead.

make_pocket()[source]#

Cross and its etch, as in quantum-metal’s TransmonCross, without the junction.

squadds.components.build_component_from_design(design, row, name='cplr')[source]#

Build the exact component declared by a SQuADDS dataset row.

Both nested Hugging Face records and second-level flattened API records are accepted. Local generalized components are intentionally resolved only from squadds.components.

Return type:

qiskit_metal.qlibrary.core.QComponent

squadds.components.create_component(component_name, design, name, options=None)[source]#

Instantiate any component registered by dataset-facing class name.

Return type:

qiskit_metal.qlibrary.core.QComponent

squadds.components.create_coupler(component_name, design, name, options=None)[source]#

Instantiate a named coupler using its registered implementation.

Return type:

qiskit_metal.qlibrary.core.QComponent

squadds.components.get_component_class(component_name)[source]#

Return a locally supported Qiskit Metal component implementation.

This registry is intentionally broader than get_coupler_spec(). Components such as GeneralizedCapStar have a design-dependent number of pins, so forcing them into the fixed route/exposed-pin coupler contract would discard useful topology information.

Return type:

type[qiskit_metal.qlibrary.core.QComponent]

squadds.components.get_coupler_spec(component_name)[source]#

Return the implementation and pin roles for a coupler name.

Return type:

CouplerSpec