dwave.system.samplers.DWaveSampler.edgelist

DWaveSampler.edgelist

list – List of active couplers for the D-Wave solver.

Examples

This example creates a DWaveSampler and 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
>>> sampler = DWaveSampler()
>>> sampler.edgelist    
[(0, 4),
 (0, 5),
 (0, 6),
 (0, 7),
 (0, 128),
 (1, 4),
 (1, 5),
 (1, 6),
 (1, 7),
 (1, 129),
 (2, 4),
# Snipped above response for brevity