Skip to content

Commit acb533a

Browse files
Sync constraints post release (#1444)
**Title:** Bumping `deps` for `qml-v2` post PL release. **Summary:** Updates dependencies specific to QML V2 builds --------- Co-authored-by: doctorperceptron <paul@xanadu.ai>
1 parent c5f40d4 commit acb533a

6 files changed

Lines changed: 121 additions & 94 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
qrisp>=0.6.1
1+
qrisp
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
quimb==1.8.2
1+
# Specifys a range of versions for the quimb package required for this demonstration.
2+
quimb>=1.8.2,<1.12.0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
flax==0.9.0
1+
flax==0.10.6
22
optax
33
qutip==4.7.3
44
scipy<1.12 # required by qutip

dependencies/constraints-dev.txt

Lines changed: 35 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,49 @@
33
--extra-index-url https://test.pypi.org/simple/
44
--extra-index-url https://download.pytorch.org/whl/cpu
55

6-
pennylane @ git+https://github.com/PennyLaneAI/pennylane.git@v0.42.0-rc0#egg=pennylane
6+
pennylane @ git+https://github.com/PennyLaneAI/pennylane.git#egg=pennylane
77
pennylane-cirq @ git+https://github.com/PennyLaneAI/pennylane-cirq.git#egg=pennylane-cirq
88
pennylane-qiskit @ git+https://github.com/PennyLaneAI/pennylane-qiskit.git#egg=pennylane-qiskit
99
pennylane-qulacs @ git+https://github.com/PennyLaneAI/pennylane-qulacs.git#egg=pennylane-qulacs
1010
iqpot @ git+https://github.com/XanaduAI/iqpopt.git#egg=iqpopt
1111
pennylane-catalyst
1212
pennylane-lightning
1313

14+
# TODO: Remove these and keep the ones below after testing QML pipeline v2
15+
# chex<1.0.0
16+
# cirq-core==1.4.1
17+
# pyqrack==1.32.12
18+
# numpy~=1.24
19+
# matplotlib==3.7.2
20+
# jax==0.4.28
21+
# jaxlib==0.4.28
22+
# jaxopt==0.8.4
23+
# aiohttp==3.9.5
24+
# fastapi<1.0.0
25+
# fsspec==2024.6.1
26+
# h5py==3.11.0
27+
# openfermionpyscf==0.5
28+
# openqaoa-core==0.2.5
29+
# qiskit>=1.0.0
30+
# qiskit-aer>=0.14.0,<0.16.0
31+
# qiskit_ibm_runtime==0.29.0
32+
# torch==2.1.2+cpu ; sys_platform != 'darwin'
33+
# torch==2.1.2 ; sys_platform == 'darwin'
34+
# torchvision==0.16.2+cpu ; sys_platform != 'darwin'
35+
# torchvision==0.16.2 ; sys_platform == 'darwin'
36+
# tensorflow==2.16.2
37+
# typing-extensions==4.14.0
38+
# optax==0.2.3
39+
# quimb==1.8.2
40+
# kahypar==1.1.7
41+
1442
chex<1.0.0
15-
cirq-core==1.4.1
1643
pyqrack==1.32.12
1744
numpy~=1.24
1845
matplotlib==3.7.2
19-
jax==0.4.28
20-
jaxlib==0.4.28
21-
jaxopt==0.8.4
46+
jax==0.6.0
47+
jaxlib==0.6.0
48+
jaxopt==0.8.5
2249
aiohttp==3.9.5
2350
fastapi<1.0.0
2451
fsspec==2024.6.1
@@ -32,8 +59,7 @@ torch==2.1.2+cpu ; sys_platform != 'darwin'
3259
torch==2.1.2 ; sys_platform == 'darwin'
3360
torchvision==0.16.2+cpu ; sys_platform != 'darwin'
3461
torchvision==0.16.2 ; sys_platform == 'darwin'
35-
tensorflow==2.16.2
36-
typing-extensions==4.14.0
37-
optax==0.2.3
38-
quimb==1.8.2
62+
tensorflow==2.19
63+
optax==0.2.4
64+
quimb==1.11.0
3965
kahypar==1.1.7
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
# Specifies global constraints for the stable build
22
--extra-index-url https://download.pytorch.org/whl/cpu
3-
pennylane==0.41.0
4-
pennylane-cirq==0.41.0
5-
pennylane-qiskit==0.41.0
6-
pennylane-qulacs==0.41.0
7-
pennylane-catalyst==0.11.0
3+
pennylane==0.42.0
4+
pennylane-cirq==0.42.0
5+
pennylane-qiskit==0.42.0
6+
pennylane-qulacs==0.42.0
7+
pennylane-catalyst==0.12.0
88
pennylane-qrack==0.11.1
99

1010
chex<1.0.0
1111
pyqrack==1.32.12
1212
numpy~=1.24
1313
matplotlib==3.7.2
14-
jax==0.4.28
15-
jaxlib==0.4.28
16-
jaxopt==0.8.3
14+
jax==0.6.0
15+
jaxlib==0.6.0
16+
jaxopt==0.8.5
1717
aiohttp==3.9.5
1818
fsspec==2024.6.1
1919
h5py==3.11.0
@@ -26,7 +26,7 @@ torch==2.1.2+cpu ; sys_platform != 'darwin'
2626
torch==2.1.2 ; sys_platform == 'darwin'
2727
torchvision==0.16.2+cpu ; sys_platform != 'darwin'
2828
torchvision==0.16.2 ; sys_platform == 'darwin'
29-
tensorflow==2.14.1
30-
optax==0.2.3
31-
quimb==1.8.2
29+
tensorflow==2.19
30+
optax==0.2.4
31+
quimb==1.11.0
3232
kahypar==1.1.7

lib/qml/lib/demo.py

Lines changed: 71 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -278,77 +278,77 @@ def _build_demo(
278278
# and various plugins.
279279
# TODO: See if we can clean this up and streamline in the future...
280280
# TODO: Remove RC branch for PennyLane install post-release.
281-
if dev and execute:
282-
# Cirq
283-
cmds.pip_install(
284-
build_venv.python,
285-
"--upgrade",
286-
"git+https://github.com/PennyLaneAI/pennylane-cirq.git#egg=pennylane-cirq",
287-
use_uv=False,
288-
quiet=False,
289-
)
290-
# Qiskit
291-
cmds.pip_install(
292-
build_venv.python,
293-
"--upgrade",
294-
"git+https://github.com/PennyLaneAI/pennylane-qiskit.git#egg=pennylane-qiskit",
295-
use_uv=False,
296-
quiet=False,
297-
)
298-
# Qulacs
299-
cmds.pip_install(
300-
build_venv.python,
301-
"--upgrade",
302-
"git+https://github.com/PennyLaneAI/pennylane-qulacs.git#egg=pennylane-qulacs",
303-
use_uv=False,
304-
quiet=False,
305-
)
306-
# Catalyst
307-
cmds.pip_install(
308-
build_venv.python,
309-
"--upgrade",
310-
"--extra-index-url",
311-
"https://test.pypi.org/simple/",
312-
"PennyLane-Catalyst",
313-
use_uv=False,
314-
quiet=False,
315-
pre=True,
316-
)
317-
# Lightning
318-
cmds.pip_install(
319-
build_venv.python,
320-
"--upgrade",
321-
"--extra-index-url",
322-
"https://test.pypi.org/simple/",
323-
"PennyLane-Lightning",
324-
use_uv=False,
325-
quiet=False,
326-
pre=True,
327-
)
328-
# PennyLane
329-
cmds.pip_install(
330-
build_venv.python,
331-
"--upgrade",
332-
"git+https://github.com/PennyLaneAI/pennylane.git@v0.42.0-rc0#egg=pennylane",
333-
use_uv=False,
334-
quiet=False,
335-
)
336-
# Iqpopt
337-
cmds.pip_install(
338-
build_venv.python,
339-
"--upgrade",
340-
"git+https://github.com/XanaduAI/iqpopt.git#egg=iqpopt",
341-
use_uv=False,
342-
quiet=False,
343-
)
344-
# We need to bump flax here, after Jax has been bumped by Catalyst
345-
cmds.pip_install(
346-
build_venv.python,
347-
"--upgrade",
348-
"flax==0.10.6",
349-
use_uv=False,
350-
quiet=False,
351-
)
281+
# if dev and execute:
282+
# # Cirq
283+
# cmds.pip_install(
284+
# build_venv.python,
285+
# "--upgrade",
286+
# "git+https://github.com/PennyLaneAI/pennylane-cirq.git#egg=pennylane-cirq",
287+
# use_uv=False,
288+
# quiet=False,
289+
# )
290+
# # Qiskit
291+
# cmds.pip_install(
292+
# build_venv.python,
293+
# "--upgrade",
294+
# "git+https://github.com/PennyLaneAI/pennylane-qiskit.git#egg=pennylane-qiskit",
295+
# use_uv=False,
296+
# quiet=False,
297+
# )
298+
# # Qulacs
299+
# cmds.pip_install(
300+
# build_venv.python,
301+
# "--upgrade",
302+
# "git+https://github.com/PennyLaneAI/pennylane-qulacs.git#egg=pennylane-qulacs",
303+
# use_uv=False,
304+
# quiet=False,
305+
# )
306+
# # Catalyst
307+
# cmds.pip_install(
308+
# build_venv.python,
309+
# "--upgrade",
310+
# "--extra-index-url",
311+
# "https://test.pypi.org/simple/",
312+
# "PennyLane-Catalyst",
313+
# use_uv=False,
314+
# quiet=False,
315+
# pre=True,
316+
# )
317+
# # Lightning
318+
# cmds.pip_install(
319+
# build_venv.python,
320+
# "--upgrade",
321+
# "--extra-index-url",
322+
# "https://test.pypi.org/simple/",
323+
# "PennyLane-Lightning",
324+
# use_uv=False,
325+
# quiet=False,
326+
# pre=True,
327+
# )
328+
# # PennyLane
329+
# cmds.pip_install(
330+
# build_venv.python,
331+
# "--upgrade",
332+
# "git+https://github.com/PennyLaneAI/pennylane.git@v0.42.0-rc0#egg=pennylane",
333+
# use_uv=False,
334+
# quiet=False,
335+
# )
336+
# # Iqpopt
337+
# cmds.pip_install(
338+
# build_venv.python,
339+
# "--upgrade",
340+
# "git+https://github.com/XanaduAI/iqpopt.git#egg=iqpopt",
341+
# use_uv=False,
342+
# quiet=False,
343+
# )
344+
# # We need to bump flax here, after Jax has been bumped by Catalyst
345+
# cmds.pip_install(
346+
# build_venv.python,
347+
# "--upgrade",
348+
# "flax==0.10.6",
349+
# use_uv=False,
350+
# quiet=False,
351+
# )
352352

353353
stage_dir = ctx.build_dir / "demonstrations"
354354
fs.clean_dir(stage_dir)

0 commit comments

Comments
 (0)