D-Wave NetworkX#

D-Wave NetworkX is an extension of NetworkX—a Python language package for exploration and analysis of networks and network algorithms—for users of D-Wave quantum computers. It provides tools for working with Quantum Processing Unit (QPU) topology graphs, such as the Pegasus used on the AdvantageTM system, and implementations of graph-theory algorithms on D-Wave quantum computers and other binary quadratic model samplers.

This example generates a Pegasus graph of the size used by Advantage QPUs.

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

See the documentation for more examples.

Installation#

Installation from PyPi:

pip install dwave_networkx

Installation from source:

pip install -r requirements.txt
python setup.py install

License#

Released under the Apache License 2.0.

Contributing#

Ocean’s contributing guide has guidelines for contributing to Ocean packages.

Documentation#

Release:

6.9.0

Date:

Mar 01, 2024

Note

This documentation is for the latest version of dwave-networkx. Documentation for the version currently installed by dwave-ocean-sdk is here: dwave-networkx.

Indices and tables#