Skip to main content

A hybrid quantum-classical analysis/solving runtime.

Project description

PyPi Deployment

Rasqal is a quantum-classical hybrid runtime which runs QIR in a fully dynamic fashion, building up quantum circuits on the fly and executing them against a provided quantum backend. It uses symbolic execution and heavily deferred execution to perform code transformations, optimizations and lowering to power the circuit synthesis.

Some of the key things this approach enables:

  1. Unrestricted QIR and LLVM instructions fully interwoven. You can throw whatever form of IR you want at it and it'll process all classical bits locally (or lower them).
  2. Enabling hybrid algorithms to be run on machines and tools with only a gate-level API available. This includes QASM API's if you use its simulation framework.
  3. Lots of optimization potential when passed large amounts of classical context that a quantum algorithm uses to accentuate its own execution.

We also have a full feature list and quick intro to its concepts as well as a draft paper that covers its internals in excruciating detail.

If you have any features or ideas you'd like to see implemented feel free to raise a feature request!

Note: Rasqal is still early days and the potential instruction combinations of LLVM and QIR are immense, so we won't have been able to test all of them. If you have a file which dosen't work please raise an issue with it!

Getting Started

  1. Install Rasqal in your favourite Python venv by running pip install rasqal. Our current testing is done with v3.10 of Python.
  2. Read the quick start and look at our examples.
  3. (Optional) Read the paper for a deep-dive into Rasqals concepts and data structures.

Contributing

If you'd like to contribute your first destination will be to build the system locally. There's also a getting started page that covers some of the most important bits you'd need to know about the project before jumping into writing code.

After that feel free to fork the project and put up PRs with any work you would like to add. All experimental work that isn't ready for prime time has to be disabled by default and have no impact on core execution time and stability.

Thanks for making Rasqal better than it was!

We also have a code of conduct that we expect everyone to adhere too.

Licence

This code in this repository is licensed under the BSD 3-Clause Licence. Please see LICENSE for more information.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

rasqal-0.1.6-cp312-cp312-macosx_11_0_arm64.whl (10.1 MB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

rasqal-0.1.6-cp310-none-win_amd64.whl (10.8 MB view details)

Uploaded CPython 3.10 Windows x86-64

rasqal-0.1.6-cp310-cp310-manylinux_2_31_x86_64.whl (12.5 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.31+ x86-64

File details

Details for the file rasqal-0.1.6-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for rasqal-0.1.6-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0b5625a12b357f8542eb32bbe79d5dc4ef8f10455f5bd2aafb276a8a953790ff
MD5 75b3fcbf96885120e7781f459c94a407
BLAKE2b-256 002fa7dc7af5130b0837ebc6392784c628a68b4625dd96ea950e8fbd31a14262

See more details on using hashes here.

File details

Details for the file rasqal-0.1.6-cp310-none-win_amd64.whl.

File metadata

  • Download URL: rasqal-0.1.6-cp310-none-win_amd64.whl
  • Upload date:
  • Size: 10.8 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for rasqal-0.1.6-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 8d4c92ede1f062cf729913481d10e6fdab2f0c395aeaf375415db0467edffe35
MD5 5e0fd424719b73b92ad77c0a38100cb6
BLAKE2b-256 f9fdd41e47b1c575a34aa4e22fecaf6464fcd2ca272025f9a83bdf1d0bebdb39

See more details on using hashes here.

File details

Details for the file rasqal-0.1.6-cp310-cp310-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for rasqal-0.1.6-cp310-cp310-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 879a1956c38b922dae92ea2709522c97662aad8d05b93c70a531696752de5061
MD5 962a459642dafabd9cdfc0a0c7098577
BLAKE2b-256 4f017b3ff870840a3784f3ec9ea987c867a4f366c8a4ea8f1e15f01f504d8a5a

See more details on using hashes here.

Supported by

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