dwavesystems / dwavesystems/dwave-graphs

[feat] Expose filtered edgelist based on coupler type

Open
#253 0 comments 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

**Current Problem**
I would like to iterate over all the odd couplers, internal and external couplers, while creating a problem.
It would be convenient if there is a `DWaveSampler` attribute that could return this.

**Proposed Solution**
Similar to `qpu.edgelist` where `qpu` is a `DWaveSampler`, it would be convenient to have `qpu.odd_coupler_edgelist` or some other solution that could filter the qpu.edgelist to only the ones with odd couplers. Im not sure if something like this already exists.

**Alternatives Considered**
Create a function `recognise_coupler_type(q0 : int, q1 : int) -> CouplerType` that does the classification and use this to filter the `qpu.edge_list` as needed.

This issue was moved from https://github.com/dwavesystems/dwave-ocean-sdk/issues/340

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.