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
132 stars 35 forks source link

free ancillas in comparison gates #1020

Closed NoureldinYosri closed 1 month ago

NoureldinYosri commented 1 month ago

fixes https://github.com/quantumlib/Qualtran/issues/1011

mpharrigan commented 1 month ago

why was this possible? can we add a test that would have been failing?

NoureldinYosri commented 1 month ago

@mpharrigan I added a test to ensure we free the qubits

mpharrigan commented 1 month ago

I added a test to ensure we free the qubits

Thanks!