Skip to content
This repository was archived by the owner on Aug 21, 2023. It is now read-only.

Commit 71363b0

Browse files
authored
Merge pull request #946 from nonhermitian/add_chem_tutorials
add chemistry tutorial
2 parents 8308ee6 + 4f2c2a5 commit 71363b0

4 files changed

Lines changed: 619 additions & 31 deletions

File tree

index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Qiskit Tutorials
1313
Quantum System Error Analysis <tutorials/noise/index.rst>
1414
Optimization <tutorials/optimization/index.rst>
1515
Finance <tutorials/finance/index.rst>
16+
Chemistry <tutorials/chemistry/index.rst>
1617

1718

1819
.. Hiding - Indices and tables

legacy_tutorials/aqua/chemistry/programmatic_approach.ipynb

Lines changed: 68 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
{
22
"cells": [
3-
{
4-
"cell_type": "markdown",
5-
"metadata": {},
6-
"source": [
7-
"![qiskit_header.png](../../../images/qiskit_header.png)"
8-
]
9-
},
103
{
114
"cell_type": "markdown",
125
"metadata": {},
@@ -16,7 +9,7 @@
169
"The latest version of this notebook is available on https://github.com/Qiskit/qiskit-tutorial.\n",
1710
"\n",
1811
"***\n",
19-
"### Contributors\n",
12+
"## Contributors\n",
2013
"Richard Chen<sup>[1]</sup>, Antonio Mezzacapo<sup>[1]</sup>, Marco Pistoia<sup>[1]</sup>, Stephen Wood<sup>[1]</sup>\n",
2114
"### Affiliation\n",
2215
"- <sup>[1]</sup>IBMQ"
@@ -38,8 +31,13 @@
3831
},
3932
{
4033
"cell_type": "code",
41-
"execution_count": 1,
42-
"metadata": {},
34+
"execution_count": 15,
35+
"metadata": {
36+
"ExecuteTime": {
37+
"end_time": "2020-07-13T23:45:32.309683Z",
38+
"start_time": "2020-07-13T23:45:32.303569Z"
39+
}
40+
},
4341
"outputs": [],
4442
"source": [
4543
"# import common packages\n",
@@ -71,8 +69,13 @@
7169
},
7270
{
7371
"cell_type": "code",
74-
"execution_count": 2,
75-
"metadata": {},
72+
"execution_count": 16,
73+
"metadata": {
74+
"ExecuteTime": {
75+
"end_time": "2020-07-13T23:45:32.818377Z",
76+
"start_time": "2020-07-13T23:45:32.615830Z"
77+
}
78+
},
7679
"outputs": [],
7780
"source": [
7881
"# using driver to get fermionic Hamiltonian\n",
@@ -93,8 +96,13 @@
9396
},
9497
{
9598
"cell_type": "code",
96-
"execution_count": 3,
97-
"metadata": {},
99+
"execution_count": 17,
100+
"metadata": {
101+
"ExecuteTime": {
102+
"end_time": "2020-07-13T23:45:33.151210Z",
103+
"start_time": "2020-07-13T23:45:33.119738Z"
104+
}
105+
},
98106
"outputs": [
99107
{
100108
"name": "stdout",
@@ -125,8 +133,13 @@
125133
},
126134
{
127135
"cell_type": "code",
128-
"execution_count": 4,
129-
"metadata": {},
136+
"execution_count": 18,
137+
"metadata": {
138+
"ExecuteTime": {
139+
"end_time": "2020-07-13T23:45:33.789550Z",
140+
"start_time": "2020-07-13T23:45:33.300000Z"
141+
}
142+
},
130143
"outputs": [
131144
{
132145
"name": "stdout",
@@ -278,8 +291,13 @@
278291
},
279292
{
280293
"cell_type": "code",
281-
"execution_count": 5,
282-
"metadata": {},
294+
"execution_count": 19,
295+
"metadata": {
296+
"ExecuteTime": {
297+
"end_time": "2020-07-13T23:45:33.892140Z",
298+
"start_time": "2020-07-13T23:45:33.792285Z"
299+
}
300+
},
283301
"outputs": [
284302
{
285303
"name": "stdout",
@@ -322,8 +340,13 @@
322340
},
323341
{
324342
"cell_type": "code",
325-
"execution_count": 6,
326-
"metadata": {},
343+
"execution_count": 20,
344+
"metadata": {
345+
"ExecuteTime": {
346+
"end_time": "2020-07-13T23:45:34.090504Z",
347+
"start_time": "2020-07-13T23:45:34.087798Z"
348+
}
349+
},
327350
"outputs": [],
328351
"source": [
329352
"# from qiskit import IBMQ\n",
@@ -332,17 +355,26 @@
332355
},
333356
{
334357
"cell_type": "code",
335-
"execution_count": 7,
336-
"metadata": {},
358+
"execution_count": 21,
359+
"metadata": {
360+
"ExecuteTime": {
361+
"end_time": "2020-07-13T23:45:34.269862Z",
362+
"start_time": "2020-07-13T23:45:34.265808Z"
363+
}
364+
},
337365
"outputs": [],
338366
"source": [
339367
"backend = Aer.get_backend('statevector_simulator')"
340368
]
341369
},
342370
{
343371
"cell_type": "code",
344-
"execution_count": 8,
372+
"execution_count": 22,
345373
"metadata": {
374+
"ExecuteTime": {
375+
"end_time": "2020-07-13T23:45:34.578341Z",
376+
"start_time": "2020-07-13T23:45:34.443234Z"
377+
},
346378
"scrolled": true
347379
},
348380
"outputs": [],
@@ -375,8 +407,13 @@
375407
},
376408
{
377409
"cell_type": "code",
378-
"execution_count": 9,
379-
"metadata": {},
410+
"execution_count": 23,
411+
"metadata": {
412+
"ExecuteTime": {
413+
"end_time": "2020-07-13T23:45:35.187037Z",
414+
"start_time": "2020-07-13T23:45:34.783058Z"
415+
}
416+
},
380417
"outputs": [
381418
{
382419
"name": "stdout",
@@ -397,19 +434,19 @@
397434
},
398435
{
399436
"cell_type": "code",
400-
"execution_count": 10,
437+
"execution_count": 24,
401438
"metadata": {
402439
"ExecuteTime": {
403-
"end_time": "2019-08-22T01:50:30.121573Z",
404-
"start_time": "2019-08-22T01:50:30.112104Z"
440+
"end_time": "2020-07-13T23:45:35.197289Z",
441+
"start_time": "2020-07-13T23:45:35.189201Z"
405442
}
406443
},
407444
"outputs": [
408445
{
409446
"data": {
410447
"text/html": [
411-
"<h3>Version Information</h3><table><tr><th>Qiskit Software</th><th>Version</th></tr><tr><td>Qiskit</td><td>None</td></tr><tr><td>Terra</td><td>0.14.1</td></tr><tr><td>Aer</td><td>0.5.1</td></tr><tr><td>Ignis</td><td>0.3.0</td></tr><tr><td>Aqua</td><td>0.7.0</td></tr><tr><td>IBM Q Provider</td><td>0.7.0</td></tr><tr><th>System information</th></tr><tr><td>Python</td><td>3.7.4 (default, Aug 13 2019, 15:17:50) \n",
412-
"[Clang 4.0.1 (tags/RELEASE_401/final)]</td></tr><tr><td>OS</td><td>Darwin</td></tr><tr><td>CPUs</td><td>2</td></tr><tr><td>Memory (Gb)</td><td>8.0</td></tr><tr><td colspan='2'>Mon May 04 10:10:00 2020 EDT</td></tr></table>"
448+
"<h3>Version Information</h3><table><tr><th>Qiskit Software</th><th>Version</th></tr><tr><td>Qiskit</td><td>0.19.6</td></tr><tr><td>Terra</td><td>0.14.2</td></tr><tr><td>Aer</td><td>0.5.2</td></tr><tr><td>Ignis</td><td>0.3.3</td></tr><tr><td>Aqua</td><td>0.7.3</td></tr><tr><td>IBM Q Provider</td><td>0.7.2</td></tr><tr><th>System information</th></tr><tr><td>Python</td><td>3.7.7 (default, May 6 2020, 04:59:01) \n",
449+
"[Clang 4.0.1 (tags/RELEASE_401/final)]</td></tr><tr><td>OS</td><td>Darwin</td></tr><tr><td>CPUs</td><td>4</td></tr><tr><td>Memory (Gb)</td><td>16.0</td></tr><tr><td colspan='2'>Mon Jul 13 19:45:35 2020 EDT</td></tr></table>"
413450
],
414451
"text/plain": [
415452
"<IPython.core.display.HTML object>"
@@ -461,7 +498,7 @@
461498
"name": "python",
462499
"nbconvert_exporter": "python",
463500
"pygments_lexer": "ipython3",
464-
"version": "3.7.4"
501+
"version": "3.7.7"
465502
},
466503
"varInspector": {
467504
"cols": {

0 commit comments

Comments
 (0)