mirror of
https://github.com/quantumjim/Quantum-Computation-course-Basel.git
synced 2025-11-08 21:44:25 +01:00
more exercises
This commit is contained in:
parent
1aa22e4371
commit
b4d0cc5c63
11
README.md
11
README.md
@ -24,12 +24,19 @@ Most of the course will be done as a 'flipped classroom'. Lecture videos will be
|
||||
Below are links to the lecture videos for the lectures so far. For links to the corresponding sections of the textbook, see the video description.
|
||||
|
||||
* Lecture 1: [The Atoms of Computation and What is Quantum](https://youtu.be/myzcjukQUFc) and [Python, Qiskit and Hello Qiskit](https://youtu.be/mMJtw-vFXC4)
|
||||
|
||||
- In-class exercise: [Quantum Logic Gates](exercises_2022/Exercise2.ipynb)
|
||||
- Extra lecture: [The Unique Properties of Qubits](https://github.com/NCCR-SPIN/qiskit-textbook/blob/892f5dc28b27ee43a3f26f2a7d9f7d376de4e6d8/content/ch-states/old-unique-properties-qubits.ipynb)
|
||||
|
||||
|
||||
## Exercises
|
||||
|
||||
Take home exercises will be given every few weeks. More information will follow when the first set is given.
|
||||
### In-Class Exercises
|
||||
|
||||
Exercises covered in class will be drawn from the big pile of all the exercises used in previous versions of this course.
|
||||
|
||||
### Take-Home Exercises
|
||||
|
||||
Take-home exercises will be given every few weeks. More information will follow when the first set is given.
|
||||
|
||||
|
||||
## Exam/Final Project
|
||||
|
||||
BIN
exercises_2019/.DS_Store
vendored
Normal file
BIN
exercises_2019/.DS_Store
vendored
Normal file
Binary file not shown.
1
exercises_2019/.texpadtmp/Exercise12.aux
Normal file
1
exercises_2019/.texpadtmp/Exercise12.aux
Normal file
@ -0,0 +1 @@
|
||||
\relax
|
||||
BIN
exercises_2019/.texpadtmp/Exercise12.synctex.gz
Normal file
BIN
exercises_2019/.texpadtmp/Exercise12.synctex.gz
Normal file
Binary file not shown.
BIN
exercises_2019/Answers_6.pdf
Normal file
BIN
exercises_2019/Answers_6.pdf
Normal file
Binary file not shown.
BIN
exercises_2019/Answers_7-1.pdf
Normal file
BIN
exercises_2019/Answers_7-1.pdf
Normal file
Binary file not shown.
BIN
exercises_2019/Answers_7-2.pdf
Normal file
BIN
exercises_2019/Answers_7-2.pdf
Normal file
Binary file not shown.
BIN
exercises_2019/Exercise10.pdf
Normal file
BIN
exercises_2019/Exercise10.pdf
Normal file
Binary file not shown.
BIN
exercises_2019/Exercise11.pdf
Normal file
BIN
exercises_2019/Exercise11.pdf
Normal file
Binary file not shown.
BIN
exercises_2019/Exercise12.pdf
Normal file
BIN
exercises_2019/Exercise12.pdf
Normal file
Binary file not shown.
BIN
exercises_2019/Exercise6.pdf
Normal file
BIN
exercises_2019/Exercise6.pdf
Normal file
Binary file not shown.
BIN
exercises_2019/Exercise7.pdf
Normal file
BIN
exercises_2019/Exercise7.pdf
Normal file
Binary file not shown.
BIN
exercises_2019/Exercise8.pdf
Normal file
BIN
exercises_2019/Exercise8.pdf
Normal file
Binary file not shown.
BIN
exercises_2019/Exercise9.pdf
Normal file
BIN
exercises_2019/Exercise9.pdf
Normal file
Binary file not shown.
BIN
exercises_2019/Solution8.pdf
Normal file
BIN
exercises_2019/Solution8.pdf
Normal file
Binary file not shown.
BIN
exercises_2019/Solution9.pdf
Normal file
BIN
exercises_2019/Solution9.pdf
Normal file
Binary file not shown.
BIN
exercises_2019/Solutions11-1.png
Normal file
BIN
exercises_2019/Solutions11-1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 184 KiB |
BIN
exercises_2019/qft.png
Normal file
BIN
exercises_2019/qft.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 83 KiB |
@ -2,15 +2,9 @@
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"metadata": {
|
||||
"tags": [
|
||||
"remove_cell"
|
||||
]
|
||||
},
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"<h1 style=\"font-size:35px;\n",
|
||||
" color:black;\n",
|
||||
" \">Exercise 2: Quantum Logic Gates</h1>"
|
||||
"# Exercise 2: Quantum Logic Gates"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
BIN
exercises_comp_2017/.DS_Store
vendored
Normal file
BIN
exercises_comp_2017/.DS_Store
vendored
Normal file
Binary file not shown.
BIN
exercises_comp_2017/Exercise1.pdf
Normal file
BIN
exercises_comp_2017/Exercise1.pdf
Normal file
Binary file not shown.
BIN
exercises_comp_2017/Exercise2.pdf
Normal file
BIN
exercises_comp_2017/Exercise2.pdf
Normal file
Binary file not shown.
BIN
exercises_comp_2017/Exercise3.pdf
Normal file
BIN
exercises_comp_2017/Exercise3.pdf
Normal file
Binary file not shown.
BIN
exercises_comp_2017/Exercise4.pdf
Normal file
BIN
exercises_comp_2017/Exercise4.pdf
Normal file
Binary file not shown.
BIN
exercises_comp_2017/Exercise5.pdf
Normal file
BIN
exercises_comp_2017/Exercise5.pdf
Normal file
Binary file not shown.
BIN
exercises_comp_2017/Solution1.pdf
Normal file
BIN
exercises_comp_2017/Solution1.pdf
Normal file
Binary file not shown.
BIN
exercises_comp_2017/Solution2-1.pdf
Normal file
BIN
exercises_comp_2017/Solution2-1.pdf
Normal file
Binary file not shown.
BIN
exercises_comp_2017/Solution5-1.pdf
Normal file
BIN
exercises_comp_2017/Solution5-1.pdf
Normal file
Binary file not shown.
BIN
exercises_comp_2017/Solution5-2,3.pdf
Normal file
BIN
exercises_comp_2017/Solution5-2,3.pdf
Normal file
Binary file not shown.
BIN
exercises_comp_2017/solution2-2.pdf
Normal file
BIN
exercises_comp_2017/solution2-2.pdf
Normal file
Binary file not shown.
BIN
exercises_comp_2017/solution3.pdf
Normal file
BIN
exercises_comp_2017/solution3.pdf
Normal file
Binary file not shown.
BIN
exercises_qec_2018/.DS_Store
vendored
Normal file
BIN
exercises_qec_2018/.DS_Store
vendored
Normal file
Binary file not shown.
27
exercises_qec_2018/Answers1-5.txt
Normal file
27
exercises_qec_2018/Answers1-5.txt
Normal file
@ -0,0 +1,27 @@
|
||||
5 a
|
||||
|
||||
From lecture: We are secure as long as H(K) >= H(M)
|
||||
|
||||
A collection of N messages m_j, each of n characters, is equivalent to one message of N*n characters
|
||||
|
||||
M=[]
|
||||
for j in range(N):
|
||||
M.append( m[j] )
|
||||
|
||||
This can have a Shannon entropy of H(M) = O(1) (some finite value).
|
||||
|
||||
If the same key, k, is used for each m_j, then the key for the meta message is
|
||||
|
||||
K = k * N
|
||||
|
||||
The repetition does not increase the information content, so K will have the same Kolmogorov complexity as k. But since the Shannon entropy averages this over all characters
|
||||
|
||||
H(K) = H(k)/N = O(1/N)
|
||||
|
||||
The fact that H(M) can have a finite value conflicts with the inevitable decay of H(K), ensuring that the security condition cannot hold in general for arbitrarily large N.
|
||||
|
||||
|
||||
|
||||
5 b
|
||||
|
||||
Create a frequency table for the first character in each message. Whichever character is most common is most likely the encoding of E, since E is the most common letter in English text. The next most common is most likely T, and so on. Do the same for all characters. Decode all messages accordingly. Find successes and failures and use them to improve the decoding until all messages become sensible English text. The decoding is the key (or the inverse of it, at least).
|
||||
BIN
exercises_qec_2018/Answers1.pdf
Normal file
BIN
exercises_qec_2018/Answers1.pdf
Normal file
Binary file not shown.
BIN
exercises_qec_2018/Answers10.pdf
Normal file
BIN
exercises_qec_2018/Answers10.pdf
Normal file
Binary file not shown.
BIN
exercises_qec_2018/Answers3/Answers3(for q1 see q2 here).pdf
Normal file
BIN
exercises_qec_2018/Answers3/Answers3(for q1 see q2 here).pdf
Normal file
Binary file not shown.
BIN
exercises_qec_2018/Answers3/Answers3(q2,q3 and q4).pdf
Normal file
BIN
exercises_qec_2018/Answers3/Answers3(q2,q3 and q4).pdf
Normal file
Binary file not shown.
BIN
exercises_qec_2018/Answers4.pdf
Normal file
BIN
exercises_qec_2018/Answers4.pdf
Normal file
Binary file not shown.
BIN
exercises_qec_2018/Answers5.pdf
Normal file
BIN
exercises_qec_2018/Answers5.pdf
Normal file
Binary file not shown.
BIN
exercises_qec_2018/Answers6.pdf
Normal file
BIN
exercises_qec_2018/Answers6.pdf
Normal file
Binary file not shown.
BIN
exercises_qec_2018/Answers9.pdf
Normal file
BIN
exercises_qec_2018/Answers9.pdf
Normal file
Binary file not shown.
BIN
exercises_qec_2018/Answers_8-1.pdf
Normal file
BIN
exercises_qec_2018/Answers_8-1.pdf
Normal file
Binary file not shown.
BIN
exercises_qec_2018/Answers_8-2.pdf
Normal file
BIN
exercises_qec_2018/Answers_8-2.pdf
Normal file
Binary file not shown.
BIN
exercises_qec_2018/Exercise1.pdf
Normal file
BIN
exercises_qec_2018/Exercise1.pdf
Normal file
Binary file not shown.
BIN
exercises_qec_2018/Exercise10.pdf
Normal file
BIN
exercises_qec_2018/Exercise10.pdf
Normal file
Binary file not shown.
BIN
exercises_qec_2018/Exercise11.pdf
Normal file
BIN
exercises_qec_2018/Exercise11.pdf
Normal file
Binary file not shown.
BIN
exercises_qec_2018/Exercise2.pdf
Normal file
BIN
exercises_qec_2018/Exercise2.pdf
Normal file
Binary file not shown.
BIN
exercises_qec_2018/Exercise3.pdf
Normal file
BIN
exercises_qec_2018/Exercise3.pdf
Normal file
Binary file not shown.
BIN
exercises_qec_2018/Exercise4.pdf
Normal file
BIN
exercises_qec_2018/Exercise4.pdf
Normal file
Binary file not shown.
BIN
exercises_qec_2018/Exercise5.pdf
Normal file
BIN
exercises_qec_2018/Exercise5.pdf
Normal file
Binary file not shown.
BIN
exercises_qec_2018/Exercise6.pdf
Normal file
BIN
exercises_qec_2018/Exercise6.pdf
Normal file
Binary file not shown.
BIN
exercises_qec_2018/Exercise7.pdf
Normal file
BIN
exercises_qec_2018/Exercise7.pdf
Normal file
Binary file not shown.
BIN
exercises_qec_2018/Exercise8.pdf
Normal file
BIN
exercises_qec_2018/Exercise8.pdf
Normal file
Binary file not shown.
BIN
exercises_qec_2018/Exercise9.pdf
Normal file
BIN
exercises_qec_2018/Exercise9.pdf
Normal file
Binary file not shown.
BIN
exercises_qec_2018/Fig10.png
Normal file
BIN
exercises_qec_2018/Fig10.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.8 KiB |
BIN
exercises_qec_2018/Fig11-2.png
Normal file
BIN
exercises_qec_2018/Fig11-2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.7 KiB |
Loading…
x
Reference in New Issue
Block a user