Skip to content

Add topology_utils#266

Open
mahdiehmalekian wants to merge 1 commit intodwavesystems:mainfrom
mahdiehmalekian:topology_utils
Open

Add topology_utils#266
mahdiehmalekian wants to merge 1 commit intodwavesystems:mainfrom
mahdiehmalekian:topology_utils

Conversation

@mahdiehmalekian
Copy link
Copy Markdown

@mahdiehmalekian mahdiehmalekian commented Apr 7, 2026

The added files in dwave/graphs/generators/common provide blueprint classes for working with different aspects of any D-Wave topology.

  • coord.py: Coordinate systems used for node labels.
  • node_edge.py: Nodes and edges.
  • planeshift.py: Displacement of nodes in the Cartesian plane.
  • shape.py: Shape of a graph.
  • topology.py: Constructing a topology graph whose nodes and edges are equipped with all the specific-topology-relevant functionalities.

The added files in dwave/graphs/generators/zephyr, i.e. zcoord.py, znode_edge.py, zplaneshift.py and zshape.py, contain the implementation of the corresponding objects for Zephyr topology. In zephyr.py the class Zephyr has been added that is built on Topology blueprint in dwave/graphs/generators/common/topology.py

In dwave/graphs:

  • tuplelike.py is a helper for working with various objects which can be uniquely identified with a small set of values.

The test suite for these modules is added in tests.

Note: This is an evolution of previous zephyr_utils PR to minorminer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant