Skip to content

Commit c367a56

Browse files
Adjust the usage of ControlledQubitUnitary (#1483)
**Context:** PennyLaneAI/pennylane#6839 In the PR above PL deprecated the interface of `ControlledQubitUnitary(base, control_wires, wires=target_wires)` and use the new interface `ControlledQubitUnitary(base, wires)`. Here we need to adjust the corresponding usage in Catalyst. **Description of the Change:** frontend/test/pytest/device/test_decomposition.py ln52 **Benefits:** **Possible Drawbacks:** **Related GitHub Issues:** [sc-80842] --------- Co-authored-by: Alex Preciado <[email protected]>
1 parent d7391b2 commit c367a56

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

.dep-versions

+1-1
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.41.0-dev15
11+
pennylane=0.41.0-dev20
1212

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

doc/releases/changelog-dev.md

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555

5656
This release contains contributions from (in alphabetical order):
5757

58+
Yushao Chen,
5859
Sengthai Heng,
5960
Christina Lee,
6061
Mehrdad Malekmohammadi,

doc/requirements.txt

+1-1
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
3434
pennylane-lightning==0.40.0
35-
pennylane==0.41.0-dev15
35+
pennylane==0.41.0-dev20

frontend/test/pytest/device/test_decomposition.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class TestGateAliases:
4949
qml.CRZ(0.1, wires=[0, 1]),
5050
qml.CRot(0.1, 0.2, 0.3, wires=[0, 1]),
5151
qml.ControlledPhaseShift(0.1, wires=[0, 1]),
52-
qml.ControlledQubitUnitary([[1, 0], [0, 1j]], control_wires=1, wires=0),
52+
qml.ControlledQubitUnitary([[1, 0], [0, 1j]], wires=[1, 0]),
5353
)
5454
control_base_ops = (
5555
qml.PauliX,

0 commit comments

Comments
 (0)