Skip to content

free ancillas in comparison gates#1020

Merged
NoureldinYosri merged 4 commits into
quantumlib:mainfrom
NoureldinYosri:qfree
May 30, 2024
Merged

free ancillas in comparison gates#1020
NoureldinYosri merged 4 commits into
quantumlib:mainfrom
NoureldinYosri:qfree

Conversation

@NoureldinYosri
Copy link
Copy Markdown
Contributor

fixes #1011

@mpharrigan
Copy link
Copy Markdown
Collaborator

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

@NoureldinYosri
Copy link
Copy Markdown
Contributor Author

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

@NoureldinYosri NoureldinYosri merged commit 9758d33 into quantumlib:main May 30, 2024
@mpharrigan
Copy link
Copy Markdown
Collaborator

I added a test to ensure we free the qubits

Thanks!

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.

qubits are never freed in many cirq-style decompositions of arithmetic gates

3 participants