Skip to content

Commit

Permalink
Remove capture from CC tutorial nodes which were printing seg faults …
Browse files Browse the repository at this point in the history
…before
  • Loading branch information
caleb-johnson committed Nov 8, 2022
1 parent 6fa6e06 commit 2f7a87d
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 52 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 1,
"id": "eb859bde",
"metadata": {},
"outputs": [
Expand All @@ -41,7 +41,7 @@
"<Figure size 1020.64x491.633 with 1 Axes>"
]
},
"execution_count": 5,
"execution_count": 1,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -82,7 +82,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 2,
"id": "8c11457a",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -115,7 +115,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 3,
"id": "465733e2",
"metadata": {},
"outputs": [
Expand All @@ -141,7 +141,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 4,
"id": "938f7733",
"metadata": {},
"outputs": [
Expand All @@ -152,7 +152,7 @@
"<Figure size 523.664x270.9 with 1 Axes>"
]
},
"execution_count": 8,
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -164,7 +164,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 5,
"id": "1c3a5712",
"metadata": {},
"outputs": [
Expand All @@ -175,7 +175,7 @@
"<Figure size 623.998x270.9 with 1 Axes>"
]
},
"execution_count": 9,
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -206,7 +206,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 6,
"id": "5d1fb2ca",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -234,7 +234,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 7,
"id": "3cc622d9",
"metadata": {},
"outputs": [],
Expand All @@ -258,7 +258,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 8,
"id": "2ae5160c",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -287,7 +287,7 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 9,
"id": "fa22661e",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -316,7 +316,7 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": 10,
"id": "7e57f303",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -348,7 +348,7 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": 11,
"id": "3ec4d42c",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -384,13 +384,11 @@
},
{
"cell_type": "code",
"execution_count": 16,
"execution_count": 12,
"id": "5aceecc0",
"metadata": {},
"outputs": [],
"source": [
"%%capture\n",
"\n",
"from circuit_knitting_toolbox.circuit_cutting.wire_cutting import (\n",
" reconstruct_full_distribution,\n",
")\n",
Expand All @@ -410,7 +408,7 @@
},
{
"cell_type": "code",
"execution_count": 17,
"execution_count": 13,
"id": "919958cb",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -440,7 +438,7 @@
},
{
"cell_type": "code",
"execution_count": 18,
"execution_count": 14,
"id": "5353b0c8",
"metadata": {},
"outputs": [],
Expand All @@ -462,26 +460,26 @@
},
{
"cell_type": "code",
"execution_count": 19,
"execution_count": 15,
"id": "673d3cb3",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"{'nearest': {'chi2': 0,\n",
" 'Mean Squared Error': 8.13178352181795e-35,\n",
" 'Mean Absolute Percentage Error': 4.4880309854901524e-10,\n",
" 'Mean Squared Error': 9.028802547154542e-35,\n",
" 'Mean Absolute Percentage Error': 4.6492003644057173e-10,\n",
" 'Cross Entropy': 3.564551116068219,\n",
" 'HOP': 0.9945381353717198},\n",
" 'HOP': 0.9945381353717196},\n",
" 'naive': {'chi2': 0,\n",
" 'Mean Squared Error': 3.7794080473092745e-35,\n",
" 'Mean Absolute Percentage Error': 4.4880563544629694e-10,\n",
" 'Mean Squared Error': 4.559471610865772e-35,\n",
" 'Mean Absolute Percentage Error': 4.6491939462256077e-10,\n",
" 'Cross Entropy': 3.564551116068219,\n",
" 'HOP': 0.99453813537172}}"
]
},
"execution_count": 19,
"execution_count": 15,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -502,7 +500,7 @@
},
{
"cell_type": "code",
"execution_count": 20,
"execution_count": 16,
"id": "c8cc97e9",
"metadata": {
"scrolled": false
Expand All @@ -515,7 +513,7 @@
"<Figure size 1600x600 with 1 Axes>"
]
},
"execution_count": 20,
"execution_count": 16,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -555,14 +553,14 @@
},
{
"cell_type": "code",
"execution_count": 21,
"execution_count": 17,
"id": "5e6e41aa",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<h3>Version Information</h3><table><tr><th>Qiskit Software</th><th>Version</th></tr><tr><td><code>qiskit-terra</code></td><td>0.22.0</td></tr><tr><td><code>qiskit-aer</code></td><td>0.11.0</td></tr><tr><td><code>qiskit-ibmq-provider</code></td><td>0.19.2</td></tr><tr><td><code>qiskit-nature</code></td><td>0.4.5</td></tr><tr><th>System information</th></tr><tr><td>Python version</td><td>3.10.6</td></tr><tr><td>Python compiler</td><td>Clang 13.1.6 (clang-1316.0.21.2.5)</td></tr><tr><td>Python build</td><td>main, Aug 11 2022 13:49:25</td></tr><tr><td>OS</td><td>Darwin</td></tr><tr><td>CPUs</td><td>8</td></tr><tr><td>Memory (Gb)</td><td>32.0</td></tr><tr><td colspan='2'>Wed Oct 26 11:27:39 2022 CDT</td></tr></table>"
"<h3>Version Information</h3><table><tr><th>Qiskit Software</th><th>Version</th></tr><tr><td><code>qiskit-terra</code></td><td>0.22.2</td></tr><tr><td><code>qiskit-aer</code></td><td>0.11.1</td></tr><tr><td><code>qiskit-ibmq-provider</code></td><td>0.19.2</td></tr><tr><td><code>qiskit</code></td><td>0.39.2</td></tr><tr><td><code>qiskit-nature</code></td><td>0.4.5</td></tr><tr><th>System information</th></tr><tr><td>Python version</td><td>3.10.6</td></tr><tr><td>Python compiler</td><td>Clang 13.1.6 (clang-1316.0.21.2.5)</td></tr><tr><td>Python build</td><td>main, Aug 11 2022 13:49:25</td></tr><tr><td>OS</td><td>Darwin</td></tr><tr><td>CPUs</td><td>8</td></tr><tr><td>Memory (Gb)</td><td>32.0</td></tr><tr><td colspan='2'>Tue Nov 08 14:13:14 2022 EST</td></tr></table>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
Expand Down
Loading

0 comments on commit 2f7a87d

Please sign in to comment.