Skip to content

Commit

Permalink
Bump PennyLane and Lightning minimum versions for Catalyst v0.10.0 (#…
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
joeycarter authored Jan 14, 2025
1 parent ec5eb02 commit 2c441bf
Show file tree
Hide file tree
Showing 9 changed files with 45 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .dep-versions
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ enzyme=v0.0.149

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


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

5 changes: 5 additions & 0 deletions .github/workflows/build-wheel-linux-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,11 @@ jobs:
- name: Install Catalyst
run: |
# TODO: --- remove workaround before merging to main ----------------- #
pip install --extra-index-url=https://test.pypi.org/simple/ PennyLane-Lightning==0.40.0
pip install --extra-index-url=https://test.pypi.org/simple/ PennyLane-Lightning-Kokkos==0.40.0
pip install git+https://github.com/PennyLaneAI/[email protected]
# -------------------------------------------------------------------- #
python${{ matrix.python_version }} -m pip install dist/*.whl --extra-index-url https://test.pypi.org/simple
- name: Install Standalone Plugin
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/build-wheel-macos-arm64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,11 @@ jobs:
- name: Install Catalyst
run: |
# TODO: --- remove workaround before merging to main ----------------- #
pip install --extra-index-url=https://test.pypi.org/simple/ PennyLane-Lightning==0.40.0
pip install --extra-index-url=https://test.pypi.org/simple/ PennyLane-Lightning-Kokkos==0.40.0
pip install git+https://github.com/PennyLaneAI/[email protected]
# -------------------------------------------------------------------- #
python${{ matrix.python_version }} -m pip install dist/*.whl --extra-index-url https://test.pypi.org/simple
- name: Install Standalone Plugin
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/build-wheel-macos-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,11 @@ jobs:
- name: Install Catalyst
run: |
# TODO: --- remove workaround before merging to main ----------------- #
pip install --extra-index-url=https://test.pypi.org/simple/ PennyLane-Lightning==0.40.0
pip install --extra-index-url=https://test.pypi.org/simple/ PennyLane-Lightning-Kokkos==0.40.0
pip install git+https://github.com/PennyLaneAI/[email protected]
# -------------------------------------------------------------------- #
python${{ matrix.python_version }} -m pip install dist/*.whl --extra-index-url https://test.pypi.org/simple
- name: Install Standalone Plugin
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/check-catalyst.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,11 @@ jobs:
# macOS requirements.txt
python3 -m pip install cuda-quantum==0.6.0
python3 -m pip install oqc-qcaas-client
# TODO: --- remove workaround before merging to main ----------------- #
pip install --extra-index-url=https://test.pypi.org/simple/ PennyLane-Lightning==0.40.0
pip install --extra-index-url=https://test.pypi.org/simple/ PennyLane-Lightning-Kokkos==0.40.0
pip install git+https://github.com/PennyLaneAI/[email protected]
# -------------------------------------------------------------------- #
make frontend
- name: Get Cached LLVM Build
Expand Down Expand Up @@ -524,6 +529,11 @@ jobs:
sudo apt-get install -y python3 python3-pip libomp-dev libasan6 make ninja-build
python3 --version | grep ${{ needs.constants.outputs.primary_python_version }}
python3 -m pip install -r requirements.txt
# TODO: --- remove workaround before merging to main ----------------- #
pip install --extra-index-url=https://test.pypi.org/simple/ PennyLane-Lightning==0.40.0
pip install --extra-index-url=https://test.pypi.org/simple/ PennyLane-Lightning-Kokkos==0.40.0
pip install git+https://github.com/PennyLaneAI/[email protected]
# -------------------------------------------------------------------- #
make frontend
- name: Get Cached LLVM Build
Expand Down Expand Up @@ -588,6 +598,11 @@ jobs:
sudo apt-get install -y python3 python3-pip libomp-dev libasan6 make ninja-build
python3 --version | grep ${{ needs.constants.outputs.primary_python_version }}
python3 -m pip install -r requirements.txt
# TODO: --- remove workaround before merging to main ----------------- #
pip install --extra-index-url=https://test.pypi.org/simple/ PennyLane-Lightning==0.40.0
pip install --extra-index-url=https://test.pypi.org/simple/ PennyLane-Lightning-Kokkos==0.40.0
pip install git+https://github.com/PennyLaneAI/[email protected]
# -------------------------------------------------------------------- #
make frontend
- name: Get Cached LLVM Build
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/scripts/linux_arm64/rh8/test_wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ export PATH=/catalyst/llvm-build/bin:/opt/_internal/cpython-${PYTHON_MAJOR_MINOR
/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'
/usr/bin/python3 -m pip install oqc-qcaas-client

# TODO: --- remove workaround before merging to main ----------------- #
pip install --extra-index-url=https://test.pypi.org/simple/ PennyLane-Lightning==0.40.0
pip install --extra-index-url=https://test.pypi.org/simple/ PennyLane-Lightning-Kokkos==0.40.0
pip install git+https://github.com/PennyLaneAI/[email protected]
# -------------------------------------------------------------------- #

# Install Catalyst wheel
/usr/bin/python3 -m pip install /catalyst/dist/*.whl --extra-index-url https://test.pypi.org/simple

Expand Down
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ frontend:
@echo "install Catalyst Frontend"
# Uninstall pennylane before updating Catalyst, since pip will not replace two development
# versions of a package with the same version tag (e.g. 0.38-dev0).
$(PYTHON) -m pip uninstall -y pennylane
# TODO: --- enable the following line before merging to main ------------- #
# $(PYTHON) -m pip uninstall -y pennylane
# ------------------------------------------------------------------------ #
$(PYTHON) -m pip install -e . --extra-index-url https://test.pypi.org/simple $(PIP_VERBOSE_FLAG)
rm -r frontend/PennyLane_Catalyst.egg-info

Expand Down
6 changes: 3 additions & 3 deletions doc/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ lxml_html_clean

# Pre-install PL development wheels
--extra-index-url https://test.pypi.org/simple/
pennylane-lightning-kokkos==0.40.0-dev41
pennylane-lightning==0.40.0-dev41
pennylane==0.40.0-dev20
pennylane-lightning-kokkos==0.40.0
pennylane-lightning==0.40.0
pennylane @ git+https://github.com/pennylaneAI/pennylane@v0.40.0-rc0
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
pl_version = next((line[10:].strip() for line in lines if "pennylane=" in line), None)
lq_version = next((line[10:].strip() for line in lines if "lightning=" in line), None)

pl_min_release = 0.39
pl_min_release = 0.40
lq_min_release = pl_min_release

if pl_version is not None:
Expand Down

0 comments on commit 2c441bf

Please sign in to comment.