QI_lec1-2
QI_lec1-2
(ELEC-C9440)
Lecture 1-2
Lauri Ylinen1
Aalto University
Spring 2024
1
Slides courtesy of Arttu Pönni, Matti Raasakka, with some modifications by LY
Quantum information
Typically we will use the Dirac notation in which vectors are denoted by
|v ⟩, but sometimes it is useful to write out the components explicitly
w.r.t. some basis. For example, if V = C2 , then
c1
|v ⟩ = = c1 |v1 ⟩ + c2 |v2 ⟩ ,
c2
where c1 and c2 are the components of |v ⟩ in the basis |v1 ⟩ = (1, 0)T ,
|v2 ⟩ = (0, 1)T . Linear operators act on these vectors as
!
X X
A |v ⟩ = A ci |vi ⟩ = ci A |vi ⟩ .
i i
(c |v ⟩) ⊗ |w ⟩ = c(|v ⟩ ⊗ |w ⟩),
|v ⟩ ⊗ (c |w ⟩) = c(|v ⟩ ⊗ |w ⟩),
(|v ⟩ + |e
v ⟩) ⊗ |w ⟩ = |v ⟩ ⊗ |w ⟩ + |e
v ⟩ ⊗ |w ⟩ ,
|v ⟩ ⊗ (|w ⟩ + |w
e ⟩) = |v ⟩ ⊗ |w ⟩ + |v ⟩ ⊗ |w
e⟩ .
(A ⊗ B)(|v ⟩ ⊗ |w ⟩) = (A |v ⟩) ⊗ (B |w ⟩) .
A |v ⟩ = λ |v ⟩ .
One can solve for the eigenvalues by noticing that for nonzero |v ⟩
f : C 7→ C
Postulate (States)
Associated to any isolated physical system is a complex vector
space (a Hilbert space H) known as the state space. The system
is completely described by a unit vector |ψ⟩ ∈ H
Overall phase has no physical significance: |ψ⟩ and e iφ |ψ⟩ are the
same physical state for every φ ∈ R. Relative phases are however
physically significant: the states a |ψ⟩ + b |ϕ⟩ and a |ψ⟩ + e iφ b |ϕ⟩ are
physically different.
Postulate 2: Evolution of states
|ψt ′ ⟩ = U |ψt ⟩ ,
d |ψ⟩
iℏ = H |ψ⟩ ,
dt
which gives the evolution of our quantum state in terms of its
Hamiltonian H.
Postulate 3: Quantum measurement
Mm |ψ⟩
|ψ⟩ 7→ p .
p(m)
So, if we have n systems, with the ith system prepared in the state |ψi ⟩,
then the joint system is in the product state |ψ1 ⟩ ⊗ |ψ2 ⟩ ⊗ . . . ⊗ |ψn ⟩.
Accordingly, if we have operators Ui each acting on the ith subsystem,
their joint action is described by the operator
U = U1 ⊗ U2 ⊗ . . . ⊗ Un .
Note that in the case of states, often one omits the ⊗-sign:
Whereas a bit has two states (0 and 1), the qubit has infinitely many
states since any linear combination of |0⟩ and |1⟩ yields a valid
quantum state.
One often measures qubits in the computational basis, that is, uses the
measurement operators
M0 = |0⟩⟨0| M1 = |1⟩⟨1| .
θ θ
|ψ⟩ = cos |0⟩ + e iφ sin |1⟩ .
2 2
Quantum bits - Bloch sphere
θ = 0 7→ |0⟩
θ = π 7→ |1⟩
π 1
θ= , ϕ = 0 7→ √ (|0⟩ + |1⟩)
2 2
π 1
θ = , ϕ = π 7→ √ (|0⟩ − |1⟩)
2 2
π π 1
θ = ,ϕ = 7→ √ (|0⟩ + i |1⟩)
2 2 2
π 3π 1
θ = ,ϕ = 7→ √ (|0⟩ − i |1⟩)
2 2 2
We will see that the states along the x, y , and z -axes corresponds to
eigenstates of the Pauli X , Y , and Z -matrices.
Multiple qubits
Now consider a system of 2 qubits. By Postulate 4, the state space is
now 4 dimensional and is spanned by the computational basis states
|00⟩, |01⟩, |10⟩, and |11⟩. Now a general 2 qubit state can be written
where |01⟩ = |0⟩ ⊗ |1⟩ etc. This can easily be generalized for n qubits.
n
The state space would be C2 ⊗ C2 ⊗ · · · ⊗ C2 ∼= C2 with states
n
2X −1
|ψ⟩ = αx |x⟩ ,
x=0
x = x1 2n−1 + x2 2n−2 + · · · + xn 20 .
Now if we define
we can write down multi-qubit basis states very easily. For example,
|6251⟩ instead of |1100001101011⟩.
Distinguishability of quantum states
A consequence of Postulate 3 is that quantum states can’t necessarily
be distinguished from each other with perfect accuracy. This is an
important difference between classical and quantum information.
Example: You are given a quantum state |ψ⟩ with the promise that it is
either |ψ0 ⟩ = |0⟩ or |ψ1 ⟩ = |1⟩. Can you determine which it is? Yes you
can, because the two possibilities are orthogonal ⟨ψ0 |ψ1 ⟩ = 0. You
would make the measurement
M0 = |0⟩⟨0| M1 = |1⟩⟨1|
and you would get the outcome 0 if and only if the state was
|ψ⟩ = |ψ0 ⟩. √
Example: Consider the same problem with |ψ0 ⟩ = (|0⟩ + |1⟩)/ 2 and
|ψ1 ⟩ = |1⟩. Now if you make the same measurement you would get
1 1
If |ψ⟩ = |ψ0 ⟩ : p(0) = ⟨ψ0 |0⟩ ⟨0|ψ0 ⟩ = p(1) = ⟨ψ0 |1⟩ ⟨1|ψ0 ⟩ =
2 2
If |ψ⟩ = |ψ1 ⟩ : p(0) = ⟨ψ1 |0⟩ ⟨0|ψ1 ⟩ = 0 p(1) = ⟨ψ1 |1⟩ ⟨1|ψ1 ⟩ = 1 ,
therefore if your measurement gave the result 0, then you know you
were given ψ0 . However if the result is 1, then you can’t know which
state you had.
Example: superdense coding
1 1
Φ+ = √ (|00⟩ + |11⟩) Φ− = √ (|00⟩ − |11⟩)
2 2
+ 1 − 1
Ψ = √ (|01⟩ + |10⟩) Ψ = √ (|01⟩ − |10⟩) .
2 2
These are all orthogonal and such that Alice can transform the initial
state to each one at will.
Example: superdense coding
x1 x2 = 00 : Φ+ x1 x2 = 10 : Ψ+
−
x1 x2 = 01 : Φ x1 x2 = 11 : Ψ− .
Then Alice mails her qubit to Bob. Finally Bob can measure both
qubits and determine which Bell state he has and therefore which
two-bit string Alice wanted to send. Note that distinguishing between
the possible states is always possible with perfect fidelity since they are
orthogonal.
Quantum computation
U = SHX
U |q0 ⟩ = SHX |q0 ⟩ .
U =I⊗X ⊗I
Examples of gate actions
They form a basis in the space of 2x2 matrices, so any 2x2 matrix can
be written as
H = a0 σ0 + a1 σ1 + a2 σ2 + a3 σ3 ,
because
(X ⊗ I)(I ⊗ Y ) = X ⊗ Y = (I ⊗ Y )(X ⊗ I) .
The first qubit is the control qubit and the second is the target qubit.
The action of the above circuit is
that is, the one-qubit unitary U is applied on the target qubit |t⟩ if and
only if the control qubit is set |c⟩ = |1⟩.
Controlled gates
One of the most common controlled gates is the
controlled-X /controlled-NOT gate.
The traditional notation ⊕ refers to the fact that if the control qubit is
set, then the second qubit is combined with the first by the
XOR-operation
|c⟩ ⊗ |t⟩ 7→ |c⟩ ⊗ |c ⊕ t⟩ .
In other words, the target is flipped if the control is set. Another
important controlled gate is the controlled-Z:
Now the unitary U is applied on the last 3 qubits only if all of the first
4 qubits are set
Arbitrary classical programs can be built from just a few basic gates:
e.g. AND, OR, and NOT -gates. One might wonder if quantum
computation is similar in this regard: yes it is. Different quantum
programs correspond to different unitary operators U, so the
appropriate question is how many and what kind of gates we need to
build up any unitary transformation on qubits. Like in the classical
case, different choices exist but one is
Up to this point we have assumed that we know the state vector |ψ⟩ of
the system which contains the complete description (as per Postulate 1)
of our physical system. Often however, we encounter situations where
our knowledge of the state is probabilistic. Consider a couple common
situations in our context of quantum information/computation
▶ A quantum computer is prepared to some initial state |0⟩. During
the computation, we perform deliberate actions to manipulate this
state in a way of our choosing. However, the manipulation
mechanism has finite precision: we end up with a probability
distribution of final states.
▶ The isolation of the qubits and their environment is not perfect:
the qubits become entangled with the environment and since we
are not observing the environment, our description of the qubits is
imprecise.
When we know the state vector precisely, we say that the state is pure.
If we don’t know the state exactly, the state is mixed and we use
density operators in their description.
Ensembles of quantum states
ρt ′ = Uρt U † ,
†
and the state after the measurement collapses ρ 7→ Mm ρMm /p(m).
The expectation value of an observable A is ⟨A⟩ = tr (Aρ).
4. If a joint system consists of n parts, each prepared to state ρi ,
then their joint system is in the state ρ1 ⊗ ρ2 ⊗ . . . ⊗ ρn .
Postulates for density operators
Let’s check that the measurement rule gives the expected probabilities.
The Pdensity operator corresponding to the ensemble {pi , |ψi ⟩} is
ρ = i pi |ψi ⟩⟨ψi |. Suppose our measurement operators are {Mm }.
According to the 3rd postulate, the probability of outcome m is
!
X X
† †
p(m) = tr Mm Mm pi |ψi ⟩⟨ψi | = pi tr Mm Mm |ψi ⟩⟨ψi |
i i
X X X X
† †
= pi ψj Mm Mm |ψi ⟩ ψi ψj = pi ψj Mm Mm |ψi ⟩ δij
i j i j
X X
†
= pi ⟨ψi |Mm Mm |ψi ⟩ = pi p(m|i) .
i i
1
ρ= r ·⃗
(I + ⃗ σ)
2
and ⃗
r is known as the Bloch vector.
Density operators on the Bloch sphere
▶ |⃗
r | = 1 corresponds to pure ρ
(surface of the Bloch sphere)
▶ |⃗
r | = 0 corresponds to the
completely mixed state
ρ = I/2 (origin)
Reminder: Trace of an operator
!
X X X
= ϕj |i⟩⟨i| A ϕj = ϕj A ϕj ,
j i j
P P
where we used the completeness relation I = i |i⟩⟨i| = j ϕj ϕj .
Reminder: Trace of an operator
The cyclic property also implies the useful fact that the trace of an
operator is invariant under unitary similarity transformations
A 7→ UAU † because
tr UAU † = tr U † UA = tr (IA) = tr A .
Ensemble interpretation of density operators
It is often useful
P to think of density matrices as ensembles of quantum
states: ρ = i pi |ψi ⟩⟨ψi | would correspond to the ensemble where the
state |ψi ⟩ occurs with probability pi . It is however important to notice
that this interpretation is far from unique. In fact there is infinitely
many different ensembles that give rise to the same density matrix ρ
(NC Theorem 2.6).
Example: You might say that
3 1
ρ= |0⟩ + |1⟩⟨1|
4 4
describes a system where the state is |0⟩ with probability 3/4 and |1⟩
with probability 1/4. Consider the ensemble
r r r r
3 1 3 1
|a⟩ = |0⟩ + |1⟩ , |b⟩ = |0⟩ − |1⟩ ,
4 4 4 4
where both states have probability 1/2. The corresponding ensemble is
1 1 3 1
ρ= |a⟩⟨a| + |b⟩⟨b| = |0⟩⟨0| + |1⟩⟨1| ,
2 2 4 4
exactly the same as the first ensemble!
Reduced density operator
ρA = trB ρAB .
The operator trB is the partial trace and we say that we “trace
out/over B”. The definition of the partial trace is
trB : HA ⊗ HB 7→ HA
trB (|a1 ⟩⟨a2 | ⊗ |b1 ⟩⟨b2 |) ≡ |a1 ⟩⟨a2 | tr(|b1 ⟩⟨b2 |) ,
for any |a1 ⟩ , |a2 ⟩ ∈ HA and |b1 ⟩ , |b2 ⟩ ∈ HB . The trace on the RHS is
the usual trace in HB :
|0⟩⟨0| + |1⟩⟨1| 1
= = I.
2 2
It is interesting to note that the joint system is in a definite state |ψ⟩
but still if we look only at A the state is a coin flip between the
orthogonal |0⟩ and |1⟩. Later we will see that because ρA is
proportional to I, the joint qubit state is maximally entangled.
Reduced density operator
1 0 0 0
1 0 0 0 0 0
+ 0 1 0 0 1 0
ρA = ρ
ρ
0 0 1 0 0 1 0 0 0 1 0 0
0 0 0 1
1 1 0 1
= = I.
2 0 1 2
Suppose Alice (first 2 qubits) wants to send a state |ψ⟩ = α |0⟩ + β |1⟩
to Bob (last qubit). The protocol is shown in the above Figure.
Initially, we have
1
|ψ0 ⟩ = |ψ⟩ |β00 ⟩ = √ (α |0⟩ (|00⟩ + |11⟩) + β |1⟩ (|00⟩ + |11⟩)) .
2
After the CNOT on Alice’s qubits, the state is
1
|ψ1 ⟩ = |ψ⟩ |β00 ⟩ = √ (α |0⟩ (|00⟩ + |11⟩) + β |1⟩ (|10⟩ + |01⟩)) .
2
Example: quantum teleportation
Next Alice measures her qubits in the computational basis. We can see
that if the result is 00, then Bob’s state is |ψ⟩ = α |0⟩ + β |1⟩. Other
measurement results cause Bob to have different states, each of which
can be transformed to |ψ⟩ if Bob knows Alice’s measurement result!
Example: quantum teleportation