You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"This notebook analyzes the error rates required for achieving Quantum Volume at a particular depth. For a given m = depth = number of qubits, plot the HOG for np.logspace outputs to view when it crosses the 2/3rds probability threshold."
9
-
]
2
+
"cells": [
3
+
{
4
+
"cell_type": "markdown",
5
+
"metadata": {
6
+
"id": "8e3qhaan0Vwx"
7
+
},
8
+
"source": [
9
+
"# Analyzing Quantum Volume Errors\n",
10
+
"This notebook analyzes the error rates required for achieving Quantum Volume at a particular depth. For a given m = depth = number of qubits, plot the HOG for np.logspace outputs to view when it crosses the 2/3rds probability threshold."
11
+
]
12
+
},
13
+
{
14
+
"cell_type": "code",
15
+
"execution_count": null,
16
+
"metadata": {
17
+
"id": "bd9529db1c0b"
18
+
},
19
+
"outputs": [],
20
+
"source": [
21
+
"try:\n",
22
+
" import cirq\n",
23
+
"except ImportError:\n",
24
+
" print(\"installing cirq...\")\n",
25
+
" !pip install --quiet cirq\n",
26
+
" print(\"installed cirq.\")"
27
+
]
28
+
},
29
+
{
30
+
"cell_type": "code",
31
+
"execution_count": null,
32
+
"metadata": {
33
+
"id": "1QezTbjO0Vw4"
34
+
},
35
+
"outputs": [],
36
+
"source": [
37
+
"import cirq\n",
38
+
"import cirq_google\n",
39
+
"\n",
40
+
"# Configuration parameters. Feel free to mess with these!\n",
41
+
"num_circuits = 10\n",
42
+
"depth = 4\n",
43
+
"num_samplers = 50\n",
44
+
"repetitions = 10_000\n",
45
+
"device=cirq_google.Sycamore\n",
46
+
"\n",
47
+
"print(f\"Configuration: depth {depth} with \"\n",
48
+
" f\"{num_circuits} circuits of {num_samplers} samplers\")"
49
+
]
50
+
},
51
+
{
52
+
"cell_type": "code",
53
+
"execution_count": null,
54
+
"metadata": {
55
+
"id": "rZ_7U7n90Vw5"
56
+
},
57
+
"outputs": [],
58
+
"source": [
59
+
"# Run the Quantum Volume algorithm over the above parameters.\n",
0 commit comments