Skip to content

Commit

Permalink
deleted final reference to zephyr nice coordinates
Browse files Browse the repository at this point in the history
  • Loading branch information
boothby committed Nov 29, 2021
1 parent 456c860 commit e235658
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions dwave_networkx/drawing/zephyr_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,7 @@ def zephyr_layout(G, scale=1., center=None, dim=2):
m = G.graph.get('rows')
t = G.graph.get('tile')
coord = zephyr_coordinates(m, t)
if G.graph.get('labels') == 'nice':
pos = {v: xy_coords(*coord.nice_to_zephyr(v)) for v in G.nodes()}
else:
pos = {v: xy_coords(*coord.linear_to_zephyr(v)) for v in G.nodes()}
pos = {v: xy_coords(*coord.linear_to_zephyr(v)) for v in G.nodes()}

return pos

Expand Down Expand Up @@ -276,13 +273,11 @@ def draw_zephyr_yield(G, **kwargs):
m = G.graph['columns']
t = G.graph['tile']
coordinates = G.graph["labels"] == "coordinate"
nice = G.graph["labels"] == "nice"
# Can't interpret fabric_only from graph attributes
except:
raise ValueError("Target zephyr graph needs to have columns, rows, \
tile, and label attributes to be able to identify faulty qubits.")


perfect_graph = zephyr_graph(m, t, coordinates=coordinates, nice_coordinates=nice)
perfect_graph = zephyr_graph(m, t, coordinates=coordinates)

draw_yield(G, zephyr_layout(perfect_graph), perfect_graph, **kwargs)

0 comments on commit e235658

Please sign in to comment.