Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt TilingComposite to Zephyr architecture #456

Open
mdecandia opened this issue May 26, 2022 · 0 comments
Open

Adapt TilingComposite to Zephyr architecture #456

mdecandia opened this issue May 26, 2022 · 0 comments

Comments

@mdecandia
Copy link
Member

Description
Right now the TilingComposite is only defined for Chimera-structured hardware graphs. It is not defined for Zephyr or Pegasus-structured either, see #295.

To Reproduce

from dwave.system.samplers import DWaveSampler
from dwave.system import TilingComposite


sampler = DWaveSampler(solver=dict(topology__type='zephyr'))   
tiled_sampler = TilingComposite(sampler, 1, 2, 4)

Error

File /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/dwave/system/composites/tiling.py:157, in TilingComposite.__init__(self, sampler, sub_m, sub_n, t)
    155 else:
    156     if len(sampler.properties['topology']['shape']) != 1:
--> 157         raise ValueError('topology shape is not of length 1 '
    158                          '(not compatible with pegasus)')
    159     # Full yield in odd-couplers also required.
    160     # Generalizes chimera subgraph requirement and leads to some
    161     # simplification of expressions, but at with a cost in cell-yield
    162     edges_per_cell += t
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

No branches or pull requests

1 participant