Berkeley Quantum Synthesis Toolkit (BQSKit)
The Berkeley Quantum Synthesis Toolkit (BQSKit) [bis • kit] is a powerful and portable quantum compiler framework. It can be used with ease to compile quantum programs to efficient physical circuits for any QPU.
Installation
BQSKit is available for Python 3.9+ on Linux, macOS, and Windows. BQSKit and its dependencies are listed on the Python Package Index, and as such, pip can easily install it:
pip install bqskit
Basic Usage
A standard BQSKit workflow loads a program into the framework, models the target QPU, compiles the program, and exports the resulting circuit. The below example uses BQSKit to optimize an input circuit provided by a qasm file:
from bqskit import compile, Circuit
# Load a circuit from QASM
circuit = Circuit.from_file("input.qasm")
# Compile the circuit
compiled_circuit = compile(circuit)
# Save output as QASM
compiled_circuit.save("output.qasm")
To learn more about BQSKit, follow the tutorial series or refer to the documentation.
How to Cite
You can use the software disclosure to cite the BQSKit package.
Additionally, if you used or extended a specific algorithm, you should cite that individually. BQSKit passes will include a relevant reference in their documentation.
License
The software in this repository is licensed under a BSD free software license and can be used in source or binary form for any purpose as long as the simple licensing requirements are followed. See the LICENSE file for more information.
Copyright
Berkeley Quantum Synthesis Toolkit (BQSKit) Copyright (c) 2021, The Regents of the University of California, through Lawrence Berkeley National Laboratory (subject to receipt of any required approvals from the U.S. Dept. of Energy) and Massachusetts Institute of Technology (MIT). All rights reserved.
If you have questions about your rights to use or distribute this software, please contact Berkeley Lab's Intellectual Property Office at IPO@lbl.gov.
NOTICE. This Software was developed under funding from the U.S. Department of Energy and the U.S. Government consequently retains certain rights. As such, the U.S. Government has been granted for itself and others acting on its behalf a paid-up, nonexclusive, irrevocable, worldwide license in the Software to reproduce, distribute copies to the public, prepare derivative works, and perform publicly and display publicly, and to permit others to do so.
Metadata
Release files for bqskit 1.2.1
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 |
|---|---|---|---|---|
| bqskit-1.2.1.tar.gz | 279.6 kB | Without provenance | Details for bqskit-1.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bqskit-1.2.1-py3-none-any.whl | Python 3 | none | any | Details for bqskit-1.2.1-py3-none-any.whl |
Total release size: 719.5 kB
Release files / bqskit-1.2.1.tar.gz
| Download URL | bqskit-1.2.1.tar.gz |
|---|---|
| Size | 279.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8456433cd58df4bc003d33299300872cc22f6cf02432553cc4888643d9c420f9
|
|
BLAKE2b-256 checksum How to use checksums |
7674cef9c5460bdba9486593308cb27e6dd7d49a6d77750c24f5a5054ca70bd6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Release files / bqskit-1.2.1-py3-none-any.whl
| Download URL | bqskit-1.2.1-py3-none-any.whl |
|---|---|
| Size | 439.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cff63fac74d477311d5546edd7f16bbdc76e9e705f2affc8aeb0241544f61e36
|
|
BLAKE2b-256 checksum How to use checksums |
fb26c35c93075cfeec3dc00a5b007690d01e2e4efa200bd2c0ec3346dca3b047
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Security for bqskit 1.2.1
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.