dwave-examples / dwave-examples/quantum-blockchain

Memory Leak; Old Solver Data Not Properly Deleted

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

Nobody has claimed this yet.

Dominant language
Python
Stars
1
Forks
1
Avg merge
4d 9h
Merged PRs (30d)
2

Description

There is a known memory leak issue in which previous sample sets recorded by the D-Wave solver object are not getting deleted in a timely fashion. These are moderately large memory allocations, at least several tens of megabytes, and each QPU call seems to add a new one, up to some limit after which memory use tops out. Including explicit "delete" statements to attempt to free up the allocated memory did not appear to help, so it seems the bug must be addressed at a lower level in the code for the solvers.

For a single solver, the total memory overhead of this leak seems to top out at slightly under 1 GB, meaning the code is memory inefficient, but still runs fine on a computer with reasonable resources. However, the bug can become more serious of multiple separate solver objects are instantiated: each one seems to separately use memory up to the limit. At present, the simulation should never have more than three solver objects instantiated at once, so the maximum memory overhead should still be bounded at about 3 GB.

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.

Research direction

The issue names no files or tests. Start by reproducing repeated QPU calls with one and then multiple D-Wave solver objects, then trace the solver implementation or lower-level dependency responsible for retaining sample sets; done means memory no longer grows toward the reported per-solver limit.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
quantum-computing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.