Skip to content

Commit

Permalink
fix conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
1ucian0 authored and raynelfss committed Dec 12, 2024
1 parent fd01133 commit 7f8cb05
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/python/qpy/test_circuit_load_from_qpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,14 @@ def assert_roundtrip_equal(self, circuit, version=None, use_symengine=None):
self.assert_layout_equal(
circuit, circuit.layout.final_layout, new_circuit, new_circuit.layout.final_layout
)
if version is not None:
qpy_file.seek(0)
file_version = struct.unpack("!6sB", qpy_file.read(7))[1]
self.assertEqual(
version,
file_version,
f"Generated QPY file version {file_version} does not match request version {version}",
)


@ddt
Expand Down

0 comments on commit 7f8cb05

Please sign in to comment.