PennyLaneAI / pennylane-lightning

The PennyLane-Lightning plugin provides a fast state-vector simulator written in C++ for use with PennyLane
https://docs.pennylane.ai/projects/lightning
Apache License 2.0
86 stars 35 forks source link

Add SetBasisState and SetState to `lightning.kokkos` #838

Closed erick-xanadu closed 1 month ago

erick-xanadu commented 1 month ago

Context: In order for the StatePrep and BasisState optimizations be implemented, the kokkos device needs to be modified. Since the kokkos device is migrating to the pennylane-lightning repo, it is necessary that these changes are also in the pennylane-lightning repo.

Description of the Change: Copies over changes from Catalyst regarding kokkos into the pennylane-lightning repo.

Related GitHub Issues: https://github.com/PennyLaneAI/catalyst/pull/955

Notes: The tests won't pass until the PR https://github.com/PennyLaneAI/catalyst/pull/955 is merged, since it updates the Catalyst Quantum Device API.

github-actions[bot] commented 1 month ago

Hello. You may have forgotten to update the changelog! Please edit .github/CHANGELOG.md with:

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 39.03%. Comparing base (619b807) to head (3a92870).

:exclamation: There is a different number of reports uploaded between BASE (619b807) and HEAD (3a92870). Click for more details.

HEAD has 36 uploads less than BASE | Flag | BASE (619b807) | HEAD (3a92870) | |------|------|------| ||41|5|
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #838 +/- ## =========================================== - Coverage 98.53% 39.03% -59.51% =========================================== Files 116 32 -84 Lines 18510 2257 -16253 =========================================== - Hits 18239 881 -17358 - Misses 271 1376 +1105 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

erick-xanadu commented 1 month ago

Closed in favour of: https://github.com/PennyLaneAI/pennylane-lightning/pull/843