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

BQM-generating functions should specify the shape of the BQM

Open
#110 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python

Research direction

Start with the example in dwave_networkx/algorithms/tsp.py around the travelling_salesman_qubo implementation, then identify the other BQM-generating functions. Add tests for each function that verify the generated BQM's variable and interaction counts relative to the input graph; done means all generating functions have corresponding shape checks.

Written by the indexing model from the issue text.

Description

documentation feature request

In #105 we added some lines to the travelling_salesman_qubo that specify the shape (number of variables, number of interactions) of the generated qubo relative to the original graph. We should do this for all of the generating functions.

These should also come with tests.

Example
https://github.com/dwavesystems/dwave_networkx/blob/dae190a5530d9f06fca89bf7e3737c06c7e6ab5a/dwave_networkx/algorithms/tsp.py#L113

Dominant language
Python
Stars
94
Forks
62
Avg merge
13h 11m
Merged PRs (30d)
2

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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/dwave-graphs

All issues in dwavesystems/dwave-graphs

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.