Skip to content

Commit

Permalink
Docs: Add getting started example, QCS docs links (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
ameyer-rigetti authored Jul 28, 2021
1 parent af99073 commit c0a0d2d
Show file tree
Hide file tree
Showing 5 changed files with 193 additions and 4 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ print("Result memory:", memory)
print("Result counts:", counts)
```

### Rigetti Quantum Cloud Services (QCS)

Execution against a QPU requires a [reservation via QCS](https://docs.rigetti.com/qcs/guides/reserving-time-on-a-qpu).
For more information on using QCS, see the [QCS documentation](https://docs.rigetti.com).

## Advanced

### Lifecycle Hooks
Expand Down
183 changes: 183 additions & 0 deletions docs/examples/GettingStarted.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,183 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Getting Started\n",
"\n",
"Using Qiskit with Rigetti QPUs and simulators is easy!\n",
"\n",
"To start out, let's import the necessary components:"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"from qiskit import (\n",
" QuantumCircuit,\n",
" QuantumRegister,\n",
" ClassicalRegister,\n",
" execute\n",
")\n",
"from qiskit_rigetti import RigettiQCSProvider"
]
},
{
"cell_type": "markdown",
"metadata": {
"pycharm": {
"name": "#%% md\n"
}
},
"source": [
"Now, we'll instantiate a provider and get a backend. Use `provider.get_simulator()` to retrieve a simulator,\n",
"or use `provider.get_backend()` to retrieve a remote QPU backend (requires a reservation via [Rigetti Quantum Cloud Services (QCS)](https://docs.rigetti.com/qcs/guides/reserving-time-on-a-qpu))."
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"provider = RigettiQCSProvider()\n",
"backend = provider.get_simulator(num_qubits=2, noisy=True) # or provider.get_backend(name=\"Aspen-9\")"
]
},
{
"cell_type": "markdown",
"metadata": {
"pycharm": {
"name": "#%% md\n"
}
},
"source": [
"Now, let's create a simple Bell state circuit:"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<pre style=\"word-wrap: normal;white-space: pre;background: #fff0;line-height: 1.1;font-family: &quot;Courier New&quot;,Courier,monospace\"> ┌───┐ ┌─┐ \n",
" q_0: ┤ H ├──■──┤M├───\n",
" └───┘┌─┴─┐└╥┘┌─┐\n",
" q_1: ─────┤ X ├─╫─┤M├\n",
" └───┘ ║ └╥┘\n",
"ro: 2/═══════════╩══╩═\n",
" 0 1 </pre>"
],
"text/plain": [
" ┌───┐ ┌─┐ \n",
" q_0: ┤ H ├──■──┤M├───\n",
" └───┘┌─┴─┐└╥┘┌─┐\n",
" q_1: ─────┤ X ├─╫─┤M├\n",
" └───┘ ║ └╥┘\n",
"ro: 2/═══════════╩══╩═\n",
" 0 1 "
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"circuit = QuantumCircuit(QuantumRegister(2, \"q\"), ClassicalRegister(2, \"ro\"))\n",
"circuit.h(0)\n",
"circuit.cx(0, 1)\n",
"circuit.measure([0, 1], [0, 1])\n",
"\n",
"circuit.draw()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The circuit can now be run against the backend with Qiskit's `execute()` function:"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Counts for experiment: {'01': 57, '11': 405, '00': 476, '10': 62}\n"
]
}
],
"source": [
"job = execute(circuit, backend, shots=1000)\n",
"result = job.result()\n",
"counts = result.get_counts()\n",
"print(\"Counts for experiment:\", counts)"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAc0AAAE6CAYAAAB00gm8AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9y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K4juB/wmHtjzWyQu7+jezSTI+Q++YS7v5vs2hJFV8+mj7FADcHtJkAw/u/uO9z9MeALBEO1l6WmvB6pvX2y090fJzhX1oD2SdKZ2VyCX1p+CKwguJ3hUjMriJ5Pw8z6Aw+a2dkKzM7Xzj65xMzOjNknfYGHj9xO1xXpSDNNRP8xPUUwccFVwJ9bT5FnZjcCX3X3CcmvsOfRPklfZrYUaAa+D1wKfAU4E9gK/AZ4nmDCg3vcvXeq6uxJeso+0ZFmmojOafp/gL7AI8BVZpYb/W35yMnz6QT3pEkSaJ+kp+i9mTXAu+6+3d3/2d3PBiYTTJv3FYLbtH6MJjVIip60T3SkmWaiwxa3AmUEE7WvAd4mmHv2LeAad9+Yugp7Hu2T9BOdC3h4dE7Z3sDHrS4Imk0wpWGxu7+SojJ7lJ6yTxSaaSp6q8NFwMUEl81vAh5399dSWVdPpn2S3qJXzpq7N5vZtQTDgP1SXVdP1h33iUKzCzA9AiztaJ+kNzNbBGS4+w9SXYsEuss+UWiKSLcTfXJGs36xSR/dZZ8oNEVERELS1bMiIiIhKTRFRERCUmiKiIiEpNAUEREJSaEpIiISkkJTREQkpP8PN2MNH8UzM8IAAAAASUVORK5CYII=\n",
"text/plain": [
"<Figure size 504x360 with 1 Axes>"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"from qiskit.tools.visualization import plot_histogram\n",
"\n",
"plot_histogram(counts)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Quantum Cloud Services\n",
"\n",
"For more information on using Rigetti Quantum Cloud Services, see the [QCS documentation](https://docs.rigetti.com)."
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.9"
}
},
"nbformat": 4,
"nbformat_minor": 4
}
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"source": [
"# Max-Cut QAOA on QCS with Qiskit\n",
"\n",
"> ℹ️ Originally written to demonstrate pyQuil, this notebook demonstrates how to take existing pyQuil work and run it on a Rigetti backend using Qiskit.\n",
"> ℹ️ Originally written to demonstrate pyQuil, this notebook shows how to take existing pyQuil work and run it on a Rigetti backend using Qiskit.\n",
"\n",
"In this notebook, we will walk through how to run the **Max-Cut QAOA** algorithm using the Qiskit Rigetti Provider."
]
Expand Down Expand Up @@ -333,4 +333,4 @@
},
"nbformat": 4,
"nbformat_minor": 5
}
}
5 changes: 3 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ This documentation supports light ☀️ and dark 🌙 modes and will automatica
:maxdepth: 1
:caption: Examples
examples/qaoa_qiskit.ipynb
examples/qaoa_pyquil.ipynb
examples/GettingStarted.ipynb
examples/QAOA.ipynb
examples/QAOAFromPyQuil.ipynb
```

```{toctree}
Expand Down

0 comments on commit c0a0d2d

Please sign in to comment.