-
Notifications
You must be signed in to change notification settings - Fork 49
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
Error: 'DefaultQubit' object has no attribute 'num_wires' #65
Comments
Hey @nireekreddy! Thanks 👍. The
Let me know if that works! |
@isaacdevlugt , thanks for the prompt reply. It works. Could you also change it in the codebook ? So that someone else trying to learn will not waste time on it the simple error. This was the main reason I opened an issue here. thanks :) |
Ah! Yes I will fix that 😄. |
@isaacdevlugt hey! I tried this node yesterday and this issue wasn't fixed. |
Hey @MadhurimaNayak, apologies! I merged that PR. You can still use this fix as a temporary workaround:
|
@isaacdevlugt This is still outstanding :) |
Hey @lionelbrits, what's the code you're trying to run? |
@isaacdevlugt Codercise I.12.1 |
I just want to make sure that we're talking about the same code here. Do you mind copy-pasting what you're trying to run on the codebook website? |
@isaacdevlugt:
which needs to be changed to
in order to run. As I have completed the exercise, pasting my version wouldn't really help here. |
Thanks! Indeed, We can address issues that crop up on codebook.xanadu.ai in terms of helping you achieve the correct answers that it expects, but changing the source code at this juncture is not something we're doing because we're migrating the codebook to https://pennylane.ai/codebook/ 🚀! Please visit that URL for the most up-to-date and maintained version of the codebook |
Node number
Codercise I.12.1.
Expected behavior
Compile without error
Actual behavior
Error: 'DefaultQubit' object has no attribute 'num_wires'
Additional information
No response
Source code
Tracebacks
No response
Check other issues
The text was updated successfully, but these errors were encountered: