Skip to content

Commit bbc8a51

Browse files
committed
minor update
1 parent c66bf1f commit bbc8a51

File tree

8 files changed

+355
-295
lines changed

8 files changed

+355
-295
lines changed

doc/pub/week1/html/week1-bs.html

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -194,18 +194,22 @@
194194
2,
195195
None,
196196
'exercise-3-commutator-identities'),
197-
('Exercise 4: Shared eigenvectors',
197+
('Exercise 4: Pauli matrices',
198198
2,
199199
None,
200-
'exercise-4-shared-eigenvectors'),
201-
('Exercise 5: One-qubit basis and Pauli matrices',
200+
'exercise-4-pauli-matrices'),
201+
('Exercise 5: Shared eigenvectors',
202202
2,
203203
None,
204-
'exercise-5-one-qubit-basis-and-pauli-matrices'),
205-
('Exercise 6: Hadamard and Phase gates',
204+
'exercise-5-shared-eigenvectors'),
205+
('Exercise 6: One-qubit basis and Pauli matrices',
206206
2,
207207
None,
208-
'exercise-6-hadamard-and-phase-gates')]}
208+
'exercise-6-one-qubit-basis-and-pauli-matrices'),
209+
('Exercise 7: Hadamard and Phase gates',
210+
2,
211+
None,
212+
'exercise-7-hadamard-and-phase-gates')]}
209213
end of tocinfo -->
210214

211215
<body>
@@ -314,9 +318,10 @@
314318
<!-- navigation toc: --> <li><a href="#and-the-next-two" style="font-size: 80%;">And the next two</a></li>
315319
<!-- navigation toc: --> <li><a href="#exercise-2-entangled-state" style="font-size: 80%;">Exercise 2: Entangled state</a></li>
316320
<!-- navigation toc: --> <li><a href="#exercise-3-commutator-identities" style="font-size: 80%;">Exercise 3: Commutator identities</a></li>
317-
<!-- navigation toc: --> <li><a href="#exercise-4-shared-eigenvectors" style="font-size: 80%;">Exercise 4: Shared eigenvectors</a></li>
318-
<!-- navigation toc: --> <li><a href="#exercise-5-one-qubit-basis-and-pauli-matrices" style="font-size: 80%;">Exercise 5: One-qubit basis and Pauli matrices</a></li>
319-
<!-- navigation toc: --> <li><a href="#exercise-6-hadamard-and-phase-gates" style="font-size: 80%;">Exercise 6: Hadamard and Phase gates</a></li>
321+
<!-- navigation toc: --> <li><a href="#exercise-4-pauli-matrices" style="font-size: 80%;">Exercise 4: Pauli matrices</a></li>
322+
<!-- navigation toc: --> <li><a href="#exercise-5-shared-eigenvectors" style="font-size: 80%;">Exercise 5: Shared eigenvectors</a></li>
323+
<!-- navigation toc: --> <li><a href="#exercise-6-one-qubit-basis-and-pauli-matrices" style="font-size: 80%;">Exercise 6: One-qubit basis and Pauli matrices</a></li>
324+
<!-- navigation toc: --> <li><a href="#exercise-7-hadamard-and-phase-gates" style="font-size: 80%;">Exercise 7: Hadamard and Phase gates</a></li>
320325

321326
</ul>
322327
</li>
@@ -1602,20 +1607,26 @@ <h2 id="exercise-3-commutator-identities" class="anchor">Exercise 3: Commutator
16021607
<li> \( [\hat{A},[\hat{B}\hat{C}]]= [\hat{B},[\hat{C},\hat{A}]]+[\hat{C},[\hat{A},\hat{B}]]=0 \) (the so-called Jacobi identity).</li>
16031608
</ol>
16041609
<!-- !split -->
1605-
<h2 id="exercise-4-shared-eigenvectors" class="anchor">Exercise 4: Shared eigenvectors </h2>
1610+
<h2 id="exercise-4-pauli-matrices" class="anchor">Exercise 4: Pauli matrices </h2>
1611+
<ol>
1612+
<li> Set up the commutation rules for Pauli matrices, that is find \( [\sigma_i,\sigma_j] \) where \( i,j=x,y,z \).</li>
1613+
<li> We define \( \boldsymbol{X}=\sigma_x \), \( \boldsymbol{Y}=\sigma_y \) and \( \boldsymbol{Z}=\sigma_z \). Show that \( \boldsymbol{XX}=\boldsymbol{YY}=\boldsymbol{ZZ}=\boldsymbol{I} \).</li>
1614+
<li> Which one of the Pauli matrices has the qubit basis \( \vert 0\rangle \) and \( \vert 1\rangle \) as eigenbasis? What are the eigenvalues?</li>
1615+
</ol>
1616+
<!-- !split -->
1617+
<h2 id="exercise-5-shared-eigenvectors" class="anchor">Exercise 5: Shared eigenvectors </h2>
16061618

