Skip to content

About

A package providing graphs and algorithms relevant to working with the D-Wave quantum computers.

Resources

Stars

93 stars

Watchers

8 watching

Forks

Latest commit

 

History

870 Commits

Folders and files

Repository files navigation

https://circleci.com/gh/dwavesystems/dwave-graphs.svg?style=shield

dwave-graphs

dwave-graphs provides tools for working with quantum processing unit (QPU) topology graphs, such as the Pegasus used on the AdvantageTM quantum computer, and implementations of graph-theory algorithms on D-Wave quantum computers and other binary quadratic model (BQM) samplers.

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

>>> import dwave.graphs
>>> graph = dwave.graphs.pegasus_graph(16)

Installation

Installation from PyPI:

pip install dwave-graphs

Installation from source:

pip install .

Development setup

Install development requirements and the package in editable mode:

pip install --group dev
pip install --editable .

Tests require the test dependency group:

pip install --group test
python -m unittest

License

Released under the Apache License 2.0. See LICENSE file.

Contributing

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

About

A package providing graphs and algorithms relevant to working with the D-Wave quantum computers.

Resources

Stars

93 stars

Watchers

8 watching

Forks

Releases

Packages

Used by

Contributors

Languages