Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

catalyst works with numpy 2.0 #1119

Merged
merged 7 commits into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .dep-versions
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ enzyme=v0.0.130

# For a custom PL version, update the package version here and at
# 'doc/requirements.txt
pennylane=0.39.0.dev10
pennylane=0.39.0.dev16

# For a custom LQ/LK version, update the package version here and at
# 'doc/requirements.txt'. Also, update the 'LIGHTNING_GIT_TAG' at
Expand Down
2 changes: 1 addition & 1 deletion doc/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ lxml_html_clean
--extra-index-url https://test.pypi.org/simple/
pennylane-lightning-kokkos==0.38.0
pennylane-lightning==0.38.0
pennylane==0.39.0.dev10
pennylane==0.39.0.dev16
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ known_third_party = ["diastatic-malt", "jax", "jaxlib", "numpy", "pennylane"]
skips = ["B607"]

[build-system]
requires = ["setuptools>=62", "wheel", "pybind11>=2.7.0", "numpy>=1.22,<2"]
requires = ["setuptools>=62", "wheel", "pybind11>=2.12.0", "numpy==2.0"]
build-backend = "setuptools.build_meta"

[tool.pytest.ini_options]
Expand Down
8 changes: 3 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
pip>=22.3

# Build dependencies for non-Python components
numpy<2
pybind11>=2.8.0
numpy==2.0
pybind11>=2.12.0
PyYAML

# formatting/linting
Expand All @@ -25,6 +25,4 @@ nbmake

# optional rt/test dependencies
pennylane-lightning-kokkos
amazon-braket-pennylane-plugin>1.27.1
# TODO: remove pin once we support jax>=0.4.27
optax<0.2.3
amazon-braket-pennylane-plugin>1.27.1
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@
f"jax=={jax_version}",
f"jaxlib=={jax_version}",
"tomlkit; python_version < '3.11'",
"scipy<1.13",
"numpy<2",
"scipy<=1.13",
"numpy<=2.0",
"diastatic-malt>=2.15.2",
]

Expand Down
Loading