Skip to content
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

Fix bug in KaliskiStep3 and add tests for all steps #1496

Merged
merged 2 commits into from
Nov 13, 2024

Conversation

NoureldinYosri
Copy link
Contributor

@NoureldinYosri NoureldinYosri commented Nov 13, 2024

There was bug in the decomposition of KaliskiStep3 where a variable junk was assigned twice and freed twice.

there were also a few minor things in classical action of other bloqs. the reason these were not caught before is that the tests are written for the top level KaliskiModInverse which decomposes into _KaliskiIteration ... so the classically action of the _KaliskiIteration was tested, but the decomposition of _KaliskiIteration into steps wasn't. so I added tests to check all decomposition down the decomposition of each step

@mpharrigan
Copy link
Collaborator

can you add a PR description

@NoureldinYosri
Copy link
Contributor Author

can you add a PR description

added

Copy link
Collaborator

@mpharrigan mpharrigan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mpharrigan mpharrigan merged commit e10560c into quantumlib:main Nov 13, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants