Skip to content

Latest commit

 

History

History
77 lines (48 loc) · 1.79 KB

File metadata and controls

77 lines (48 loc) · 1.79 KB
https://circleci.com/gh/dwavesystems/dwave-graphs.svg?style=svg

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.

Release Notes

We use reno to manage release notes.

See reno's user guide for details.