5959 ('Further manipulations', 2, None, 'further-manipulations'),
6060 ('Spectral decomposition', 2, None, 'spectral-decomposition'),
6161 ('Explicit results', 2, None, 'explicit-results'),
62- ('The spectral decomposition',
62+ ('The spectral decomposition, from last week ',
6363 2,
6464 None,
65- 'the-spectral-decomposition'),
65+ 'the-spectral-decomposition-from-last-week'),
66+ ('Meet the Bloch sphere', 2, None, 'meet-the-bloch-sphere'),
6667 ('Measurements', 2, None, 'measurements'),
6768 ('Qubit example', 2, None, 'qubit-example'),
6869 ('Total probability', 2, None, 'total-probability'),
181182 <!-- navigation toc: --> < li > < a href ="#further-manipulations " style ="font-size: 80%; "> Further manipulations</ a > </ li >
182183 <!-- navigation toc: --> < li > < a href ="#spectral-decomposition " style ="font-size: 80%; "> Spectral decomposition</ a > </ li >
183184 <!-- navigation toc: --> < li > < a href ="#explicit-results " style ="font-size: 80%; "> Explicit results</ a > </ li >
184- <!-- navigation toc: --> < li > < a href ="#the-spectral-decomposition " style ="font-size: 80%; "> The spectral decomposition</ a > </ li >
185+ <!-- navigation toc: --> < li > < a href ="#the-spectral-decomposition-from-last-week " style ="font-size: 80%; "> The spectral decomposition, from last week</ a > </ li >
186+ <!-- navigation toc: --> < li > < a href ="#meet-the-bloch-sphere " style ="font-size: 80%; "> Meet the Bloch sphere</ a > </ li >
185187 <!-- navigation toc: --> < li > < a href ="#measurements " style ="font-size: 80%; "> Measurements</ a > </ li >
186188 <!-- navigation toc: --> < li > < a href ="#qubit-example " style ="font-size: 80%; "> Qubit example</ a > </ li >
187189 <!-- navigation toc: --> < li > < a href ="#total-probability " style ="font-size: 80%; "> Total probability</ a > </ li >
@@ -260,7 +262,6 @@ <h2 id="summary-from-last-week-and-plans-for-this-week" class="anchor">Summary f
260262</ div >
261263</ div >
262264
263- < p > Most of the material can be found in Scherer, Mathematics of Quantum Computations, chapter 2, available electronically via UiO's subscription.</ p >
264265
265266<!-- !split -->
266267< h2 id ="this-week-s-plans " class ="anchor "> This week's plans </ h2 >
@@ -272,7 +273,7 @@ <h2 id="this-week-s-plans" class="anchor">This week's plans </h2>
272273< li > tensor products of Hilbert Spaces and definition of Computational basis, partly repetition from last week</ li >
273274< li > Reminder on spectral Decomposition from last week</ li >
274275< li > Bloch sphere and representation of qubits</ li >
275- < li > Spectral Decomposition, Measurements and Density matrices</ li >
276+ < li > Spectral Decomposition (again) , Measurements and Density matrices</ li >
276277< li > Wavefunction collapse as a result of measurement</ li >
277278< li > Simple Hamiltonians and other operators</ li >
278279< li > < a href ="https://youtu.be/ " target ="_self "> Video of lecture to be added</ a >
@@ -504,7 +505,7 @@ <h2 id="explicit-results" class="anchor">Explicit results </h2>
504505
505506
506507<!-- !split -->
507- < h2 id ="the-spectral-decomposition " class ="anchor "> The spectral decomposition </ h2 >
508+ < h2 id ="the-spectral-decomposition-from-last-week " class ="anchor "> The spectral decomposition, from last week </ h2 >
508509< p > The results from the previous slide gives us
509510the following spectral decomposition of \( \boldsymbol{A} \)
510511</ p >
@@ -520,6 +521,39 @@ <h2 id="the-spectral-decomposition" class="anchor">The spectral decomposition </
520521$$
521522
522523
524+ <!-- !split -->
525+ < h2 id ="meet-the-bloch-sphere " class ="anchor "> Meet the Bloch sphere </ h2 >
526+
527+ <!-- code=python (!bc pycod) typeset with pygments style "default" -->
528+ < div class ="cell border-box-sizing code_cell rendered ">
529+ < div class ="input ">
530+ < div class ="inner_cell ">
531+ < div class ="input_area ">
532+ < div class ="highlight " style ="background: #f8f8f8 ">
533+ < pre style ="line-height: 125%; "> < span style ="color: #008000; font-weight: bold "> import</ span > < span style ="color: #0000FF; font-weight: bold "> numpy</ span > < span style ="color: #008000; font-weight: bold "> as</ span > < span style ="color: #0000FF; font-weight: bold "> np</ span >
534+ < 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_bloch_vector
535+
536+ plot_bloch_vector([< span style ="color: #666666 "> 0</ span > ,< span style ="color: #666666 "> 1</ span > ,< span style ="color: #666666 "> 0</ span > ], title< span style ="color: #666666 "> =</ span > < span style ="color: #BA2121 "> "New Bloch Sphere"</ span > )
537+
538+ < span style ="color: #408080; font-style: italic "> # You can use spherical coordinates instead of cartesian. </ span >
539+
540+ plot_bloch_vector([< span style ="color: #666666 "> 1</ span > , np< span style ="color: #666666 "> .</ span > pi< span style ="color: #666666 "> /2</ span > , np< span style ="color: #666666 "> .</ span > pi< span style ="color: #666666 "> /3</ span > ], coord_type< span style ="color: #666666 "> =</ span > < span style ="color: #BA2121 "> 'spherical'</ span > )
541+ </ pre >
542+ </ div >
543+ </ div >
544+ </ div >
545+ </ div >
546+ < div class ="output_wrapper ">
547+ < div class ="output ">
548+ < div class ="output_area ">
549+ < div class ="output_subarea output_stream output_stdout output_text ">
550+ </ div >
551+ </ div >
552+ </ div >
553+ </ div >
554+ </ div >
555+
556+
523557<!-- !split -->
524558< h2 id ="measurements " class ="anchor "> Measurements </ h2 >
525559
0 commit comments