Lecture 10.

Here's a short booklet by Advay Mansingka.

It's based on Helwer's video (and slides).

Like Helwer it presents (among other topics) Deutsch-Josza.

I think you will agree that Money or Tiger is much more relatable.

Below help with Part 3 of The Highlights Quiz.

**Question 1.** Add vectors 
$v = \begin{pmatrix} i \\ 2 \end{pmatrix}$ 
and $w = \begin{pmatrix} 3 \\ -100 \end{pmatrix}$. 

See example 2.1 on page 32 in Martin LaForest. 

See also below. 

--

import numpy as np
v = np.array([[1j], [2]])
w = np.array([[3], [-100]])
print(v + w)
# in WolframAlpha just type: {{i}, {2}} + {{3}, {-100}}

--
Note that we can also approach this as we did the diagnostic quiz.

Next question (2 of 18) looks like this:

**Question 2.** 

Calculate $\begin{pmatrix} 3 & 3 & -1+2i \\ 1 & -3 & 0 \end{pmatrix} 
+ \begin{pmatrix} 2 & -1 & i \\ 0 & 2 + 3i & -3\end{pmatrix}$ 

See example 2.4 on page 36 in Martin LaForest.

--

import numpy as np
a = np.array([[3, 3, -1+2j], [1, -3, 0]])
b = np.array([[2, -1, 1j], [0, 2+3j, -3]])
print(a + b)
# in WolframAlpha just type: 
# {{3, 3, -1+2i}, {1, -3, 0}} + {{2, -1, i}, {0, 2+3i, -3}}