Utilities#
Decorators#
Decorators allow for input checking and default parameter setting for algorithms.
|
Decorator to validate sampler arguments. |
Graph Indexing#
See Coordinates Conversion on instantiating the needed lattice size and setting correct domain and range for coordinates in a QPU working graph.
For the iterator versions of these functions, see the code.
Chimera#
Convert a 4-term Chimera coordinate to a linear index. |
|
Return a copy of the graph g relabeled to have chimera coordinates |
|
Return a copy of the graph g relabeled to have linear indices |
|
Convert a linear index to a 4-term Chimera coordinate. |
|
|
Yields mappings from a Chimera graph into a larger Chimera graph. |
Attempts to determine the Chimera indices of the nodes in graph G. |
Pegasus#
Return a copy of the graph g relabeled to have linear indices |
|
Return a copy of the graph p relabeled to have nice coordinates |
|
Return a copy of the graph g relabeled to have pegasus coordinates |
|
Convert a linear index into a 5-term nice coordinate. |
|
Convert a linear index into a 4-term Pegasus coordinate. |
|
Convert a 5-term nice coordinate into a linear index. |
|
Convert a 5-term nice coordinate into a 4-term Pegasus coordinate. |
|
Convert a 4-term Pegasus coordinate into a linear index. |
|
Convert a 4-term Pegasus coordinate to a 5-term nice coordinate. |
|
|
Yields mappings from a Chimera or Pegasus graph into a Pegasus graph. |
Zephyr#
Return a copy of the graph g relabeled to have linear indices |
|
Return a copy of the graph g relabeled to have zephyr coordinates |
|
Convert a linear index into a 5-term Zephyr coordinate. |
|
Convert a 5-term Zephyr coordinate into a linear index. |
|
|
Yields mappings from a Chimera or Zephyr graph into a Zephyr graph. |
Exceptions#
Base exceptions and errors for D-Wave NetworkX.
All exceptions are derived from NetworkXException.
Base class for exceptions in DWaveNetworkX. |
|
Exception raised by an algorithm requiring a discrete model sampler when none is provided. |