squadds.components package#
Subpackages#
- squadds.components.airbridge package
- Submodules
- squadds.components.airbridge.airbridge module
- squadds.components.airbridge.airbridge_generator module
AirbridgeGeneratorAirbridgeGenerator.calculate_component_bounding_boxes()AirbridgeGenerator.cleanup()AirbridgeGenerator.clear_all()AirbridgeGenerator.find_ab_placement()AirbridgeGenerator.get_all_airbridges()AirbridgeGenerator.get_all_coordinates()AirbridgeGenerator.get_corner_bounds()AirbridgeGenerator.get_coupler_bbox()AirbridgeGenerator.get_non_overlap_zones()AirbridgeGenerator.is_close_to_components()AirbridgeGenerator.is_overlapping()AirbridgeGenerator.is_overlapping_with_coupler()AirbridgeGenerator.make_single_ab()AirbridgeGenerator.render_all()AirbridgeGenerator.validate_airbridge()
- Module contents
Submodules#
squadds.components.cavity_claw module#
- class squadds.components.cavity_claw.CavityClaw(*args, **kwargs)[source]#
Bases:
QComponentQubitCavity 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
- 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
squadds.components.claw_coupler module#
- class squadds.components.claw_coupler.TransmonClaw(*args, **kwargs)[source]#
Bases:
BaseQubitThe 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.
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:
objectConstruction 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 asGeneralizedCapStarhave 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.coupled_systems module#
- class squadds.components.coupled_systems.QubitCavity(*args, **kwargs)[source]#
Bases:
QComponentQubitCavity 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
- 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
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:
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 andgdspy.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.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 largestn_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.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).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_nmwith 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
GeneralizedCapStaras the dataset export wrote them, one polygon per conductor.geoms: the rendered (gdstk-fractured) pieces in nm fororiginal/reexport; the component’s metal qgeometry polygons (shapely, mm, table order) forreexport_gdspy.n_bodies: star + enabled pads (re-export styles; defaults tolen(geoms)forreexport_gdspy, else to the number of connected groups).- Return type:
list
squadds.components.generalized_cap_concentric module#
- class squadds.components.generalized_cap_concentric.GeneralizedCapConcentric(*args, **kwargs)[source]#
Bases:
QComponentTwo-terminal concentric capacitor with elliptical inner and outer bodies.
- Traces (from inside out):
Inner body outer edge (filled pad)
Outer-body inner edge (ring hole)
Outer-body outer edge (ring outline)
Ground-plane inner edge (third ellipse) — gap between outer body and ground
When
inner_feedis 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_gapis 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.'#
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:
QComponentStar 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)minusstar.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 ofpocket_radius. Empty valleys are either left open to that circle (valley_ground=circle) or filled by ground with an equidistantgapto the star (valley_ground=fill), so tip outer arcs follow the star tip fillets at radiustip_radius + gapviastar.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 viapad_gaps; omitted =>gap.- Return type:
Any
- TOOLTIP = 'Multi-terminal star capacitor with optional connector pads.'#
squadds.components.generalized_ncap_interdigital module#
- class squadds.components.generalized_ncap_interdigital.GeneralizedCapNInterdigital(*args, **kwargs)[source]#
Bases:
QComponentTwo-body interdigital capacitor (north and south spines with interleaved fingers) fed by CPW stubs.
- Optional options, not in
default_optionsso 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 tofinger_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
- Optional options, not in
squadds.components.jjs module#
- class squadds.components.jjs.JjDolan(*args, **kwargs)[source]#
Bases:
QComponentThe 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.
- class squadds.components.jjs.SquidLoopDolan(*args, **kwargs)[source]#
Bases:
QComponentThe 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
squadds.components.qubits module#
- class squadds.components.qubits.TransmonCross(*args, **kwargs)[source]#
Bases:
BaseQubitThe 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: | ________________ _________ ____________ ______| | _________| |____________ | |________________ |_________
- 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.
- class squadds.components.qubits.TransmonCrossFL(*args, **kwargs)[source]#
Bases:
TransmonCrossThe 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
- Return type:
Any
- TOOLTIP = 'The base `TransmonCrossFL` class.'#
- component_metadata#
Component metadata
- default_options#
Default drawing options
squadds.components.shielded_cap_concentric module#
- class squadds.components.shielded_cap_concentric.ShieldedCapConcentric(*args, **kwargs)[source]#
Bases:
QComponentConcentric 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
aspectalong 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 subtractivecap_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.'#
squadds.components.xmon module#
- class squadds.components.xmon.Xmon(*args, **kwargs)[source]#
Bases:
TransmonCrossXmon 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. Thereadoutclaw sits on the north arm by default; add a second claw with another entry inconnection_pads(for examplebuswithconnector_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/2to+claw_width/2across 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).'#
Module contents#
- class squadds.components.GeneralizedCapConcentric(*args, **kwargs)[source]#
Bases:
QComponentTwo-terminal concentric capacitor with elliptical inner and outer bodies.
- Traces (from inside out):
Inner body outer edge (filled pad)
Outer-body inner edge (ring hole)
Outer-body outer edge (ring outline)
Ground-plane inner edge (third ellipse) — gap between outer body and ground
When
inner_feedis 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_gapis 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.'#
- class squadds.components.GeneralizedCapNInterdigital(*args, **kwargs)[source]#
Bases:
QComponentTwo-body interdigital capacitor (north and south spines with interleaved fingers) fed by CPW stubs.
- Optional options, not in
default_optionsso 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 tofinger_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
- Optional options, not in
- class squadds.components.GeneralizedCapStar(*args, **kwargs)[source]#
Bases:
QComponentStar 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)minusstar.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 ofpocket_radius. Empty valleys are either left open to that circle (valley_ground=circle) or filled by ground with an equidistantgapto the star (valley_ground=fill), so tip outer arcs follow the star tip fillets at radiustip_radius + gapviastar.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 viapad_gaps; omitted =>gap.- Return type:
Any
- TOOLTIP = 'Multi-terminal star capacitor with optional connector pads.'#
- class squadds.components.ShieldedCapConcentric(*args, **kwargs)[source]#
Bases:
QComponentConcentric 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
aspectalong 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 subtractivecap_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.'#
- class squadds.components.Xmon(*args, **kwargs)[source]#
Bases:
TransmonCrossXmon 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. Thereadoutclaw sits on the north arm by default; add a second claw with another entry inconnection_pads(for examplebuswithconnector_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/2to+claw_width/2across 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).'#
- 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 asGeneralizedCapStarhave 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]