dwave.system.samplers.qpu_graph#
- qpu_graph(topology_type, topology_shape, nodelist, edgelist)[source]#
Convert node and edge lists to a
dwave-graphsgraph.Creates a QPU topology (Chimera, Pegasus or Zephyr) graph compatible with Ocean software’s dwave-graphs.
- Parameters:
topology_type (string) – Type of lattice. Valid strings are
'chimera','pegasus'and'zephyr'.topology_shape (iterable of ints) – Dimensions of the lattice.
nodelist (list of ints) – List of nodes in the graph. Node labeling is integer and compatible with the linear labeling scheme for the specified
topology_type.edgelist (list of Tuples) – List of edges in the graph, with each edge consisting of a pair of nodes.
See also
chimera_graph(),pegasus_graph(),zephyr_graph()for descriptions of the lattice parameters and indexing.