Skip to content

Commit

Permalink
Add measurements keyword argument (#565)
Browse files Browse the repository at this point in the history
  • Loading branch information
astralcai authored Jun 21, 2024
1 parent a5415ae commit f50b76d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def test_load_from_qasm_string(self):

@qml.qnode(dev)
def loaded_quantum_circuit():
qml.from_qasm(TestLoadIntegration.hadamard_qasm)(wires=[0])
qml.from_qasm(TestLoadIntegration.hadamard_qasm, measurements=[])(wires=[0])
return qml.expval(qml.PauliZ(0))

@qml.qnode(dev)
Expand All @@ -325,7 +325,7 @@ def test_load_qasm_from_file(self, tmpdir):
f.write(TestLoadIntegration.hadamard_qasm)

with open(apply_hadamard, "r", encoding="utf") as f:
hadamard = qml.from_qasm(f.read())
hadamard = qml.from_qasm(f.read(), measurements=[])

dev = qml.device("default.qubit", wires=2)

Expand Down

0 comments on commit f50b76d

Please sign in to comment.