Skip to main content

Blackbird Quantum Assembly Language

GitHub Workflow Status (branch) Codecov coverage Read the Docs

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

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.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for quantum-blackbird 0.5.0
File Size Uploaded Provenance Actions
quantum-blackbird-0.5.0.tar.gz 110.3 kB Without provenance Details for quantum-blackbird-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for quantum-blackbird 0.5.0
File Interpreter ABI Platform Actions
quantum_blackbird-0.5.0-py3-none-any.whl Python 3 none any Details for quantum_blackbird-0.5.0-py3-none-any.whl

Total release size: 158.3 kB

Release files / quantum-blackbird-0.5.0.tar.gz

Download URL quantum-blackbird-0.5.0.tar.gz
Size 110.3 kB
Tags Source
SHA-256 checksum
How to use checksums
065c73bf5263ce8f9b72dcd2b434f3bfbb471f0a6907c97a617ec0c8bde01db3
BLAKE2b-256 checksum
How to use checksums
d8ba09f536ae48dffad30626c1b26c5dbb401decce95fc130d7bb9bb0e4ca28d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5

Release files / quantum_blackbird-0.5.0-py3-none-any.whl

Download URL quantum_blackbird-0.5.0-py3-none-any.whl
Size 48.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2f7898e08b87689b92bd972b97b9b172f65118c6d80180167a35fb2e3bf02fc6
BLAKE2b-256 checksum
How to use checksums
8508283084c863a9fed00df1215ef5219192956e8070491fea40efd6ca6bc0ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5

Security for quantum-blackbird 0.5.0

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page