From f50b76d62d6670c78f97556fd709158ada3bee47 Mon Sep 17 00:00:00 2001 From: Astral Cai Date: Fri, 21 Jun 2024 10:04:10 -0400 Subject: [PATCH] Add measurements keyword argument (#565) --- tests/test_integration.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_integration.py b/tests/test_integration.py index f8fe2ef83..39d7f93f3 100644 --- a/tests/test_integration.py +++ b/tests/test_integration.py @@ -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) @@ -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)