dwave_networkx.drawing.chimera_layout.draw_chimera_embedding#
- draw_chimera_embedding(G, *args, **kwargs)[source]#
Draws an embedding onto the Chimera graph
G.- Parameters:
G (NetworkX graph) – Chimera graph or a subgraph of a Chimera graph.
emb (dict) – Embedding for all nodes of
Gas a dict of chains of the form{node: chain, ...}. where chains are iterables of qubit labels. Qubits are nodes inG.embedded_graph (NetworkX graph (optional, default None)) – Graph which contains all keys of the
embparameter as nodes. If specified, the edges ofGare considered to be interactions if and only if they exist between two chains of theembparameter and if their keys are connected by an edge in theembedded_graphparameter; only the couplers for edges ofGthat are considered to be interactions are displayed.interaction_edges (list (optional, default None)) – Interactions as a list of edges. If this parameter is specified, only the couplers in the list 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)) – Chain colors associated with each key in the
embparameter as a dict of the form{node: rgba_color, ...}, where colors must be 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 to use for graph
G’s nodes and edges 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 the drawing displays these overlaps 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.