Code Monkey home page Code Monkey logo

entropica_qaoa's Introduction

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:

  • pytest runs the default tests, and skips both the longer tests that need heavier simulations, as well as tests of the Notebooks in the examples 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.

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 [email protected].

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 [email protected].

entropica_qaoa's People

Contributors

ewanmunro avatar jlbosse avatar midroni avatar jenjaminbones avatar joaquinkeller avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.