From 0d4add2bfc0617458a2a06247f1c57359e457364 Mon Sep 17 00:00:00 2001 From: Arianne Meijer Date: Thu, 12 Dec 2024 18:52:18 +0200 Subject: [PATCH] Removed flaky duplicated assert --- tests/test_iqm_transpilation.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tests/test_iqm_transpilation.py b/tests/test_iqm_transpilation.py index 66b898a1..862c569e 100644 --- a/tests/test_iqm_transpilation.py +++ b/tests/test_iqm_transpilation.py @@ -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'))