From 6d91c9ad919d57d2983010a25bfe353bd2cb3687 Mon Sep 17 00:00:00 2001 From: Shuli Shu <31480676+multiphaseCFD@users.noreply.github.com> Date: Fri, 25 Oct 2024 09:43:40 -0400 Subject: [PATCH] Update installation instructions for LT and LGPU (#957) ### Before submitting Please complete the following checklist when submitting a PR: - [ ] All new features must include a unit test. If you've fixed a bug or added code that should be tested, add a test to the [`tests`](../tests) directory! - [ ] All new functions and code must be clearly commented and documented. If you do make documentation changes, make sure that the docs build and render correctly by running `make docs`. - [ ] Ensure that the test suite passes, by running `make test`. - [x] Add a new entry to the `.github/CHANGELOG.md` file, summarizing the change, and including a link back to the PR. - [x] Ensure that code is properly formatted by running `make format`. When all the above are checked, delete everything above the dashed line and fill in the pull request template. ------------------------------------------------------------------------------------------------------------ **Context:** [sc-76616] **Description of the Change:** **Benefits:** **Possible Drawbacks:** **Related GitHub Issues:** --------- Co-authored-by: ringo-but-quantum Co-authored-by: Joseph Lee <40768758+josephleekl@users.noreply.github.com> --- .github/CHANGELOG.md | 3 +++ README.rst | 6 ++++-- pennylane_lightning/core/_version.py | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/CHANGELOG.md b/.github/CHANGELOG.md index 58aab54b3..05edc385c 100644 --- a/.github/CHANGELOG.md +++ b/.github/CHANGELOG.md @@ -46,6 +46,9 @@ ### Improvements +* Update `README.rst` installation instructions for `lightning.gpu` and `lightning.tensor`. + [(#957)](https://github.com/PennyLaneAI/pennylane-lightning/pull/957) + * Optimize `GlobalPhase` and `C(GlobalPhase)` gate implementation in `lightning.gpu`. [(#946)](https://github.com/PennyLaneAI/pennylane-lightning/pull/946) diff --git a/README.rst b/README.rst index a762da889..f7f09d5fd 100644 --- a/README.rst +++ b/README.rst @@ -220,10 +220,11 @@ To install Lightning-GPU from the package sources using the direct SDK path, Lig git clone https://github.com/PennyLaneAI/pennylane-lightning.git cd pennylane-lightning pip install -r requirements.txt + pip install custatevec-cu12 PL_BACKEND="lightning_qubit" python scripts/configure_pyproject_toml.py SKIP_COMPILATION=True pip install -e . --config-settings editable_mode=compat -vv -Then the `custatevec-cu12 `_ library can be installed and set a ``CUQUANTUM_SDK`` environment variable. +Then a ``CUQUANTUM_SDK`` environment variable can be set: .. code-block:: bash @@ -391,10 +392,11 @@ Lightning-Qubit should be installed before Lightning-Tensor (compilation is not git clone https://github.com/PennyLaneAI/pennylane-lightning.git cd pennylane-lightning pip install -r requirements.txt + pip install cutensornet-cu12 PL_BACKEND="lightning_qubit" python scripts/configure_pyproject_toml.py SKIP_COMPILATION=True pip install -e . --config-settings editable_mode=compat -Then the `cutensornet `_ library can be installed and set a ``CUQUANTUM_SDK`` environment variable. +Then a ``CUQUANTUM_SDK`` environment variable can be set: .. code-block:: bash diff --git a/pennylane_lightning/core/_version.py b/pennylane_lightning/core/_version.py index 6f841927f..eba0279f9 100644 --- a/pennylane_lightning/core/_version.py +++ b/pennylane_lightning/core/_version.py @@ -16,4 +16,4 @@ Version number (major.minor.patch[-label]) """ -__version__ = "0.39.0-dev48" +__version__ = "0.39.0-dev49"