dwavesystems / dwavesystems/dwave-graphs

Allow solver as an argument to chimera_graph and pegasus_graph

Open
#165 1 comment 0 reactions 0 assignees View on GitHub
feature request
Dominant language
Python
Stars
95
Forks
62
Avg merge
7d 18h
Merged PRs (30d)
1

Description

Something like
```
import dwave_networkx as dnx
from dwave.system import DWaveSampler

sampler = DWaveSampler(solver=dict(topology__type__eq="chimera" ))
C = dnx.chimera_graph(sampler)

sampler = DWaveSampler(solver=dict(topology__type__eq="pegasus" ))
P = dnx.pegasus_graph(sampler)
```

Idea suggested by @boothby

Note that
```
G = nx.Graph(DWaveSampler().adjacency)
```
already works "out of the box", but the generated graph is missing information like https://github.com/dwavesystems/dwave_networkx/blob/fc537dcee1b25124e411ad8983b23bb36352da3a/dwave_networkx/generators/chimera.py#L134 On the other hand, this syntax has the advantage of being topology agnostic.

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.