Skip to content

Commit

Permalink
Upgrade minimum required version of Pennylane to v0.40 (#1033)
Browse files Browse the repository at this point in the history
### 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`.

- [ ] Add a new entry to the `.github/CHANGELOG.md` file, summarizing
the
      change, and including a link back to the PR.

- [ ] 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:**
Pennylane Lightning v0.40 is not compatible with Pennylane version
<0.40. This PR upgrades the pennylane requirement.

**Description of the Change:**

**Benefits:**

**Possible Drawbacks:**

**Related GitHub Issues:**

---------

Co-authored-by: ringo-but-quantum <[email protected]>
Co-authored-by: Ali Asadi <[email protected]>
  • Loading branch information
3 people authored Jan 15, 2025
1 parent b87e87e commit 4dec147
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
5 changes: 4 additions & 1 deletion .github/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

### Improvements

* Update the minimum required version of PennyLane to `v0.40.0`.
[(#1033)](https://github.com/PennyLaneAI/pennylane-lightning/pull/1033)

* Merge the `v0.40.0-rc` branch to the master and bump version.
[(#1038)](https://github.com/PennyLaneAI/pennylane-lightning/pull/1038)

Expand All @@ -17,7 +20,7 @@

This release contains contributions from (in alphabetical order):

Shuli Shu
Joseph Lee, Shuli Shu

---

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.41.0-dev0"
__version__ = "0.41.0-dev1"
2 changes: 1 addition & 1 deletion pennylane_lightning/core/lightning_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class LightningBase(QubitDevice):
OpenMP.
"""

pennylane_requires = ">=0.38"
pennylane_requires = ">=0.40"
version = __version__
author = "Xanadu Inc."
short_name = "lightning.base"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ description = "PennyLane-Lightning plugin"
readme = "README.rst"
requires-python = ">=3.10"
classifiers = [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Science/Research", "License :: OSI Approved :: Apache Software License", "Natural Language :: English", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", "Operating System :: POSIX :: Linux", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Topic :: Scientific/Engineering :: Physics",]
dependencies = ["pennylane>=0.37", "scipy-openblas32>0.3.26"]
dependencies = ["pennylane>=0.40", "scipy-openblas32>0.3.26"]
dynamic = [ "version",]
[[project.maintainers]]
name = "Xanadu Quantum Technologies Inc."
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ clang-tidy~=16.0
clang-format~=16.0
isort==5.13.2
pylint==2.7.4
pennylane>=0.37
pennylane>=0.40
scipy-openblas32>=0.3.26
2 changes: 1 addition & 1 deletion scripts/configure_pyproject_toml.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def parse_args():
pyproject["project"]["entry-points"]["pennylane.plugins"] = {device_name: plugin}

dependencies = [
"pennylane>=0.37",
"pennylane>=0.40",
"scipy-openblas32>=0.3.26",
]

Expand Down

0 comments on commit 4dec147

Please sign in to comment.