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
{{ message }}
This repository was archived by the owner on Aug 21, 2023. It is now read-only.
"This notebook illustrates how to use Qiskit Chemistry's programmatic APIs.\n",
24
20
"\n",
25
21
"In this notebook, we decompose the computation of the ground state energy of a molecule into 4 steps:\n",
@@ -36,6 +32,9 @@
36
32
"ExecuteTime": {
37
33
"end_time": "2020-07-13T23:48:30.973884Z",
38
34
"start_time": "2020-07-13T23:48:27.368639Z"
35
+
},
36
+
"pycharm": {
37
+
"name": "#%%\n"
39
38
}
40
39
},
41
40
"outputs": [],
@@ -60,9 +59,13 @@
60
59
},
61
60
{
62
61
"cell_type": "markdown",
63
-
"metadata": {},
62
+
"metadata": {
63
+
"pycharm": {
64
+
"name": "#%% md\n"
65
+
}
66
+
},
64
67
"source": [
65
-
"### Step 1: Define a molecule\n",
68
+
"## Step 1: Define a molecule\n",
66
69
"Here, we use LiH in the sto3g basis with the PySCF driver as an example.\n",
67
70
"The `molecule` object records the information from the PySCF driver."
68
71
]
@@ -74,6 +77,9 @@
74
77
"ExecuteTime": {
75
78
"end_time": "2020-07-13T23:48:31.129792Z",
76
79
"start_time": "2020-07-13T23:48:30.975723Z"
80
+
},
81
+
"pycharm": {
82
+
"name": "#%%\n"
77
83
}
78
84
},
79
85
"outputs": [],
@@ -87,9 +93,13 @@
87
93
},
88
94
{
89
95
"cell_type": "markdown",
90
-
"metadata": {},
96
+
"metadata": {
97
+
"pycharm": {
98
+
"name": "#%% md\n"
99
+
}
100
+
},
91
101
"source": [
92
-
"### Step 2: Prepare qubit Hamiltonian\n",
102
+
"## Step 2: Prepare qubit Hamiltonian\n",
93
103
"Here, we setup the **to-be-frozen** and **to-be-removed** orbitals to reduce the problem size when we map to the qubit Hamiltonian. Furthermore, we define the **mapping type** for the qubit Hamiltonian.\n",
94
104
"For the particular `parity` mapping, we can further reduce the problem size."
95
105
]
@@ -138,6 +148,9 @@
138
148
"ExecuteTime": {
139
149
"end_time": "2020-07-13T23:48:31.599325Z",
140
150
"start_time": "2020-07-13T23:48:31.163492Z"
151
+
},
152
+
"pycharm": {
153
+
"name": "#%%\n"
141
154
}
142
155
},
143
156
"outputs": [
@@ -284,7 +297,11 @@
284
297
},
285
298
{
286
299
"cell_type": "markdown",
287
-
"metadata": {},
300
+
"metadata": {
301
+
"pycharm": {
302
+
"name": "#%% md\n"
303
+
}
304
+
},
288
305
"source": [
289
306
"We use the classical eigen decomposition to get the smallest eigenvalue as a reference."
290
307
]
@@ -296,6 +313,9 @@
296
313
"ExecuteTime": {
297
314
"end_time": "2020-07-13T23:48:31.684136Z",
298
315
"start_time": "2020-07-13T23:48:31.601391Z"
316
+
},
317
+
"pycharm": {
318
+
"name": "#%%\n"
299
319
}
300
320
},
301
321
"outputs": [
@@ -320,7 +340,7 @@
320
340
"cell_type": "markdown",
321
341
"metadata": {},
322
342
"source": [
323
-
"### Step 3: Initiate and configure dynamically-loaded instances\n",
343
+
"## Step 3: Initiate and configure dynamically-loaded instances\n",
324
344
"To run VQE with the UCCSD variational form, we require: \n",
325
345
"\n",
326
346
"- VQE algorithm\n",
@@ -331,9 +351,13 @@
331
351
},
332
352
{
333
353
"cell_type": "markdown",
334
-
"metadata": {},
354
+
"metadata": {
355
+
"pycharm": {
356
+
"name": "#%% md\n"
357
+
}
358
+
},
335
359
"source": [
336
-
"### [Optional] Setup token to run the experiment on a real device\n",
360
+
"## [Optional] Setup token to run the experiment on a real device\n",
337
361
"If you would like to run the experiment on a real device, you need to setup your account first.\n",
338
362
"\n",
339
363
"Note: If you did not store your token yet, use `IBMQ.save_account('MY_API_TOKEN')` to store it first."
0 commit comments