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 Provenance Actions
dwave_graphs-1.2.0.tar.gz 135.9 kB Without provenance Details for dwave_graphs-1.2.0.tar.gz

Built distribution (wheel)

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

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

Security for dwave-graphs 1.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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