Repository navigation
Fixes for 0.5.1: SQUID loop qubits (#34), list-valued design parameters (#4) - #76
Merged
Merged
Conversation
…rs (#4) - TransmonCross style "SQUID_LOOP_Dolan" instantiated an undefined name; it now builds SquidLoopDolan. Junction sub-components are updated in place on rebuild, the default junction follows the qubit orientation, and the docstring names the "JJ_Dolan" style correctly. Tutorial 5 documents the SQUID options. Tests build every style headlessly. - expand_design_options turns list-valued design options into one design per combination (shared parameters swept together). The sweeps use it and AnsysSimulator.simulate returns one result per design. FAQ entry and tests. - Tutorial 16 sizes its worker pool from the CPUs the job may use (sched_getaffinity), not the node's core count. - colorama in the dev extra.
shanto268
force-pushed
the
fix/issues-0.5.1
branch
from
November 17, 2026 02:36
1b57022 to
bea87d5
Compare
This was referenced Nov 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes for the open 0.5.1 issues, plus two small items found on HPC. The issues are left open on purpose; they are closed by hand after the release.
SQUID loop qubits (#34)
TransmonCross(style="SQUID_LOOP_Dolan")instantiatedSQUID_LOOP_Dolan, a name that was never imported or defined, so the build failed withname 'SQUID_LOOP_Dolan' is not defined. The class isSquidLoopDolaninsquadds/components/jjs.py;qubits.pynow imports and builds it with the options it already prepared.Checking the other style paths turned up three more problems, also fixed:
JJ_DolanandSQUID_LOOP_Dolanstyles created their junction sub-component on everymake(), sodesign.rebuild()/gui.rebuild()failed with "Q1_JJ_Dolanalready exists" unlessoverwrite_enabledwas set. The sub-component is now updated and rebuilt in place.defaultstyle the junction line was rotated and then the unrotated line was translated, so the junction ignoredorientation.'Dolan_JJ'; the style is'JJ_Dolan'(its options dict isDolan_JJ).Tutorial 5 gets a note showing the
SQUID_LOOP_Dolanoptions (and that each of the two junctions should be sized for2*LJ), and the FAQ has a matching entry.tests/test_transmon_cross_styles.pybuilds both Dolan styles in a headless design at three orientations with and withoutJJ_flip, checks the sub-component, its junction polygons and junction lines (1 or 2) sit at the end of the south arm, checks rebuilds, checks thedefaultjunction follows the orientation, and checks an unknown style is rejected.List-valued design parameters (#4)
The sweep functions already expanded lists, through an internal helper, but a list could not reach
AnsysSimulator.simulate(), and there was no documented way to turn list-valued options into designs. Now:squadds.simulations.expand_design_options(options)returns one design dict per combination of list-valued leaves (cartesian product). Leaves with the same name and the same list are swept together, soclaw_lengthin both the qubit and the cavity options keeps one value per design. Tuples stay constant, empty lists raise, and options without lists return a copy.run_sweep/run_qubit_cavity_sweepuse it.AnsysSimulator.simulate()expands list-valued design options (design_options,design_options_qubit,design_options_cavity_claw) and returns one result per design, soupdate_design_parameters(claw_length=["150um", "200um"])followed bysimulate()runs both. A design without lists returns a single result, as before.simulate().Also
WORKERS = min(8, os.cpu_count()), which under Slurm or a container counts the node's CPUs instead of the job's allocation (a 4-CPU job started 8 processes and peaked at 16.1 GiB of 16 GiB). It now usesos.sched_getaffinity(0)where available, capped at 8, and the markdown says so.coloramajoins thedevextra (one terminal-output test skipped without it), withuv lock.Release notes: three lines under "Unreleased". PR #74 adds its own "Unreleased" section; whichever merges second merges the two.
Local checks: full suite
pytest -m "not integration"682 passed; pre-commit clean on all files; Sphinx build succeeds with no new warnings.