Skip to content

Commit

Permalink
addapting to Qiskit#12640
Browse files Browse the repository at this point in the history
  • Loading branch information
1ucian0 committed Jun 26, 2024
1 parent 1ed5951 commit 10e5396
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/randomized/test_transpiler_equivalence.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def qasm(self):
"""After each circuit operation, it should be possible to build QASM."""
qasm2.dumps(self.qc)

@precondition(lambda self: any(isinstance(d[0], Measure) for d in self.qc.data))
@precondition(lambda self: any(isinstance(d.operation, Measure) for d in self.qc.data))
@rule(kwargs=transpiler_conf())
def equivalent_transpile(self, kwargs):
"""Simulate, transpile and simulate the present circuit. Verify that the
Expand Down

0 comments on commit 10e5396

Please sign in to comment.