What is it?
This package provides large-scale tensor-network-based emulator of quantum annealing, powered by belief-propagation-based inference. This implementation introduces a compilation step that classifies graph nodes by degree, groups the corresponding tensors into batched representations, groups the associated messages, enabling massively parallel belief propagation and related subroutines easelly deployable on a GPU. This design enables scaling up to 1,000,000 for a range of nontrivial problem instances.
How to use it?
There is a wiki page with the documentation.
How to install?
- Clone this repo;
- Run
poetry env activate && poetry installfrom the root of the clonned repo.
To validate the computation results, some examples and tests rely on an exact quantum circuit simulator available at https://github.com/LuchnikovI/qem. To install it, follow the steps below:
- Clone the repo https://github.com/LuchnikovI/qem;
- Install rust (see https://rust-lang.org/tools/install/);
- Install
maturinby runningpip install maturin .; - Run
pip install .from the clonned repo under your python environment.
How to run benchmarks against MQLib?
First, one need to install an MQLib wrapper awailable here, follow the instruction of README there. Now one can execute scripts in ./benchmarks_against_mqlib, every script saves a result into a separate directory with time stamp.
NumPy backend
To run quantum annealing emulation using numpy backend, one does not need any extra configuration steps. One can control the precision of the numpy backend by setting the environment variable export BQA_PECISION=single for the single precision and export BQA_PRECISION=double for the double precision.
CuPy backend
To use cupy backend one needs to install cupy sepraratelly since it is not in the dependancies list. One also need cuTENSOR to enable fast tensor contraction. The precision of the cupy backend is always single.
Metadata
Release files for bqa 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bqa-0.2.0.tar.gz | 27.2 kB | Without provenance | Details for bqa-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bqa-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for bqa-0.2.0-py3-none-any.whl |
Total release size: 60.0 kB
Release files / bqa-0.2.0.tar.gz
| Download URL | bqa-0.2.0.tar.gz |
|---|---|
| Size | 27.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
55cdbc9931948bdeeade0d9108772a712dccc1184b1d8f57b6c0487f81fb1a68
|
|
BLAKE2b-256 checksum How to use checksums |
9ccae24e91edd2751e38e14fd21d71e003b8aa05390953ab7eb9f4a2956902c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.0 CPython/3.12.13 Linux/6.17.0-1010-azure
|
Release files / bqa-0.2.0-py3-none-any.whl
| Download URL | bqa-0.2.0-py3-none-any.whl |
|---|---|
| Size | 32.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
30f2187863877a9912f75d6844899b604acc9dc8dfaa02ad7b28229a876544b5
|
|
BLAKE2b-256 checksum How to use checksums |
913843bd29494aa3558f7e7958fd068079662fcd6d7622e3ad2552041ea97b01
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.0 CPython/3.12.13 Linux/6.17.0-1010-azure
|
Security for bqa 0.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.