A low-level quantum compiler and runtime which facilitates executing quantum IRs.
Project description
QAT (Quantum Assembly Toolkit/Toolchain) is a low-level quantum compiler and runtime which facilitates executing quantum IRs such as QASM, OpenPulse and QIR against QPU drivers. It facilitates the execution of largely-optimised code, converted into abstract pulse-level and hardware-level instructions, which are then transformed and delivered to an appropriate driver.
For the official QAT documentation, please see QAT.
Installation
QAT can be installed from PyPI via:
pip install qat-compiler
Building from Source
We use poetry for dependency management and run on
Python 3.8+.
Once both of these are installed run this in the root folder to install all the dependencies that you need:
poetry install
Roadmap
Here’s a list of what we’re currently working on, if you want to get involved contact the person or group linked.
In-development:
Classical-quantum hybrid computation. John Dumbell
Runtime-embedded QEC. Jamie Friel
Designing / verifying suitability:
Distributed QPU execution. John Dumbell
To-do:
Full QASM v3 support. Currently waiting for available parsers.
Contributing
To take the first steps towards contributing to QAT, visit our contribution documents, which provides details about our process. We also encourage new contributors to familiarise themselves with the code of conduct and to adhere to these expectations.
Where to get help
For support, please reach out in the Discussions tab of this repository or file an issue.
Licence
This code in this repository is licensed under the BSD 3-Clause Licence. Please see LICENSE for more information.
Feedback
Please let us know your feedback and any suggestions by reaching out in Discussions. Additionally, to report any concerns or code of conduct violations please use this form.
FAQ
Why is this in Python?
Mixture of reasons. Primary one is that v1.0 was an early prototype and since the majority of the quantum community know Python it was the fastest way to build a system which the most people could contribute to building. The API’s would always stick around anyway, but as time goes on the majority of its internals has been, is being, or will be moved to Rust/C++.
Where do I get started?
Our tests are a good place to start as they will show you the various ways to run QAT. Running and then stepping through how it functions is the best way to learn.
We have what’s known as an echo model and engine which is used to test QATs functionality when not attached to a QPU. You’ll see these used almost exclusively in the tests, but you can also use this model to see how QAT functions on larger and more novel architectures.
High-level architectural documents are incoming and will help explain its various concepts at a glance, but right now aren’t complete.
What OS’s does QAT run on?
Windows and Linux are its primary development environments. Most of its code is OS-agnostic but we can’t guarantee it won’t have bugs on untried ones. Dependencies are usually where you’ll have problems, not the core QAT code itself.
If you need to make changes to get your OS running feel free to PR them to get them included.
I don’t see anything related to OQC’s hardware here!
Certain parts of how we run our QPU have to stay propriety and for our initial release we did not have time to properly unpick this from things we can happily release. We want to release as much as possible and as you’re reading this are likely busy doing just that.
Do you have your own simulator?
We have a real-time chip simulator that is used to help test potential changes and their ramifications to hardware. It focuses on accuracy and testing small-scale changes so should not be considered a general simulator. 3/4 qubit simulations is its maximum without runtime being prohibitive.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file qat_compiler-2.4.1.tar.gz
.
File metadata
- Download URL: qat_compiler-2.4.1.tar.gz
- Upload date:
- Size: 143.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb58f46ebba01b954edc049198ec6b6c22534f4978d24cf5d2f41fa29c88f278 |
|
MD5 | f3607d76c5fe510afd92cbc965a3fdcd |
|
BLAKE2b-256 | 4891d80a6648e54a0a1534ac96c58d8a7f260498bfe785257b5ff801c8cbed11 |
Provenance
The following attestation bundles were made for qat_compiler-2.4.1.tar.gz
:
Publisher:
package-publish.yml
on oqc-community/qat
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
qat_compiler-2.4.1.tar.gz
- Subject digest:
bb58f46ebba01b954edc049198ec6b6c22534f4978d24cf5d2f41fa29c88f278
- Sigstore transparency entry: 149071471
- Sigstore integration time:
- Predicate type:
File details
Details for the file qat_compiler-2.4.1-py3-none-any.whl
.
File metadata
- Download URL: qat_compiler-2.4.1-py3-none-any.whl
- Upload date:
- Size: 164.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 055737d5245c6feb2e6195984c3dc1794362bffad3ac4c0d76cba00180c52a13 |
|
MD5 | 249248927974561aaacb1147b7ca43e1 |
|
BLAKE2b-256 | ce5b8ef55e4c9291b34aa4dbbbd7d104e75c0ff8a6b1bdba3fc8cd5ebd090a01 |
Provenance
The following attestation bundles were made for qat_compiler-2.4.1-py3-none-any.whl
:
Publisher:
package-publish.yml
on oqc-community/qat
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
qat_compiler-2.4.1-py3-none-any.whl
- Subject digest:
055737d5245c6feb2e6195984c3dc1794362bffad3ac4c0d76cba00180c52a13
- Sigstore transparency entry: 149071473
- Sigstore integration time:
- Predicate type: