Closed erick-xanadu closed 1 year ago
chatted with Erick offline, and I want to add the detail that this didn't raise an error with the old return system.
https://github.com/PennyLaneAI/pennylane-lightning/pull/427/files#diff-7ab66ad23bebdcb3e384f6b56710236d00fde29be3bc49a641e29c99385f0305R616 I think should be solved by @albi3ro PR on lightning.
Yep. This problem is due to lightning
not supporting the new return types specification. This should be fixed shortly by:
https://github.com/PennyLaneAI/pennylane-lightning/pull/427
Thank you all! Feel free to close this as a duplicate then :)
Expected behavior
I have a test case where definingI now understand thatnumpy
asfrom pennylane import numpy
differs fromimport numpy
. I expect them to be the same.from pennylane import numpy
andimport numpy
will behave different. However, this might still be a bug. The error was not raised before this Monday, which might imply that it is related with recent changes regarding return types.Actual behavior
Different behaviour, withThe error was raised.from pennylane import numpy
there's an exception raised. Withimport numpy
the program succeeds.`Additional information
This is on pennylane main using this commit 2efbb3b07d3665a2a208bed777c9120940a47bdd
Source code
Tracebacks
System information
Existing GitHub issues