-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FEAT: implement quantum problem set filter #287
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ported remaining review comments from #278
for more information, see https://pre-commit.ci
…o filter_quantum_numbers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice that it's working 🙌
(After offline discussion):
Let's expose this filter_quantum_number_problem_set()
function and write an example with visualization in the "Conservation rules" notebook. If that turns out to look concise, illustrative, and useable enough, we can keep this new function in the API.
Perhaps the example can be without C-parity conservation? As opposed to the test.
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job! The new section in the documentation is particularly good 👌
Some final smaller changes are suggested below.
…o filter_quantum_numbers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job! 🥇
As
CSPSolver.find_solutions()
just takes a generalQNProblemSet
it should be possibleto reduce the set of constraints (i.e. conservation rules) the solver takes into account for
finding the solutions of a decay.
A possible way to implement this is to use the
StateTransitionManager
to generate thefull set of rules for a certain decay and just filter it to contain only the desired
constraints before passing it to
CSPSolver
.Closes #297
Tip
See preview of the modified documentation here.