qubits
qubits
• Moore’s Law
Moore’s Law states that the density of transistors on a chip roughly doubles every eighteen months.
Current estimates say that in about a decade this should be down to single electron transistors. This
is the end of the road for further miniaturization of classical computers based on electronics. Long
before that chip designers will have to contend with quantum phenomena. Quantum computation
provides a method of bypassing the end of Moore’s Law, and also provides a way of utilizing the
inevitable appearance of quantum phenomena.
• Factoring, Discrete log, Pell’s equations, etc..
There are certain problems that quantum computation allows us to solve more efficiently that any
classical computational method. A few examples are listed above. We may wish to exploit this
feature of quantum computation.
• Cryptography
Quantum computation allows us to do cryptography in a way that doesn’t require assumptions about
factoring primes, etc.. It also allows us to break classical cryptography schemas. Obviously, if we are
interested in cryptography, we’ll also have to be interested in quantum computation.
Above are the three standard reasons for studying quantum computation. There are other reasons as
well that are perhaps just as compelling.
• Quantum Mechanics is a model of computation
We can study quantum mechanics as a model of computation.
• Quantum Entanglement
In particular, the detailed study of entanglement is the most important point of departure from more tradi-
tional approaches to the subject. For example, quantum computation derives its power from the fact that the
description of the state of an n-particle quantum system grows exponentially in n. This enormous informa-
tion capacity is not easy to access, since any measurement of the system only yields n pieces of classical
information. Thus the main challenge in the field of quantum algorithms is to manipulate the exponential
amount of information in the quantum state of the system, and then extract some crucial pieces via a final
measurement.
Quantum cryptography relies on a fundamental property of quantum measurements: that they inevitably
disturb the state of the measured system. Thus if Alice and Bob wish to communicate secretly, they can
detect the presence of an eavesdropper Eve by using cleverly chosen quantum states and testing them to
check whether they were disturbed during transmission.
...
In general, since the electron is a quantum system, it is in a linear superposition of the ground and excited
state — it is in the ground state (0) with probability amplitude α ∈ C and in the excited state (1) with
probability amplitude β ∈ C . It is as though the electron “does not make up its mind” as to which of the 2
classical states it is in. Such a 2-state quantum system is called a qubit, and its state can be written as a unit
α
(column) vector β ∈ C 2 . In Dirac notation, this may be written as:
ψ = α 0 +β 1 α,β ∈ C and |α |2 + |β |2 = 1
The Dirac notation has the advantage that the it labels the basis vectors explicitly. This is very convenient
because the notation expresses both that the state of the qubit is a vector, and that it is data (0 or 1) to be
processed. (The { 0 , 1 } basis is called the standard or computational basis.)
In general a column vector —called a “ket”— is denoted by and a row vector —called a “bra”— is
denoted by |.
This linear superposition ψ = α 0 + β 1 is part of the private world of the electron. For us to know
the electron’s state, we must make a measurement. Measuring ψ in the { 0 , 1 } basis yields 0 with
probability |α | 2 , and 1 with probability |β | 2 .
One important aspect of the measurement process is that it alters the state of the qubit: the effect of the
measurement is that the new state is exactly the outcome of the measurement. I.e., if the outcome of the
measurement of ψ = α 0 + β 1 yields 0 , then following the measurement, the qubit is in state 0 .
This implies that you cannot collect any additional information about α , β by repeating the measurement.
More generally, we may choose any orthogonal basis v, v⊥ and measure the qubit in it. To do this, we
rewrite our state in that basis: ψ = α 0 v + β 0 v⊥ . The outcome is v with probability |α 0 | 2 , and v⊥
with probability |β 0 | 2 . If the outcome of the measurement on ψ yields v , then as before, the the qubit is
then in state v .
+ = √1 ( 0 + 1 )
2
ψ = cos θ 0 + sin θ 1
i
|ψ
h+
45◦
θ
0
h−
|ψ
i
− = √1 ( 0 − 1 )
2
Figure 1:
ψ = α 0 +β 1
= α √12 ( + + − ) + β √12 ( + − − )
= √12 (α + β ) + + (α − β ) −
.
Therefore the probability of measuring + is | √12 (α + β )|2 = |α + β |2 /2. The probability of measuring
− is |α + β |2 /2. We will do the general case in §??.
4 Two qubits:
Now let us examine the case of two qubits. Consider the two electrons in two hydrogen atoms:
1 1
0 0
+ +
Since each electron can be in either of the ground or excited state, classically the two electrons are in one of
four states – 00, 01, 10, or 11 – and represent 2 bits of classical information. Quantum mechanically, they
are in a superposition of those four states:
α00
α01
α10
α11
where αi j ∈ C , ∑ |αi j |2 = 1.
Measurement:
If the two electrons (qubits) are in state ψ and we measure them, then the probability that the first qubit
is in state i, and the second qubit is in state j is P(i, j) = |αi j | 2 . Following the measurement, the state of the
two qubits is ψ 0 = i j . What happens if we measure just the first qubit? What is the probability that the
first qubit is 0? In that case, the outcome is the same as if we had measured both qubits: Pr {1st bit = 0} =
|α00 | 2 + |α01 | 2 . The new state of the two qubit system now consists of those terms in the superposition that
are consistent with the outcome of the measurement – but normalized to be a unit vector:
α00 00 + α01 01
φ = q
|α00 | 2 + |α01 | 2
.
A more formal way of describing this partial measurement is that the state vector is projected onto the
subspace spanned by 00 and 01 with probability equal to the square of the norm of the projection, or
onto the orthogonal subspace spanned by 10 and 11 with the remaining probability. In each case, the
new state is given by the (normalized) projection onto the respective subspace.
5 Entanglement
Consider the state of a two qubit system given by ψ = √1
2
00 + √12 11 . Notice that this state cannot be
represented as (α0 0 + α1 1 ) ⊗ (β0 0 + β1 1 ) for any complex numbers α0 , α1 , β0 or β1 . We cannot
analyze the state of each individual qubit in this sytem, because the states of the two qubits are entangled. If
we take a measurement on the first qubit, then the state of the other qubit is determined by the outcome of
the measurement. With probability 12 we see 0 as the outcome of the measurement, and in this case, we
know that the state of the system must be 00 .
Entangled states provide one method of showing that the outcomes of quantum mechanics cannot be ex-
plained by any thory of ”‘hidden variables”’.
• if XA = 0, then Alice measures in the standard basis, and outputs the result.
• if XA = 1, then Alice rotates by π /8, then measures, and outputs the result.
• if XB = 0, then Bob measures in the standard basis, and outputs the complement of the result.
• if XB = 1, then Bob rotates by −π /8, then measures, and outputs the complement of the result.
Now we calculate Pr {a ⊕ b 6= XA ∧ XB}. (Recall that if measurement in the standard basis yields 0 with
probability 1, then if a state is rotated by θ , measurement yields 0 with probability cos2 (θ ).) There are
four cases:
Pr {a ⊕ b 6= XA ∧ XB} = ∑ 1
4 Pr {a ⊕ b 6= XA ∧ XB XA , XB }
XA ,XB
Pr {a ⊕ b 6= XA ∧ XB XA = 0, XB = 0} = 0
Pr {a ⊕ b 6= XA ∧ XB XA = 0, XB = 1} = sin2 (π /8)
Pr {a ⊕ b 6= XA ∧ XB XA = 1, XB = 0} = sin2 (π /8)
Pr {a ⊕ b 6= XA ∧ XB XA = 1, XB = 1} = sin2 (π /4) = 1/2 .
Indeed, for the first case, XA = XB = 0 (so XA ∧ XB = 0), Alice and Bob each measure in the computational
basis, without any rotation. If Alice measures a = 0, then Bob’s measurement is the opposite, and Bob
outputs the complement, b = 0. Therefore a ⊕ b = 0 = XA ∧ XB , a success. Similarly if Alice measures
a = 1, they are always successful.
In the second case, XA = 0, XB = 1 (XA ∧ XB = 0). If Alice measures a = 0, then the new state of the system
is 01 ; Bob’s qubit is in the state 1 . In the rotated basis, Bob measures a 1 (and outputs its complement,
0) with probability cos2 (π /8). The probability of failure is therefore 1 − cos2 (π /8) = sin2 (π /8). Similarly
if Alice measures a = 1. The third case, XA = 1, XB = 0 is symmetrical.
In the final case, XA = XB = 1 (so XA ∧ XB = 1), Alice and Bob are measuring in bases rotated 45 degrees
from each other, so their measurements are independent. The probability of failure is 1/2.
Averaging over the four cases, we find
The probability of success with this protocal is therefore around .8, better than any protocol could achieve
in the classical, hidden variable model.
Exercise: Consider the GHZ (Greenberger-Horne-Zeilinger) state, of 3 qubits:
1
000 − 011 − 101 − 110
2
Suppose three parties, A, B and C with experiments XA , XB , XC respectively, with the constraint XA ⊕ XB ⊕
XC = 0. Output a, b, c s.t. XA ∨ XB ∨ XC = a ⊕ b ⊕ c. Show that this can be done with certainty. Hint: you’ll
need the Hadamard matrix,
1 1 1
H= √
2 1 −1
which takes
1
0 →√ 0 + 1
2
1
1 →√ 0 − 1
2