16071619
<p>Prove that if two operators \( \hat{A} \) and \( \hat{B} \) commute they will share a basis of eigenstates</p>
16081620

16091621
<!-- !split -->
1610-
<h2 id="exercise-5-one-qubit-basis-and-pauli-matrices" class="anchor">Exercise 5: One-qubit basis and Pauli matrices </h2>
1622+
<h2 id="exercise-6-one-qubit-basis-and-pauli-matrices" class="anchor">Exercise 6: One-qubit basis and Pauli matrices </h2>
16111623

16121624
<p>Write a function which sets up a one-qubit basis and apply the various Pauli matrices to these basis states.</p>
16131625

16141626
<!-- !split -->
1615-
<h2 id="exercise-6-hadamard-and-phase-gates" class="anchor">Exercise 6: Hadamard and Phase gates </h2>
1627+
<h2 id="exercise-7-hadamard-and-phase-gates" class="anchor">Exercise 7: Hadamard and Phase gates </h2>
16161628

16171629
<p>Apply the Hadamard and Phase gates to the same one-qubit basis states and study their actions on these states.</p>
1618-
16191630
<!-- ------------------- end of main content --------------- -->
16201631
</div> <!-- end container -->
16211632
<!-- include javascript, jQuery *first* -->

doc/pub/week1/html/week1-reveal.html

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1709,19 +1709,28 @@ <h2 id="exercise-3-commutator-identities">Exercise 3: Commutator identities </h
17091709
</section>
17101710

17111711
<section>
1712-
<h2 id="exercise-4-shared-eigenvectors">Exercise 4: Shared eigenvectors </h2>
1712+
<h2 id="exercise-4-pauli-matrices">Exercise 4: Pauli matrices </h2>
1713+
<ol>
1714+
<p><li> Set up the commutation rules for Pauli matrices, that is find \( [\sigma_i,\sigma_j] \) where \( i,j=x,y,z \).</li>
1715+
<p><li> We define \( \boldsymbol{X}=\sigma_x \), \( \boldsymbol{Y}=\sigma_y \) and \( \boldsymbol{Z}=\sigma_z \). Show that \( \boldsymbol{XX}=\boldsymbol{YY}=\boldsymbol{ZZ}=\boldsymbol{I} \).</li>
1716+
<p><li> Which one of the Pauli matrices has the qubit basis \( \vert 0\rangle \) and \( \vert 1\rangle \) as eigenbasis? What are the eigenvalues?</li>
1717+
</ol>
1718+
</section>
1719+
1720+
<section>
1721+
<h2 id="exercise-5-shared-eigenvectors">Exercise 5: Shared eigenvectors </h2>
17131722

17141723
<p>Prove that if two operators \( \hat{A} \) and \( \hat{B} \) commute they will share a basis of eigenstates</p>
17151724
</section>
17161725

17171726
<section>
1718-
<h2 id="exercise-5-one-qubit-basis-and-pauli-matrices">Exercise 5: One-qubit basis and Pauli matrices </h2>
1727+
<h2 id="exercise-6-one-qubit-basis-and-pauli-matrices">Exercise 6: One-qubit basis and Pauli matrices </h2>
17191728

17201729
<p>Write a function which sets up a one-qubit basis and apply the various Pauli matrices to these basis states.</p>
17211730
</section>
17221731

17231732
<section>
1724-
<h2 id="exercise-6-hadamard-and-phase-gates">Exercise 6: Hadamard and Phase gates </h2>
1733+
<h2 id="exercise-7-hadamard-and-phase-gates">Exercise 7: Hadamard and Phase gates </h2>
17251734

17261735
<p>Apply the Hadamard and Phase gates to the same one-qubit basis states and study their actions on these states.</p>
17271736
</section>

