Skip to content

Commit

Permalink
str qubit update
Browse files Browse the repository at this point in the history
  • Loading branch information
changsookim committed Nov 18, 2024
1 parent bf80e55 commit f74dfa0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/qibo/transpiler/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ def _relabel_connectivity(connectivity, layout):
(dict) the updated connectivity.
"""
node_mapping = {}
layout = dict(
sorted(layout.items(), key=lambda item: int(item[0]))
) # for q_i naming
for i, node in enumerate(list(layout.keys())):
node_mapping[int(node)] = i # for q_i naming
new_connectivity = nx.relabel_nodes(connectivity, node_mapping)
Expand Down

0 comments on commit f74dfa0

Please sign in to comment.