Installation

PennyLane-Rigetti, as well as all required Python packages mentioned above, can be installed via pip:

$ python -m pip install pennylane-rigetti

Make sure you are using the Python 3 version of pip.

Alternatively, you can install PennyLane-Rigetti from the source code by navigating to the top-level directory and running

$ python setup.py install

Dependencies

PennyLane-Rigetti requires the following libraries be installed:

as well as the following Python packages:

If you currently do not have Python 3 installed, we recommend Anaconda for Python 3, a distributed version of Python packaged for scientific computation.

Additionally, if you would like to compile the quantum instruction language (Quil) and run it locally using a quantum virtual machine (QVM) server, you will need to download and install the Forest software development kit (SDK):

Alternatively, you may sign up for Rigetti’s Quantum Cloud Services (QCS) which will allow you to compile your quantum code and run on real QPUs. Note that this requires a valid QCS account and the QCS CLI:

Tests

To test that the PennyLane-Rigetti plugin is working correctly you can run

$ make test

in the source folder.

Documentation

To build the HTML documentation, go to the top-level directory and run:

$ make docs

The documentation can then be found in the doc/_build/html/ directory.