Skip to content

Commit 7f61c1d

Browse files
committed
update
1 parent c2fbae4 commit 7f61c1d

File tree

9 files changed

+935
-529
lines changed

9 files changed

+935
-529
lines changed

doc/pub/week6/html/week6-bs.html

Lines changed: 9 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,11 @@
4141
2,
4242
None,
4343
'plans-for-the-week-of-february-24-28-solving-quantum-mechanical-problems'),
44-
('Paths for project 2', 2, None, 'paths-for-project-2'),
4544
('Readings', 2, None, 'readings'),
46-
('Gates and measurements', 2, None, 'gates-and-measurements'),
47-
('The Qiskit material from last week',
45+
('Gates and measurements, reminder from previous two weeks',
4846
2,
4947
None,
50-
'the-qiskit-material-from-last-week'),
48+
'gates-and-measurements-reminder-from-previous-two-weeks'),
5149
('Variational Quantum Eigensolver',
5250
2,
5351
None,
@@ -161,10 +159,8 @@
161159
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Contents <b class="caret"></b></a>
162160
<ul class="dropdown-menu">
163161
<!-- navigation toc: --> <li><a href="#plans-for-the-week-of-february-24-28-solving-quantum-mechanical-problems" style="font-size: 80%;">Plans for the week of February 24-28, Solving quantum mechanical problems</a></li>
164-
<!-- navigation toc: --> <li><a href="#paths-for-project-2" style="font-size: 80%;">Paths for project 2</a></li>
165162
<!-- navigation toc: --> <li><a href="#readings" style="font-size: 80%;">Readings</a></li>
166-
<!-- navigation toc: --> <li><a href="#gates-and-measurements" style="font-size: 80%;">Gates and measurements</a></li>
167-
<!-- navigation toc: --> <li><a href="#the-qiskit-material-from-last-week" style="font-size: 80%;">The Qiskit material from last week</a></li>
163+
<!-- navigation toc: --> <li><a href="#gates-and-measurements-reminder-from-previous-two-weeks" style="font-size: 80%;">Gates and measurements, reminder from previous two weeks</a></li>
168164
<!-- navigation toc: --> <li><a href="#variational-quantum-eigensolver" style="font-size: 80%;">Variational Quantum Eigensolver</a></li>
169165
<!-- navigation toc: --> <li><a href="#the-vqe" style="font-size: 80%;">The VQE</a></li>
170166
<!-- navigation toc: --> <li><a href="#expectation-value-of-hamiltonian" style="font-size: 80%;">Expectation value of Hamiltonian</a></li>
@@ -235,25 +231,16 @@ <h2 id="plans-for-the-week-of-february-24-28-solving-quantum-mechanical-problems
235231
<div class="panel-body">
236232
<!-- subsequent paragraphs come in larger fonts, so start with a paragraph -->
237233
<ol>
238-
<li> Repetition from last week and discussion of the first part of the project</li>
239-
<li> Further discussions of gates and measurements</li>
234+
<li> Repetition from last week on gates, measurements and one-qubit systems</li>
240235
<li> Introducing the Variational Quantum Eigensolver (VQE) and discussion of project 1</li>
241-
<li> <b>Note on project work:</b> feel free to collaborate on the projects</li>
242-
<li> <a href="https://youtu.be/" target="_self">Video of lecture to be added</a>
236+
<li> <b>Note on project work:</b> feel free to collaborate on the projects
237+
<!-- o <a href="https://youtu.be/" target="_self">Video of lecture to be added</a> -->
243238
<!-- o <a href="https://github.com/CompPhysics/QuantumComputingMachineLearning/blob/gh-pages/doc/HandWrittenNotes/2024/NotesFebruary21.pdf" target="_self">Whiteboard notes</a> --></li>
244239
</ol>
245240
</div>
246241
</div>
247242

248243

249-
<!-- !split -->
250-
<h2 id="paths-for-project-2" class="anchor">Paths for project 2 </h2>
251-
<p>Depending on your interests, we can tailor project 2 in several different ways</p>
252-
<ol>
253-
<li> discussions and work on other algorithms than those used for solving quantum mechanical problems, Grover, Shor, Quantum Fourier Transforms etc</li>
254-
<li> work on quantum machine learning (could combine with FYS5429)</li>
255-
<li> other possibilities</li>
256-
</ol>
257244
<!-- !split -->
258245
<h2 id="readings" class="anchor">Readings </h2>
259246

@@ -263,60 +250,9 @@ <h2 id="readings" class="anchor">Readings </h2>
263250
<li> <a href="https://www.sciencedirect.com/science/article/pii/S0370157322003118?via%3Dihub" target="_self">See also the VQE review article by Tilly et al.</a></li>
264251
</ol>
265252
<!-- !split -->
266-
<h2 id="gates-and-measurements" class="anchor">Gates and measurements </h2>
267-
268-
<p>This material is covered by whiteboard notes from lecture February 21.
269-
The material will be updated later this week.
270-
</p>
271-
272-
<!-- !split -->
273-
<h2 id="the-qiskit-material-from-last-week" class="anchor">The Qiskit material from last week </h2>
274-
275-
276-
<!-- code=python (!bc pycod) typeset with pygments style "default" -->
277-
<div class="cell border-box-sizing code_cell rendered">
278-
<div class="input">
279-
<div class="inner_cell">
280-
<div class="input_area">
281-
<div class="highlight" style="background: #f8f8f8">
282-
<pre style="line-height: 125%;"><span style="color: #408080; font-style: italic"># Install alternative provider package</span>
283-
<span style="color: #408080; font-style: italic"># If you have problems with the original notebook, try this package</span>
284-
<span style="color: #408080; font-style: italic"># pip install -q qiskit-ibm-provider</span>
285-
<span style="color: #408080; font-style: italic"># How to use it</span>
286-
<span style="color: #008000; font-weight: bold">from</span> <span style="color: #0000FF; font-weight: bold">qiskit_ibm_provider</span> <span style="color: #008000; font-weight: bold">import</span> IBMProvider
287-
288-
api_token <span style="color: #666666">=</span> <span style="color: #BA2121">&#39;Your token&#39;</span>
289-
290-
<span style="color: #408080; font-style: italic"># Load your IBM Quantum account</span>
291-
IBMProvider<span style="color: #666666">.</span>save_account(api_token, overwrite<span style="color: #666666">=</span><span style="color: #008000; font-weight: bold">True</span>) <span style="color: #408080; font-style: italic"># This stores your credentials locally</span>
292-
provider <span style="color: #666666">=</span> IBMProvider()
293-
294-
<span style="color: #008000; font-weight: bold">import</span> <span style="color: #0000FF; font-weight: bold">qiskit</span> <span style="color: #008000; font-weight: bold">as</span> <span style="color: #0000FF; font-weight: bold">qk</span>
295-
<span style="color: #008000; font-weight: bold">from</span> <span style="color: #0000FF; font-weight: bold">qiskit</span> <span style="color: #008000; font-weight: bold">import</span> QuantumRegister, ClassicalRegister, QuantumCircuit
296-
<span style="color: #008000; font-weight: bold">from</span> <span style="color: #0000FF; font-weight: bold">qiskit.visualization</span> <span style="color: #008000; font-weight: bold">import</span> plot_histogram
297-
<span style="color: #008000; font-weight: bold">from</span> <span style="color: #0000FF; font-weight: bold">qiskit_aer</span> <span style="color: #008000; font-weight: bold">import</span> AerSimulator
298-
299-
<span style="color: #008000; font-weight: bold">import</span> <span style="color: #0000FF; font-weight: bold">matplotlib.pyplot</span> <span style="color: #008000; font-weight: bold">as</span> <span style="color: #0000FF; font-weight: bold">plt</span>
300-
<span style="color: #408080; font-style: italic"># Then go ahead and use it like this with whatever backend, i.e. osaka with 127 qubits</span>
301-
backend <span style="color: #666666">=</span> provider<span style="color: #666666">.</span>get_backend(<span style="color: #BA2121">&#39;ibm_osaka&#39;</span>)
302-
303-
<span style="color: #408080; font-style: italic"># Create a quantum circuit with two qubits</span>
304-
bell_circuit <span style="color: #666666">=</span> QuantumCircuit(<span style="color: #666666">2</span>, <span style="color: #666666">2</span>)
305-
</pre>
306-
</div>
307-
</div>
308-
</div>
309-
</div>
310-
<div class="output_wrapper">
311-
<div class="output">
312-
<div class="output_area">
313-
<div class="output_subarea output_stream output_stdout output_text">
314-
</div>
315-
</div>
316-
</div>
317-
</div>
318-
</div>
253+
<h2 id="gates-and-measurements-reminder-from-previous-two-weeks" class="anchor">Gates and measurements, reminder from previous two weeks </h2>
319254

255+
<p>Material to come here</p>
320256

321257
<!-- !split -->
322258
<h2 id="variational-quantum-eigensolver" class="anchor">Variational Quantum Eigensolver </h2>
@@ -1075,7 +1011,7 @@ <h2 id="plans-for-the-week-of-february-26-march-1" class="anchor">Plans for the
10751011
</footer>
10761012
-->
10771013
<center style="font-size:80%">
1078-
<!-- copyright --> &copy; 1999-2024, Morten Hjorth-Jensen. Released under CC Attribution-NonCommercial 4.0 license
1014+
<!-- copyright --> &copy; 1999-2025, Morten Hjorth-Jensen. Released under CC Attribution-NonCommercial 4.0 license
10791015
</center>
10801016
</body>
10811017
</html>

doc/pub/week6/html/week6-reveal.html

Lines changed: 6 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ <h4>February 26, 2025</h4>
187187

188188

189189
<center style="font-size:80%">
190-
<!-- copyright --> &copy; 1999-2024, Morten Hjorth-Jensen. Released under CC Attribution-NonCommercial 4.0 license
190+
<!-- copyright --> &copy; 1999-2025, Morten Hjorth-Jensen. Released under CC Attribution-NonCommercial 4.0 license
191191
</center>
192192
</section>
193193

@@ -198,26 +198,15 @@ <h2 id="plans-for-the-week-of-february-24-28-solving-quantum-mechanical-problems
198198
<b></b>
199199
<p>
200200
<ol>
201-
<p><li> Repetition from last week and discussion of the first part of the project</li>
202-
<p><li> Further discussions of gates and measurements</li>
201+
<p><li> Repetition from last week on gates, measurements and one-qubit systems</li>
203202
<p><li> Introducing the Variational Quantum Eigensolver (VQE) and discussion of project 1</li>
204-
<p><li> <b>Note on project work:</b> feel free to collaborate on the projects</li>
205-
<p><li> <a href="https://youtu.be/" target="_blank">Video of lecture to be added</a>
203+
<p><li> <b>Note on project work:</b> feel free to collaborate on the projects
204+
<!-- o <a href="https://youtu.be/" target="_blank">Video of lecture to be added</a> -->
206205
<!-- o <a href="https://github.com/CompPhysics/QuantumComputingMachineLearning/blob/gh-pages/doc/HandWrittenNotes/2024/NotesFebruary21.pdf" target="_blank">Whiteboard notes</a> --></li>
207206
</ol>
208207
</div>
209208
</section>
210209

211-
<section>
212-
<h2 id="paths-for-project-2">Paths for project 2 </h2>
213-
<p>Depending on your interests, we can tailor project 2 in several different ways</p>
214-
<ol>
215-
<p><li> discussions and work on other algorithms than those used for solving quantum mechanical problems, Grover, Shor, Quantum Fourier Transforms etc</li>
216-
<p><li> work on quantum machine learning (could combine with FYS5429)</li>
217-
<p><li> other possibilities</li>
218-
</ol>
219-
</section>
220-
221210
<section>
222211
<h2 id="readings">Readings </h2>
223212

@@ -229,60 +218,9 @@ <h2 id="readings">Readings </h2>
229218
</section>
230219

231220
<section>
232-
<h2 id="gates-and-measurements">Gates and measurements </h2>
233-
234-
<p>This material is covered by whiteboard notes from lecture February 21.
235-
The material will be updated later this week.
236-
</p>
237-
</section>
238-
239-
<section>
240-
<h2 id="the-qiskit-material-from-last-week">The Qiskit material from last week </h2>
241-
242-
243-
<!-- code=python (!bc pycod) typeset with pygments style "perldoc" -->
244-
<div class="cell border-box-sizing code_cell rendered">
245-
<div class="input">
246-
<div class="inner_cell">
247-
<div class="input_area">
248-
<div class="highlight" style="background: #eeeedd">
249-
<pre style="font-size: 80%; line-height: 125%;"><span style="color: #228B22"># Install alternative provider package</span>
250-
<span style="color: #228B22"># If you have problems with the original notebook, try this package</span>
251-
<span style="color: #228B22"># pip install -q qiskit-ibm-provider</span>
252-
<span style="color: #228B22"># How to use it</span>
253-
<span style="color: #8B008B; font-weight: bold">from</span> <span style="color: #008b45; text-decoration: underline">qiskit_ibm_provider</span> <span style="color: #8B008B; font-weight: bold">import</span> IBMProvider
221+
<h2 id="gates-and-measurements-reminder-from-previous-two-weeks">Gates and measurements, reminder from previous two weeks </h2>
254222

255-
api_token = <span style="color: #CD5555">&#39;Your token&#39;</span>
256-
257-
<span style="color: #228B22"># Load your IBM Quantum account</span>
258-
IBMProvider.save_account(api_token, overwrite=<span style="color: #8B008B; font-weight: bold">True</span>) <span style="color: #228B22"># This stores your credentials locally</span>
259-
provider = IBMProvider()
260-
261-
<span style="color: #8B008B; font-weight: bold">import</span> <span style="color: #008b45; text-decoration: underline">qiskit</span> <span style="color: #8B008B; font-weight: bold">as</span> <span style="color: #008b45; text-decoration: underline">qk</span>
262-
<span style="color: #8B008B; font-weight: bold">from</span> <span style="color: #008b45; text-decoration: underline">qiskit</span> <span style="color: #8B008B; font-weight: bold">import</span> QuantumRegister, ClassicalRegister, QuantumCircuit
263-
<span style="color: #8B008B; font-weight: bold">from</span> <span style="color: #008b45; text-decoration: underline">qiskit.visualization</span> <span style="color: #8B008B; font-weight: bold">import</span> plot_histogram
264-
<span style="color: #8B008B; font-weight: bold">from</span> <span style="color: #008b45; text-decoration: underline">qiskit_aer</span> <span style="color: #8B008B; font-weight: bold">import</span> AerSimulator
265-
266-
<span style="color: #8B008B; font-weight: bold">import</span> <span style="color: #008b45; text-decoration: underline">matplotlib.pyplot</span> <span style="color: #8B008B; font-weight: bold">as</span> <span style="color: #008b45; text-decoration: underline">plt</span>
267-
<span style="color: #228B22"># Then go ahead and use it like this with whatever backend, i.e. osaka with 127 qubits</span>
268-
backend = provider.get_backend(<span style="color: #CD5555">&#39;ibm_osaka&#39;</span>)
269-
270-
<span style="color: #228B22"># Create a quantum circuit with two qubits</span>
271-
bell_circuit = QuantumCircuit(<span style="color: #B452CD">2</span>, <span style="color: #B452CD">2</span>)
272-
</pre>
273-
</div>
274-
</div>
275-
</div>
276-
</div>
277-
<div class="output_wrapper">
278-
<div class="output">
279-
<div class="output_area">
280-
<div class="output_subarea output_stream output_stdout output_text">
281-
</div>
282-
</div>
283-
</div>
284-
</div>
285-
</div>
223+
<p>Material to come here</p>
286224
</section>
287225

288226
<section>

0 commit comments

Comments
 (0)