Commit c815aec8 authored by Zachary Parks's avatar Zachary Parks
Browse files

Adding Rigetti QVM to tutorials documentation

Signed-off-by: default avatarZachary Parks <>
parent a997cba0
......@@ -207,6 +207,51 @@ scope, which in this case is the prime factors we are seeking. The ``xacc.analyz
provides a convenience method for executing the correct ``IRGenerator::analyzeResults``
Rigetti QVM Python JIT
The XACC Python JIT mechanism can be used for writing and executing Rigetti pyQuil code using the Rigetti QVM.
Note that this requires downloading and installing the Rigetti Forest Software Development Kit,
which includes pyQuil 2.0, the Quantum Virtual Machine (qvm), and the Rigetti Quil Compiler (quilc).
With the Rigetti Forest SDK installed, the QVM server can be started in a terminal by running the command:
.. code::
$ qvm -S
XACC does not require the Rigetti Quil Compiler to be used to
execute quantum kernels on the QVM. Once the QVM server has been started,
the XACC workflow is essentially the same as when targeting other quantum processors.
Here is a simple script to construct a Bell State on the Rigetti QVM:
.. code::
import xacc
# Initialize the framework
# Target the Rigetti QVM and
# allocate some qubits
qpu = xacc.getAccelerator('rigetti-qvm')
qubits = qpu.createBuffer('q', 2)
# Define the XACC Kernel
def entangle(buffer):
# Display the results
# Finalize the framework
AcceleratorBuffer Usage
The ``AcceleratorBuffer`` makes up the glue between host-side code and ``Accelerator``
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment