Skip to content
Hybrid Quantum-Classical Machine Learning in TensorFlow
Python C++ Starlark Shell
Branch: master
Clone or download

Latest commit

zaqqwerty Sampled expectation calculator (#189)
* Initial sampled expectation function

* Added parity calculator to util

* Sampled expectation function finished

* update build

* Update build

* Initial util test file

* Initial test

* tests added

* Finished test

* Added comparison test

* updates

* brought in parity checker from main branch

* formatting

* Added Michaels faster bitmagic parity checker

* updated imports

* Update test

* tests passing

* formatting

* Removed unused header

* Removed unneeded file

* Removed unused header

* removed hash set

* Sampled expectations make no sense

* Try explicit test

* Needed expectation value reset

* Removed old comment

* formatting

* removed double

* lowered precision and samples

* Added bitmask function

* Fixed tests

* changed to one lineer

* added test

* Formatting

* adjusted test precision
Latest commit c24b8f5 Apr 7, 2020


Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows Trying to fix actions. (#74) Feb 17, 2020
benchmarks Clean build (#7) Feb 9, 2020
docs Update install instructions (#182) Apr 1, 2020
release Change from multiprocessing to pathos for windows compatability. (#161) Mar 17, 2020
scripts Reduce mnist runtime (#155) Mar 10, 2020
tensorflow_quantum Sampled expectation calculator (#189) Apr 7, 2020
third_party Bring in windows support from custom op repo (#102) Feb 21, 2020
.gitignore Initial copy from staging. Feb 6, 2020
.pylintrc add .pylintrc file. Feb 9, 2020 Initial copy from staging. Feb 6, 2020
LICENSE Added Stack Overflow tag to (#163) Mar 16, 2020
WORKSPACE Migrate from glog to tensorflow logging Feb 10, 2020 Bring in windows support from custom op repo (#102) Feb 21, 2020
requirements.txt Change from multiprocessing to pathos for windows compatability. (#161) Mar 17, 2020

TensorFlow Quantum

TensorFlow Quantum (TFQ) is a Python framework for hybrid quantum-classical machine learning that is primarily focused on modeling quantum data. TFQ is an application framework developed to allow quantum algorithms researchers and machine learning applications researchers to explore computing workflows that leverage Google’s quantum computing offerings, all from within TensorFlow.


Quantum computing at Google has hit an exciting milestone with the achievement of Quantum Supremacy. In the wake of this demonstration, Google is now turning its attention to developing and implementing new algorithms to run on its Quantum Computer that have real world applications.

To provide users with the tools they need to program and simulate a quantum computer, Google is working on Cirq. Cirq is designed for quantum computing researchers who are interested in running and designing algorithms that leverage existing (imperfect) quantum computers.

TensorFlow Quantum provides users with the tools they need to interleave quantum algorithms and logic designed in Cirq with the powerful and performant ML tools from TensorFlow. With this connection we hope to unlock new and exciting paths for Quantum Computing research that would not have otherwise been possible.


See the installation instructions.


All of our examples can be found here in the form of Python notebook tutorials

Report issues

Report bugs or feature requests using the TensorFlow Quantum issue tracker.

We also have a Stack Overflow tag for more general TFQ related discussions.

In the meantime check out the install instructions to get the experimental code running!


We are eager to collaborate with you! TensorFlow Quantum is still a very young code base, if you have ideas for features that you would like added feel free to check out our Contributor Guidelines to get started.


If you use TensorFlow Quantum in your research, please cite:

TensorFlow Quantum: A Software Framework for Quantum Machine Learning arXiv:2003.02989, 2020.

You can’t perform that action at this time.