Skip to main content

A package providing graphs and algorithms for working with D-Wave quantum computers.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dwave_graphs-1.0.0rc1.tar.gz (92.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dwave_graphs-1.0.0rc1-py3-none-any.whl (96.0 kB view details)

Uploaded Python 3

File details

Details for the file dwave_graphs-1.0.0rc1.tar.gz.

File metadata

  • Download URL: dwave_graphs-1.0.0rc1.tar.gz
  • Upload date:
  • Size: 92.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for dwave_graphs-1.0.0rc1.tar.gz
Algorithm Hash digest
SHA256 490504de33bf81921025f5b5c37244978dcd232a0d622b68bdf83636b5cf720d
MD5 8664b4e3c28df73a8f14ca49fb5744fd
BLAKE2b-256 0ffa42e7385de00f159c1eaff8a35a0d908387569190ae0a95a9e16785736dd3

See more details on using hashes here.

File details

Details for the file dwave_graphs-1.0.0rc1-py3-none-any.whl.

File metadata

File hashes

Hashes for dwave_graphs-1.0.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 ca4ea7a9f98b7c40d98735e1bac3724a3683b50aa193d06fe84dc139d4c4b81e
MD5 e283564dd453b615653e96ee09a1d40d
BLAKE2b-256 d17688ff4220c764d88ed53e1aad50a86b490e8d22df1d9eb39c7820a9e87f0e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page