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.0.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.0-py3-none-any.whl (95.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dwave_graphs-1.0.0.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.0.tar.gz
Algorithm Hash digest
SHA256 f38313eb5e0363c0b9cf8a871ce54121368d97205f993e29b1fd5fb6b3194b0b
MD5 cec24981298e4b8a71cf6b95f7f583a2
BLAKE2b-256 ccfb2b6fdb4a36f0dde5640d5ce3ef033f459cb3c143f825e0cb01c04f7b58a0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dwave_graphs-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 95.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for dwave_graphs-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0554a72627d5daecbf7b56eb15bd9f4ad94a571b09b4ae18c85612360ad66ecd
MD5 7ac9b83c17015efa2c6b42521bef850c
BLAKE2b-256 2ce0e4f92aafe4a6ff77bf2e762309b03093fd4c317e47470fe37e0593db09a4

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