-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Spyder kernel dies and restarts when trying to use lightning.qubit device #23173
Comments
Hey, sorry that I kept opening and closing this issue. I wasn't sure it was Spyder or Pennylane's issue and I couldn't pinpoint it at first. At one point, I thought I had fixed the issue on my end but it turned out that wasn't the case. After doing some digging, I think the issue is due to some weird interaction between Spyder and Pennylane that I can't understand. You can correct me if I'm wrong. So the simplest way to recreate this problem for me is to do the following:
With a new virtual environment, the code from my previous comment works. However if I add one extra step:
Then I get the error:
I did some debugging and the culprit seems to be the following:
Running the above snippet will result in the same issue of the kernel dying and restarting. I tried to debug further and it brought me into a file that checks the version of numpy. I don't understand what's causing the issue there so that's where I stopped. I'm sorry if this issue has nothing to do with Spyder. I can make do with using Spyder and Pennylane without the spyder-notebook plugin as mentioned above. I don't know if you guys can do anything about this but I just thought I should raise the issue anyway. Thank you for reading. |
Hey @JacksonPhoong, thanks for reporting. You said:
If things are working fine for you before installing Let us know if that works for you. |
Actually, I am able to use But yes, that works for me. |
Ok, good to know. It's very strange that Spyder-notebook interferes with the |
Description
What steps will reproduce the problem?
I'm trying to use lightning.qubit device but the kernel dies and restarts. I've restarted Spyder and the issue persists. I get the issue when running the following code:
Versions
Dependencies
Environment
Environment
The text was updated successfully, but these errors were encountered: