quantum
An open-source Python framework for hybrid quantum-classical machine learning.
What is quantum?
An open-source Python framework for hybrid quantum-classical machine learning.
Overview of quantum
What it is
TensorFlow Quantum (TFQ) is an open-source Python framework for hybrid quantum-classical machine learning. It is designed to model quantum data by interleaving quantum algorithms and logic written in Cirq with machine learning tools from TensorFlow. The project is hosted on GitHub under the repository tensorflow/quantum and is licensed under Apache-2.0.
Key features
- Integrates with Cirq for writing quantum circuit definitions
- Integrates with qsim for running quantum circuit simulations
- Uses Keras to provide high-level abstractions for quantum machine learning constructs
- Provides an extensible system for automatic differentiation of quantum circuits
- Offers many methods for computing gradients, including parameter shift and adjoint methods
- Implements operations as C++ TensorFlow Ops, making them first-class citizens in the TF compute graph
- Harnesses TensorFlow’s computational machinery to provide exceptional performance and scalability
Use cases
TensorFlow Quantum is intended for quantum algorithms and machine learning researchers who need fast simulation of many millions of moderately-sized circuits. It has been used to enable research in quantum machine learning (QML) by providing a workflow for leveraging Google’s quantum computing offerings.
Getting started
See the installation instructions in the documentation. At this time, TensorFlow Quantum is built and tested on Linux with Python 3.10–3.12, TensorFlow 2.19.1, TF-Keras 2.19.0, NumPy 2.0, and Cirq 1.5.0. Guides and tutorials are available online at the TensorFlow.org web site. All examples can be found in GitHub as Python notebook tutorials.
License and pricing
License: Apache-2.0. Pricing: open source (free).
Based on the project's public README and repository metadata.