FEAT: find transitions at quantum-number level - #381
Open
grayson-helmholz wants to merge 1 commit into
Open
grayson-helmholz wants to merge 1 commit into
grayson-helmholz wants to merge 1 commit into
Conversation
redeboer
added this pull request to stack #386
September 15, 2026 14:29
redeboer
self-requested a review
September 15, 2026 14:41
This branch has not been deployed
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.
✨ New features
find_qn_transitions()solves aQNProblemSetCollectionpurely at the quantum-number level. It runs theCSPSolverwithout completing the intermediate states from a particle database, so each intermediate state carries exactly the quantum numbers that the problem set declares as domains. Its result is a tuple ofQNTransitions, the new alias for aFrozenTransitionof quantum-number property maps.collect_qn_transitions()is the counterpart ofcollect_reaction_info()for that workflow: it merges the initial facts into each solution and deduplicates the transitions, without consulting a particle database or constructingStateobjects.strip_spin_projections()removes the spin projections of the initial and final state, the spin-projection domains of the intermediate edges, and thefind_qn_transitions()this yieldsstrip_quantum_numbers()inqrules.solvingis the general form of that operation for a singleQNProblemSet. Conservation rules are deliberately kept: a rule that can no longer execute is skipped and reported through the solver's not-executed-rules mechanism, rather than silently disappearing.⚙️ Enhancements
qrules.io.asdict()serializes sets as sorted lists and maps callable dictionary keys to their name, recursing into nested mappings. This is what makes aQNProblemSetserializable at all, since its settings are keyed by conservation rule.Squash commit messages