Le 2
Le 2
1 One qubit:
Recall that
the state
of a single
qubit can be written as a superposition over its two distinguishable states 0
and 1: ψ = α 0 + β 1 . Measuring
this qubit in the standard basis, yields outcome 0 withprobability
|α |2 and resets the state to ψ ′ = 0 , and 1 with probability |β |2 resetting the state to ψ ′ = 1 .
More generally, we can measure the qubit in any orthonormal basis (v , ⊥ v ). This results in outcome
v with probability cos2 θ , where θ is the angle between φ and v , etc. This description corresponds
to the Heisenberg picture of quantum mechanics. Here we think of the state of the system as fixed; what
changes is the basis in which we measure.
ψ in a rotated basis
A different
viewpoint is provided by the Schrodinger picture. Instead of measuring
( v , ⊥ v ), we achieve the same effect by rotating the entire space,
so that v is mapped to 0 and ⊥ v
is mapped to 1 , and then measuring in the standard basis (0 , 1 ).
1 1
′
1
ψ ψ
′
0
′ |ψ i
h0
′
h0|ψ ′ i ψ
h1|ψ ′ i
φ
h1
φ
′ |ψ i
0 0
Heisenberg Schrödinger
Such rigid body transformations of the vector space are called unitary transformations. For example, rota-
tions and reflections are unitary. A postulate of quantum physics is that quantum evolution is unitary. That
is, if we have some arbitrary quantum system U that takes as input a state |φ i and outputs a different state
U |φ i, then we can describe U as a unitary linear transformation, defined as follows.
If U is any linear transformation, the adjoint of U , denoted U † , is defined by (U~v,~w) = (~v,U † ~w). In a basis,
U † is the conjugate transpose of U ; for example, for an operator on C 2 ,
U = ac db ⇒ U † = b̄ā dc̄¯ .
We say that U is unitary if U † = U −1 . For example, rotations and reflections are unitary. Also, the compo-
sition of two unitary transformations is also unitary (Proof: U,V unitary, then (UV )† = V †U † = V −1U −1 =
(UV )−1 ).
Some properies of a unitary transformation U :
• The eigenvalues of U are all of the form eiθ (since U is length-preserving, i.e., (~v,~v) = (U~v,U~v)).
2 Two qubits:
Now let us return to the case of two qubits. Consider the two electrons in two hydrogen atoms:
1 1
0 0
+ +
Recall that the quantum state of these two electrons is a superposition of the four classical states, 00, 01, 10
and 11:
ψ = α 00 + α 01 + α 10 + α 11 ,
00 01 10 11
where ∑i j |αi j |2 = 1. Again, this is just Dirac notation for the unit vector in C 4 :
α00
α
01
α
10
α11
where αi j ∈ C , ∑ |αi j |2 = 1.
Tensor products (informal):
Recall that the state of each qubit is an element of the Hilbert space C2 . The state of a two qubit system is an
element of the Hilbert space C4 . How do we glue together the two copies of C2 to get the composite Hilbert
space C4? This
is via an operation called tensor product. It works as follows:
suppose the state
of the first
qubit is φ1 = α1 0 + β1 1 ∈ C 2 , and the state of the second qubit is φ2 = α2 0 + β2 1 ∈ C2 . Then
their joint state is described by the tensor product, which can be described informally as follows:
φ = φ1 ⊗ φ2
= α1 α2 00 + α1 β2 01 + β1 α2 10 + β1 β2 11 .
This operation will be described more formally in the next lecture. For now, we just note that states of
the two qubits where we can specify the state of each qubit individually are very special - they are called
tensor product states. The typical state of a two qubit system is not a tensor product state, and is said to be
entangled. The Bell state introduced in the last lecture is an example of a highly entangled state.
NOT gate: The not gate (denoted by X) swaps the bases vectors of the basis 0 and 1. It maps 0 to 1 and
vice-versa. Thus, by linearity, it maps α |0i + β |1i to α |1i + β |0i.
0 1
X=
1 0
PHASE-FLIP gate: The phase flip gate (denoted by Z) applies a phase of −1 to 1 and leaves 0
unchanged.
1 0
Z=
0 −1
Z|0i = |0i
Z|1i = | − 1i
Z|+i = |−i
Z|−i = |+i
The last two equations suggest that in the Hadamard basis, the phase flip gate acts as a Not gate. i.e. Z=HXH.
Bell states:
The four Bell states are:
Φ
±
= √12 00 ± 11
Ψ
±
= √12 01 ± 10 .
H t
❞
The first qubit is passed through a Hadamard gate and then both qubits are entangled by a CNOT gate.
If the input to the system is |0i ⊗ |0i, then the Hadamard gate changes the state to
√1 (|0i + |1i) ⊗ |0i = √1 |00i + √1 |10i ,
2 2 2
and after the CNOT gate the state becomes √12 (|00i + |11i), the Bell state |Φ+ i. In fact, one can verify that
for each of the four standard basis states as inputs, the output is the the corresponding Bell basis state:
1
|00i 7→ √ (|00i + |11i) = |Φ+ i (3)
2
1
|10i 7→ √ (|00i − |11i) = |Φ− i (4)
2
1
|01i 7→ √ (|01i + |10i) = |Ψ+ i (5)
2
1
|11i 7→ √ (|01i − |10i) = |Ψ− i (6)
2
(7)
• If x1 x2 = 1 then she applies both the phase-flip and the NOT gate ZX to her qubit.
Upon receiving Alice’s part of the Bell state, Bob runs the circuit described in the previous section in reverse
to obtain two qubits y1 y2 . He then measures this state in the basis {|00i, |01i, |10i, |11i}. In other words, he
applies the CNOT gate to b and to his quantum bit. He then applies the Hadamard to b ( the quantum bit he
received from Alice) and thus, retrieves x1 x2 .