Blackbird Quantum Assembly Language
Blackbird is a quantum assembly language for continuous-variable quantum computation, that can be used to program Xanadu’s quantum photonics hardware and Strawberry Fields simulator.
Features
The Blackbird repository contains three separate packages:
src: The Blackbird grammar specification in enhanced Brackus-Naur form
blackbird_python: to develop Blackbird parsers for integration with Python programs
blackbird_cpp: libraries and header files needed to develop Blackbird parsers for integration with C++ programs
All of these packages are independent, and can be installed separately without depending on one-another. However, if the grammar is ever modified, there is a command for updating the autogenerated parts of the Python and C++ parsers.
In addition, this repository contains:
example: Example Blackbird scripts
apps: Example Python/C++ applications using the above parsers
Getting started
Blackbird is a development library, designed to easily integrate Blackbird code into applications and interfaces.
To get the Blackbird grammar installed and running on your system, begin at the grammar installation guide. Then, familiarize yourself with the Blackbird’s syntax and grammar for specifying photonic quantum circuits. You can even generate Blackbird parsers for any target language supported by ANTLR, including Java, C#, JavaScript, Go, and Swift.
If you only want to develop an application that makes use of the Python parser or the C++ parser, you can go directly to those sections and their corresponding installation guides.
How to cite
If you are doing research using Blackbird, please cite
Nathan Killoran, Josh Izaac, Nicolás Quesada, Ville Bergholm, Matthew Amy, and Christian Weedbrook. Strawberry Fields: A Software Platform for Photonic Quantum Computing 2018. arXiv:1804.03159
Support
Source Code: https://github.com/XanaduAI/Blackbird
Issue Tracker: https://github.com/XanaduAI/Blackbird/issues
If you are having issues, please let us know by posting the issue on our Github issue tracker.
License
Blackbird is free and open source, released under the Apache License, Version 2.0.
Metadata
Release files for quantum-blackbird 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| quantum-blackbird-0.2.2.tar.gz | 121.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| quantum_blackbird-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 165.9 kB
Release files / quantum-blackbird-0.2.2.tar.gz
| Download URL | quantum-blackbird-0.2.2.tar.gz |
|---|---|
| Size | 121.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ef903fbdce1558be4efb282ffc77fb685f542de2c4afef6b033fb64aa91be42f
|
|
BLAKE2b-256 checksum How to use checksums |
cbb39ce19615ea624fb2318f0270124df806acc9e2f55fae23fa24dfbf44f523
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.9
|
Release files / quantum_blackbird-0.2.2-py3-none-any.whl
| Download URL | quantum_blackbird-0.2.2-py3-none-any.whl |
|---|---|
| Size | 44.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
09b2ebd32f00ac3b3bcd79500dd5b73148cb4d4cdaeb34558db30fdb353fe2b0
|
|
BLAKE2b-256 checksum How to use checksums |
6c435a6f0c13c6db64607bf9a28afddabd8335ce116624b2af7d43b597624b7e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.9
|