dwave-networkx
A NetworkX extension providing graphs and algorithms relevant to working with the D-Wave System
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-networkxuv
uv add dwave-networkxpoetry
poetry add dwave-networkxInstalling 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
Tags
More Scientific/Engineering packages
NumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
pandaspandas provides fast, flexible data structures…
permissive · top 100 on PyPI
scipyscipy provides numerical algorithms for…
permissive · top 100 on PyPI
scikit-learnscikit-learn provides a comprehensive Python…
permissive · top 1,000 on PyPI
dilldill extends Python's pickle module to…
permissive · top 1,000 on PyPI
multiprocessMultiprocess is an enhanced fork of Python's…
permissive · top 1,000 on PyPI
dwave-graphsProvides graph representations and algorithms…
permissive · top 15,000 on PyPI
quimbQuimb provides Python tools for quantum…
permissive · top 15,000 on PyPI
networkxNetworkX provides data structures and…
permissive · top 1,000 on PyPI
dwave-optimizationFormulates nonlinear optimization models…
permissive · top 15,000 on PyPI
dwave-samplersProvides a collection of classical and hybrid…
permissive · top 15,000 on PyPI
dwave-cloud-clientD-Wave Cloud Client provides a Python interface…
permissive · top 15,000 on PyPI
minorminerminorminer finds graph minor embeddings—it maps…
unclear · top 15,000 on PyPI
dimoddimod provides classes and interfaces for…
permissive · top 15,000 on PyPI
hugrhugr provides a pure-Python implementation of…
permissive · top 15,000 on PyPI
qiskit-algorithmsQiskit Algorithms provides a library of quantum…
permissive · top 15,000 on PyPI