Skip to main content
https://img.shields.io/pypi/v/dwave-graphs.svg https://codecov.io/gh/dwavesystems/dwave-graphs/branch/main/graph/badge.svg 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.

Release files for dwave-graphs 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dwave-graphs 1.1.0
File Size Uploaded
dwave_graphs-1.1.0.tar.gz 111.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dwave-graphs 1.1.0
File Interpreter ABI Platform
dwave_graphs-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size:218.4 kB

Release files / dwave_graphs-1.1.0.tar.gz

Download URL dwave_graphs-1.1.0.tar.gz
Size 111.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3a20666ddaa9fe5f140d55cd98cc18bdc77820c7b7a66b3abedd3566dbdac6ed
BLAKE2b-256 checksum
How to use checksums
4f03ef7e9bef73167a161ef331d84d26dbe6a918b827c18a716bc5e7275aa30d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Release files / dwave_graphs-1.1.0-py3-none-any.whl

Download URL dwave_graphs-1.1.0-py3-none-any.whl
Size 107.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aea39c8a35fa68828250589edb7e73fabb536b0d19d961cdf30961fa9de30ad4
BLAKE2b-256 checksum
How to use checksums
415e6e334ead1a695f10cab43ab290d5ba8f6ef6769d375b0707b1b0aec6a996
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page