Skip to main content

Blackbird is a quantum assembly language for continuous-variable quantum computation by Xanadu Inc.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quantum-blackbird-0.2.0.tar.gz (118.0 kB view details)

Uploaded Source

Built Distribution

quantum_blackbird-0.2.0-py3-none-any.whl (40.0 kB view details)

Uploaded Python 3

File details

Details for the file quantum-blackbird-0.2.0.tar.gz.

File metadata

  • Download URL: quantum-blackbird-0.2.0.tar.gz
  • Upload date:
  • Size: 118.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.19.8 CPython/3.6.3

File hashes

Hashes for quantum-blackbird-0.2.0.tar.gz
Algorithm Hash digest
SHA256 804b5b9b1531b9e86cbe4efdd6bd056ec2f8c3b7d10a19abe766d430c1d80a02
MD5 7cde86a66253f9238e9404c6f906e1ed
BLAKE2b-256 a2520247d0ed204bb7baf43dd1c8d23d7c82020ff7cf2f8fda56897ceb73d4cf

See more details on using hashes here.

File details

Details for the file quantum_blackbird-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: quantum_blackbird-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 40.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.19.8 CPython/3.6.3

File hashes

Hashes for quantum_blackbird-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0679b8195b391d14adf7796bdf6ded5ee9562906b28a4f6b07848ffad7db98d7
MD5 911299d8505cd83905851d90e6b97bc9
BLAKE2b-256 f323a4866f2efd22bb4882ec7c01f32aaf001d858583ba7d64babab4fd0d50c5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page