Professional Documents
Culture Documents
IBM Lesson 1 - Single-systems-slides
IBM Lesson 1 - Single-systems-slides
Contents
1. Classical information
2. Quantum information
• Quantum states
• Standard basis measurements
• Unitary operations
Descriptions of quantum information
Simplified description (this unit)
There there may be uncertainty about the classical state of a system, where each
classical state has some probability associated with it.
Classical information
For example, if X is a bit, then perhaps it is in the classical state 0 with probability 3/4
and in the classical state 1 with probability 1/4. This is a probabilistic state of X.
3 1
Pr(X = 0) = and Pr(X = 1) =
4 4
⎛ 34 ⎞ ⟵ entry corresponding to 0
⎜ ⎟
⎝ 1 ⎠ ⟵ entry corresponding to 1
4
1 0
∣0⟩ = ( ) and ∣1⟩ = ( )
0 1
Dirac notation (first part)
Let Σ be any classical state set, and assume the elements of Σ have been placed
in correspondence with the integers 1, . . . , ∣Σ∣.
Vectors of this form are called standard basis vectors. Every vector can be
expressed uniquely as a linear combination of standard basis vectors.
Example
3
⎛4⎞ 3 1
⎜ ⎟
⎜ ⎟ = ∣0⟩ + 4 ∣1⟩
⎝1⎠ 4
4
Measuring probabilistic states
What happens if we measure a system X while it is in some probabilistic state?
This changes the probabilistic state of X (from our viewpoint): having recognized
that X is in the classical state a, we now have
Pr(X = a) = 1
3 1
Pr(X = 0) = and Pr(X = 1) =
4 4
3 1
∣0⟩ + ∣1⟩
3
4 4
pro
y 4 bab
ilit ilit
bab y 1
pro 4
∣0⟩ ∣1⟩
Deterministic operations
Every function f ∶ Σ → Σ describes a deterministic operation that transforms
the classical state a into f(a), for each a ∈ Σ.
This matrix has exactly one 1 in each column, and 0 for all other entries:
1 b = f(a)
M(b, a) = {
0 b=/ f(a)
v ⟼ Mv
Deterministic operations
Example
1 b = f(a)
For Σ = {0, 1}, there are four functions of the form f ∶ Σ → Σ: M(b, a) = {
0 b=/ f(a)
1 1 1 0 0 1 0 0
M1 = ( ) M2 = ( ) M3 = ( ) M4 = ( )
0 0 0 1 1 0 1 1
Dirac notation (second part)
Let Σ be any classical state set, and assume the elements of Σ have been placed
in correspondence with the integers 1, . . . , ∣Σ∣.
Example
⎛∗⎞
⎜
⎜ ⎟
⎜∗⎟
⎜ ⎟
⎟
⎜
⎜ ⎟
⎟
(∗ ∗ ∗ ⋯ ⎜∗⎟
∗) ⎜
⎜ ⎟ = (∗)
⎟
⎜
⎜ ⎟
⎟
⎜
⎜ ⋮ ⎟
⎟
⎜ ⎟
⎜ ⎟
⎝∗⎠
1 a=b
⟨a∣b⟩ = ⟨a∣∣b⟩ = {
0 a=
/b
Dirac notation (second part)
Let Σ be any classical state set, and assume the elements of Σ have been placed
in correspondence with the integers 1, . . . , ∣Σ∣.
⎛0⎞
⎜
⎜ ⎟
⎜1⎟
⎜ ⎟
⎟
⎜
⎜ ⎟
⎟
(0 1 0 ⋯ ⎜0⎟
0) ⎜
⎜ ⎟ = (1)
⎟
⎜
⎜ ⎟
⎟
⎜
⎜ ⋮ ⎟
⎟
⎜ ⎟
⎜ ⎟
⎝0⎠
1 a=b
⟨a∣b⟩ = ⟨a∣∣b⟩ = {
0 a=
/b
Dirac notation (second part)
Let Σ be any classical state set, and assume the elements of Σ have been placed
in correspondence with the integers 1, . . . , ∣Σ∣.
⎛1⎞
⎜
⎜ ⎟
⎜0⎟
⎜ ⎟
⎟
⎜
⎜ ⎟
⎟
(0 1 0 ⋯ ⎜0⎟
0) ⎜
⎜ ⎟ = (0)
⎟
⎜
⎜ ⎟
⎟
⎜
⎜ ⋮ ⎟
⎟
⎜ ⎟
⎜ ⎟
⎝0⎠
1 a=b
⟨a∣b⟩ = ⟨a∣∣b⟩ = {
0 a=
/b
Dirac notation (second part)
Let Σ be any classical state set, and assume the elements of Σ have been placed
in correspondence with the integers 1, . . . , ∣Σ∣.
⎛∗⎞ ⎛∗ ∗ ∗ ⋯ ∗⎞
⎜
⎜ ⎟
⎟ ⎜
⎜ ⎟
⎟
⎜∗⎟
⎜
⎜ ⎟
⎟
⎜
⎜
⎜
∗ ∗ ∗ ⋯ ∗⎟
⎟
⎟
⎜
⎜ ⎟
⎟ (∗ ⎜
⎜∗ ⎟
⎟
⎜ ⎟
⎜∗ ⎟ ∗ ∗ ⋯ ∗) = ⎜
⎜ ∗ ∗ ⋯ ∗⎟
⎟
⎜
⎜ ⎟
⎟ ⎜
⎜ ⎟
⎟
⎜
⎜ ⎟ ⎜⋮ ⎟
⎜ ⎟
⎜ ⋮ ⎟
⎟
⎜
⎜
⎜ ⋮ ⋮ ⋱ ⋮⎟
⎟
⎟
⎝∗⎠ ⎝∗ ∗ ∗ ⋯ ∗⎠
Dirac notation (second part)
Multiplying a column vector to a row vector yields a matrix:
⎛∗⎞ ⎛∗ ∗ ∗ ⋯ ∗⎞
⎜
⎜ ⎟
⎟ ⎜
⎜ ⎟
⎜∗⎟
⎜ ⎟ ⎜
⎜∗ ∗ ∗ ⋯ ∗⎟
⎟
⎟
⎜
⎜ ⎟
⎟ ⎜
⎜ ⎟
⎟
⎜
⎜ ⎟ (∗ ∗) = ⎜ ∗⎟
⎜∗⎟
⎜ ⎟
⎟
∗ ∗ ⋯ ⎜
⎜
⎜
∗ ∗ ∗ ⋯ ⎟
⎟
⎟
⎜
⎜ ⎟
⎟ ⎜
⎜ ⎟
⎜
⎜⋮⎟
⎜ ⎟
⎟
⎜
⎜⋮
⎜ ⋮ ⋮ ⋱ ⋮⎟
⎟
⎟
⎟
⎝∗⎠ ⎝∗ ∗ ∗ ⋯ ∗⎠
Example
1 1 0
∣0⟩⟨0∣ = ( ) (1 0) = ( )
0 0 0
Dirac notation (second part)
Multiplying a column vector to a row vector yields a matrix:
⎛∗⎞ ⎛∗ ∗ ∗ ⋯ ∗⎞
⎜
⎜ ⎟
⎟ ⎜
⎜ ⎟
⎜∗⎟
⎜ ⎟ ⎜
⎜∗ ∗ ∗ ⋯ ∗⎟
⎟
⎟
⎜
⎜ ⎟
⎟ ⎜
⎜ ⎟
⎟
⎜
⎜ ⎟ (∗ ∗) = ⎜ ∗⎟
⎜∗⎟
⎜ ⎟
⎟
∗ ∗ ⋯ ⎜
⎜
⎜
∗ ∗ ∗ ⋯ ⎟
⎟
⎟
⎜
⎜ ⎟
⎟ ⎜
⎜ ⎟
⎜
⎜⋮⎟
⎜ ⎟
⎟
⎜
⎜⋮
⎜ ⋮ ⋮ ⋱ ⋮⎟
⎟
⎟
⎟
⎝∗⎠ ⎝∗ ∗ ∗ ⋯ ∗⎠
Example
1 0 1
∣0⟩⟨1∣ = ( ) (0 1) = ( )
0 0 0
Dirac notation (second part)
Multiplying a column vector to a row vector yields a matrix:
⎛∗⎞ ⎛∗ ∗ ∗ ⋯ ∗⎞
⎜
⎜ ⎟
⎟ ⎜
⎜ ⎟
⎜∗⎟
⎜ ⎟ ⎜
⎜∗ ∗ ∗ ⋯ ∗⎟
⎟
⎟
⎜
⎜ ⎟
⎟ ⎜
⎜ ⎟
⎟
⎜
⎜ ⎟ (∗ ∗) = ⎜ ∗⎟
⎜∗⎟
⎜ ⎟
⎟
∗ ∗ ⋯ ⎜
⎜
⎜
∗ ∗ ∗ ⋯ ⎟
⎟
⎟
⎜
⎜ ⎟
⎟ ⎜
⎜ ⎟
⎜
⎜⋮⎟
⎜ ⎟
⎟
⎜
⎜⋮
⎜ ⋮ ⋮ ⋱ ⋮⎟
⎟
⎟
⎟
⎝∗⎠ ⎝∗ ∗ ∗ ⋯ ∗⎠
Example
0 0 0
∣1⟩⟨0∣ = ( ) (1 0) = ( )
1 1 0
Dirac notation (second part)
Multiplying a column vector to a row vector yields a matrix:
⎛∗⎞ ⎛∗ ∗ ∗ ⋯ ∗⎞
⎜
⎜ ⎟
⎟ ⎜
⎜ ⎟
⎜∗⎟
⎜ ⎟ ⎜
⎜∗ ∗ ∗ ⋯ ∗⎟
⎟
⎟
⎜
⎜ ⎟
⎟ ⎜
⎜ ⎟
⎟
⎜
⎜ ⎟ (∗ ∗) = ⎜ ∗⎟
⎜∗⎟
⎜ ⎟
⎟
∗ ∗ ⋯ ⎜
⎜
⎜
∗ ∗ ∗ ⋯ ⎟
⎟
⎟
⎜
⎜ ⎟
⎟ ⎜
⎜ ⎟
⎜
⎜⋮⎟
⎜ ⎟
⎟
⎜
⎜⋮
⎜ ⋮ ⋮ ⋱ ⋮⎟
⎟
⎟
⎟
⎝∗⎠ ⎝∗ ∗ ∗ ⋯ ∗⎠
Example
0 0 0
∣1⟩⟨1∣ = ( ) (0 1) = ( )
1 0 1
Dirac notation (second part)
Multiplying a column vector to a row vector yields a matrix:
⎛∗⎞ ⎛∗ ∗ ∗ ⋯ ∗⎞
⎜
⎜ ⎟
⎟ ⎜
⎜ ⎟
⎜∗⎟
⎜ ⎟ ⎜
⎜∗ ∗ ∗ ⋯ ∗⎟
⎟
⎟
⎜
⎜ ⎟
⎟ ⎜
⎜ ⎟
⎟
⎜
⎜ ⎟ (∗ ∗) = ⎜ ∗⎟
⎜∗⎟
⎜ ⎟
⎟
∗ ∗ ⋯ ⎜
⎜
⎜
∗ ∗ ∗ ⋯ ⎟
⎟
⎟
⎜
⎜ ⎟
⎟ ⎜
⎜ ⎟
⎜
⎜⋮⎟
⎜ ⎟
⎟
⎜
⎜⋮
⎜ ⋮ ⋮ ⋱ ⋮⎟
⎟
⎟
⎟
⎝∗⎠ ⎝∗ ∗ ∗ ⋯ ∗⎠
∣a⟩⟨b∣
M = ∑ ∣f(b)⟩⟨b∣
b∈Σ
M2 (M1 v) = (M2 M1 ) v
Mn ⋯ M1
Composing operations
Suppose X is a system and M1 , . . . , Mn are stochastic matrices representing
probabilistic operations on X.
Mn ⋯ M1
⎛1 1⎞ ⎛0 1⎞
M1 = ⎜ ⎟ M2 = ⎜ ⎟
⎝0 0⎠ ⎝1 0⎠
⎛0 0⎞ ⎛1 1⎞
M2 M1 = ⎜ ⎟ M1 M2 = ⎜ ⎟
⎝1 1⎠ ⎝0 0⎠
2. Quantum information
Quantum information
A quantum state of a system is represented by a column vector whose indices are
placed in correspondence with the classical states of that system:
• The entries are complex numbers.
• The sum of the absolute values squared of the entries must equal 1.
Definition
The Euclidean norm for vectors with complex number entries is defined
like this:
⎛ α1 ⎞ √
⎜ ⎟ √
√
n
v=⎜
⎜
⎜ ⋮ ⎟
⎟ ⟹ ∥v∥ = √
√
⎷ ∑ ∣αk ∣2
√
⎜ ⎟ ⎟
⎝αn ⎠ k=1
Quantum state vectors are therefore unit vectors with respect to this norm.
Quantum information
A quantum state of a system is represented by a column vector whose indices are
placed in correspondence with the classical states of that system:
• The entries are complex numbers.
• The sum of the absolute values squared of the entries must equal 1.
Examples of qubit states
1 1 1 1
∣+⟩ = √ ∣0⟩ + √ ∣1⟩ and ∣−⟩ = √ ∣0⟩ − √ ∣1⟩
2 2 2 2
1 + 2i 2
∣0⟩ − ∣1⟩
3 3
Quantum information
A quantum state of a system is represented by a column vector whose indices are
placed in correspondence with the classical states of that system:
• The entries are complex numbers.
• The sum of the absolute values squared of the entries must equal 1.
Example
1
⎛ 2 ⎞
⎜
⎜ ⎟
⎟
⎜
⎜ − 2i ⎟
⎟
1 i 1 ⎜
⎜ ⎟
⎟
∣♣⟩ − ∣♢⟩ + √ ∣♠⟩ = ⎜
⎜
⎜
⎟
⎟
⎟
2 2 2 ⎜
⎜ 0 ⎟
⎟
⎜
⎜ ⎟
⎜ ⎟ ⎟
1
⎝√ ⎠
2
Dirac notation (third part)
The Dirac notation can be used for arbitrary vectors: any name can be used in
place of a classical state. Kets are column vectors, bras are row vectors.
Example
1 + 2i 2
∣ψ⟩ = ∣0⟩ − ∣1⟩
3 3
For any column vector ∣ψ⟩, the row vector ⟨ψ∣ is the conjugate transpose of ∣ψ⟩:
†
⟨ψ∣ = ∣ψ⟩
Dirac notation (third part)
The Dirac notation can be used for arbitrary vectors: any name can be used in
place of a classical state. Kets are column vectors, bras are row vectors.
Example
1 + 2i 2
∣ψ⟩ = ∣0⟩ − ∣1⟩
3 3
1 − 2i 2
⟨ψ∣ = ⟨0∣ − ⟨1∣
3 3
For any column vector ∣ψ⟩, the row vector ⟨ψ∣ is the conjugate transpose of ∣ψ⟩:
†
⟨ψ∣ = ∣ψ⟩
Dirac notation (third part)
The Dirac notation can be used for arbitrary vectors: any name can be used in
place of a classical state. Kets are column vectors, bras are row vectors.
Example
1+2i
1 + 2i 2 ⎛ 3 ⎞
∣ψ⟩ = ∣0⟩ − ∣1⟩ = ⎜
⎜ ⎟
⎟
3 3 ⎝ − 23 ⎠
1 − 2i 2
⟨ψ∣ = ⟨0∣ − ⟨1∣ = ( 1−2i − 23 )
3 3 3
Measuring quantum states
For this lesson will restrict our attention to standard basis measurements:
• The possible outcomes are the classical states.
• The probability for each classical state to be the outcome is the
absolute value squared of the corresponding quantum state vector entry.
Example 1
1 1
∣+⟩ = √ ∣0⟩ + √ ∣1⟩
2 2
»» 1 »»2 1 »» 1 »»2 1
Pr(outcome is 0) = »»»» √ »»»» = Pr(outcome is 1) = »»»» √ »»»» =
»» 2 »» 2 »» 2 »» 2
Measuring quantum states
For this lesson will restrict our attention to standard basis measurements:
• The possible outcomes are the classical states.
• The probability for each classical state to be the outcome is the
absolute value squared of the corresponding quantum state vector entry.
Example 2
1 1
∣−⟩ = √ ∣0⟩ − √ ∣1⟩
2 2
»» 1 »»2 1 »» 1 »»2 1
Pr(outcome is 0) = »»»» √ »»»» = Pr(outcome is 1) = »»»»− √ »»»» =
»» 2 »» 2 »» 2 »» 2
Measuring quantum states
For this lesson will restrict our attention to standard basis measurements:
• The possible outcomes are the classical states.
• The probability for each classical state to be the outcome is the
absolute value squared of the corresponding quantum state vector entry.
Example 3
1 + 2i 2
∣0⟩ − ∣1⟩
3 3
»» 1 + 2i »»2 5 »» 2 »»2 4
Pr(outcome is 0) = »»»» »» =
» Pr(outcome is 1) = »»»»− »»»» =
»» 3 »»» 9 »» 3 »» 9
Measuring quantum states
For this lesson will restrict our attention to standard basis measurements:
• The possible outcomes are the classical states.
• The probability for each classical state to be the outcome is the
absolute value squared of the corresponding quantum state vector entry.
Example 4
Measuring the quantum state ∣0⟩ gives the outcome 0 with certainty, and
measuring the quantum state ∣1⟩ gives the outcome 1 with certainty.
Measuring quantum states
For this lesson will restrict our attention to standard basis measurements:
• The possible outcomes are the classical states.
• The probability for each classical state to be the outcome is the
absolute value squared of the corresponding quantum state vector entry.
1 + 2i 2
∣0⟩ − ∣1⟩
5
3 3
pro
y 9 bab
ilit ilit
bab y 4
pro 9
∣0⟩ ∣1⟩
Unitary operations
The set of allowable operations that can be performed on a quantum state is
different than it is for classical information.
† †
U U = 1 = UU
†
where U is the conjugate transpose of U and 1 is the identity matrix.
−1 †
Both equalities are equivalent to U =U .
Unitary operations
Definition
A square matrix U having complex number entries is unitary if it satisfies
the equalities
† †
U U = 1 = UU
†
where U is the conjugate transpose of U and 1 is the identity matrix.
∥Uv∥ = ∥v∥
1 0 0 1 0 −i 1 0
1=( ) σx = ( ) σy = ( ) σz = ( )
0 1 1 0 i 0 0 −1
The operation σx is also called a bit flip (or a NOT operation) and the σz
operation is called a phase flip:
⎛ √1 √1 ⎞
H=⎜
2 2 ⎟
⎜
⎜ 1 ⎟
⎟
⎝ √2 − √1 ⎠
2
†
⎛ √1 √1 ⎞ ⎛ √1 √1 ⎞ ⎛ √1 √1 ⎞ ⎛ √1 √1 ⎞ ⎛ 12 + 1
2
1
2
− 12 ⎞ 1 0
⎜ 2 2 ⎟ ⎜ 2 2 ⎟ ⎜ 2 2 ⎟ ⎜ 2 2 ⎟
⎜
⎜ 1 ⎟
⎟ ⎜
⎜ 1 ⎟=⎜
⎟ ⎜ ⎟
⎟⎜⎜ ⎟=⎜
⎟ ⎜ ⎟
⎟=( )
⎝ 2
√ − √1 ⎠ ⎝ 2
√ − √1 ⎠ ⎝ √1 − √1 ⎠ ⎝ √1 − √1 ⎠ ⎝ 12 − 1 1
+21⎠ 0 1
2 2 2 2 2 2 2 2
Qubit unitary operations
3. Phase operations
1 0
Pθ = ( iθ )
0 e
The operations
1 0 1 0
S = Pπ/2 = ( ) and T = Pπ/4 = ( 1+i )
0 i 0 √
2
⎛ √12 √1
2
⎞ ⎛1⎞ ⎛ √12 ⎞
H ∣0⟩ = ⎜
⎜ 1 ⎟
⎟⎜⎜ ⎟
⎟=⎜
⎜ ⎟ ⎟ = ∣+⟩
⎝√ − √1 ⎠ ⎝0⎠ ⎝ √1 ⎠
2 2 2
⎛ √12 √1
2
⎞ ⎛0⎞ ⎛ √12 ⎞
H ∣1⟩ = ⎜
⎜ 1 ⎟
⎟⎜⎜ ⎟
⎟=⎜
⎜ ⎟
⎟ = ∣−⟩
⎝√ − √1 ⎠ ⎝1⎠ ⎝− √1 ⎠
2 2 2
⎛ √12 √1
2
⎞ ⎛ √12 ⎞⎛1⎞
H ∣+⟩ = ⎜
⎜ 1 ⎟⎜
⎟ ⎜ ⎟ ⎜ ⎟
⎟=⎜ ⎟ = ∣0⟩
⎝√ − √1 ⎠ ⎝ √1 ⎠ ⎝0⎠
2 2 2
⎛ √12 √1
2
⎞ ⎛ √12 ⎞ ⎛0⎞
H ∣−⟩ = ⎜
⎜ 1 ⎟
⎟⎜⎜ ⎟
⎟=⎜
⎜ ⎟
⎟ = ∣1⟩
⎝√ − √1 ⎠ ⎝− √1 ⎠ ⎝1⎠
2 2 2
Qubit unitary operations
Example 1
1 + 2i 2 ⎛ √1 √1 ⎞ ⎛ 1+2i
3 ⎞
⎛ −1+2i
√ ⎞
H( ∣0⟩ − ∣1⟩) = ⎜ ⎜ 2 2 ⎟
⎟ ⎜ ⎟ ⎜ 3 2 ⎟
3 3 ⎜ 1 ⎟⎜ 2 ⎟ = ⎜ ⎜ 3+2i ⎟⎟
⎝ √2 − √1 ⎠⎝ − ⎠ ⎝ √ ⎠
3
2 3 2
−1 + 2i 3 + 2i
= √ ∣0⟩ + √ ∣1⟩
3 2 3 2
Qubit unitary operations
Example 2
1 0
1+i T =( 1+i )
T ∣0⟩ = ∣0⟩ and T ∣1⟩ = √ ∣1⟩ 0 √
2 2
1 1
T ∣+⟩ = T ( √ ∣0⟩ + √ ∣1⟩)
2 2
1 1
= √ T ∣0⟩ + √ T ∣1⟩
2 2
1 1+i
= √ ∣0⟩ + ∣1⟩
2 2
Qubit unitary operations
Example 2
H ∣0⟩ = ∣+⟩
1 1+i
T ∣+⟩ = √ ∣0⟩ + ∣1⟩ H ∣1⟩ = ∣−⟩
2 2
1 1+i
HT ∣+⟩ = H ( √ ∣0⟩ + ∣1⟩)
2 2
1 1+i
= √ H∣0⟩ + H∣1⟩
2 2
1 1+i
= √ ∣+⟩ + ∣−⟩
2 2
1 1 1+i 1+i
= ( ∣0⟩ + ∣1⟩) + ( √ ∣0⟩ − √ ∣1⟩)
2 2 2 2 2 2
1 1+i 1 1+i
= ( + √ ) ∣0⟩ + ( − √ ) ∣1⟩
2 2 2 2 2 2
Composing unitary operations
Compositions of unitary operations are represented by matrix multiplication
(similar to the probabilistic setting).
Example: square root of NOT
Applying a Hadamard operation, followed by the phase operation S,
followed by another Hadamard operation yields this operation:
1+i 1−i
⎛ √12 √1
2
⎞ 1 1
0 ⎛ √2 √1
2
⎞ ⎛ 2 2 ⎞
HSH = ⎜
⎜ 1 ⎟
⎟( )⎜
⎜ 1 ⎟
⎟=⎜
⎜ ⎟
⎟
⎝√ − √1 ⎠ 0 i ⎝√ − √1 ⎠ ⎝ 1−i 1+i ⎠
2 2 2 2 2 2
1−i 2
⎛ 1+i
2 2 2
⎞ ⎛0 1⎞
(HSH) = ⎜
⎜ 1−i ⎟ =⎜
⎟ ⎜ ⎟
⎟
1+i
⎝ 2 2
⎠ ⎝1 0⎠