-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
**Context:** When the LQ plugin was migrated from Catalyst to Lightning, the `StateVectorLQDynamic` class was also migrated. Given the fact that we have `StateVectorLQManaged`, we can get rid of `StateVectorLQDynamic`. **Description of the Change:** Replace the uses of `StateVectorLQDynamic` with `StateVectorLQManaged`. I basically reused the code from the LK simulator and removed the calls to the `StateVectorLQDynamic` related methods. Of course, I had to use `std::complex` instead of `kokkos::complex`. **Benefits:** Using the same underlying class for LG, LK and LQ. **NOTE:** I have deleted the only two tests that were failing: 1. **Qubit allocatation and deallocation** (https://github.com/PennyLaneAI/pennylane-lightning/pull/999/files#diff-4782c8d1aa88463716419ff1ef4f9f551d6241e43f5bc107d27ff0ed4299a3ebL78): the second call to `State(...)` showed a size of 2 for the given state and a size of 4 for the device state, which made the assertion fail. 2. **QuantumDevice object test** (https://github.com/PennyLaneAI/pennylane-lightning/pull/999/files#diff-4782c8d1aa88463716419ff1ef4f9f551d6241e43f5bc107d27ff0ed4299a3ebL193) The test was killed after 1 minute of running, probably because an infinite loop/recursion? It seems to me these two tests do not comply with the way `StateVectorLQManaged` is structured but let the discussion resolve it. [sc-77689] --------- Co-authored-by: ringo-but-quantum <[email protected]> Co-authored-by: Ali Asadi <[email protected]>
- Loading branch information
1 parent
ad205ee
commit 4c8d840
Showing
12 changed files
with
35 additions
and
997 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,4 +16,4 @@ | |
Version number (major.minor.patch[-label]) | ||
""" | ||
|
||
__version__ = "0.40.0-dev11" | ||
__version__ = "0.40.0-dev12" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
...ylane_lightning/core/src/simulators/lightning_qubit/catalyst/StateVectorLQubitDynamic.cpp
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.