Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

rigetti/quantumflow

Repository files navigation

Notice: This is research code that will not necessarily be maintained to support further releases of Forest and other Rigetti Software. We welcome bug reports and PRs but make no guarantee about fixes or responses.

QuantumFlow: A Quantum Algorithms Development Toolkit

Build Status

Installation for development

It is easiest to install QuantumFlow's requirements using conda.

git clone https://github.com/rigetti/quantumflow.git
cd quantumflow
conda install -c conda-forge --file requirements.txt
pip install -e .

You can also install with pip. However some of the requirements are tricky to install (notably tensorflow & cvxpy), and (probably) not everything in QuantumFlow will work correctly.

git clone https://github.com/rigetti/quantumflow.git
cd quantumflow
pip install -r requirements.txt
pip install -e .

Example

Train the QAOA algorithm, with back-propagation gradient descent, to perform MAXCUT on a randomly chosen 6 node graph.

./examples/qaoa_maxcut.py --verbose --steps 5 --nodes 6 random
Morty Proxy This is a proxified and sanitized view of the page, visit original site.