-
Notifications
You must be signed in to change notification settings - Fork 606
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] Building PennyLane from source breaks PennyLane Lightning import #2388
Comments
Hi @dominicpasquali, thanks for the report! This issue has been resolved in PennyLaneAI/pennylane-lightning#259 that was merged into the Cloning and building PennyLane-Lightning too should help resolve the issue. Let us know how it goes! 🙂 |
Hi @antalszava - sorry for the delay. Unfortunately building PennyLane-Lightning from source still doesn't solve the problem. Please see my code below:
|
Hi @antalszava - I think I've found a bigger problem. When I follow https://pennylane.readthedocs.io/en/stable/development/guide/tests.html and do the test manually I get the below.
and if I do the full test with: make test
this is in conflict with the most recent check suite: I thnk the heart of the problem is located in: https://github.com/PennyLaneAI/pennylane/blob/b9bc9be03d814f6b2c9f79622c778793fd969919/.github/workflows/tests.yml which (and please correct me if I'm wrong or if I'm completely missing/not seeing something): doesn't test for PennyLane-Lightning and doesn't do the full tests (python -m pytest --ignore=tests/beta tests or make test). Instead only subtests of these test are conducted, hence the errors when done manually vs automatically by GitHub. |
Hi @dominicpasquali,
This error was solved in PennyLaneAI/pennylane-lightning#259 in the PennyLane-Lightning repo. To get that version of Lightning, the PennyLane-Lightning repository can be cloned from GitHub and then running
This could potentially be an alternative, however, the fact that the binaries are available on Test PyPi might change in the future. |
Closing this issue as stale, and as pennylane and pennylane-lightning have both substantially changed since this issue was opened. |
Expected behavior
I expect to install PennyLane from source and run
import pennylane_lightning
without error.Actual behavior
PennyLane Lightning is unable to import 'Expectation' from 'pennylane.operation'
Additional information
Error occurs as of March 28th, 2022
Source code
Following: https://pennylane.ai/install.html?version=source
Ran:
Opening up Python:
Importing PennyLane Lightning
Tracebacks
System information
Running
yields
Existing GitHub issues
The text was updated successfully, but these errors were encountered: