Skip to content

Commit a2e4742

Browse files
authored
Revert "Add call to python compiler (#1715)" (#1760)
**Context:** Wheels are failing. Will investigate tomorrow. Possibly due to xdsl's optional jax dependency.
1 parent 7917096 commit a2e4742

File tree

4 files changed

+3
-13
lines changed

4 files changed

+3
-13
lines changed

.dep-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ 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.42.0-dev33
11+
pennylane=0.42.0-dev27
1212

1313
# For a custom LQ/LK version, update the package version here and at
1414
# 'doc/requirements.txt'

doc/releases/changelog-dev.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22

33
<h3>New features since last release</h3>
44

5-
* Added integration with PennyLane's experimental python compiler based on xDSL.
6-
This allows developers and users to write xDSL transformations that can be used with Catalyst.
7-
[(#1715)](https://github.com/PennyLaneAI/catalyst/pull/1715)
8-
95
* A new compilation pass called :func:`~.passes.ppr_to_ppm` has been added to Catalyst
106
to decompose Pauli product rotations (PPRs), :math:`\exp(-iP_{\{x, y, z\}} \theta)`, into
117
Pauli product measurements (PPMs). Non-Clifford PPR (:math:`\theta = \tfrac{\pi}{8}`) requires

doc/requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,9 @@ mistune==0.8.4
2828
sphinxext-opengraph==0.9.0
2929
matplotlib==3.8.0
3030
lxml_html_clean
31-
xdsl
3231

3332
# Pre-install PL development wheels
3433
--extra-index-url https://test.pypi.org/simple/
3534
pennylane-lightning-kokkos==0.42.0-dev16
3635
pennylane-lightning==0.42.0-dev16
37-
pennylane==0.42.0-dev33
36+
pennylane==0.42.0-dev27

frontend/catalyst/compiler.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828
from os import path
2929
from typing import List, Optional
3030

31-
from pennylane.compiler.python_compiler.impl import Compiler as PythonCompiler
32-
3331
from catalyst.logging import debug_logger, debug_logger_init
3432
from catalyst.pipelines import CompileOptions
3533
from catalyst.utils.exceptions import CompileError
@@ -508,10 +506,7 @@ def run(self, mlir_module, *args, **kwargs):
508506
(str): filename of shared object
509507
"""
510508

511-
if self.is_using_python_compiler():
512-
513-
compiler = PythonCompiler()
514-
mlir_module = compiler.run(mlir_module)
509+
self.is_using_python_compiler()
515510

516511
return self.run_from_ir(
517512
mlir_module.operation.get_asm(

0 commit comments

Comments
 (0)