Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Add example of pre-computing an embedding

Open
#67 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dwavesystems/docs

All issues in dwavesystems/docs

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.