Skip to content

Commit

Permalink
Update src/qibo/transpiler/placer.py
Browse files Browse the repository at this point in the history
  • Loading branch information
renatomello authored Jun 27, 2024
1 parent 7d5a514 commit d0ae585
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qibo/transpiler/placer.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ def __call__(self, circuit):

if cost == 0:
final_layout = dict(zip(dict_keys, list(mapping.values())))
return {key: value for key, value in sorted(final_layout.items())}
return dict(sorted(final_layout.items()))

if cost < final_cost:
final_graph = graph
Expand Down

0 comments on commit d0ae585

Please sign in to comment.