``DWaveCliqueSampler()`` initial embedding slower than I expected

Open
#271 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
performance

Research direction

Start with the DWaveCliqueSampler() initialization path and reproduce the reported timeit measurements on Advantage_system4.1 and Advantage_system6.4 under the listed operating systems. Compare where initialization time is spent, especially for the reported 175–177-node cliques; done means the discrepancy is explained and any unintended slowdown is addressed.

Written by the indexing model from the issue text.

Description

Description
This might be a local problem with my system getting old but the initial embedding is taking quite a lot longer than I would have expected, especially on Win OS. In the past it took a couple of minutes, now it is over 5 minutes.
Just raising this in case some change has inadvertently slowed this down.

To Reproduce

Win OS:

>>> timeit.timeit('from dwave.system import DWaveCliqueSampler; qpu = DWaveCliqueSampler(solver="Advantage_system4.1"); print(qpu.child.solver.name); print(qpu.largest_clique_size)', number=1)
Advantage_system4.1
177
Out[18]: 402.3655947998632

>>> timeit.timeit('from dwave.system import DWaveCliqueSampler; qpu = DWaveCliqueSampler(solver="Advantage_system6
    ...: .4"); print(qpu.child.solver.name); print(qpu.largest_clique_size)', number=1)
Advantage_system6.4
175
Out[19]: 51.09168740012683

Unix:

>>> timeit.timeit('from dwave.system import DWaveCliqueSampler; qpu = DWaveCliqueSampler(solver="Advantage_system4.1"); print(qpu.child.solver.name); print(qpu.largest_clique_size)', number=1)
Advantage_system4.1
177
Out[16]: 224.93166744199698

Expected behavior
I remember a couple of minutes and see here 152 seconds on Pegasus (which I am guessing was also Advantage_system4 but am not sure)

Environment:

  • OS: Ubuntu 24, and Win 10
  • Python version: 3.12

Additional context
Note the large difference between Advantage_system4 and Advantage_system6, perhaps the time is going on the cliques for 176 & 177 nodes?

Dominant language
Python
Stars
53
Forks
48
Avg merge
1d 10h
Merged PRs (30d)
3

Getting set up

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/minorminer

All issues in dwavesystems/minorminer

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.