You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior: After executing a qnode which raises an exception, it is expected that executing a second qnode will have a fresh environment.
Actual behavior: Something is not being reset correctly when raising an exception. This can be easily verified by running the async tests for exceptions before running the async tests that succeed. If the order changes, some tests which are expected to succeed will raise an error.
Reproduces how often: 100%
importpennylaneasqml@qml.qjit(async_qnodes=True)@qml.qnode(qml.device("lightning.qubit", wires=2))deffoo(a, b):
qml.CNOT(wires=[a, b])
returnqml.state()
print(foo(0, 1)) # Different wires, async shouldn't happen.try:
foo(0, 0) # Same wires, will result in an exceptionexcept:
...
print(foo(0, 1)) # Different wires, async shouldn't happen.
The text was updated successfully, but these errors were encountered:
Issue description
Expected behavior: After executing a qnode which raises an exception, it is expected that executing a second qnode will have a fresh environment.
Actual behavior: Something is not being reset correctly when raising an exception. This can be easily verified by running the async tests for exceptions before running the async tests that succeed. If the order changes, some tests which are expected to succeed will raise an error.
Reproduces how often: 100%
The text was updated successfully, but these errors were encountered: