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
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
Error