Skip to content

Commit

Permalink
Removed flaky duplicated assert
Browse files Browse the repository at this point in the history
  • Loading branch information
Arianne Meijer committed Dec 12, 2024
1 parent e2e52a4 commit 0d4add2
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions tests/test_iqm_transpilation.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,3 @@ def test_optimize_single_qubit_gates_preserves_layout(backend):
layout = transpiled_circuit.layout
qc_optimized = optimize_single_qubit_gates(transpiled_circuit)
assert layout == qc_optimized.layout
# Transpile automatically runs the optimization pass followed by move gate transpilation,
# so the two circuits should be exactly the same if there are no moves.
# Otherwise, some MoveGate and RGate might be swapped when drawing the circuit
if 'move' not in transpiled_circuit.count_ops():
assert str(transpiled_circuit.draw(output='text')) == str(qc_optimized.draw(output='text'))

0 comments on commit 0d4add2

Please sign in to comment.