Skip to content
Open
Show file tree
Hide file tree
Changes from 70 commits
Commits
Show all changes
128 commits
Select commit Hold shift + click to select a range
4c7a75a
Initial commit
Mar 13, 2025
2628061
Reformat
Mar 13, 2025
ef9f800
Reformat
Mar 13, 2025
a394ead
Allow Edge input to be any type, not just int + Add check_edge_valid …
Mar 22, 2025
cdeeff8
Turn off check_edge_valid flag for _edges attribute in ZSurvey
Mar 22, 2025
e6eca6d
Correct header
Apr 4, 2025
20b79d0
Add NodeKind and EdgeKind and adjust; Add document
Apr 9, 2025
4a699f2
Reformat
Apr 9, 2025
fd78154
Explicitly return None
Apr 9, 2025
9f7e5ab
Simplify, Add space
Apr 9, 2025
13a29b4
Clarify arguments
mahdiehmalekian Apr 9, 2025
a15e92b
Capitalize
mahdiehmalekian Apr 9, 2025
94e85be
Update minorminer/utils/zephyr/node_edge.py
mahdiehmalekian Apr 9, 2025
904a4a3
Update minorminer/utils/zephyr/node_edge.py
mahdiehmalekian Apr 9, 2025
bb8afc9
Update minorminer/utils/zephyr/node_edge.py
mahdiehmalekian Apr 9, 2025
0f4a1bd
Update minorminer/utils/zephyr/node_edge.py
mahdiehmalekian Apr 9, 2025
c53380d
Update minorminer/utils/zephyr/node_edge.py
mahdiehmalekian Apr 9, 2025
974489c
Clarify documentation, set shape in init
Apr 9, 2025
70d84ed
Add doc to EdgeKind, NodeKind, clarify doc re. direction, Change name
Apr 9, 2025
03765f1
Edit document
Apr 11, 2025
edfde0f
Change nbr_kind argument type
Apr 11, 2025
7a8da7e
Add edge_kind to ZEdge
Apr 11, 2025
f525e25
Disable changing znodes of QuoTile, change Dim to Dim_2D
Apr 25, 2025
d496bfc
Update minorminer/utils/zephyr/node_edge.py
mahdiehmalekian Apr 30, 2025
b415ad3
Update minorminer/utils/zephyr/node_edge.py
mahdiehmalekian Apr 30, 2025
bd461a4
Update minorminer/utils/zephyr/node_edge.py
mahdiehmalekian Apr 30, 2025
4a1f63d
Update minorminer/utils/zephyr/node_edge.py
mahdiehmalekian Apr 30, 2025
e1ea6c6
Update minorminer/utils/zephyr/plane_shift.py
mahdiehmalekian Apr 30, 2025
36f39c7
Update minorminer/utils/zephyr/plane_shift.py
mahdiehmalekian Apr 30, 2025
0f3c70d
Update minorminer/utils/zephyr/plane_shift.py
mahdiehmalekian Apr 30, 2025
04df704
Update minorminer/utils/zephyr/plane_shift.py
mahdiehmalekian Apr 30, 2025
abd56fa
Update minorminer/utils/zephyr/plane_shift.py
mahdiehmalekian Apr 30, 2025
1bc85f0
Update minorminer/utils/zephyr/plane_shift.py
mahdiehmalekian Apr 30, 2025
4f86bdc
Update minorminer/utils/zephyr/plane_shift.py
mahdiehmalekian Apr 30, 2025
5c1c0f1
Update minorminer/utils/zephyr/plane_shift.py
mahdiehmalekian Apr 30, 2025
9c2b0c8
Update minorminer/utils/zephyr/survey.py
mahdiehmalekian Apr 30, 2025
7c29e5f
Update minorminer/utils/zephyr/survey.py
mahdiehmalekian Apr 30, 2025
2479071
Update minorminer/utils/zephyr/survey.py
mahdiehmalekian Apr 30, 2025
eee8d40
Update minorminer/utils/zephyr/survey.py
mahdiehmalekian Apr 30, 2025
e2a891b
Update minorminer/utils/zephyr/survey.py
mahdiehmalekian Apr 30, 2025
e05fe41
Update minorminer/utils/zephyr/survey.py
mahdiehmalekian Apr 30, 2025
db9b0d9
Update minorminer/utils/zephyr/coordinate_systems.py
mahdiehmalekian Apr 30, 2025
c6c7c72
Update minorminer/utils/zephyr/coordinate_systems.py
mahdiehmalekian Apr 30, 2025
3cbeec1
Update minorminer/utils/zephyr/node_edge.py
mahdiehmalekian Apr 30, 2025
166cf15
Update minorminer/utils/zephyr/qfloor.py
mahdiehmalekian Apr 30, 2025
628610a
Update minorminer/utils/zephyr/qfloor.py
mahdiehmalekian Apr 30, 2025
7125603
Update minorminer/utils/zephyr/node_edge.py
mahdiehmalekian Apr 30, 2025
486d8fa
Update minorminer/utils/zephyr/node_edge.py
mahdiehmalekian Apr 30, 2025
5886529
Update minorminer/utils/zephyr/node_edge.py
mahdiehmalekian Apr 30, 2025
26191b1
Update minorminer/utils/zephyr/node_edge.py
mahdiehmalekian Apr 30, 2025
fd295aa
Update minorminer/utils/zephyr/node_edge.py
mahdiehmalekian Apr 30, 2025
8ee09a7
Update minorminer/utils/zephyr/node_edge.py
mahdiehmalekian Apr 30, 2025
66e65ba
capitalize
Apr 30, 2025
659c815
Update docstring
Apr 30, 2025
c9a8d35
Update minorminer/utils/zephyr/node_edge.py
mahdiehmalekian Apr 30, 2025
d0fe844
Disable 'float' scale
Apr 30, 2025
3365f07
Correct header
Apr 30, 2025
5ef99a2
Add, correct documentation
Apr 30, 2025
241667a
Add, correct documentation
Apr 30, 2025
1a8b937
Correct documentation
Apr 30, 2025
7cd6fbc
Correct documentation
Apr 30, 2025
b47c876
Update minorminer/utils/zephyr/node_edge.py
mahdiehmalekian Apr 30, 2025
cc2e009
Correct documentation
Apr 30, 2025
a56aa84
Disable shape.setter, coord.setter + Separate checks for ccoord + Mod…
Apr 30, 2025
8d6c974
Edit docstrings
Apr 30, 2025
b8a3565
Fix bug
Oct 30, 2025
eeaf537
Add check node validity flag
Oct 30, 2025
7f6aa26
Edit examples
Oct 31, 2025
e2df11d
Remove unused files
Nov 5, 2025
27c829b
Refactor, Add documentation
Nov 5, 2025
c9cdb6d
Update minorminer/utils/zephyr/node_edge.py
mahdiehmalekian Nov 14, 2025
7614def
Update minorminer/utils/zephyr/node_edge.py
mahdiehmalekian Nov 14, 2025
06c04ed
Update tests/utils/zephyr/test_plane_shift.py
mahdiehmalekian Nov 14, 2025
8120074
Update minorminer/utils/zephyr/node_edge.py
mahdiehmalekian Nov 14, 2025
6363001
Update minorminer/utils/zephyr/node_edge.py
mahdiehmalekian Nov 14, 2025
0489b5d
Update minorminer/utils/zephyr/node_edge.py
mahdiehmalekian Nov 14, 2025
3f03a6c
Update minorminer/utils/zephyr/node_edge.py
mahdiehmalekian Nov 14, 2025
d08e023
Update minorminer/utils/zephyr/plane_shift.py
mahdiehmalekian Nov 14, 2025
c0af994
Update minorminer/utils/zephyr/node_edge.py
mahdiehmalekian Nov 14, 2025
b4bb9b3
Update tests/utils/zephyr/test_coordinate_systems.py
mahdiehmalekian Nov 14, 2025
9f501b6
Update tests/utils/zephyr/test_node_edge.py
mahdiehmalekian Nov 14, 2025
0e64a7d
Improve defaulting of max_num_emb; move basic helper function from fe…
jackraymond Dec 27, 2024
bc8bfef
Correct lattice_size signature per review request
jackraymond Jan 6, 2025
dd508ae
Simplify tiling branch behaviour (single fixed embedding). Add timeou…
jackraymond Mar 12, 2025
898d16f
Add test of timeout
jackraymond Mar 25, 2025
fdafc0a
Restructure docs (minimal changes)
JoelPasvolsky Mar 3, 2025
8938719
Update header and conf.py fixes
JoelPasvolsky Mar 3, 2025
8fc86ec
Add Usage Info section, fix api_ref anchor
JoelPasvolsky Mar 4, 2025
6884f02
Fix SDK build warning for repo (minimal until last rebase)
JoelPasvolsky Mar 4, 2025
9bf15d1
Update theme and xrefs
JoelPasvolsky Mar 18, 2025
b79fc8a
Flatten ref structure
JoelPasvolsky Mar 18, 2025
422813c
Fix missing C++ functions
JoelPasvolsky Mar 18, 2025
14d0c60
Remove the ``find_embedding:189: ERROR: Unexpected indentation`` fro…
JoelPasvolsky Mar 19, 2025
20b6ad6
Update missed path to readme
JoelPasvolsky Mar 19, 2025
eec527f
Turn off dot (graphviz) to prevent multiple build warnings
JoelPasvolsky Mar 20, 2025
541f471
Remove leftover todo (thanks @thisac)
JoelPasvolsky Mar 20, 2025
e94fcbc
Fiddle with test_parallel_embeddings to satisfy arbitrary circleCI co…
jackraymond Mar 25, 2025
2a09919
Make dwave.embedding optional dependency
jackraymond Mar 25, 2025
630e0ee
basic version of imported function is_valid_embedding
jackraymond Mar 25, 2025
a35eefa
Correct variable names in fallover function
jackraymond Mar 25, 2025
045ba05
random review: Update minorminer/utils/parallel_embeddings.py
jackraymond Mar 25, 2025
554fe4b
Apply suggestions from code review
jackraymond Mar 25, 2025
e3b8de0
Implement randomir review recommendations
jackraymond Mar 25, 2025
7eeaf45
Add test of array_to_embeddings
jackraymond Mar 25, 2025
685a068
Delete redundant failover code
jackraymond Mar 25, 2025
5c21048
Apply suggestions from code review
jackraymond Mar 25, 2025
a62934c
implement thisac review
jackraymond Mar 25, 2025
db8b95c
Remove obsolete doxygen configuration
JoelPasvolsky Mar 21, 2025
219fcf4
Release 0.2.18
randomir Mar 26, 2025
92e227a
Bugfix: replace full graph by local decimated graph for use tiling br…
jackraymond Apr 28, 2025
9ed506a
Minor changes to docstrings and defaulting for compatibility/comprehe…
jackraymond Apr 28, 2025
4c5515b
implement review changes to docstrings
jackraymond Apr 30, 2025
19dff7b
Allow dwave_networkx to be passed as kwargs rather than in T
jackraymond May 4, 2025
8af6832
Bugfix: remove None test for required List argument
jackraymond Jun 4, 2025
6a06776
Apply suggestions from code review
jackraymond Jun 4, 2025
4db164e
Fix Optional type hinting, fix handling of T=None code and tests
jackraymond Jun 5, 2025
04171df
Release 0.2.19
randomir Jun 5, 2025
ac17efb
Added support for colorings in Glasgow subgraph solver (#272)
boothby Sep 11, 2025
7697976
Glasgow Miscellany (#273)
boothby Sep 13, 2025
72067f2
Add Python 3.14 and remove 3.9 support
thisac Oct 16, 2025
449c067
Set default start method for multiprocessing to 'fork'
thisac Oct 17, 2025
52a897a
Bump release to 0.2.20
thisac Oct 28, 2025
4860b34
Update releasenote entry to fix reno parsing
thisac Oct 28, 2025
1c088d6
Add keyboard interrupts for subgraph.find_subgraph (#275)
boothby Oct 29, 2025
8223301
Increment version for release
thisac Oct 29, 2025
c14b7da
Include utils.zephyr in packages
Nov 14, 2025
d8c9790
Apply suggestions from code review
Nov 19, 2025
8912073
Merge remote-tracking branch 'upstream' into zephyr-utils
Nov 19, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions minorminer/utils/zephyr/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2025 D-Wave
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# ================================================================================================

from minorminer.utils.zephyr.zephyr import *
73 changes: 73 additions & 0 deletions minorminer/utils/zephyr/coordinate_systems.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# Copyright 2025 D-Wave
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# ================================================================================================


from __future__ import annotations

from collections import namedtuple

zephyr_fields = ["u", "w", "k", "j", "z"]
ZephyrCoord = namedtuple("ZephyrCoord", zephyr_fields, defaults=(None,) * len(zephyr_fields))
cartesian_fields = ["x", "y", "k"]
CartesianCoord = namedtuple(
"CartesianCoord", cartesian_fields, defaults=(None,) * len(cartesian_fields)
)


def cartesian_to_zephyr(ccoord: CartesianCoord) -> ZephyrCoord:
"""Converts a :class:`CartesianCoord` to its corresponding :class:`ZephyrCoord`.

Note: It assumes the given :class:`CartesianCoord` is valid.

Args:
ccoord (CartesianCoord): The coodinate in Cartesian system to be converted.

Returns:
ZephyrCoord: The coordinate of the ``ccoord`` in Zephyr system.
"""
x, y, k = ccoord
if x % 2 == 0:
u: int = 0
w: int = x // 2
j: int = ((y - 1) % 4) // 2
z: int = y // 4
else:
u: int = 1
w: int = y // 2
j: int = ((x - 1) % 4) // 2
z: int = x // 4
return ZephyrCoord(u=u, w=w, k=k, j=j, z=z)


def zephyr_to_cartesian(zcoord: ZephyrCoord) -> CartesianCoord:
"""Converts a :class:`ZephyrCoord` to its corresponding :class:`CartesianCoord`.

Note: It assumes the given ``zcoord`` is a valid Zephyr coordinate.

Args:
zcoord (ZephyrCoord): The coodinate in Zephyr system to be converted.

Returns:
CartesianCoord: The coordinate of the ``ccoord`` in Cartesian system.
"""
u, w, k, j, z = zcoord
if u == 0:
x = 2 * w
y = 4 * z + 2 * j + 1
else:
x = 4 * z + 2 * j + 1
y = 2 * w
return CartesianCoord(x=x, y=y, k=k)
Loading