Skip to content

Switch SubtractFrom to use BitwiseNot #1164

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

Merged
merged 2 commits into from
Jul 19, 2024

Conversation

charlesyuan314
Copy link
Contributor

Switch the implementation of SubtractFrom to use BitwiseNot rather than Negate to save some Toffolis as per suggestion.

@charlesyuan314 charlesyuan314 requested a review from anurudhp July 19, 2024 18:05
@charlesyuan314 charlesyuan314 merged commit bb83da3 into quantumlib:main Jul 19, 2024
7 checks passed
@charlesyuan314 charlesyuan314 deleted the sub-from branch July 19, 2024 18:27
@charlesyuan314 charlesyuan314 restored the sub-from branch July 19, 2024 18:27
@charlesyuan314 charlesyuan314 deleted the sub-from branch July 19, 2024 18:27
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