0% found this document useful (0 votes)
7 views45 pages

Lec 2,3

The document outlines the basics of quantum information and algorithms, focusing on the principles of quantum mechanics and their application in computing. It introduces key concepts such as complex numbers, qubits, superposition, and the double slit experiment, illustrating how quantum states can represent multiple possibilities simultaneously. Additionally, it discusses the implications of quantum measurement and the tensor product in quantum systems.

Uploaded by

lokesh8malik
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views45 pages

Lec 2,3

The document outlines the basics of quantum information and algorithms, focusing on the principles of quantum mechanics and their application in computing. It introduces key concepts such as complex numbers, qubits, superposition, and the double slit experiment, illustrating how quantum states can represent multiple possibilities simultaneously. Additionally, it discusses the implications of quantum measurement and the tensor product in quantum systems.

Uploaded by

lokesh8malik
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 45

CS6846 – Quantum Algorithms and Cryptography

Basics of Quantum Information

Instructor: Shweta Agrawal, IIT Madras


Email: [email protected]
1 / 45
The Model
The universe is complex, strange and fascinating. Full of diversity –
bacteria to airplanes to trees to planets.

2 / 45
The Model

Science wants to understand the universe by abstracting out the


principles of observed phenomena in the simplest form.

3 / 45
The Model

Science wants to understand the universe by abstracting out the


principles of observed phenomena in the simplest form.
Achieved by discovering models that help to understand and predict
behaviour.

4 / 45
The Model

Science wants to understand the universe by abstracting out the


principles of observed phenomena in the simplest form.
Achieved by discovering models that help to understand and predict
behaviour.
Information is physical and subject to quantum laws – we start with a
clean mathematical model for quantum information.

5 / 45
Basic Formalism: Complex Numbers
A complex number is a number of the √ form a + bi for a, b ∈ R, where
i is the imaginary root of −1, i.e. i = −1.

6 / 45
Basic Formalism: Complex Numbers
A complex number is a number of the √ form a + bi for a, b ∈ R, where
i is the imaginary root of −1, i.e. i = −1.
Real and Imaginary parts:

7 / 45
Basic Formalism: Complex Numbers
A complex number is a number of the √ form a + bi for a, b ∈ R, where
i is the imaginary root of −1, i.e. i = −1.
Real and Imaginary parts:

Polar Co-ordinates:

Figure: Geometric Representation of z = a + bi, image courtesy: OW lecture


notes. 8 / 45
Basic Formalism: Complex Numbers

The complex conjugate of a complex number z is denoted by z ∗ or z † .

9 / 45
Basic Formalism: Complex Numbers

The complex conjugate of a complex number z is denoted by z ∗ or z † .


For z =pa + bi, z ∗ is defined
√ as a − bi. Note that
|z ∗ | = a2 + (−b)2 = a2 + b 2 = |z|.

10 / 45
Basic Formalism: Complex Numbers

The complex conjugate of a complex number z is denoted by z ∗ or z † .


For z =pa + bi, z ∗ is defined
√ as a − bi. Note that
|z ∗ | = a2 + (−b)2 = a2 + b 2 = |z|.
Product of two complex numbers z1 = a1 + b1 i and z2 = a2 + b2 i is:

11 / 45
Basic Formalism: Complex Numbers

The complex conjugate of a complex number z is denoted by z ∗ or z † .


For z =pa + bi, z ∗ is defined
√ as a − bi. Note that
|z ∗ | = a2 + (−b)2 = a2 + b 2 = |z|.
Product of two complex numbers z1 = a1 + b1 i and z2 = a2 + b2 i is:

The product of any complex number z = a + bi with its complex


conjugate z ∗ = a − bi is

12 / 45
Basic Formalism: Complex Numbers

A complex vector is an m × 1 complex matrix. What is the conjugate


transpose A† of the following complex vector?
 
α
β 
A = .
 
 .. 
η

Two vectors A and B are orthonormal if A† B = 0.

13 / 45
Basic Formalism: Complex Numbers

A complex vector is an m × 1 complex matrix. What is the conjugate


transpose A† of the following complex vector?
 
α
β 
A = .
 
 .. 
η

Two vectors A and B are orthonormal if A† B = 0.


For any m × n complex matrix M, the conjugate transpose of M
denoted by M † is the matrix obtained by first taking the transpose of
matrix M and then replacing each entry in the resulting matrix by its
complex conjugate.

14 / 45
Origins: Double Slit Experiment

Figure: Double Slit Experiment, image courtesy Medium.com

A photon beam is passed through two slits – constructive and destructive


interference is demonstrated, suggesting wave like behaviour.
15 / 45
Origins: Double Slit Experiment

Figure: Double Slit Experiment, image courtesy Medium.com

When passed through one slit at a time, or observed using detectors in


front of each slit, there is no interference pattern. Without observation,
photon was in position of two states “top” and “bottom”, going through
both at same time. Quantum computing uses this “superposition”.

16 / 45
Origins: Double Slit Experiment
When passed through one slit at a time, or observed using detectors
in front of each slit, light behaves as particle (i.e. no interference
pattern). Observation “collapses” wave function of particle.

17 / 45
Origins: Double Slit Experiment
When passed through one slit at a time, or observed using detectors
in front of each slit, light behaves as particle (i.e. no interference
pattern). Observation “collapses” wave function of particle.
Without observation, photon was in position of two states “top” and
“bottom”, going through both at same time.

