Skip to content

Commit

Permalink
Fix LQubit editable mode path (#1010)
Browse files Browse the repository at this point in the history
**Context:** LQubit editable mode path is wrong. This PR fixes that.
Please ignore the references to LKokkos.

**Description of the Change:**

**Benefits:**

**Possible Drawbacks:**

**Related GitHub Issues:**

[sc-79333]
  • Loading branch information
AmintorDusko authored Nov 28, 2024
1 parent 8a56a99 commit 7ba7779
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

* Enable N-controlled gate and matrix support to `lightning.gpu` simulator for Catalyst.
[(#1005)](https://github.com/PennyLaneAI/pennylane-lightning/pull/1005)

* Reverse Lightning Qubit generators vector insertion order.
[(#1009)](https://github.com/PennyLaneAI/pennylane-lightning/pull/1009)

Expand All @@ -51,6 +51,9 @@

### Bug fixes

* Fix Lightning Kokkos editable mode path.
[(#1010)](https://github.com/PennyLaneAI/pennylane-lightning/pull/1010)

* Fix version switch condition the GPU workflow tests for LGPU and LKokkos.
[(#1006)](https://github.com/PennyLaneAI/pennylane-lightning/pull/1006)

Expand Down
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.40.0-dev20"
__version__ = "0.40.0-dev21"
2 changes: 1 addition & 1 deletion pennylane_lightning/lightning_qubit/lightning_qubit.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ def get_c_interface():
# lib.<system>-<architecture>-<python-id>"
# To avoid mismatching the folder name, we search for the shared object instead.
# TODO: locate where the naming convention of the folder is decided and replicate it here.
editable_mode_path = package_root.parent.parent / "build"
editable_mode_path = package_root.parent.parent / "build_lightning_qubit"
for path, _, files in os.walk(editable_mode_path):
if lib_name in files:
lib_location = (Path(path) / lib_name).as_posix()
Expand Down

0 comments on commit 7ba7779

Please sign in to comment.