Skip to content

Commit

Permalink
Remove use of from_qasm_file (#501)
Browse files Browse the repository at this point in the history
  • Loading branch information
astralcai authored Mar 12, 2024
1 parent b8b940d commit 84ee2ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 84ee2ba

Please sign in to comment.