Skip to content

Commit

Permalink
Merge pull request #63 from Qiskit-Partners/fixes
Browse files Browse the repository at this point in the history
update tests for latest Qiskit
  • Loading branch information
nonhermitian committed Aug 29, 2023
2 parents d6dd17c + 84003b4 commit ed29c91
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mapomatic/tests/test_best_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ def test_best_mapping_ghz_state_deflate_multiple_registers():
small_circ = mm.deflate_circuit(trans_qc)
backends = [FakeBelem(), FakeQuito(), FakeLima()]
res = mm.best_overall_layout(small_circ, backends, successors=True)
expected_res = [([0, 1, 2, 3], 'fake_lima', 0.13133288833556145),
([2, 1, 3, 0], 'fake_belem', 0.16103780370236487),
([3, 1, 0, 2], 'fake_quito', 0.29391929118639826)]
expected_res = [([0, 1, 3, 2], 'fake_lima', 0.13133288833556145),
([2, 1, 0, 3], 'fake_belem', 0.16103780370236487),
([3, 1, 2, 0], 'fake_quito', 0.29391929118639826)]
for index, expected in enumerate(expected_res):
assert res[index][0] == expected[0]
assert res[index][1] == expected[1]
Expand Down

0 comments on commit ed29c91

Please sign in to comment.