dwavesystems / dwavesystems/dwave-cloud-client

Address confusing difference with dwave-system's edges/couplers

Open
#269 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
63
Forks
44
Avg merge
13h 45m
Merged PRs (30d)
1

Description

DWaveSampler converts edges to remove duplicates:
self._edgelist = sorted(set(tuple(sorted(edge)) for edge in self.solver.edges))

So when users look at coupler/edges in cloud-client:
with Client.from_config() as client:
...: solver = client.get_solver()
...: print(len(solver.edges))
...: print(len(solver.couplers))
...:
11806
11806

They get different numbers from when they look in dwave-system:

from dwave.system.samplers import DWaveSampler
len(sampler.edgelist)
5903
len(sampler.properties['couplers'])
5903

I expect this will confuse some users. What's the motivation for this difference? If it's needed, it should at least be noted ... somewhere

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.