Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR introduces a dedicated SQDT-focused species base class and restructures the species layer so SQDT species (and their NIST energy-level datasets) live under rydstate.species.sqdt, with corresponding updates across SQDT state/basis code, tests, and docs.
Changes:
- Add
SpeciesObjectSQDTwith SQDT/NIST-energy-level functionality and migrate SQDT species classes to inherit from it. - Update SQDT code paths to compute
nufrom anAngularKetLS(instead of raw(l, j, s)tuples) and adjust tests/docs accordingly. - Add tab-delimited NIST energy-level data files for several species.
Reviewed changes
Copilot reviewed 21 out of 28 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tests/test_radial_matrix_element.py | Updates tests to use SpeciesObjectSQDT and pass an AngularKetLS into calc_nu. |
| tests/test_all_elements.py | Switches species enumeration/instantiation to SpeciesObjectSQDT and renames the SQDT species test. |
| src/rydstate/species/sqdt/ytterbium.py | Migrates Ytterbium SQDT species definitions to inherit from SpeciesObjectSQDT. |
| src/rydstate/species/sqdt/strontium.py | Migrates Strontium SQDT species definitions to inherit from SpeciesObjectSQDT. |
| src/rydstate/species/sqdt/species_object_sqdt.py | Introduces SpeciesObjectSQDT, including NIST energy-level loading and calc_nu(n, angular_ket, ...). |
| src/rydstate/species/sqdt/sodium.py | Migrates Sodium SQDT species definition to inherit from SpeciesObjectSQDT. |
| src/rydstate/species/sqdt/rubidium.py | Migrates Rubidium SQDT species definitions to inherit from SpeciesObjectSQDT. |
| src/rydstate/species/sqdt/potassium.py | Migrates Potassium SQDT species definition to inherit from SpeciesObjectSQDT. |
| src/rydstate/species/sqdt/nist_energy_levels/ytterbium.txt | Adds NIST tab-delimited energy levels for Ytterbium (Hartree). |
| src/rydstate/species/sqdt/nist_energy_levels/strontium.txt | Adds NIST tab-delimited energy levels for Strontium (Hartree). |
| src/rydstate/species/sqdt/nist_energy_levels/rubidium.txt | Adds NIST tab-delimited energy levels for Rubidium (Hartree). |
| src/rydstate/species/sqdt/nist_energy_levels/potassium.txt | Adds NIST tab-delimited energy levels for Potassium (Hartree). |
| src/rydstate/species/sqdt/nist_energy_levels/lithium.txt | Adds NIST tab-delimited energy levels for Lithium (Hartree). |
| src/rydstate/species/sqdt/nist_energy_levels/cesium.txt | Adds NIST tab-delimited energy levels for Cesium (Hartree). |
| src/rydstate/species/sqdt/lithium.py | Migrates Lithium SQDT species definition to inherit from SpeciesObjectSQDT. |
| src/rydstate/species/sqdt/hydrogen.py | Migrates Hydrogen SQDT species definitions to inherit from SpeciesObjectSQDT. |
| src/rydstate/species/sqdt/cesium.py | Migrates Cesium SQDT species definition to inherit from SpeciesObjectSQDT. |
| src/rydstate/species/sqdt/init.py | Exposes SQDT species and SpeciesObjectSQDT via the sqdt subpackage. |
| src/rydstate/species/species_object.py | Slims down SpeciesObject to core/shared functionality and adjusts from_name typing/docs. |
| src/rydstate/species/init.py | Re-exports SQDT species and SpeciesObjectSQDT from rydstate.species. |
| src/rydstate/rydberg/rydberg_sqdt.py | Updates SQDT state typing and nu computation to call species.calc_nu(self.n, self.angular). |
| src/rydstate/basis/basis_sqdt.py | Updates SQDT basis constructors to accept/resolve SpeciesObjectSQDT. |
| src/rydstate/angular/angular_ket.py | Updates species string resolution to use SpeciesObjectSQDT.from_name. |
| docs/examples/comparisons/compare_nist_energy_levels_data.ipynb | Updates example to build AngularKetLS and call the new calc_nu signature. |
| docs/api_reference.rst | Updates API docs to reference species.SpeciesObjectSQDT. |
| README.md | Updates documentation for defining custom species based on SpeciesObjectSQDT. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
43111c9 to
7508e86
Compare
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.
No description provided.