From d0ae585c2063f5fb926596770b9a0228a19bfaad Mon Sep 17 00:00:00 2001 From: Renato Mello Date: Thu, 27 Jun 2024 16:30:32 +0000 Subject: [PATCH] Update src/qibo/transpiler/placer.py --- src/qibo/transpiler/placer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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