Skip to content

Commit 2c441bf

Browse files
authored
Bump PennyLane and Lightning minimum versions for Catalyst v0.10.0 (#1454)
Bump the PennyLane and Lightning minimum versions in preparation for the Catalyst 0.10.0 release. These changes ensure we can build the wheels after the Lightning release and before the core PennyLane release.
1 parent ec5eb02 commit 2c441bf

9 files changed

+45
-7
lines changed

.dep-versions

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ enzyme=v0.0.149
88

99
# For a custom PL version, update the package version here and at
1010
# 'doc/requirements.txt
11-
pennylane=0.40.0-dev20
11+
1212

1313
# For a custom LQ/LK version, update the package version here and at
1414
# 'doc/requirements.txt'
15-
lightning=0.40.0-dev41
15+

.github/workflows/build-wheel-linux-x86_64.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,11 @@ jobs:
458458
459459
- name: Install Catalyst
460460
run: |
461+
# TODO: --- remove workaround before merging to main ----------------- #
462+
pip install --extra-index-url=https://test.pypi.org/simple/ PennyLane-Lightning==0.40.0
463+
pip install --extra-index-url=https://test.pypi.org/simple/ PennyLane-Lightning-Kokkos==0.40.0
464+
pip install git+https://github.com/PennyLaneAI/[email protected]
465+
# -------------------------------------------------------------------- #
461466
python${{ matrix.python_version }} -m pip install dist/*.whl --extra-index-url https://test.pypi.org/simple
462467
463468
- name: Install Standalone Plugin

.github/workflows/build-wheel-macos-arm64.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,11 @@ jobs:
453453
454454
- name: Install Catalyst
455455
run: |
456+
# TODO: --- remove workaround before merging to main ----------------- #
457+
pip install --extra-index-url=https://test.pypi.org/simple/ PennyLane-Lightning==0.40.0
458+
pip install --extra-index-url=https://test.pypi.org/simple/ PennyLane-Lightning-Kokkos==0.40.0
459+
pip install git+https://github.com/PennyLaneAI/[email protected]
460+
# -------------------------------------------------------------------- #
456461
python${{ matrix.python_version }} -m pip install dist/*.whl --extra-index-url https://test.pypi.org/simple
457462
458463
- name: Install Standalone Plugin

.github/workflows/build-wheel-macos-x86_64.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,11 @@ jobs:
416416
417417
- name: Install Catalyst
418418
run: |
419+
# TODO: --- remove workaround before merging to main ----------------- #
420+
pip install --extra-index-url=https://test.pypi.org/simple/ PennyLane-Lightning==0.40.0
421+
pip install --extra-index-url=https://test.pypi.org/simple/ PennyLane-Lightning-Kokkos==0.40.0
422+
pip install git+https://github.com/PennyLaneAI/[email protected]
423+
# -------------------------------------------------------------------- #
419424
python${{ matrix.python_version }} -m pip install dist/*.whl --extra-index-url https://test.pypi.org/simple
420425
421426
- name: Install Standalone Plugin

.github/workflows/check-catalyst.yaml

+15
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,11 @@ jobs:
436436
# macOS requirements.txt
437437
python3 -m pip install cuda-quantum==0.6.0
438438
python3 -m pip install oqc-qcaas-client
439+
# TODO: --- remove workaround before merging to main ----------------- #
440+
pip install --extra-index-url=https://test.pypi.org/simple/ PennyLane-Lightning==0.40.0
441+
pip install --extra-index-url=https://test.pypi.org/simple/ PennyLane-Lightning-Kokkos==0.40.0
442+
pip install git+https://github.com/PennyLaneAI/[email protected]
443+
# -------------------------------------------------------------------- #
439444
make frontend
440445
441446
- name: Get Cached LLVM Build
@@ -524,6 +529,11 @@ jobs:
524529
sudo apt-get install -y python3 python3-pip libomp-dev libasan6 make ninja-build
525530
python3 --version | grep ${{ needs.constants.outputs.primary_python_version }}
526531
python3 -m pip install -r requirements.txt
532+
# TODO: --- remove workaround before merging to main ----------------- #
533+
pip install --extra-index-url=https://test.pypi.org/simple/ PennyLane-Lightning==0.40.0
534+
pip install --extra-index-url=https://test.pypi.org/simple/ PennyLane-Lightning-Kokkos==0.40.0
535+
pip install git+https://github.com/PennyLaneAI/[email protected]
536+
# -------------------------------------------------------------------- #
527537
make frontend
528538
529539
- name: Get Cached LLVM Build
@@ -588,6 +598,11 @@ jobs:
588598
sudo apt-get install -y python3 python3-pip libomp-dev libasan6 make ninja-build
589599
python3 --version | grep ${{ needs.constants.outputs.primary_python_version }}
590600
python3 -m pip install -r requirements.txt
601+
# TODO: --- remove workaround before merging to main ----------------- #
602+
pip install --extra-index-url=https://test.pypi.org/simple/ PennyLane-Lightning==0.40.0
603+
pip install --extra-index-url=https://test.pypi.org/simple/ PennyLane-Lightning-Kokkos==0.40.0
604+
pip install git+https://github.com/PennyLaneAI/[email protected]
605+
# -------------------------------------------------------------------- #
591606
make frontend
592607
593608
- name: Get Cached LLVM Build

.github/workflows/scripts/linux_arm64/rh8/test_wheels.sh

+6
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ export PATH=/catalyst/llvm-build/bin:/opt/_internal/cpython-${PYTHON_MAJOR_MINOR
3434
/usr/bin/python3 -m pip install pennylane pybind11 PyYAML cmake ninja pytest pytest-xdist pytest-mock autoray PennyLane-Lightning-Kokkos 'amazon-braket-pennylane-plugin>1.27.1'
3535
/usr/bin/python3 -m pip install oqc-qcaas-client
3636

37+
# TODO: --- remove workaround before merging to main ----------------- #
38+
pip install --extra-index-url=https://test.pypi.org/simple/ PennyLane-Lightning==0.40.0
39+
pip install --extra-index-url=https://test.pypi.org/simple/ PennyLane-Lightning-Kokkos==0.40.0
40+
pip install git+https://github.com/PennyLaneAI/[email protected]
41+
# -------------------------------------------------------------------- #
42+
3743
# Install Catalyst wheel
3844
/usr/bin/python3 -m pip install /catalyst/dist/*.whl --extra-index-url https://test.pypi.org/simple
3945

Makefile

+3-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@ frontend:
9898
@echo "install Catalyst Frontend"
9999
# Uninstall pennylane before updating Catalyst, since pip will not replace two development
100100
# versions of a package with the same version tag (e.g. 0.38-dev0).
101-
$(PYTHON) -m pip uninstall -y pennylane
101+
# TODO: --- enable the following line before merging to main ------------- #
102+
# $(PYTHON) -m pip uninstall -y pennylane
103+
# ------------------------------------------------------------------------ #
102104
$(PYTHON) -m pip install -e . --extra-index-url https://test.pypi.org/simple $(PIP_VERBOSE_FLAG)
103105
rm -r frontend/PennyLane_Catalyst.egg-info
104106

doc/requirements.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ lxml_html_clean
3030

3131
# Pre-install PL development wheels
3232
--extra-index-url https://test.pypi.org/simple/
33-
pennylane-lightning-kokkos==0.40.0-dev41
34-
pennylane-lightning==0.40.0-dev41
35-
pennylane==0.40.0-dev20
33+
pennylane-lightning-kokkos==0.40.0
34+
pennylane-lightning==0.40.0
35+
pennylane @ git+https://github.com/pennylaneAI/pennylane@v0.40.0-rc0

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
pl_version = next((line[10:].strip() for line in lines if "pennylane=" in line), None)
5757
lq_version = next((line[10:].strip() for line in lines if "lightning=" in line), None)
5858

59-
pl_min_release = 0.39
59+
pl_min_release = 0.40
6060
lq_min_release = pl_min_release
6161

6262
if pl_version is not None:

0 commit comments

Comments
 (0)