Skip to content

Commit a98d629

Browse files
committed
use qpy compatibility version
1 parent cca87a2 commit a98d629

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/python/qpy/test_circuit_load_from_qpy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def _define(self):
268268
qc.append(MyParamGate(theta), [0])
269269
qc.append(MyParamGate(two_theta), [0])
270270
with io.BytesIO() as qpy_file:
271-
dump(qc, qpy_file, version=10)
271+
dump(qc, qpy_file, version=QPY_COMPATIBILITY_VERSION)
272272
qpy_file.seek(0)
273273
new_circ = load(qpy_file)[0]
274274
# Custom gate classes are lowered to Gate to avoid arbitrary code

0 commit comments

Comments
 (0)