diff --git a/src/qibo/transpiler/placer.py b/src/qibo/transpiler/placer.py index e2cfc89de6..bfc458799d 100644 --- a/src/qibo/transpiler/placer.py +++ b/src/qibo/transpiler/placer.py @@ -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