Open source library for continuous-variable quantum computation
Project description
Strawberry Fields is a full-stack Python library for designing, simulating, and optimizing continuous variable quantum optical circuits.
Features
An open-source software architecture for photonic quantum computing
A full-stack quantum software platform, implemented in Python specifically targeted to the CV model
Quantum circuits are written using the easy-to-use and intuitive Blackbird quantum programming language
Includes a suite of CV quantum computer simulators implemented using NumPy and TensorFlow - these built-in quantum compiler tools convert and optimize Blackbird code for classical simulation
Future releases will aim to target experimental backends, including photonic quantum computing chips
Installation
Strawberry Fields requires Python version 3.5+. Installation of Strawberry Fields, as well as all dependencies, can be done using pip:
pip install strawberryfields
TensorFlow support
To use Strawberry Fields with TensorFlow, version 1.3 of TensorFlow is required. This can be installed alongside Strawberry Fields as follows:
pip install strawberryfields tensorflow==1.3
Or, to install Strawberry Fields and TensorFlow with GPU and CUDA support:
pip install strawberryfields tensorflow-gpu==1.3
Note that TensorFlow version 1.3 is only supported on Python versions less than 3.7.
Getting started
To see Strawberry Fields in action immediately, try out our Strawberry Fields Interactive web application. Prepare your initial states, drag and drop gates, and watch your simulation run in real time right in your web browser.
For getting started with writing your own Strawberry Fields code, check out our quantum teleportation, boson sampling, and machine learning tutorials.
Our documentation is also a great starting point to familiarize yourself with the framework of continuous-variable quantum computation, and check out some important and interesting continuous-variable quantum algorithms.
Finally, detailed documentation on the Strawberry fields API is provided, for full details on available quantum operations, arguments, and backends.
Contributing to Strawberry Fields
We welcome contributions - simply fork the Strawberry Fields repository, and then make a pull request containing your contribution. All contributors to Strawberry Fields will be listed as authors on the releases.
We also encourage bug reports, suggestions for new features and enhancements, and even links to cool projects or applications built on Strawberry Fields. If your contribution becomes part of Strawberry Fields, or is highlighted in our Gallery, we will send you some exclusive Xanadu Swag™ - including t-shirts, stickers, and more.
See our contributions page for more details, and then check out some of the Strawberry Fields challenges for some inspiration.
Support
Source Code: https://github.com/XanaduAI/strawberryfields
Issue Tracker: https://github.com/XanaduAI/strawberryfields/issues
If you are having issues, please let us know by posting the issue on our Github issue tracker.
We also have a Strawberry Fields Slack channel - come join the discussion and chat with our Strawberry Fields team.
License
Strawberry Fields is free and open source, released under the Apache License, Version 2.0.
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 StrawberryFields-0.11.2.tar.gz
.
File metadata
- Download URL: StrawberryFields-0.11.2.tar.gz
- Upload date:
- Size: 1.8 MB
- Tags: Source
- Uploaded using 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.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be114840ca6dbcef39267edaf29e8109114d5ec0a3aa51a5ce1462454c6192a2 |
|
MD5 | a73d29b9bb91a2f38753f52749a7af5c |
|
BLAKE2b-256 | 1d004e30703b081669f0078c706fb47be51e731f2f293f03a9dd35888217aa10 |
File details
Details for the file StrawberryFields-0.11.2-py3-none-any.whl
.
File metadata
- Download URL: StrawberryFields-0.11.2-py3-none-any.whl
- Upload date:
- Size: 1.7 MB
- Tags: Python 3
- Uploaded using 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.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdbad0a7d1c5e4ee31b9fa02374a1b5579281bca02c7e6a909e554e6d37844d8 |
|
MD5 | a8e63155ba9784eb50873ac0f8218601 |
|
BLAKE2b-256 | 339f5cc09f8d2ffb3587a628f688fe3c15440ef2fd9408927360e7f15f23f8bc |