dwave.system.composites.TilingComposite.edgelist¶
-
TilingComposite.
edgelist
= None¶ list – List of active couplers for the D-Wave solver.
Examples
This example creates a
TilingComposite
for a problem that requires a 1x2 Chimera lattice to solve with aDWaveSampler
as the sampler. It prints the active couplers retrieved from a D-Wave solver selected by the user’s default D-Wave Cloud Client configuration file.>>> from dwave.system.samplers import DWaveSampler >>> from dwave.system.composites import TilingComposite >>> sampler_tile = TilingComposite(DWaveSampler(), 1, 2, 4) >>> sampler_tile.edgelist [[0, 4], [0, 5], [0, 6], [0, 7], [1, 4], [1, 5], [1, 6], [1, 7], [2, 4], [2, 5], [2, 6], [2, 7], [3, 4], [3, 5], [3, 6], [3, 7], [4, 12], [5, 13], [6, 14], [7, 15], [8, 12], [8, 13], [8, 14], [8, 15], [9, 12], [9, 13], [9, 14], [9, 15], [10, 12], [10, 13], [10, 14], [10, 15], [11, 12], [11, 13], [11, 14], [11, 15]]