# 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](https://pypi.org),
and as such, pip can easily install it:
```sh
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:
```python
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](https://github.com/BQSKit/bqskit-tutorial/) or refer to
the [documentation](https://bqskit.readthedocs.io/en/latest/).
## How to Cite
You can use the [software disclosure](https://www.osti.gov/biblio/1785933)
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](https://github.com/BQSKit/bqskit/blob/master/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.
Raw data
{
"_id": null,
"home_page": "https://github.com/BQSKit/bqskit",
"name": "bqskit",
"maintainer": null,
"docs_url": null,
"requires_python": "<4,>=3.8",
"maintainer_email": null,
"keywords": "berkeley, quantum, synthesis, toolkit, partitioning",
"author": "LBNL - BQSKit developers",
"author_email": "edyounis@lbl.gov",
"download_url": "https://files.pythonhosted.org/packages/f5/77/efa6200c3f175733e57551df39a045ee2d6bf654d171410077f54fc3dc31/bqskit-1.2.0.tar.gz",
"platform": null,
"description": "# Berkeley Quantum Synthesis Toolkit (BQSKit)\n\nThe Berkeley Quantum Synthesis Toolkit (BQSKit) \\[bis \u2022 kit\\] is a powerful\nand portable quantum compiler framework. It can be used with ease to compile\nquantum programs to efficient physical circuits for any QPU.\n\n## Installation\n\nBQSKit is available for Python 3.8+ on Linux, macOS, and Windows. BQSKit\nand its dependencies are listed on the [Python Package Index](https://pypi.org),\nand as such, pip can easily install it:\n\n```sh\npip install bqskit\n```\n\n## Basic Usage\n\nA standard BQSKit workflow loads a program into the framework, models the\ntarget QPU, compiles the program, and exports the resulting circuit. The\nbelow example uses BQSKit to optimize an input circuit provided by a qasm\nfile:\n\n```python\nfrom bqskit import compile, Circuit\n\n# Load a circuit from QASM\ncircuit = Circuit.from_file(\"input.qasm\")\n\n# Compile the circuit\ncompiled_circuit = compile(circuit)\n\n# Save output as QASM\ncompiled_circuit.save(\"output.qasm\")\n```\n\nTo learn more about BQSKit, follow the\n[tutorial series](https://github.com/BQSKit/bqskit-tutorial/) or refer to\nthe [documentation](https://bqskit.readthedocs.io/en/latest/).\n\n## How to Cite\n\nYou can use the [software disclosure](https://www.osti.gov/biblio/1785933)\nto cite the BQSKit package.\n\nAdditionally, if you used or extended a specific algorithm, you should cite\nthat individually. BQSKit passes will include a relevant reference in\ntheir documentation.\n\n## License\n\nThe software in this repository is licensed under a **BSD free software\nlicense** and can be used in source or binary form for any purpose as long\nas the simple licensing requirements are followed. See the\n**[LICENSE](https://github.com/BQSKit/bqskit/blob/master/LICENSE)** file\nfor more information.\n\n## Copyright\n\nBerkeley Quantum Synthesis Toolkit (BQSKit) Copyright (c) 2021,\nThe Regents of the University of California, through Lawrence\nBerkeley National Laboratory (subject to receipt of any required\napprovals from the U.S. Dept. of Energy) and Massachusetts\nInstitute of Technology (MIT). All rights reserved.\n\nIf you have questions about your rights to use or distribute this software,\nplease contact Berkeley Lab's Intellectual Property Office at IPO@lbl.gov.\n\nNOTICE. This Software was developed under funding from the U.S. Department\nof Energy and the U.S. Government consequently retains certain rights. As\nsuch, the U.S. Government has been granted for itself and others acting on\nits behalf a paid-up, nonexclusive, irrevocable, worldwide license in the\nSoftware to reproduce, distribute copies to the public, prepare derivative\nworks, and perform publicly and display publicly, and to permit others to\ndo so.\n",
"bugtrack_url": null,
"license": "BSD 3-Clause License",
"summary": "Berkeley Quantum Synthesis Toolkit",
"version": "1.2.0",
"project_urls": {
"Bug Tracker": "https://github.com/BQSKit/bqskit/issues",
"Documentation": "https://bqskit.readthedocs.io/en/latest",
"Homepage": "https://github.com/BQSKit/bqskit",
"Source Code": "https://github.com/BQSKit/bqskit"
},
"split_keywords": [
"berkeley",
" quantum",
" synthesis",
" toolkit",
" partitioning"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "070d0e969c8812bb59abc28675e770257df52eb038477e4ca96662217f228cbf",
"md5": "7affdab1d9889229e4d4b319e1acf1df",
"sha256": "b3a5e820bc319c126c50f0750896801d340841d2b70758a769dd4d2efcd9bc74"
},
"downloads": -1,
"filename": "bqskit-1.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "7affdab1d9889229e4d4b319e1acf1df",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4,>=3.8",
"size": 421833,
"upload_time": "2024-09-13T18:52:49",
"upload_time_iso_8601": "2024-09-13T18:52:49.534009Z",
"url": "https://files.pythonhosted.org/packages/07/0d/0e969c8812bb59abc28675e770257df52eb038477e4ca96662217f228cbf/bqskit-1.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "f577efa6200c3f175733e57551df39a045ee2d6bf654d171410077f54fc3dc31",
"md5": "9a1797f7140945368110661669132af7",
"sha256": "5772491f997474bacd1016fed4835b93e5d0901476fdac44518c731815cd0c88"
},
"downloads": -1,
"filename": "bqskit-1.2.0.tar.gz",
"has_sig": false,
"md5_digest": "9a1797f7140945368110661669132af7",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4,>=3.8",
"size": 265328,
"upload_time": "2024-09-13T18:52:51",
"upload_time_iso_8601": "2024-09-13T18:52:51.019284Z",
"url": "https://files.pythonhosted.org/packages/f5/77/efa6200c3f175733e57551df39a045ee2d6bf654d171410077f54fc3dc31/bqskit-1.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-13 18:52:51",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "BQSKit",
"github_project": "bqskit",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "bqskit"
}