Skip to main content

QuCumber

PyPI Version Python Versions Documentation Status Build Status (Travis) Build Status (AppVeyor) codecov Code style: black arXiv scipost

A Quantum Calculator Used for Many-body Eigenstate Reconstruction

QuCumber is a program that reconstructs an unknown quantum wavefunction from a set of measurements. The measurements should consist of binary counts; for example, the occupation of an atomic orbital, or angular momentum eigenvalue of a qubit. These measurements form a training set, which is used to train a stochastic neural network called a Restricted Boltzmann Machine. Once trained, the neural network is a reconstructed representation of the unknown wavefunction underlying the measurement data. It can be used for generative modelling, i.e. producing new instances of measurements, and to calculate estimators not contained in the original data set.

QuCumber is developed by the Perimeter Institute Quantum Intelligence Lab (PIQuIL).

Features

QuCumber implements unsupervised generative modelling with a two-layer RBM. Each layer is a number of binary stochastic variables (with values 0 or 1). The size of the visible layer corresponds to the input data, i.e. the number of qubits. The size of the hidden layer is a hyperparameter, varied to systematically control representation error.

Currently, quantum state reconstruction/tomography can be performed on both pure and mixed states. Pure state reconstruction can be further broken down into positive or complex wavefunction reconstruction. In the case of a positive wavefunction, data is only required in one basis. For complex wavefunctions as well as mixed states, measurement data in additional bases will be required to train the state.

Documentation

Documentation can be found here.

See "QuCumber: wavefunction reconstruction with neural networks" https://scipost.org/SciPostPhys.7.1.009

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Installing

If you're on Windows, you will have to install PyTorch manually; instructions can be found on their website: pytorch.org.

You can install the latest stable version of QuCumber, along with its dependencies, using pip:

pip install qucumber

If, for some reason, pip fails to install PyTorch, you can find installation instructions on their website. Once that's done you should be able to install QuCumber through pip as above.

QuCumber supports Python 3.6 and newer stable versions.

Installing the bleeding-edge version

If you'd like to install the most upto date, but potentially unstable version, you can clone the repository's master branch and then build from source like so:

git clone git@github.com:PIQuIL/QuCumber.git
cd ./QuCumber
python setup.py install

Contributing

Please read CONTRIBUTING.md for details on how to contribute to the project, and the process for submitting pull requests to us.

License

QuCumber is licensed under the Apache License Version 2.0, this includes almost all files in this repo. However, some miscellaneous files may be licensed differently. See LICENSE for more details.

Citation

@Article{10.21468/SciPostPhys.7.1.009,
    title={{QuCumber: wavefunction reconstruction with neural networks}},
    author={Matthew J. S. Beach and Isaac De Vlugt and Anna Golubeva and Patrick Huembeli and Bohdan Kulchytskyy and Xiuzhe Luo and Roger G. Melko and Ejaaz Merali and Giacomo Torlai},
    journal={SciPost Phys.},
    volume={7},
    issue={1},
    pages={9},
    year={2019},
    publisher={SciPost},
    doi={10.21468/SciPostPhys.7.1.009},
    url={https://scipost.org/10.21468/SciPostPhys.7.1.009},
}

Acknowledgments

  • We thank M. Albergo, G. Carleo, J. Carrasquilla, D. Sehayek, and L. Hayward Sierens for many helpful discussions.

  • We thank the Perimeter Institute for the continuing support of PIQuIL.

  • Thanks to Nick Mercer for creating our awesome logo. You can check out more of Nick's work by visiting his portfolio on Behance!

Metadata

Release files for qucumber 1.3.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qucumber 1.3.3
File Size Uploaded
qucumber-1.3.3.tar.gz 58.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for qucumber 1.3.3
File Interpreter ABI Platform
qucumber-1.3.3-py3-none-any.whl Python 3 none any Details

Total release size: 133.0 kB

Release files / qucumber-1.3.3.tar.gz

Download URL qucumber-1.3.3.tar.gz
Size 58.1 kB
Tags Source
SHA-256 checksum
How to use checksums
2941d609a90637a85ff938800667a1f6254bbfb1154c72682a6384d48a154a26
BLAKE2b-256 checksum
How to use checksums
3c4509466a85566b6b0f7b2daa58efba55402e659c9617e2418bb6b15ba573ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.16

Release files / qucumber-1.3.3-py3-none-any.whl

Download URL qucumber-1.3.3-py3-none-any.whl
Size 74.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6af7e482e44b22ad7ec1f4281d8c4edfa4a186d5576a1d8a0dde37e1fea71dc2
BLAKE2b-256 checksum
How to use checksums
11f95876c86a0db5f4ee30752c5cbc9f15d9e94797902b8dd6469130ca11be2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.16
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page