Skip to content

Commit 71d8957

Browse files
Hack jax and catalyst
1 parent b84f33b commit 71d8957

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

lib/qml/lib/cmds.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def pip_install(
6262
requirements: Path to a requirements file
6363
constraints: Path to a constriants file
6464
quiet: Whether to suppress output to stdout
65-
pre: Include pre-release versions of pacakges
65+
pre: Include pre-release versions of packages
6666
6767
6868
Raises:

lib/qml/lib/demo.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,22 @@ def _build_demo(
272272
quiet=False,
273273
pre=dev,
274274
)
275+
276+
# We have compatibility issues in dev priori to the v0.42.0 release of
277+
# PennyLane. Dealing with this in a one-off way for now.
278+
if dev and execute:
279+
cmds.pip_install(
280+
build_venv.python,
281+
"--upgrade",
282+
"--extra-index-url",
283+
"https://test.pypi.org/simple/",
284+
"PennyLane-Catalyst",
285+
"jax==0.6.0",
286+
"jaxlib==0.6.0",
287+
use_uv=False,
288+
quiet=False,
289+
pre=True,
290+
)
275291

276292
stage_dir = ctx.build_dir / "demonstrations"
277293
fs.clean_dir(stage_dir)

0 commit comments

Comments
 (0)