doc/pub/week1/html/week1-solarized.html

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -221,18 +221,22 @@
221221
2,
222222
None,
223223
'exercise-3-commutator-identities'),
224-
('Exercise 4: Shared eigenvectors',
224+
('Exercise 4: Pauli matrices',
225225
2,
226226
None,
227-
'exercise-4-shared-eigenvectors'),
228-
('Exercise 5: One-qubit basis and Pauli matrices',
227+
'exercise-4-pauli-matrices'),
228+
('Exercise 5: Shared eigenvectors',
229229
2,
230230
None,
231-
'exercise-5-one-qubit-basis-and-pauli-matrices'),
232-
('Exercise 6: Hadamard and Phase gates',
231+
'exercise-5-shared-eigenvectors'),
232+
('Exercise 6: One-qubit basis and Pauli matrices',
233233
2,
234234
None,
235-
'exercise-6-hadamard-and-phase-gates')]}
235+
'exercise-6-one-qubit-basis-and-pauli-matrices'),
236+
('Exercise 7: Hadamard and Phase gates',
237+
2,
238+
None,
239+
'exercise-7-hadamard-and-phase-gates')]}
236240
end of tocinfo -->
237241

238242
<body>
@@ -1515,20 +1519,26 @@ <h2 id="exercise-3-commutator-identities">Exercise 3: Commutator identities </h
15151519
<li> \( [\hat{A},[\hat{B}\hat{C}]]= [\hat{B},[\hat{C},\hat{A}]]+[\hat{C},[\hat{A},\hat{B}]]=0 \) (the so-called Jacobi identity).</li>
15161520
</ol>
15171521
<!-- !split --><br><br><br><br><br><br><br><br><br><br>
1518-
<h2 id="exercise-4-shared-eigenvectors">Exercise 4: Shared eigenvectors </h2>
1522+
<h2 id="exercise-4-pauli-matrices">Exercise 4: Pauli matrices </h2>
1523+
<ol>
1524+
<li> Set up the commutation rules for Pauli matrices, that is find \( [\sigma_i,\sigma_j] \) where \( i,j=x,y,z \).</li>
1525+
<li> We define \( \boldsymbol{X}=\sigma_x \), \( \boldsymbol{Y}=\sigma_y \) and \( \boldsymbol{Z}=\sigma_z \). Show that \( \boldsymbol{XX}=\boldsymbol{YY}=\boldsymbol{ZZ}=\boldsymbol{I} \).</li>
1526+
<li> Which one of the Pauli matrices has the qubit basis \( \vert 0\rangle \) and \( \vert 1\rangle \) as eigenbasis? What are the eigenvalues?</li>
1527+
</ol>
1528+
<!-- !split --><br><br><br><br><br><br><br><br><br><br>
1529+
<h2 id="exercise-5-shared-eigenvectors">Exercise 5: Shared eigenvectors </h2>
15191530

15201531
<p>Prove that if two operators \( \hat{A} \) and \( \hat{B} \) commute they will share a basis of eigenstates</p>
15211532

15221533
<!-- !split --><br><br><br><br><br><br><br><br><br><br>
1523-
<h2 id="exercise-5-one-qubit-basis-and-pauli-matrices">Exercise 5: One-qubit basis and Pauli matrices </h2>
1534+
<h2 id="exercise-6-one-qubit-basis-and-pauli-matrices">Exercise 6: One-qubit basis and Pauli matrices </h2>
15241535

15251536
<p>Write a function which sets up a one-qubit basis and apply the various Pauli matrices to these basis states.</p>
15261537

15271538
<!-- !split --><br><br><br><br><br><br><br><br><br><br>
1528-
<h2 id="exercise-6-hadamard-and-phase-gates">Exercise 6: Hadamard and Phase gates </h2>
1539+
<h2 id="exercise-7-hadamard-and-phase-gates">Exercise 7: Hadamard and Phase gates </h2>
15291540

15301541
<p>Apply the Hadamard and Phase gates to the same one-qubit basis states and study their actions on these states.</p>
1531-
15321542
<!-- ------------------- end of main content --------------- -->
15331543
<center style="font-size:80%">
15341544
<!-- copyright --> &copy; 1999-2025, Morten Hjorth-Jensen. Released under CC Attribution-NonCommercial 4.0 license

