Skip to main content

Open source library for continuous-variable quantum computation

Project description

Strawberry Fields
Travis Codecov coverage Codacy grade Read the Docs PyPI PyPI - Python Version

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

  • Includes high-level functions for solving practical problems including graph and network optimization, machine learning and chemistry.

  • Includes quantum simulators implemented using NumPy and TensorFlow—with built-in quantum compilation

  • Future releases will target experimental backends, including photonic quantum computing chips

  • Powers the Strawberry Fields Interactive web app, which allows anyone to run a quantum computing simulation via drag and drop

Installation

Strawberry Fields requires Python version 3.5, 3.6, or 3.7 (3.8 is currently not support). 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, follow the installation page to get Strawberry Fields up and running, then jump over to the tutorials to see what you can do.

Users interested in applications of photonic quantum computers should check out the Graphs and Networks, Machine Learning and Chemistry pages. Those wanting to dig deeper into the design of circuits can head to the quantum circuits page.

Developers can head to the development guide to see how they can contribute to Strawberry Fields.

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.

See our contributions page for more details, and then check out some of the Strawberry Fields challenges for some inspiration.

Authors

Nathan Killoran, Josh Izaac, Nicolás Quesada, Ville Bergholm, Matthew Amy, and Christian Weedbrook.

If you are doing research using Strawberry Fields, please cite our papers:

Nathan Killoran, Josh Izaac, Nicolás Quesada, Ville Bergholm, Matthew Amy, and Christian Weedbrook. “Strawberry Fields: A Software Platform for Photonic Quantum Computing”, Quantum, 3, 129 (2019).

Thomas R. Bromley, Juan Miguel Arrazola, Soran Jahangiri, Josh Izaac, Nicolás Quesada, Alain Delgado Gran, Maria Schuld, Jeremy Swinarton, Zeid Zabaneh, and Nathan Killoran. “Applications of Near-Term Photonic Quantum Computers: Software and Algorithms”, arxiv:1912.07634 (2019).

Support

If you are having issues, please let us know by posting the issue on our Github issue tracker.

We also have a Slack channel and a discussion forum - 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


Download files

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

Source Distribution

StrawberryFields-0.12.1.tar.gz (3.0 MB view details)

Uploaded Source

Built Distribution

StrawberryFields-0.12.1-py3-none-any.whl (3.0 MB view details)

Uploaded Python 3

File details

Details for the file StrawberryFields-0.12.1.tar.gz.

File metadata

  • Download URL: StrawberryFields-0.12.1.tar.gz
  • Upload date:
  • Size: 3.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.6.9

File hashes

Hashes for StrawberryFields-0.12.1.tar.gz
Algorithm Hash digest
SHA256 3fd83ca95e4ea839b048913074d0459965a810b45f0805e47a2ab09b9a8ed309
MD5 8129dc39ccf7c6894d10921af7f30926
BLAKE2b-256 f128dce04c5835237c8ffcbfdf8df9c4458ffe636fb37031aeeed2ffc418c1bb

See more details on using hashes here.

File details

Details for the file StrawberryFields-0.12.1-py3-none-any.whl.

File metadata

  • Download URL: StrawberryFields-0.12.1-py3-none-any.whl
  • Upload date:
  • Size: 3.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.6.9

File hashes

Hashes for StrawberryFields-0.12.1-py3-none-any.whl
Algorithm Hash digest
SHA256 629ccee679952402650921c403ed000b28a22a4b75ee3fbc949621ae8c35610b
MD5 9575a0f1b09af346cb1e33d16de9f7c5
BLAKE2b-256 18211b2df3de10386d64a4887ac3f3d1a30e3712db91cdb34a130301002b660a

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