1 Introduction and overview
Exercise 1.1: Probabilistic Classical Algorithm
Suppose that the problem is not to distinguish between the constant and balanced functions with certainty,
but rather, with some probability of error ϵ < 1/2. What is the performance of the best classical algorithm
for this problem?
Solution
Concepts Involved: Deutsch’s Problem, Probability.
Recall that a Boolean function f
:
{0, 1}
n
→ {0, 1} is said to be balanced if f(x) = 1 for exactly half of
all possible 2
n
values of x.
A single evaluation tells us no information about whether f is constant or balanced, so our success
rate/error rate after a single evaluation is ϵ =
1
2
(random guessing!). Therefore, consider the case where
we do two evaluations. If we obtain two different results, then we immediately conclude that f is balanced.
Suppose instead that we obtain two results that are the same. If f is balanced, then the probably that
the first evaluation returns the given result is
1
2
, and the probability that the second evaluation returns
the same result is
2
n
/2−1
2
n
−1
(as there are 2
n
/2 of each result of 0 and 1, 2
n
total results, 2
n
/2 − 1 of the
given result left after the first evaluation, and 2
n
−1 total uninvestigated cases after the first evaluation).
Therefore, if f is balanced, this occurs with probability
1
2
·
2
n
/2−1
2
n
−1
, which we can see is less than
1
2
as:
2
n
< 2
n+1
=⇒ 2
n
− 2 < 2
n+1
− 2 =⇒
2
n
/2 − 1
2
n
− 1
< 1 =⇒
1
2
2
n
/2 − 1
2
n
− 1
<
1
2
Hence, if we get the same result in two evaluations, we can conclude that f is constant with error ϵ <
1
2
.
We conclude that only 2 evaluations are required for this algorithm.
Exercise 1.2
Explain how a device which, upon input of one of two non-orthogonal quantum states |ψ⟩ or |φ⟩ correctly
identified the state, could be used to build a device which cloned the states |ψ⟩ and |φ⟩, in violation
of the no-cloning theorem. Conversely, explain how a device for cloning could be used to distinguish
non-orthogonal quantum states.
Solution
Concepts Involved: Quantum Distinguishability, Quantum Measurement.
Given access to a device which can distinguish non-orthogonal quantum states |ψ⟩, |φ⟩ (without mea-
surement), we can then design a quantum circuit that would map |ψ⟩ 7→ |φ⟩ (or vise versa), allowing us
to clone the states as we like.
Conversely, given a cloning device, we could clone |ψ⟩ and |φ⟩ an arbitrary number of times. Then,
performing repeated measurements of the two states in different measurement bases, we would (given
enough measurements) be able to distinguish the two states based on the measurement statistics (there
will of course be some error ϵ based on probabilistic considerations, but given that we have access to as
many measurements of the states as we like, we are able to make this error arbitrarily low).
3