-
Notifications
You must be signed in to change notification settings - Fork 632
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
[BUG] AttributeError: 'float' object has no attribute 'ndim' when using qml.RX
/qml.RY
#3867
Comments
I tried installing previous versions of PennyLane, and it gives me the same error for all the versions down to 0.24. PennyLane 0.23 does not produce the error and works as expected. |
Hi @salcc! Unfortunately, this is due to a new version of We're currently working on a bugfix - in the meantime, if you downgrade autoray,
this should allow PennyLane v0.29 to work. |
autoray update broke PennyLane (PennyLaneAI/pennylane#3867)
We have now released a bugfix pip install -U pennylane |
autoray update broke PennyLane (PennyLaneAI/pennylane#3867)
Hello I'm the main developer of
|
Expected behavior
It works without error, like in the documentation: https://pennylane.ai/qml/demos/tutorial_qubit_rotation.html.
Actual behavior
It produces an error (AttributeError: 'float' object has no attribute 'ndim').
Additional information
To reproduce the error, I used a minimal clean Conda environment created with the following commands:
Source code
Tracebacks
System information
Existing GitHub issues
The text was updated successfully, but these errors were encountered: