Remove broken Qiskit version from notebooks (#147)

Closes https://github.com/Qiskit/documentation/issues/60.

We will redesign this functionality in
https://github.com/Qiskit/documentation/issues/133. In the meantime,
it's better to not have this broken functionality.
This commit is contained in:
Eric Arellano 2023-10-11 13:57:16 -04:00 committed by GitHub
parent 3044a1f30f
commit 98b2777acb
10 changed files with 669 additions and 983 deletions

View File

@ -797,66 +797,11 @@
"\n",
"larger_qc.decompose().draw()"
]
},
{
"cell_type": "code",
"execution_count": 15,
"metadata": {
"ExecuteTime": {
"end_time": "2021-07-31T05:02:16.955198Z",
"start_time": "2021-07-31T05:02:16.224522Z"
},
"execution": {
"iopub.execute_input": "2023-08-25T18:25:49.653048Z",
"iopub.status.busy": "2023-08-25T18:25:49.652604Z",
"iopub.status.idle": "2023-08-25T18:25:49.740621Z",
"shell.execute_reply": "2023-08-25T18:25:49.739819Z"
}
},
"outputs": [
{
"data": {
"text/html": [
"<h3>Version Information</h3><table><tr><th>Software</th><th>Version</th></tr><tr><td><code>qiskit</code></td><td>None</td></tr><tr><td><code>qiskit-terra</code></td><td>0.45.0</td></tr><tr><td><code>qiskit_aer</code></td><td>0.12.2</td></tr><tr><th colspan='2'>System information</th></tr><tr><td>Python version</td><td>3.8.17</td></tr><tr><td>Python compiler</td><td>GCC 11.3.0</td></tr><tr><td>Python build</td><td>default, Jun 7 2023 12:29:56</td></tr><tr><td>OS</td><td>Linux</td></tr><tr><td>CPUs</td><td>2</td></tr><tr><td>Memory (Gb)</td><td>6.7694854736328125</td></tr><tr><td colspan='2'>Fri Aug 25 18:25:49 2023 UTC</td></tr></table>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"<div style='width: 100%; background-color:#d5d9e0;padding-left: 10px; padding-bottom: 10px; padding-right: 10px; padding-top: 5px'><h3>This code is a part of Qiskit</h3><p>&copy; Copyright IBM 2017, 2023.</p><p>This code is licensed under the Apache License, Version 2.0. You may<br>obtain a copy of this license in the LICENSE.txt file in the root directory<br> of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.<p>Any modifications or derivative works of this code must retain this<br>copyright notice, and modified files need to carry a notice indicating<br>that they have been altered from the originals.</p></div>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"import qiskit.tools.jupyter\n",
"%qiskit_version_table\n",
"%qiskit_copyright"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"title": "Advanced circuits",
"description": "Advanced circuits notebook",
"celltoolbar": "Tags",
"description": "Advanced circuits notebook",
"kernelspec": {
"display_name": "Python 3",
"language": "python",
@ -877,6 +822,7 @@
"nteract": {
"version": "0.22.4"
},
"title": "Advanced circuits",
"varInspector": {
"cols": {
"lenName": 16,

View File

@ -774,60 +774,12 @@
"\n",
"When using the `plot_bloch_vector` function it returns a `matplotlib.Figure` for the rendered visualization. Jupyter notebooks understand this return type and render it for us in this tutorial, but when running outside of Jupyter you do not have this feature automatically. However, the `matplotlib.Figure` class natively has methods to both display and save the visualization. You can call `.show()` on the returned object to open the image in a new window (assuming your configured matplotlib backend is interactive). Or alternatively you can call `.savefig('out.png')` to save the figure to `out.png` in the current working directory. The `savefig()` method takes a path so you can adjust the location and filename where you're saving the output."
]
},
{
"cell_type": "code",
"execution_count": 20,
"metadata": {
"ExecuteTime": {
"end_time": "2021-07-31T05:09:18.283600Z",
"start_time": "2021-07-31T05:09:17.464585Z"
},
"execution": {
"iopub.execute_input": "2023-08-25T18:25:19.155318Z",
"iopub.status.busy": "2023-08-25T18:25:19.154947Z",
"iopub.status.idle": "2023-08-25T18:25:19.204641Z",
"shell.execute_reply": "2023-08-25T18:25:19.204006Z"
}
},
"outputs": [
{
"data": {
"text/html": [
"<h3>Version Information</h3><table><tr><th>Software</th><th>Version</th></tr><tr><td><code>qiskit</code></td><td>None</td></tr><tr><td><code>qiskit-terra</code></td><td>0.45.0</td></tr><tr><th colspan='2'>System information</th></tr><tr><td>Python version</td><td>3.8.17</td></tr><tr><td>Python compiler</td><td>GCC 11.3.0</td></tr><tr><td>Python build</td><td>default, Jun 7 2023 12:29:56</td></tr><tr><td>OS</td><td>Linux</td></tr><tr><td>CPUs</td><td>2</td></tr><tr><td>Memory (Gb)</td><td>6.7694854736328125</td></tr><tr><td colspan='2'>Fri Aug 25 18:25:19 2023 UTC</td></tr></table>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"<div style='width: 100%; background-color:#d5d9e0;padding-left: 10px; padding-bottom: 10px; padding-right: 10px; padding-top: 5px'><h3>This code is a part of Qiskit</h3><p>&copy; Copyright IBM 2017, 2023.</p><p>This code is licensed under the Apache License, Version 2.0. You may<br>obtain a copy of this license in the LICENSE.txt file in the root directory<br> of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.<p>Any modifications or derivative works of this code must retain this<br>copyright notice, and modified files need to carry a notice indicating<br>that they have been altered from the originals.</p></div>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"import qiskit.tools.jupyter\n",
"%qiskit_version_table\n",
"%qiskit_copyright"
]
}
],
"metadata": {
"title": "Plotting data in Qiskit",
"description": "Plotting data in Qiskit notebook",
"anaconda-cloud": {},
"celltoolbar": "Tags",
"description": "Plotting data in Qiskit notebook",
"kernelspec": {
"display_name": "Python 3.10.6 64-bit ('quantum')",
"language": "python",
@ -845,6 +797,7 @@
"pygments_lexer": "ipython3",
"version": "3.8.17"
},
"title": "Plotting data in Qiskit",
"varInspector": {
"cols": {
"lenName": 16,

View File

@ -289,53 +289,9 @@
"source": [
"ALAP is the default because it allows qubits to remain idle as long as possible. In this case, the difference between ALAP and ASAP may be negligible, but in ALAP, qubit 0 has _no_ time to decay from the excited state before measurement."
]
},
{
"cell_type": "code",
"execution_count": 8,
"metadata": {
"execution": {
"iopub.execute_input": "2023-08-25T18:25:58.448706Z",
"iopub.status.busy": "2023-08-25T18:25:58.448222Z",
"iopub.status.idle": "2023-08-25T18:25:58.548097Z",
"shell.execute_reply": "2023-08-25T18:25:58.547431Z"
}
},
"outputs": [
{
"data": {
"text/html": [
"<h3>Version Information</h3><table><tr><th>Software</th><th>Version</th></tr><tr><td><code>qiskit</code></td><td>None</td></tr><tr><td><code>qiskit-terra</code></td><td>0.45.0</td></tr><tr><td><code>qiskit_aer</code></td><td>0.12.2</td></tr><tr><th colspan='2'>System information</th></tr><tr><td>Python version</td><td>3.8.17</td></tr><tr><td>Python compiler</td><td>GCC 11.3.0</td></tr><tr><td>Python build</td><td>default, Jun 7 2023 12:29:56</td></tr><tr><td>OS</td><td>Linux</td></tr><tr><td>CPUs</td><td>2</td></tr><tr><td>Memory (Gb)</td><td>6.7694854736328125</td></tr><tr><td colspan='2'>Fri Aug 25 18:25:58 2023 UTC</td></tr></table>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"<div style='width: 100%; background-color:#d5d9e0;padding-left: 10px; padding-bottom: 10px; padding-right: 10px; padding-top: 5px'><h3>This code is a part of Qiskit</h3><p>&copy; Copyright IBM 2017, 2023.</p><p>This code is licensed under the Apache License, Version 2.0. You may<br>obtain a copy of this license in the LICENSE.txt file in the root directory<br> of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.<p>Any modifications or derivative works of this code must retain this<br>copyright notice, and modified files need to carry a notice indicating<br>that they have been altered from the originals.</p></div>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"import qiskit.tools.jupyter\n",
"%qiskit_version_table\n",
"%qiskit_copyright"
]
}
],
"metadata": {
"title": "Pulse scheduler",
"description": "Pulse scheduler notebook",
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
@ -354,6 +310,7 @@
"pygments_lexer": "ipython3",
"version": "3.8.17"
},
"title": "Pulse scheduler",
"widgets": {
"application/vnd.jupyter.widget-state+json": {
"state": {

View File

@ -1168,28 +1168,6 @@
"source": [
"Note that process fidelity is generally only a valid measure of closeness if the input operators are unitary (or CP in the case of quantum channels), and an exception will be raised if the inputs are not CP."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"ExecuteTime": {
"end_time": "2019-08-21T09:04:44.743744Z",
"start_time": "2019-08-21T09:04:44.734826Z"
},
"execution": {
"iopub.execute_input": "2023-08-25T18:25:53.464957Z",
"iopub.status.busy": "2023-08-25T18:25:53.463773Z",
"iopub.status.idle": "2023-08-25T18:25:53.585901Z",
"shell.execute_reply": "2023-08-25T18:25:53.585253Z"
}
},
"outputs": [],
"source": [
"import qiskit.tools.jupyter\n",
"%qiskit_version_table\n",
"%qiskit_copyright"
]
}
],
"metadata": {

1280
docs/build/pulse.ipynb vendored

File diff suppressed because one or more lines are too long

View File

@ -711,53 +711,9 @@
"\n",
"On this [page](07_pulse_scheduler.ipynb), we'll show how to schedule `QuantumCircuit`s into Pulse `Schedule`s."
]
},
{
"cell_type": "code",
"execution_count": 18,
"metadata": {
"execution": {
"iopub.execute_input": "2023-08-25T18:26:03.216531Z",
"iopub.status.busy": "2023-08-25T18:26:03.216149Z",
"iopub.status.idle": "2023-08-25T18:26:03.307875Z",
"shell.execute_reply": "2023-08-25T18:26:03.306848Z"
}
},
"outputs": [
{
"data": {
"text/html": [
"<h3>Version Information</h3><table><tr><th>Software</th><th>Version</th></tr><tr><td><code>qiskit</code></td><td>None</td></tr><tr><td><code>qiskit-terra</code></td><td>0.45.0</td></tr><tr><td><code>qiskit_aer</code></td><td>0.12.2</td></tr><tr><th colspan='2'>System information</th></tr><tr><td>Python version</td><td>3.8.17</td></tr><tr><td>Python compiler</td><td>GCC 11.3.0</td></tr><tr><td>Python build</td><td>default, Jun 7 2023 12:29:56</td></tr><tr><td>OS</td><td>Linux</td></tr><tr><td>CPUs</td><td>2</td></tr><tr><td>Memory (Gb)</td><td>6.7694854736328125</td></tr><tr><td colspan='2'>Fri Aug 25 18:26:03 2023 UTC</td></tr></table>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"<div style='width: 100%; background-color:#d5d9e0;padding-left: 10px; padding-bottom: 10px; padding-right: 10px; padding-top: 5px'><h3>This code is a part of Qiskit</h3><p>&copy; Copyright IBM 2017, 2023.</p><p>This code is licensed under the Apache License, Version 2.0. You may<br>obtain a copy of this license in the LICENSE.txt file in the root directory<br> of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.<p>Any modifications or derivative works of this code must retain this<br>copyright notice, and modified files need to carry a notice indicating<br>that they have been altered from the originals.</p></div>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"import qiskit.tools.jupyter\n",
"%qiskit_version_table\n",
"%qiskit_copyright"
]
}
],
"metadata": {
"title": "Gathering system information",
"description": "Gathering system information notebook",
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
@ -776,6 +732,7 @@
"pygments_lexer": "ipython3",
"version": "3.8.17"
},
"title": "Gathering system information",
"varInspector": {
"cols": {
"lenName": 16,

View File

@ -273,30 +273,6 @@
" - Learn more about [Qiskit](intro-to-qiskit) or [Qiskit Runtime](runtime).\n",
"</Admonition>\n"
]
},
{
"cell_type": "code",
"execution_count": 5,
"id": "3273c661",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<h3>Version Information</h3><table><tr><th>Software</th><th>Version</th></tr><tr><td><code>qiskit</code></td><td>0.44.1</td></tr><tr><td><code>qiskit-terra</code></td><td>0.25.1</td></tr><tr><td><code>qiskit_ibm_runtime</code></td><td>0.12.2</td></tr><tr><td><code>qiskit_aer</code></td><td>0.12.2</td></tr><tr><td><code>qiskit_ibm_provider</code></td><td>0.7.0</td></tr><tr><th colspan='2'>System information</th></tr><tr><td>Python version</td><td>3.11.5</td></tr><tr><td>Python compiler</td><td>Clang 14.0.3 (clang-1403.0.22.14.1)</td></tr><tr><td>Python build</td><td>main, Aug 24 2023 15:09:45</td></tr><tr><td>OS</td><td>Darwin</td></tr><tr><td>CPUs</td><td>10</td></tr><tr><td>Memory (Gb)</td><td>32.0</td></tr><tr><td colspan='2'>Sun Oct 01 16:13:50 2023 EDT</td></tr></table>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"import qiskit.tools.jupyter\n",
"%qiskit_version_table"
]
}
],
"metadata": {

View File

@ -555,22 +555,6 @@
" - Try out some [tutorials.](https://learning.quantum-computing.ibm.com/catalog?content=tutorials)\n",
"</Admonition>"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"ExecuteTime": {
"end_time": "2021-07-31T05:06:28.643646Z",
"start_time": "2021-07-31T05:06:27.732825Z"
}
},
"outputs": [],
"source": [
"import qiskit.tools.jupyter\n",
"%qiskit_version_table\n",
"%qiskit_copyright"
]
}
],
"metadata": {

File diff suppressed because one or more lines are too long

View File

@ -6739,67 +6739,11 @@
"\n",
"There are many different options for how you can configure, this example is pretty limited. Refer to the documentation for more examples and options to build more sophisticated use cases that suit your specific use case or preferences."
]
},
{
"cell_type": "code",
"execution_count": 35,
"metadata": {
"ExecuteTime": {
"end_time": "2019-12-10T21:48:10.920429Z",
"start_time": "2019-12-10T21:48:10.912305Z"
},
"execution": {
"iopub.execute_input": "2023-08-25T18:25:41.587119Z",
"iopub.status.busy": "2023-08-25T18:25:41.586886Z",
"iopub.status.idle": "2023-08-25T18:25:41.772067Z",
"shell.execute_reply": "2023-08-25T18:25:41.771231Z"
},
"scrolled": false
},
"outputs": [
{
"data": {
"text/html": [
"<h3>Version Information</h3><table><tr><th>Software</th><th>Version</th></tr><tr><td><code>qiskit</code></td><td>None</td></tr><tr><td><code>qiskit-terra</code></td><td>0.45.0</td></tr><tr><td><code>qiskit_aer</code></td><td>0.12.2</td></tr><tr><th colspan='2'>System information</th></tr><tr><td>Python version</td><td>3.8.17</td></tr><tr><td>Python compiler</td><td>GCC 11.3.0</td></tr><tr><td>Python build</td><td>default, Jun 7 2023 12:29:56</td></tr><tr><td>OS</td><td>Linux</td></tr><tr><td>CPUs</td><td>2</td></tr><tr><td>Memory (Gb)</td><td>6.7694854736328125</td></tr><tr><td colspan='2'>Fri Aug 25 18:25:41 2023 UTC</td></tr></table>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"<div style='width: 100%; background-color:#d5d9e0;padding-left: 10px; padding-bottom: 10px; padding-right: 10px; padding-top: 5px'><h3>This code is a part of Qiskit</h3><p>&copy; Copyright IBM 2017, 2023.</p><p>This code is licensed under the Apache License, Version 2.0. You may<br>obtain a copy of this license in the LICENSE.txt file in the root directory<br> of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.<p>Any modifications or derivative works of this code must retain this<br>copyright notice, and modified files need to carry a notice indicating<br>that they have been altered from the originals.</p></div>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"import qiskit.tools.jupyter\n",
"%qiskit_version_table\n",
"%qiskit_copyright"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"title": "Transpiler passes and pass manager",
"description": "Transpiler passes and pass manager notebook",
"celltoolbar": "Tags",
"description": "Transpiler passes and pass manager notebook",
"kernelspec": {
"display_name": "Python 3",
"language": "python",
@ -6817,6 +6761,7 @@
"pygments_lexer": "ipython3",
"version": "3.8.17"
},
"title": "Transpiler passes and pass manager",
"varInspector": {
"cols": {
"lenName": 16,