-
Notifications
You must be signed in to change notification settings - Fork 39
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
make compatible with new return types spec #427
Conversation
Hello. You may have forgotten to update the changelog!
|
[sc-35004] |
Codecov Report
@@ Coverage Diff @@
## master #427 +/- ##
=======================================
Coverage 99.82% 99.82%
=======================================
Files 50 50
Lines 4624 4634 +10
=======================================
+ Hits 4616 4626 +10
Misses 8 8
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @albi3ro.
Nice job here!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @albi3ro
Some brief comments. I think the changelog also needs to be updated to reflect the breaking changes with the new interface.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @albi3ro
No other concerns from me. Once the other conversations are resolved we can merge this in.
Co-authored-by: Amintor Dusko <87949283+AmintorDusko@users.noreply.github.com>
Just a note, the broken MacOS builds are being worked on in #428 and I will notify here once complete and ready for review. |
Note, once the PR #428 is approved, we can merge onto this PR and then go to master |
* Allow brew clang version to be set through env var * Fix format * Auto update version * retry the clang 15 pin * Again * Remove whitespace * Fix llvm path * Install correct OMP version * Reorder libomp install for MacOS * Attempt to upgrade all clang & libomp pins for MacOS * Keep clang15 from brew and pull libomp version explicitly into CMake * Add missing comma * Explicitly add setuptools as it is not found on MacOS builds * Adapt to use fun instead of check_output * Retry to find OpenMP * Fallback to MacOS native compiler and libomp@16 from brew * Update MacOS runner to access newer compiler version * Update MacOS runner to access newer compiler version for entire workload * Use in-built compiler and brew libomp for all MacOS * Remove redundant install * Remove ARM libomp * Update setup.py Co-authored-by: Vincent Michaud-Rioux <vincentm@nanoacademic.com> * Remove ARM libomp * Ensure libomp brew check is guarded * Move OpenMP checks to better suit where they are found * Explicitly disable OpenMP for M1 macs in respective section --------- Co-authored-by: Dev version update bot <github-actions[bot]@users.noreply.github.com> Co-authored-by: Vincent Michaud-Rioux <vincentm@nanoacademic.com>
Context:
With Pennylane PR #3957: PennyLaneAI/pennylane#3957 , the new return types system is enabled by default.
To make sure lightning works with pennylane master, we need to change the return shape from
adjoint_jacobian
. The return shape fromexecute
in handled insideQubitDevice
.Description of the Change:
The changes to the source code are:
adjoint_jacobian
to match the new nested tuples specificationtape.get_parameters
to eliminate deprecation warningreduction="extend"
is requested.The changes to the tests are:
finite_diff
toparam_shift
, as finite diff was causing errors with float32Benefits:
It works with PennyLane master.
Possible Drawbacks:
None
Related GitHub Issues:
None