Skip to content

Commit

Permalink
Merge pull request #1514 from qiboteam/fix/transpiler_temp
Browse files Browse the repository at this point in the history
Temporary fix for `q{i}` mapping
  • Loading branch information
csookim authored Nov 8, 2024
2 parents 05b57e9 + 607e773 commit fb5311e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/qibo/backends/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,9 @@ def _default_transpiler(cls):
edges = [
(node_mapping[e[0]], node_mapping[e[1]]) for e in connectivity_edges
]
connectivity = nx.Graph(edges)
connectivity = nx.Graph()
connectivity.add_nodes_from(list(node_mapping.values()))
connectivity.add_edges_from(edges)

return Passes(
connectivity=connectivity,
Expand Down

0 comments on commit fb5311e

Please sign in to comment.