skillfed

dwave-networkx

A NetworkX extension providing graphs and algorithms relevant to working with the D-Wave System

dwave-networkx v0.8.19 95.6K downloads/30d#13,262 on PyPI95
Permissive license Apache 2.0 Active released

What it is and what it does

dwave-networkx is a NetworkX extension designed for users working with D-Wave quantum computers. It provides specialized tools for working with quantum processor unit (QPU) topology graphs—such as the Pegasus topology used on Advantage quantum computers—and implements graph-theory algorithms that run on D-Wave quantum systems and other binary quadratic model samplers. The package builds on NetworkX's graph exploration and analysis capabilities, adding quantum-specific functionality.

The package is actively maintained but officially deprecated in favor of dwave-graphs, which provides the same core functionality under a new namespace (dwave.graphs). It has low installation friction as a pure-Python package and supports modern Python versions (3.10–3.14). Its three runtime dependencies—NetworkX, dimod, and NumPy—are widely used and stable.

Use it for:

  • Generate and analyze Pegasus topology graphs for D-Wave Advantage quantum computers.
  • Implement graph algorithms optimized for quantum processing on D-Wave systems.
  • Convert classical graph problems into binary quadratic models for quantum sampling.
  • Explore quantum processor connectivity and topology constraints in research.
  • Prototype quantum-classical hybrid algorithms using graph-based problem formulations.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Extends NetworkX with tools for D-Wave quantum computer topology graphs and implements graph algorithms for quantum processing units and binary quadratic model samplers.

Yes, but with a caveat: the package is actively maintained and suitable for working with D-Wave quantum systems, but it is officially deprecated in favor of dwave-graphs. Install this only if you have an existing codebase using dwave-networkx or are specifically targeting its current API; for new projects, use dwave-graphs instead. No security vulnerabilities are known.

Install

dwave-networkx on PyPI

pip

pip install dwave-networkx

uv

uv add dwave-networkx

poetry

poetry add dwave-networkx

Installing dwave-networkx

Before you install

Low install friction with a pure-Python wheel distribution. Actively maintained with a recent release (59 days old) and current Python version support (3.10–3.14). Repository shows steady activity and modest community engagement (95 stars).

License in practice

Released under Apache License 2.0, a permissive license that allows commercial and private use with minimal restrictions—suitable for most projects.

Quickstart

pip install dwave-networkx

import dwave_networkx as dnx
graph = dnx.pegasus_graph(16)

Requires Python 3.10 or later; depends on NetworkX, dimod, and NumPy.

Verify before relying

  • Whether dwave-graphs (the recommended replacement) provides feature parity or if migration is necessary for new projects.
  • Specific quantum algorithms implemented beyond graph topology support.
  • Performance characteristics when working with large Pegasus topologies.

Package facts

License Apache 2.0 (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 3 — networkx, dimod, numpy
Maintenance actively maintained — 59 days since the last release
Last repo commit
First released
Downloads 95,579/month — #13,262 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: dwave_networkx-0.8.19-py3-none-any.whl

License :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Tags

quantum computing graph algorithmsD-Wave QPU topologyPegasus graph generationquantum network analysisbinary quadratic model graphsquantum processor topologyD-Wave quantum graphs
quantum-computinggraph-algorithmsdeprecated

More Scientific/Engineering packages