-
Notifications
You must be signed in to change notification settings - Fork 35
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
Add the support class for the Adjoint Jacobian to the new device #907
Conversation
Hello. You may have forgotten to update the changelog!
|
Co-authored-by: Vincent Michaud-Rioux <[email protected]>
Co-authored-by: Vincent Michaud-Rioux <[email protected]>
…-lightning into gpuNewAPI_simulate
Co-authored-by: Ali Asadi <[email protected]>
Co-authored-by: Ali Asadi <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## gpuNewAPI_backend #907 +/- ##
====================================================
Coverage ? 76.06%
====================================================
Files ? 28
Lines ? 2202
Branches ? 0
====================================================
Hits ? 1675
Misses ? 527
Partials ? 0 ☔ View full report in Codecov by Sentry. |
Hey @LuisAlfredoNu, is this PR ready for review? Apparently, we have several test fails. |
@AmintorDusko |
Thank you, @LuisAlfredoNu! |
@@ -302,7 +302,6 @@ def __init__( # pylint: disable=too-many-arguments | |||
shots=None, | |||
batch_obs=False, | |||
# Kokkos arguments | |||
sync=True, |
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.
The var sync
is no longer needed in LK.
): # pylint: disable=too-many-arguments | ||
|
||
super().__init__(num_wires, dtype) | ||
|
||
self._device_name = "lightning.kokkos" | ||
|
||
self._kokkos_config = {} | ||
self._sync = sync |
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.
In LK, any method requires the var sync
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.
Nice work! Thanks @LuisAlfredoNu! Happy to approve 💯
import pennylane as qml | ||
from pennylane.tape import QuantumTape |
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.
👍
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.
Great job!
Before submitting
Please complete the following checklist when submitting a PR:
All new features must include a unit test.
If you've fixed a bug or added code that should be tested, add a test to the
tests
directory!All new functions and code must be clearly commented and documented.
If you do make documentation changes, make sure that the docs build and
render correctly by running
make docs
.Ensure that the test suite passes, by running
make test
.Add a new entry to the
.github/CHANGELOG.md
file, summarizing thechange, and including a link back to the PR.
Ensure that code is properly formatted by running
make format
.When all the above are checked, delete everything above the dashed
line and fill in the pull request template.
Context:
Migrate LightningGPU to the new device API
Description of the Change:
Create the
adjoint-jacobian
class for the new device API to achieve thejacobian
andvjp
methodsBenefits:
Unlocking the
adjoint-jacobian
capabilities with the new device API for LGPUPossible Drawbacks:
Related GitHub Issues:
Freezzed PR⚠️ ❄️
To make a smooth integration of LightningGPU with the new device API, we set the branch
gpuNewAPI_backend
as the base branch target for future developments related to this big task.The branch
gpuNewAPI_backend
has the mock of all classes and methods necessary for the new API. Also, several tests were disabled withHowever, these tests will unblocked as the implementation progresses.
After all the developments for integrating LightningGPU with the new API have been completed then the PR will be open to merge to
master
[sc-70936] [sc-70939]