Skip to content

Fix additional bug in ECAdd #1666

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

fpapa250
Copy link
Contributor

Team from PsiQuantum reached out and pointed out another bug in the circuit nearly equivalent to one of the other ones that I found/fixed.

When [(a, b) = (0, 0) AND x = 0] OR [(x, y) = (0, 0) AND a = 0], the f_1 flag is not cleared. I added the same fix to this situation that I did in the similar scenario when the b/y values are all 0 for the f_2 flag. This cost 2 3n-controlled toffolis.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant