Add example of pre-computing an embedding
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 45/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- python
- Domain
- documentation
Research direction
Start at the topology samplers documentation page linked in the issue and review its existing examples. Add a Python example using DWaveSampler, find_clique_embedding, and FixedEmbeddingComposite to pre-compute an embedding from the QPU edge list. Done means the example appears in the documentation and shows sampling with the fixed embedding.
Written by the indexing model from the issue text.
Description
Request from Cathy, "Hey tools support, novice user here(!) Each QPU has a largest clique that can be embedded in the working graph -- is that clique pre-computed and available to me through ocean? I would like to avoid using a bunch of trial-and-error calls to MinorMiner to find the embedding."
Add to somewhere like https://docs.ocean.dwavesys.com/en/latest/examples/topology_samplers.html#topology-samplers an example like:
from dwave.system import DWaveSampler, FixedEmbeddingComposite
from dwave.embedding.chimera import find_clique_embedding
qpu = DWaveSampler(solver=dict(qpu=True))
embedding = find_clique_embedding(K, 16, target_edges=qpu.edgelist)
sampler = FixedEmbeddingComposite(qpu, embedding)
sampleset = sampler.sample_ising(h, J)
print(sampleset)
CC @arcondello
- Dominant language
- Python
- Stars
- 49
- Forks
- 28
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from dwavesystems/docs
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
dwavesystems/docs#75 · 3 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
dwavesystems/docs#74 · 2 comments ·
-
dwavesystems/docs#73 · 1 assignee ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 25/100
dwavesystems/docs#71 ·
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
dwavesystems/docs#55 ·
All issues in dwavesystems/docs
Similar issues
-
agent-ready documentation needs-triage
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
-
documentation
Difficulty 1/5 Under an hour Newbie friendliness 91/100
-
workflow-status page template still says reusable workflows are "triggered only by workflow_call:" Open
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
instance instance add
Difficulty 1/5 Under an hour Newbie friendliness 72/100
searxng/searx-instances#939 · 1 comment ·
-
area-deployment area-integrations triage:bot-seen
Difficulty 2/5 Half a day Newbie friendliness 86/100