18 / 45
Origins: Double Slit Experiment
When passed through one slit at a time, or observed using detectors
in front of each slit, light behaves as particle (i.e. no interference
pattern). Observation “collapses” wave function of particle.
Without observation, photon was in position of two states “top” and
“bottom”, going through both at same time.
Quantum computing seeks to use this “superposition” to generate
“parallelism”.

Figure: Quantum Parallelism, image courtesy: Medium.com


19 / 45
What’s the Catch?
Say that each register simultaneously stores both bits, 0 and 1.

20 / 45
What’s the Catch?
Say that each register simultaneously stores both bits, 0 and 1.
How many bits do n registers store?

21 / 45
What’s the Catch?
Say that each register simultaneously stores both bits, 0 and 1.
How many bits do n registers store?
Can we run exponentially many threads of computation in parallel?
Then, can we solve NP-complete problems?

22 / 45
What’s the Catch?
Say that each register simultaneously stores both bits, 0 and 1.
How many bits do n registers store?
Can we run exponentially many threads of computation in parallel?
Then, can we solve NP-complete problems?
Possibly can simultaneously try all possible solutions, but must
quickly concentrate probability on “correct” solution!

Figure: Concentrate Probability, image courtesy: Physics World


23 / 45
Defining a Qubit

Ket and Bra notation

24 / 45
Defining a Qubit

Ket and Bra notation

Inner Product

25 / 45
Defining a Qubit

Ket and Bra notation

Inner Product

26 / 45
Defining a Qubit

Start by writing classical bits as vectors |0i and |1i.

27 / 45
Defining a Qubit

Start by writing classical bits as vectors |0i and |1i.

A qubit can be in a ‘superposition’ state

|Ψi = α |0i + β |1i ,

where |α|2 + |β|2 = 1, and α, β ∈ C2 are called the amplitudes on


each of the basis states |0i and |1i.

28 / 45
Defining a Qubit

Probability of finding |Ψi in either state |0i or |1i is:

29 / 45
Defining a Qubit

Probability of finding |Ψi in either state |0i or |1i is:

Every two-state quantum system can be written as a linear


combination of the basis states.

30 / 45
Examples

31 / 45
Useful Bases

Any quantum state can be expressed in terms of an orthonormal basis.


Standard Basis:
   
1 0
|0i = and |1i =
0 1

32 / 45
Useful Bases

Any quantum state can be expressed in terms of an orthonormal basis.


Standard Basis:
   
1 0
|0i = and |1i =
0 1
Hadamard Basis:

|+i = √1 |0i + √1 |1i


2 2
|−i = √1 |0i − √1 |1i
2 2

33 / 45
Useful Bases

Any quantum state can be expressed in terms of an orthonormal basis.


Standard Basis:
   
1 0
|0i = and |1i =
0 1
Hadamard Basis:

|+i = √1 |0i + √1 |1i


2 2
|−i = √1 |0i − √1 |1i
2 2

Exercise: represent |0i and |1i in terms of the Hadamard basis.

34 / 45
Multiple Qubits
Say we have two qubits, A and B – how can we write these?

35 / 45
Multiple Qubits
Say we have two qubits, A and B – how can we write these?
Construct a basis: perform a mapping from strings to orthonormal vectors.

36 / 45
Multiple Qubits
Say we have two qubits, A and B – how can we write these?
Construct a basis: perform a mapping from strings to orthonormal vectors.

n
When considering n qubits, consider vector space C2 where each basis
vector is labelled by an n bit string. A quantum state of n qubits can be
written as:
X X
|Ψi = αx |xi , where |αx |2 = 1.
x∈{0,1}n x∈{0,1}n
37 / 45
Multiple Qubits
Example EPR pair:
1 
|EPRi = √ |00i + |11i
2
Later, we will show that this state is entangled.

38 / 45
Multiple Qubits
Example EPR pair:
1 
|EPRi = √ |00i + |11i
2
Later, we will show that this state is entangled.  
α
How to combine qubits: Given two arbitrary qubits |ψA i = A and
βA
 
α
|φB i = B , how to express their combined state?
βB

39 / 45
Multiple Qubits
Example EPR pair:
1 
|EPRi = √ |00i + |11i
2
Later, we will show that this state is entangled.  
α
How to combine qubits: Given two arbitrary qubits |ψA i = A and
βA
 
α
|φB i = B , how to express their combined state?
βB
Tensor Product:

40 / 45
Examples
Establish that the tensor product is distributive, associative but not
commutative.

41 / 45
Examples
Establish that the tensor product is distributive, associative but not
commutative.
Application: generate true randomness!

42 / 45
Examples
Establish that the tensor product is distributive, associative but not
commutative.
Application: generate true randomness!

If we want to measure |ψi in orthonormal basis {|bj i}j , the


probability of observing the outcome |bj i is |hbj |ψi|2 .
43 / 45
Measurement

Measurement of a quantum system collapses the wave function and


results in the state being found in one of the bases states.
In a circuit diagram, a measurement is depicted as

0/1
|Ψi
Figure: A measurement of |Ψi will yield either |0i (”0”) or |1i (”1”).

A measurement will result in a basis state with probability according


to the square of the 2-norm of the associated amplitude. But once a
measurement collapses a wave function, any subsequent measurement
will obtain the same result with probability 1.

44 / 45
Acknowledgements

Slides for the course are based on material in courses offered at UIUC
and Princeton (see webpage).
All images – courtesy Google Images.
This applies for all slides throughout the course.

45 / 45

You might also like