Skip to content

Commit

Permalink
Correctly querying wire IDs for SetState and SetBasisState in L-K…
Browse files Browse the repository at this point in the history
…okkos (#878)

**Context:**
Catalyst recently fixed a bug where recycling a device when a previous
execution involves stateprep causes a crash:
PennyLaneAI/catalyst#1047

The fix is made to `lightning.qubit`, and thus we need to fix it for
`lightning.kokkos` here as well.


**Description of the Change:**
In `LightningKokkosSimulator`, `SetState` and `SetBasisState` now
correctly query the DevQubits from the SimQubits in its qubit_manger's
map.

**Benefits:**
We can now have multiple qnode functions involving stateprep in a
workflow

**Possible Drawbacks:**

**Related GitHub Issues:**
PennyLaneAI/catalyst#1044

---------

Co-authored-by: paul0403 <[email protected]>
Co-authored-by: ringo-but-quantum <[email protected]>
Co-authored-by: Ali Asadi <[email protected]>
  • Loading branch information
4 people authored Sep 5, 2024
1 parent e4acf2e commit 00ebcdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pennylane_lightning/core/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
Version number (major.minor.patch[-label])
"""

__version__ = "0.39.0-dev2"
__version__ = "0.39.0-dev3"

0 comments on commit 00ebcdf

Please sign in to comment.