Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JMuff22 committed Sep 12, 2024
1 parent 1cc4f43 commit 5fe28d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_iqm_transpilation.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,6 @@ def test_optimize_single_qubit_gates_preserves_layout():
assert optimized_circuit.layout.initial_layout is not None

expected_layout = {0: 0, 1: 1, 2: 2}
actual_layout = {qubit.index: optimized_circuit.layout.initial_layout[qubit] for qubit in optimized_circuit.qubits}
actual_layout = {qubit._index: optimized_circuit.layout.initial_layout[qubit] for qubit in optimized_circuit.qubits}

assert actual_layout == expected_layout

0 comments on commit 5fe28d4

Please sign in to comment.