Entropica Labs QAOA package
Project description
Entropica QAOA
A package implementing the Quantum Approximate Optimisation Algorithm (QAOA), providing a number of different features, parametrisations, and utility functions.
Documentation
The documentation for EntropicaQAOA can be found here. Alternatively, it can be complied locally as follows:
Install the Prerequisites
pip install sphinx sphinx-rtd-theme sphinx-autodoc-typehints nbsphinx nbconvert
Compile the documentation
cd docs && make html
The compiled HTML version of the documentation is then found in
entropica_qaoa/docs/build/html
.
Installation
We assume that the user has already installed Rigetti's pyQuil package, as well as the Rigetti QVM and Quil Compiler. For instructions on how to do so, see the Rigetti documentation here.
You can install the entropica_qaoa
package using pip:
pip install entropica_qaoa
To upgrade to the latest version:
pip install --upgrade entropica_qaoa
If you want to run the Demo Notebooks, you will additionally need to install scikit-learn
and scikit-optimize
, which can be done as follows:
pip install scikit-learn && pip install scikit-optimize
Testing
All software tests are located in entropica_qaoa/tests/
. To run them you will need to install pytest. To speed up the testing, we have tagged tests that require more computational time (~ 5 mins or so) with runslow
, and the tests of the notebooks with notebooks
. This means that a bare $
pytest
runs the default tests, and skips both the longer tests that need heavier simulations, as well as tests of the Notebooks in theexamples
directory.pytest --runslow
runs the the tests that require longer time.pytest --notebooks
runs the Notebook tests. To achieve this, the notebooks are converted to python scripts, and then executed. Should any errors occur, this means that the line numbers given in the error messages refer to the lines in<TheNotebook>.py
, and not in<TheNotebook>.ipynb
.pytest --all
runs all of the above tests.
Contributing and feedback
This project is hosted on GitHub, and can be cloned as follows:
git clone https://github.com/entropicalabs/entropica_qaoa.git
If you have feature requests, or have already implemented them, feel free to open an issue or send us a pull request.
We are always interested to hear about projects built with EntropicaQAOA. If you have an application you’d like to tell us about, drop us an email at devteam@entropicalabs.com.
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
Hashes for entropica_qaoa-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03861f66bc4d8aed796a3b417eff15c59930c8b97414bba99ec602d94218778d |
|
MD5 | 270ed4b83a9d1bfa2f33c03810a20e48 |
|
BLAKE2b-256 | 12b6d429b3a442a0de5f4020a0ac03d28f176360d28cae4fbf9b2a9eacb5b50a |