Skip to content

Commit 53aae7e

Browse files
Capture mode works with zero wires now (#1947)
**Context:** With PennyLaneAI/pennylane#7978 merged this one should be ok to go **Description of the Change:** **Benefits:** **Possible Drawbacks:** **Related GitHub Issues:** [sc-95511] --------- Co-authored-by: andrijapau <[email protected]> Co-authored-by: Andrija Paurevic <[email protected]>
1 parent 8a199e2 commit 53aae7e

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

.dep-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ enzyme=v0.0.186
99
# Always remove custom PL/LQ versions before release.
1010

1111
# For a custom PL version, update the package version here and at
12-
pennylane=0.43.0.dev9
12+
pennylane=0.43.0.dev24
1313

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

doc/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ lxml_html_clean
3333
--extra-index-url https://test.pypi.org/simple/
3434
pennylane-lightning-kokkos==0.43.0.dev4
3535
pennylane-lightning==0.43.0.dev4
36-
pennylane==0.43.0.dev9
36+
pennylane==0.43.0.dev24

frontend/test/pytest/test_measurements_results.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ class TestSample:
3535
def test_sample_on_0qbits(self):
3636
"""Test sample on 0 qubits."""
3737

38-
if qml.capture.enabled():
39-
pytest.xfail("capture doesn't currently support 0 wires.")
40-
4138
@qjit
4239
@qml.qnode(qml.device("lightning.qubit", wires=0, shots=10))
4340
def sample_0qbit():

frontend/test/pytest/test_quantum_control.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -851,9 +851,9 @@ def test_flatten_unflatten(self):
851851
control_values = (False, False) # (0, 0)
852852
work_wires = qml.wires.Wires(3)
853853
# A work_wire_type will be kept until dynamic qubit allocation is supported in PL
854-
# Default value is "dirty"
854+
# Default value is "borrowed"
855855
# https://github.com/PennyLaneAI/pennylane/pull/7612
856-
work_wire_type = "dirty"
856+
work_wire_type = "borrowed"
857857

858858
op = C_ctrl(target, control_wires, control_values=control_values, work_wires=work_wires)
859859

0 commit comments

Comments
 (0)