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 d0ae585 commit db6e79a
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 @@ -360,7 +360,7 @@ def __call__(self, circuit):
final_cost = cost

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

def _cost(self, graph: nx.Graph, gates_qubits_pairs: list):
"""
Expand Down

0 comments on commit db6e79a

Please sign in to comment.