doc/pub/week1/html/week1.html

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -298,18 +298,22 @@
298298
2,
299299
None,
300300
'exercise-3-commutator-identities'),
301-
('Exercise 4: Shared eigenvectors',
301+
('Exercise 4: Pauli matrices',
302302
2,
303303
None,
304-
'exercise-4-shared-eigenvectors'),
305-
('Exercise 5: One-qubit basis and Pauli matrices',
304+
'exercise-4-pauli-matrices'),
305+
('Exercise 5: Shared eigenvectors',
306306
2,
307307
None,
308-
'exercise-5-one-qubit-basis-and-pauli-matrices'),
309-
('Exercise 6: Hadamard and Phase gates',
308+
'exercise-5-shared-eigenvectors'),
309+
('Exercise 6: One-qubit basis and Pauli matrices',
310310
2,
311311
None,
312-
'exercise-6-hadamard-and-phase-gates')]}
312+
'exercise-6-one-qubit-basis-and-pauli-matrices'),
313+
('Exercise 7: Hadamard and Phase gates',
314+
2,
315+
None,
316+
'exercise-7-hadamard-and-phase-gates')]}
313317
end of tocinfo -->
314318

315319
<body>
@@ -1592,20 +1596,26 @@ <h2 id="exercise-3-commutator-identities">Exercise 3: Commutator identities </h
15921596
<li> \( [\hat{A},[\hat{B}\hat{C}]]= [\hat{B},[\hat{C},\hat{A}]]+[\hat{C},[\hat{A},\hat{B}]]=0 \) (the so-called Jacobi identity).</li>
15931597
</ol>
15941598
<!-- !split --><br><br><br><br><br><br><br><br><br><br>
1595-
<h2 id="exercise-4-shared-eigenvectors">Exercise 4: Shared eigenvectors </h2>
1599+
<h2 id="exercise-4-pauli-matrices">Exercise 4: Pauli matrices </h2>
1600+
<ol>
1601+
<li> Set up the commutation rules for Pauli matrices, that is find \( [\sigma_i,\sigma_j] \) where \( i,j=x,y,z \).</li>
1602+
<li> We define \( \boldsymbol{X}=\sigma_x \), \( \boldsymbol{Y}=\sigma_y \) and \( \boldsymbol{Z}=\sigma_z \). Show that \( \boldsymbol{XX}=\boldsymbol{YY}=\boldsymbol{ZZ}=\boldsymbol{I} \).</li>
1603+
<li> Which one of the Pauli matrices has the qubit basis \( \vert 0\rangle \) and \( \vert 1\rangle \) as eigenbasis? What are the eigenvalues?</li>
1604+
</ol>
1605+
<!-- !split --><br><br><br><br><br><br><br><br><br><br>
1606+
<h2 id="exercise-5-shared-eigenvectors">Exercise 5: Shared eigenvectors </h2>
15961607

15971608
<p>Prove that if two operators \( \hat{A} \) and \( \hat{B} \) commute they will share a basis of eigenstates</p>
15981609

15991610
<!-- !split --><br><br><br><br><br><br><br><br><br><br>
1600-
<h2 id="exercise-5-one-qubit-basis-and-pauli-matrices">Exercise 5: One-qubit basis and Pauli matrices </h2>
1611+
<h2 id="exercise-6-one-qubit-basis-and-pauli-matrices">Exercise 6: One-qubit basis and Pauli matrices </h2>
16011612

16021613
<p>Write a function which sets up a one-qubit basis and apply the various Pauli matrices to these basis states.</p>
16031614

16041615
<!-- !split --><br><br><br><br><br><br><br><br><br><br>
1605-
<h2 id="exercise-6-hadamard-and-phase-gates">Exercise 6: Hadamard and Phase gates </h2>
1616+
<h2 id="exercise-7-hadamard-and-phase-gates">Exercise 7: Hadamard and Phase gates </h2>
16061617

16071618
<p>Apply the Hadamard and Phase gates to the same one-qubit basis states and study their actions on these states.</p>
1608-
16091619
<!-- ------------------- end of main content --------------- -->
16101620
<center style="font-size:80%">
16111621
<!-- copyright --> &copy; 1999-2025, Morten Hjorth-Jensen. Released under CC Attribution-NonCommercial 4.0 license
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)