dwave_networkx.drawing.zephyr_layout.draw_zephyr_embedding#
- draw_zephyr_embedding(G, *args, **kwargs)[source]#
Draws an embedding onto a Zephyr graph
G.- Parameters:
G (NetworkX graph) – Zephyr graph or a subgraph of a Zephyr graph as produced by the
dwave_networkx.zephyr_graph()function.emb (dict) – Minor-embedding as a dict of the form
{node: chain, ...}, wherenodeis nodes inGandchainis iterables of qubit labels.embedded_graph (NetworkX graph (optional, default None)) – Graph that contains all keys of the
embparameter as nodes. If specified, the edges ofGare considered interactions if and only if (1) they exist between two chains of theembparameter and (2) the keys of the corresponding chains are connected by an edge in the given graph. If given, only the couplers between chains based on this graph are displayed.interaction_edges (list (optional, default None)) – Interactions as a list of edges. If specified, only these couplers are displayed.
show_labels (boolean (optional, default False)) – If True, each chain in the
embparameter is labelled with its key.chain_color (dict (optional, default None)) – Colors as a dict of the form
{node: rgba_color, ...}associated with each key in theembparameter, where colors are length-4 tuples of floats between 0 and 1, inclusive. If None, each chain is assigned a different color.unused_color (tuple (optional, default (0.9,0.9,0.9,1.0))) – Color for graph
G’s nodes that are not part of chains and edges that are neither chain edges nor interactions. If None, these nodes and edges are not shown.overlapped_embedding (boolean (optional, default False)) – If True, chains in the
embparameter may overlap (contain the same vertices inG), and these overlaps are displayed as concentric circles.kwargs (optional keywords) – Parameters in
draw_networkx(), except for theposparameter. If thelinear_biasesorquadratic_biasesparameters are specified, thedraw_networkx()node_colororedge_colorparameters are ignored.