Entropica QAOA
A modular package providing multiple features and workflow tools for the quantum approximate optimisation algorithm (QAOA), facilitating its use, prototyping, and testing. Includes several different parametrisations, integration with data science and graph analysis libraries such as Pandas and NetworkX, numerous utility functions, and convenient optimiser logging and analysis tools. Documentation contains extensive and didactic examples.
Read more about EntropicaQAOA on our blog.
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 Rigetti's documentation here.
You can install the EntropicaQAOA 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
Alternatively, you can clone directly from GitHub:
git clone https://github.com/entropicalabs/entropica_qaoa.git
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. The commands are as follows:
pytestruns the default tests, and skips both the longer tests that need heavier simulations, as well as tests of the Notebooks in theexamplesdirectory.pytest --runslowruns the the tests that require longer time.pytest --notebooksruns 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 --allruns all of the above tests.
QPU access
EntropicaQAOA provides full native support for Rigetti’s QVM and QPUs. For access to the QPUs, sign up online at https://qcs.rigetti.com/, or reach out to support@rigetti.com.
Contributing and feedback
If you find any bugs or errors, have feature requests, or code you would like to contribute, feel free to open an issue or send us a pull request on GitHub .
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.
Metadata
Release files for entropica-qaoa 1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| entropica_qaoa-1.2.tar.gz | 31.4 kB | Without provenance | Details for entropica_qaoa-1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| entropica_qaoa-1.2-py3-none-any.whl | Python 3 | none | any | Details for entropica_qaoa-1.2-py3-none-any.whl |
Total release size: 70.1 kB
Release files / entropica_qaoa-1.2.tar.gz
| Download URL | entropica_qaoa-1.2.tar.gz |
|---|---|
| Size | 31.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
334d9c92aa40a79328cad31bd3b51e242d36feebe58b59ab97d41a455d3f9ec3
|
|
BLAKE2b-256 checksum How to use checksums |
72fcff207f5ce2e5a4b6b89d602ced49e73824b862531ad03cbc5f684c68509a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Release files / entropica_qaoa-1.2-py3-none-any.whl
| Download URL | entropica_qaoa-1.2-py3-none-any.whl |
|---|---|
| Size | 38.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7e0bba1e3173dbaa909f159dd04dc81f0204e001560d659bc52189c2c02ebcf2
|
|
BLAKE2b-256 checksum How to use checksums |
59983c57215bf034dd57b2b6c23ac85a4798fd95a5e3e97f7e01ef33dc05b6f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Security for entropica-qaoa 1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.