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

Commit c8d0233

Browse files
lcapellutononhermitianmtreinish
authored
Run notebooks again on latest release and resolve conflicts (#960)
Co-authored-by: Paul Nation <nonhermitian@gmail.com> Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
1 parent c216e3f commit c8d0233

6 files changed

Lines changed: 118 additions & 130 deletions

tutorials/pulse/1_getting_started_with_pulse.ipynb

Lines changed: 10 additions & 10 deletions
Large diffs are not rendered by default.

tutorials/pulse/2_building_pulse_instructions.ipynb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
"metadata": {},
107107
"outputs": [],
108108
"source": [
109-
"from qiskit.pulse import pulse_lib\n",
109+
"from qiskit.pulse import library\n",
110110
"\n",
111111
"amp = 1\n",
112112
"sigma = 10\n",
@@ -143,7 +143,7 @@
143143
}
144144
],
145145
"source": [
146-
"pulse = pulse_lib.Gaussian(num_samples, amp, sigma, name=\"Parametric Gaus\")\n",
146+
"pulse = library.Gaussian(num_samples, amp, sigma, name=\"Parametric Gaus\")\n",
147147
"pulse.draw()"
148148
]
149149
},
@@ -179,7 +179,7 @@
179179
"times = np.arange(num_samples)\n",
180180
"gaussian_samples = np.exp(-1/2 *((times - num_samples / 2) ** 2 / sigma**2))\n",
181181
"\n",
182-
"pulse = pulse_lib.SamplePulse(gaussian_samples, name=\"WF Gaus\")\n",
182+
"pulse = library.Waveform(gaussian_samples, name=\"WF Gaus\")\n",
183183
"pulse.draw()"
184184
]
185185
},
@@ -210,7 +210,7 @@
210210
}
211211
],
212212
"source": [
213-
"pulse = pulse_lib.gaussian(duration=num_samples, amp=amp, sigma=sigma, name=\"Lib Gaus\")\n",
213+
"pulse = library.gaussian(duration=num_samples, amp=amp, sigma=sigma, name=\"Lib Gaus\")\n",
214214
"pulse.draw()"
215215
]
216216
},
@@ -244,7 +244,7 @@
244244
"from scipy import signal\n",
245245
"\n",
246246
"sampled_gaussian_envelope = signal.gaussian(num_samples, sigma)\n",
247-
"pulse = pulse_lib.SamplePulse(sampled_gaussian_envelope, name=\"Scipy Gaus\")\n",
247+
"pulse = library.Waveform(sampled_gaussian_envelope, name=\"Scipy Gaus\")\n",
248248
"pulse.draw()"
249249
]
250250
},
@@ -355,8 +355,8 @@
355355
{
356356
"data": {
357357
"text/html": [
358-
"<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.8.5 (default, Jul 27 2020, 08:42:51) \n",
359-
"[GCC 10.1.0]</td></tr><tr><td>OS</td><td>Linux</td></tr><tr><td>CPUs</td><td>32</td></tr><tr><td>Memory (Gb)</td><td>125.72603988647461</td></tr><tr><td colspan='2'>Sun Aug 09 12:26:12 2020 EDT</td></tr></table>"
358+
"<h3>Version Information</h3><table><tr><th>Qiskit Software</th><th>Version</th></tr><tr><td>Qiskit</td><td>0.20.0</td></tr><tr><td>Terra</td><td>0.15.0</td></tr><tr><td>Aer</td><td>0.6.1</td></tr><tr><td>Ignis</td><td>0.4.0</td></tr><tr><td>Aqua</td><td>0.7.5</td></tr><tr><td>IBM Q Provider</td><td>0.8.0</td></tr><tr><th>System information</th></tr><tr><td>Python</td><td>3.7.3 (default, Apr 24 2020, 18:51:23) \n",
359+
"[Clang 11.0.3 (clang-1103.0.32.62)]</td></tr><tr><td>OS</td><td>Darwin</td></tr><tr><td>CPUs</td><td>6</td></tr><tr><td>Memory (Gb)</td><td>32.0</td></tr><tr><td colspan='2'>Mon Aug 10 17:01:23 2020 EDT</td></tr></table>"
360360
],
361361
"text/plain": [
362362
"<IPython.core.display.HTML object>"
@@ -408,7 +408,7 @@
408408
"name": "python",
409409
"nbconvert_exporter": "python",
410410
"pygments_lexer": "ipython3",
411-
"version": "3.8.5"
411+
"version": "3.7.3"
412412
}
413413
},
414414
"nbformat": 4,

tutorials/pulse/3_building_pulse_schedules.ipynb

Lines changed: 15 additions & 15 deletions
Large diffs are not rendered by default.

tutorials/pulse/4_adding_measurements.ipynb

Lines changed: 9 additions & 9 deletions
Large diffs are not rendered by default.

tutorials/pulse/5_gathering_system_information.ipynb

Lines changed: 42 additions & 42 deletions
Large diffs are not rendered by default.

tutorials/pulse/6_pulse_scheduler.ipynb

Lines changed: 34 additions & 46 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)