diff --git a/tests/test_integration.py b/tests/test_integration.py index e58b6bf19..74e6812ed 100644 --- a/tests/test_integration.py +++ b/tests/test_integration.py @@ -272,7 +272,8 @@ def test_load_qasm_from_file(self, tmpdir): with open(apply_hadamard, "w") as f: f.write(TestLoadIntegration.hadamard_qasm) - hadamard = qml.from_qasm_file(apply_hadamard) + with open(apply_hadamard, "r") as f: + hadamard = qml.from_qasm(f.read()) dev = qml.device("default.qubit", wires=2)