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=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.

Metadata

Release files for dwave-graphs 1.3.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.3.0
File Size Uploaded Provenance Actions
dwave_graphs-1.3.0.tar.gz 136.4 kB Without provenance Details for dwave_graphs-1.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 268.1 kB

Release files / dwave_graphs-1.3.0.tar.gz

Download URL dwave_graphs-1.3.0.tar.gz
Size 136.4 kB
Tags Source
SHA-256 checksum
How to use checksums
3c8ac4ca539b41d48e82792407dd273f582869e901cbbb0ef81ccc986d1f8913
BLAKE2b-256 checksum
How to use checksums
13cece56dc434f9a57fcf4676da61b6bdab9a3feeb93844a2985c8fa3f8bca96
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

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

Download URL dwave_graphs-1.3.0-py3-none-any.whl
Size 131.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dda84674759e91358e119146cb74ed634151c82b1bc8b4ff863d088c894b9d46
BLAKE2b-256 checksum
How to use checksums
4798d0fca9f43e70abce92a21e4d6bd815303cebdc91faaeca3689f08a164388
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for dwave-graphs 1.3.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