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.

Metadata

Release files for dwave-graphs 1.2.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.2.0
File Size Uploaded
dwave_graphs-1.2.0.tar.gz 135.9 kB Details

Built distribution (wheel)

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

Total release size: 267.6 kB

Release files / dwave_graphs-1.2.0.tar.gz

Download URL dwave_graphs-1.2.0.tar.gz
Size 135.9 kB
Tags Source
SHA-256 checksum
How to use checksums
af597467e9a129fc421057e0b9867ca4c231fb6941b62c6fcb63337b3854803a
BLAKE2b-256 checksum
How to use checksums
e6c4f85aaf158d2de8918637bf6231efe13748d1e778f61737f030bdf7830764
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.2.0-py3-none-any.whl

Download URL dwave_graphs-1.2.0-py3-none-any.whl
Size 131.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
efffbeb121d06df711400caad32033b627e84e2193ff7c7f15821192540649c6
BLAKE2b-256 checksum
How to use checksums
72a1c72e2095e17cc9b361075f5d7ab593ba664d73213adadcdba3b7e4be6677
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.2.0 This release

2 release files

1.1.0

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