Skip to content

Update generators submodule#269

Merged
thisac merged 16 commits into
dwavesystems:mainfrom
thisac:upgrade/generators-refactor
Jun 10, 2026
Merged

Update generators submodule#269
thisac merged 16 commits into
dwavesystems:mainfrom
thisac:upgrade/generators-refactor

Conversation

@thisac

@thisac thisac commented May 12, 2026

Copy link
Copy Markdown
Contributor

Update generators submodule in preparation for incoming topology utils.

See #266.

AI Generation Disclosure

GitHub Copilot was used to

  • update docstrings to Google-style, following Ocean conventions
  • add type-hints to all functions and classes

from dwave.graphs.generators.zephyr.graphs import zephyr_graph


class zephyr_coordinates(object):

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is directly copied over from the former zephyr.py, now zephyr/graphs.py below.

@mahdiehmalekian

Copy link
Copy Markdown

Looks good and consistent with the changes needed for the upcoming topology_utils PR to me.

@thisac thisac force-pushed the upgrade/generators-refactor branch from 460da07 to 12b8b1b Compare June 5, 2026 00:45
@thisac thisac force-pushed the upgrade/generators-refactor branch from 12b8b1b to 76e79e8 Compare June 5, 2026 00:45
Comment thread docs/topologies.rst Outdated
Comment thread docs/topologies.rst Outdated
Comment thread docs/topologies.rst Outdated
Comment thread dwave/graphs/algorithms/coloring.py Outdated
Comment thread dwave/graphs/topologies/common.py
Comment thread dwave/graphs/topologies/common/common.py Outdated
@thisac thisac force-pushed the upgrade/generators-refactor branch from 5096f1a to 0a76525 Compare June 10, 2026 03:26
@thisac thisac marked this pull request as ready for review June 10, 2026 03:44
@thisac thisac requested a review from randomir June 10, 2026 03:44

@randomir randomir left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

Just don't forget to fix the tests.

Comment thread dwave/graphs/algorithms/coloring.py Outdated
Comment thread dwave/graphs/topologies/zephyr/coords.py Outdated
Comment thread dwave/graphs/topologies/zephyr/coords.py Outdated
Comment thread dwave/graphs/topologies/zephyr/graphs.py Outdated
Comment thread dwave/graphs/topologies/zephyr/graphs.py Outdated
coordinates:
If :code:`True`, node labels are 5-tuple Zephyr indices.
check_node_list:
If :code:`True`, the ``node_list`` elements are checked for compatibility with

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure why :code: was mixed with the simple double-backtick here and elsewhere, but no harm in keeping it like that.

@thisac thisac Jun 10, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't change this AFAIK

Comment thread dwave/graphs/topologies/pegasus.py Outdated
Comment thread releasenotes/notes/update-generators-submodule-b3b805b61483f4a4.yaml Outdated
Comment thread releasenotes/notes/update-generators-submodule-b3b805b61483f4a4.yaml Outdated
Co-authored-by: Radomir Stevanovic <radomir.stevanovic@gmail.com>
@thisac thisac force-pushed the upgrade/generators-refactor branch from 830e222 to 23049f1 Compare June 10, 2026 23:21
@randomir

Copy link
Copy Markdown
Member

Oh, also forgot to mention, can you add the new coloring methods to the algorithms.rst docs?

thisac and others added 2 commits June 10, 2026 16:38
Co-authored-by: Radomir Stevanovic <radomir.stevanovic@gmail.com>
@thisac thisac merged commit ced6798 into dwavesystems:main Jun 10, 2026
22 checks passed
@thisac thisac deleted the upgrade/generators-refactor branch June 10, 2026 23:53
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.

3 participants