Skip to content

Commit

Permalink
Doctest fix. (#2987)
Browse files Browse the repository at this point in the history
Adds the fix prescribed in #2925.
  • Loading branch information
95-martin-orion committed May 8, 2020
1 parent 32c769f commit f0be329
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cirq/contrib/routing/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ def nx_qubit_layout(graph: nx.Graph) \
>>> import cirq.contrib.routing as ccr
>>> import networkx as nx
>>> import matplotlib.pyplot as plt
>>> # Clear plot state to prevent issues with pyplot dimensionality.
>>> plt.clf()
>>> g = ccr.xmon_device_to_graph(cirq.google.Foxtail)
>>> pos = ccr.nx_qubit_layout(g)
>>> nx.draw_networkx(g, pos=pos)
Expand Down

0 comments on commit f0be329

Please sign in to comment.