Berkeley Quantum Synthesis Toolkit
Project description
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.8+ 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.
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 bqskit-1.2.0.tar.gz
.
File metadata
- Download URL: bqskit-1.2.0.tar.gz
- Upload date:
- Size: 265.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5772491f997474bacd1016fed4835b93e5d0901476fdac44518c731815cd0c88 |
|
MD5 | 9a1797f7140945368110661669132af7 |
|
BLAKE2b-256 | f577efa6200c3f175733e57551df39a045ee2d6bf654d171410077f54fc3dc31 |
File details
Details for the file bqskit-1.2.0-py3-none-any.whl
.
File metadata
- Download URL: bqskit-1.2.0-py3-none-any.whl
- Upload date:
- Size: 421.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3a5e820bc319c126c50f0750896801d340841d2b70758a769dd4d2efcd9bc74 |
|
MD5 | 7affdab1d9889229e4d4b319e1acf1df |
|
BLAKE2b-256 | 070d0e969c8812bb59abc28675e770257df52eb038477e4ca96662217f228cbf |