quantumlib / Qualtran

Qᴜᴀʟᴛʀᴀɴ is a Python library for expressing and analyzing Fault Tolerant Quantum algorithms.
https://qualtran.readthedocs.io/en/latest/
Apache License 2.0
177 stars 44 forks source link

Switch `SubtractFrom` to use `BitwiseNot` #1164

Closed charlesyuan314 closed 3 months ago

charlesyuan314 commented 3 months ago

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