Skip to content
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

Remove redundant q.reset() calls and unused import #24

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hristog
Copy link

@hristog hristog commented May 9, 2022

As per the QuantumDevice interface, the qubit reset() operation already takes place upon exiting from the using_device context manager, and this PR proposes removal of a couple of places where an explicit q.reset() is called immediately prior to exiting from the using_device context manager.

This PR supposes that the proposed-for-removal q.reset() lines weren't introduced explicitly with the intention of emphasizing that the operation would take place in a non-simulated context (as I suspect the case might have been here; if not - I would be happy to update this PR and remove that explicit q.reset() as well).

Thanks for reviewing this PR!

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

Successfully merging this pull request may close these issues.

1 participant