Quiz 3:

1) Is 0.5i|0> + 0.6|1> a valid quantum state? Is 0.6i|0> - 0.8|1> a
valid state? Explain why.

2) What is the probability that when we measure the bit in the
state 0.8|0> - 0.6|1>, we will get 0? What is the probability that
we will get 1? How are similar probabilities explaining which
combinations are valid states and which are not?

3) What is the state of a system of two independent particles if
the first particle is in the state 0.8|0> - 0.6|1> and the second
particle is in the state 0.6|0> + 0.8i|1>? Hint: use tensor
product.

4) What is the result of applying the quantum version of negation
to the state 0.8|0> - 0.6|1>?

5a) What is the result of applying Hadamard transform to the state
0.8|0> - 0.6|1>?

5) What is the result of applying the quantum version of
"and"-operation to the states 0.8|0> - 0.6|1> and 0.6|0> + 0.8i|1>?

6) Why is it important to check whether for a given function f, we
always have f(a,...,b,0) = f(a, ..., b,1)?

7) How many calls to f do we need in non-quantum case to check
whether f(0) = f(1)? Why is this practically important to reduce
this number of calls?

8) How many calls do we need in quantum case to check whether f(0)
= f(1)? What state do we start with? Name the four stages of the
Deutsch-Josza algorithm.

9) Explain why there are exactly four Boolean functions of one
boolean variable. Name them all.

10) Explain, step-by-step, what the Deutsch-Josza algorithm will do
when the tested function is f(x) = 0.

11) Explain, step-by-step, what the Deutsch-Josza algorithm will do
when the tested function is f(x) = x.

12) Explain, step-by-step, what the Deutsch-Josza algorithm will do
when the tested function is f(x) = not x.

13) Explain, step-by-step, what the Deutsch-Josza algorithm will do
when the tested function is f(x) = 1.

14) What will happen if we apply the function f(x) = 0 to a general
2-bit state a|00> + b|01> + c|10> + d|11>?

15) What will happen if we apply the function f(x) = 1 to a general
2-bit state a|00> + b|01> + c|10> + d|11>?

16) What will happen if we apply the function f(x) = x to a general
2-bit state a|00> + b|01> + c|10> + d|11>?