Skip to content

Commit

Permalink
Debug failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
comp-phys-marc committed Jun 19, 2024
1 parent f9bec7e commit ad23512
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/tape/test_qscript.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from pennylane.operation import _UNSET_BATCH_SIZE
from pennylane.tape import QuantumScript
from pennylane.wires import Wires
from pennylane import StatePrep

# pylint: disable=protected-access, unused-argument, too-few-public-methods

Expand All @@ -34,7 +35,6 @@ def test_no_update_empty_initialization(self):
"""Test initialization if nothing is provided and update does not occur."""

qs = QuantumScript()
assert qs.name is None
assert qs._ops == []
assert qs._prep == []
assert qs._measurements == []
Expand Down Expand Up @@ -472,7 +472,7 @@ def make_script(self):
qml.expval(qml.PauliX(-1)),
]

return QuantumScript(ops, measurement, prep)
return QuantumScript(prep + ops, measurement)

def test_measured_wires(self, make_script):
"""Test that measured_wires property is set when called and not before."""
Expand Down

0 comments on commit ad23512

Please sign in to comment.