CS 5354/CS 4365 Intelligent Computing
Fall 2019, Test 3

Name: ____________________________

General comments:

Good luck!

1. Solve all parts of this problem.

1.a. If we use 5 neurons each of which uses 2 bits, how many possible models can we represent? How many models could we represent in principle if we used the same number of bits?

1.b. Explain why, to get a better accuracy, we need to go from the traditional neural network with many neurons in a single layer to a multi-layer structure with a small number of neurons in each layer?

2. Solve all parts of this problem.

2.a. Which activation function is actually used in deep learning?

2.b. Why do we need pooling in deep learning?

2.c. Which pooling operations are actually used in deep learning?

3-4. Solve only one part of this problem -- the part corresponding to your UTEP ID.

3-4.0. Explain, in detail, why for deep neural networks, the activation function should be piece-wise linear. Explain why we cannot have c− = c+.

3-4.1. Why cannot we require shift-invariance instead of scale-invariance? Explain in detail.

3-4.2. Which pooling operations work most successfully in deep learning? Provide a theoretical explanation for these operations. Suppose that instead of the three operations, we use the operation p(x,y) = a * max(x,y) + (1 − a) * min(x,y), with a = 0.4. Provide an example when for this operation, the result of pooling 4 numbers depends on how we divide these 4 numbers into pairs.

3-4.3. Explain what researchers mean when they say that deep neural networks are vulnerable to noise. Explain why deep neural networks are much more vulnerable to the noise in the original data than the traditional neural networks. If neurons on each layer amplify the noise by a factor of 4, how much will the noise by amplified after passing a 5-layer neural network? How to deal with this sensitivity of deep neural networks?

5. Solve all parts of this problem.

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

5.b. What is the probability that when we measure the bit in the state 0.6|0> − 0.8|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?

5.c. What is the state of a system of two independent particles if:

  • the first particle is in the state 0.6|0> − 0.8|1>, and
  • the second particle is in the state 0.8i|0> − 0.6|1>?
Hint: use tensor product.

6. Solve all parts of this problem.

6.a. What is the result of applying Hadamard transform to the state 0.6|0> − 0.8|1>?

6.b. What is the result of applying the quantum version of negation to the state 0.6|0> − 0.8|1>?

6.c. What is the result of applying the quantum version of "or"-operation to the states 0.6|0> − 0.8|1> and 0.8i|0> − 0.6|1>?

7. Solve all parts of this problem.

7.a. Why is it important to check whether for a given function f, we always have

f(a,...,b,0) = f(a, ..., b,1)?

7.b. 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?

7.c. 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.

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

8. Solve only one part of this problem -- corresponding to your UTEP ID.

8.0 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>?

8.1. What will happen if we apply the function f(x) = not x to a general 2-bit state

a|00> + b|01> + c|10> + d|11>?

8.2. 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>?

8.3. 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>?

9-10. Solve only one part of this problem -- corresponding to your UTEP ID.

9-10.0. Explain, step-by-step, what the Deutsch-Josza algorithm will do when the tested function is

f(x) = 1.

9-10.1. Explain, step-by-step, what the Deutsch-Josza algorithm will do when the tested function is

f(x) = not x.

9-10.2. Explain, step-by-step, what the Deutsch-Josza algorithm will do when the tested function is

f(x) = x.

9-10.3. Explain, step-by-step, what the Deutsch-Josza algorithm will do when the tested function is

f(x) = 0.