Skip to content

Commit 90e3c82

Browse files
albi3rodime10
andauthored
Update from_plxpr to use PlxprInterpreter base class (#1398)
**Context:** When `from_plxpr` was added, we did not have any other plxpr interpreters or frameworks for them. Now we have the `PlxprInterpreter` class that handles a lot of the infrastructure for converting plxpr to catalxpr. **Description of the Change:** Uses the `PlxprInterpreter` class to cut down on repeated code and infrastructure in the `from_plxpr` implementation. This also makes it to the interpreters follow the same pattern as other plxpr interpreters. **Benefits:** **Possible Drawbacks:** **Related GitHub Issues:** [sc-81469] --------- Co-authored-by: David Ittah <dime10@users.noreply.github.com>
1 parent a15c320 commit 90e3c82

File tree

5 files changed

+187
-292
lines changed

5 files changed

+187
-292
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.40.0-dev20
11+
pennylane=0.40.0-dev51
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: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,13 @@
1212

1313
<h3>Internal changes ⚙️</h3>
1414

15+
* `from_plxpr` now uses the `qml.capture.PlxprInterpreter` class for reduced code duplication.
16+
[(#1398)](https://github.com/PennyLaneAI/catalyst/pull/1398)
17+
1518
<h3>Documentation 📝</h3>
1619

1720
<h3>Contributors ✍️</h3>
1821

1922
This release contains contributions from (in alphabetical order):
23+
24+
Christina Lee

doc/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ lxml_html_clean
3232
--extra-index-url https://test.pypi.org/simple/
3333
pennylane-lightning-kokkos==0.40.0-dev41
3434
pennylane-lightning==0.40.0-dev41
35-
pennylane==0.40.0-dev20
35+
pennylane==0.40.0-dev51

0 commit comments

Comments
 (0)