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
92 stars 40 forks source link

Implement get_c_interface method for Kokkos plugin #837

Closed rauletorresc closed 3 months ago

rauletorresc commented 3 months ago

Context: Catalyst is removing the Kokkos plugin from its code base (https://github.com/PennyLaneAI/catalyst/pull/974) and is attempting to use it directly from Lightning. However, the C interface was not provided via Python.

Description of the Change: Implement the C interface provider method in Python.

Benefits: Catalyst can use the Kokkos plugin.

codecov[bot] commented 3 months ago

Codecov Report

Attention: Patch coverage is 21.73913% with 18 lines in your changes missing coverage. Please review.

Project coverage is 80.99%. Comparing base (619b807) to head (ac9d74f). Report is 83 commits behind head on master.

Files with missing lines Patch % Lines
...ane_lightning/lightning_kokkos/lightning_kokkos.py 18.18% 18 Missing :warning:

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

HEAD has 89 uploads less than BASE | Flag | BASE (619b807) | HEAD (ac9d74f) | |------|------|------| ||97|8|
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #837 +/- ## =========================================== - Coverage 98.53% 80.99% -17.55% =========================================== Files 116 17 -99 Lines 18510 1936 -16574 =========================================== - Hits 18239 1568 -16671 - Misses 271 368 +97 ```

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