learn-qc-with-python-and-qsharp icon indicating copy to clipboard operation
learn-qc-with-python-and-qsharp copied to clipboard

Remove redundant q.reset() calls and unused import

Open hristog opened this issue 3 years ago • 0 comments

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!

hristog avatar May 09 '22 21:05 hristog