SlideShare a Scribd company logo
1 of 20
QUANTUM COMPUTING
PRESENTED BY:
ROHIT MISHRA & ANKIT AGARWAL
210/11, 167/11
NATIONAL INSTITUTE OF TECHNOLOGY
JAMSHEDPUR-831014
OVERVIEW
โ€ข Introduction and History
โ€ข Data Representation
โ€ข Operations on Data
โ€ข Shorโ€™s Algorithm
โ€ข Conclusion and Scope
2
INTRODUCTION
What is a Quantum Computer?
A quantum computer is a machine that
performs calculations based on the laws of
quantum mechanics, which is the behavior of
particles at the sub-atomic level.
3
HISTORY
๏ถ 1982 - Feynman proposed the idea of creating machines based on the laws
of quantum mechanics instead of the laws of classical physics.
๏ถ 1985 - David Deutsch developed the Quantum Turing Machine, showing
that quantum circuits are universal.
๏ถ 1994 - Peter Shor came up with a quantum algorithm to factor very large
numbers in polynomial time.
๏ถ 1997 - Lov Grover develops a quantum search algorithm with O(โˆšN)
complexity.
๏ถ In 2001, a 7 qubit machine was built and programmed to run Shorโ€™s
algorithm to successfully factor 15.
4
Data Representation - Qubits
A bit of data is represented by a single atom that is in one of two states denoted
by |0> and |1>. A single bit of this form is known as a qubit.
A physical implementation of a qubit could use the two energy levels of an atom.
An excited state representing |1> and a ground state representing |0>.
A single qubit can be forced into a superpositionof the two states denoted
by the addition of the state vectors:
|๏น> = ๏ก|0> + ฮฒ|1>
Where ๏ก and ฮฒ are complex numbers and | ๏ก |ยฒ + | ฮฒ |ยฒ = 1
5
A qubit in superposition is in both of the states
|1> and |0> at the same time.
Qubits
6
Consider a 3 bit qubit register. An equally weighted superposition of all possible
states would be denoted by:
|๏น> = _|000> + _|001> + . . . + _|111>1
โˆš8 โˆš8
1
โˆš8
1
In general, an n qubit register can represent the numbers 0 through 2^n-1
simultaneously. If we attempt to retrieve the values represented within a
superposition, the superposition randomly collapses to represent just one of the
original values.
7
In our equation: |๏น> = ๏ก|0> + ฮฒ|1> ,where ๏ก represents the probability of the
superposition collapsing to |0> and ฮฒ to |1>
These are called probability amplitudes. In a balanced superposition,
๏ก = 1/โˆš(2^n) where n is the number of qubits.
๏ถ Entanglement is the ability of quantum systems to exhibit
correlations between states within a superposition.
๏ถ Imagine two qubits, each in the state |0> + |1> (a
superposition of the 0 and 1.) We can entangle the two
qubits such that the measurement of one qubit is always
correlated to the measurement of the other qubit.
Relationships among data โ€“ Entanglement
8
Operations on Qubits - Reversible Logic
๏ถ Due to the nature of quantum physics, the destruction of information in a
gate will cause heat to be evolved which can destroy the superposition of
qubits.
A B C
0 0 0
0 1 0
1 0 0
1 1 1
INPUT OUTPUT
Example: The Logical AND Gate
Note: This type of gate cannot be used. We must use Quantum Gates.
A
B
C
9
Quantum Gates
๏ถ Quantum Gates are similar to classical gates, but do not have a
degenerate output. i.e. their original input state can be derived
from their output state, uniquely. They must be reversible.
๏ถ This means that a deterministic computation can be performed
on a quantum computer only if it is reversible. Luckily, it has
been shown that any deterministic computation can be made
reversible. (Charles Bennet, 1973)
10
Quantum Gates-Hadamard
๏ถ Simplest gate involves one qubit and is called a Hadamard
Gate (also known as a square-root of NOT gate.) Used to
put qubits into superposition.
H H
State |0> State |1>State |0> + State |1>
Two Hadamard gates used in succession can be used
as a NOT gate.
Note:
11
Quantum Gates - Controlled NOT
๏ถ A gate which operates on two qubits is called a
Controlled-NOT (CN) Gate. If the bit on the control
line is 1, invert the bit on the target line.
+A-Target
B-Target
Aโ€™
Bโ€™
Note: The CN gate has a similar behavior to the XOR gate with
some extra information to make it reversible.
A B Aโ€™ Bโ€™
0 0 0 0
0 1 1 1
1 0 1 0
1 1 0 1
INPUT OUTPUT
12
Shorโ€™s Algorithm
๏ถ Shorโ€™s algorithm shows (in principle,) that a quantum
computer is capable of factoring very large numbers
in polynomial time.
๏ถ The algorithm uses the following concepts:
๏ถModular Arithmetic
๏ถQuantum Parallelism
๏ถQuantum Fourier Transform
13
Shorโ€™s Algorithm - Periodicity
๏ถ An important result from Number Theory:
F(a) = x mod N is a periodic function.
๏ถ Choose N = 15 and x = 7 and we get the following:
7 mod 15 = 1
7 mod 15 = 7
7 mod 15 = 4
7 mod 15 = 13
7 mod 15 = 1
โ€ฆ
a
0
1
2
3
4
14
Shorโ€™s Algorithm - Analysis
To Factor an odd integer N (Letโ€™s choose 15) :
๏ถ Choose an integer q such that N < q < 2N letโ€™s pick 256
๏ถ Choose a random integer x such that GCD(x, N) = 1 letโ€™s pick 7
๏ถ Create two quantum registers (these registers must also be
entangled so that the collapse of the input register corresponds to
the collapse of the output register)
๏ถ Input register: must contain enough qubits to represent numbers as
large as q-1. up to 255, so we need 8 qubits .
๏ถ Output register: must contain enough qubits to represent numbers as
large as N-1. up to 14, so we need 4 qubits.
2 2
15
Shorโ€™s - Preparing Data
๏ถLoad the input register with an equally weighted superposition
of all integers from 0 to q-1. 0 to 255.
๏ถLoad the output register with all zeros.
The total state of the system at this point will be:
1__
โˆš256
โˆ‘
255
a=0
|a, 000 >
INPUT REGISTER
OUTPUT REGISTER
Note: the comma here
denotes that the
registers are entangled.
16
๏ถ Apply the transformation x mod N to each number in the input
register, storing the result of each computation in the output register.
๏ถ Now take a measurement on the output register. This will collapse the
superposition to represent just one of the results of the transformation,
letโ€™s call this value c.
Our output register will collapse to represent one of the following:
|1>, |4>, |7>, or |13>
For sake of example, lets choose |1>
๏ถ Since the two registers are entangled, measuring the output register
will have the effect of partially collapsing the input register into an
equal superposition of each state between 0 and q-1 that yielded c
(the value of the collapsed output register.)
a
17
Since the output register collapsed to |1>, the input register
will partially collapse to:
|0> + |4> + |8> + |12>, . . .
The probabilities in this case are since our register is
now in an equal superposition of 64 values (0, 4, 8, . . . 252)
1
โˆš64
__ __
โˆš64
__
โˆš64
__
โˆš64
1 1 1
1/โˆš64
๏ถWe now apply the Quantum Fourier transform on the
partially collapsed input register. The fourier transform has
the effect of taking a state |a> and transforming it into a
state given by:
1
โˆšq
__
โˆ‘
q-1
c=0
|c> * e2ฯ€iac / q
18
1__
โˆš64
โˆ‘ |a>, |1>
a โ‚ฌ A
___
โˆš256
1 โˆ‘
255
C=0
|c> * e
2ฯ€iac / q
Note: A is the set of all values that 7 mod 15 yielded 1.In our case A = {0, 4, 8,
โ€ฆ, 252}
So the final state of the input register after the QFT is:
๏ถ The QFT will essentially peak the probability amplitudes at integer multiples of
q/4 in our case 256/4, or 64.
|0>, |64>, |128>, |192>, โ€ฆ
1
โˆš64
โˆ‘
a โ‚ฌ A
1___
โˆš256 โˆ‘|c> * e2ฯ€iac / q
,|1>
___
a
19
๏ถ So we no longer have an equal superposition of states, the probability
amplitudes of the above states are now higher than the other states in
our register. We measure the register, and it will collapse with high
probability to one of these multiples of 64, letโ€™s call this value p.
๏ถ Now that we have the period, the factors of N can be determined by
taking the greatest common divisor of N with respect to x ^ (P/2) + 1
and x ^ (P/2) - 1. The idea here is that this computation will be done
on a classical computer.
We compute:
Gcd(7 + 1, 15) = 5
Gcd(7 - 1, 15) = 3
We have successfully factored 15!
4/2
4/2
20
Conclusionand Scope
๏ถ Various researchers are actively looking for new algorithms and
communication protocols to exploit the properties of quantum systems.
๏ถ D-Wave Systems is a Canadian company that claims to have developed a
28-qubit quantum computer, though there have been criticisms of their
claims. In 2007, they demonstrated the use of a 16-qubit computer to solve
such problems as pattern-matching, seating arrangements, and a Sudoku
puzzle.
๏ถ It is unlikely that quantum computers will entirely replace classical
computers. Their advantage over classical computers is significant only in
specific application areas.
๏ถ It is most likely that future computers will instead be some sort of hybrid,
containing components from both types of computers.

More Related Content

What's hot

Quantum computation - Introduction
Quantum computation - IntroductionQuantum computation - Introduction
Quantum computation - Introduction
Aakash Martand
ย 
Quantum computer
Quantum computerQuantum computer
Quantum computer
Nikhil Eg
ย 

What's hot (20)

Quantum computing
Quantum computingQuantum computing
Quantum computing
ย 
Quantum computing
Quantum computingQuantum computing
Quantum computing
ย 
Quantum computing seminar
Quantum computing seminarQuantum computing seminar
Quantum computing seminar
ย 
Quantum computation - Introduction
Quantum computation - IntroductionQuantum computation - Introduction
Quantum computation - Introduction
ย 
Quantum computing
Quantum computingQuantum computing
Quantum computing
ย 
Quantum Computing ppt
Quantum Computing  pptQuantum Computing  ppt
Quantum Computing ppt
ย 
Quantum Computing
Quantum ComputingQuantum Computing
Quantum Computing
ย 
Presentation on quantum computers
Presentation on quantum computersPresentation on quantum computers
Presentation on quantum computers
ย 
Quantum computer
Quantum computerQuantum computer
Quantum computer
ย 
Quantum Computing
Quantum ComputingQuantum Computing
Quantum Computing
ย 
Quantum computer
Quantum computerQuantum computer
Quantum computer
ย 
Quantum Computing
Quantum ComputingQuantum Computing
Quantum Computing
ย 
Aditya kulshreshtha, (QUANTUM COMPUTING)
Aditya kulshreshtha, (QUANTUM COMPUTING)Aditya kulshreshtha, (QUANTUM COMPUTING)
Aditya kulshreshtha, (QUANTUM COMPUTING)
ย 
Quantum computing
Quantum computingQuantum computing
Quantum computing
ย 
Presentation quantum computers
Presentation quantum computersPresentation quantum computers
Presentation quantum computers
ย 
Quantum Computing - Basic Concepts
Quantum Computing - Basic ConceptsQuantum Computing - Basic Concepts
Quantum Computing - Basic Concepts
ย 
Quantum Computing
Quantum ComputingQuantum Computing
Quantum Computing
ย 
Qunatum computing
Qunatum computing Qunatum computing
Qunatum computing
ย 
Quantum computing
Quantum computingQuantum computing
Quantum computing
ย 
Ibm quantum computing
Ibm quantum computingIbm quantum computing
Ibm quantum computing
ย 

Similar to Quantum Computing

hddhdhdhdhdhdhdhdhdhddhddhdhdhdhddhdhdddhdhdh
hddhdhdhdhdhdhdhdhdhddhddhdhdhdhddhdhdddhdhdhhddhdhdhdhdhdhdhdhdhddhddhdhdhdhddhdhdddhdhdh
hddhdhdhdhdhdhdhdhdhddhddhdhdhdhddhdhdddhdhdh
zoobiarana76
ย 

Similar to Quantum Computing (20)

quantumComputers.ppt
quantumComputers.pptquantumComputers.ppt
quantumComputers.ppt
ย 
quantumComputers.ppt
quantumComputers.pptquantumComputers.ppt
quantumComputers.ppt
ย 
quantumComputers.ppt
quantumComputers.pptquantumComputers.ppt
quantumComputers.ppt
ย 
quantumComputers.ppt
quantumComputers.pptquantumComputers.ppt
quantumComputers.ppt
ย 
quantumComputers.ppt
quantumComputers.pptquantumComputers.ppt
quantumComputers.ppt
ย 
quantumComputers.ppt
quantumComputers.pptquantumComputers.ppt
quantumComputers.ppt
ย 
quantumComputers (1).ppt
quantumComputers (1).pptquantumComputers (1).ppt
quantumComputers (1).ppt
ย 
quantumComputers.ppt
quantumComputers.pptquantumComputers.ppt
quantumComputers.ppt
ย 
quantumComputers.pptICICI-An HR perspective
quantumComputers.pptICICI-An HR perspectivequantumComputers.pptICICI-An HR perspective
quantumComputers.pptICICI-An HR perspective
ย 
quantumComputers.ppt
quantumComputers.pptquantumComputers.ppt
quantumComputers.ppt
ย 
hddhdhdhdhdhdhdhdhdhddhddhdhdhdhddhdhdddhdhdh
hddhdhdhdhdhdhdhdhdhddhddhdhdhdhddhdhdddhdhdhhddhdhdhdhdhdhdhdhdhddhddhdhdhdhddhdhdddhdhdh
hddhdhdhdhdhdhdhdhdhddhddhdhdhdhddhdhdddhdhdh
ย 
myppt for health issues at IITB. Don't come to IITB
myppt for health issues at IITB. Don't come to IITBmyppt for health issues at IITB. Don't come to IITB
myppt for health issues at IITB. Don't come to IITB
ย 
QC-UNIT 2.ppt
QC-UNIT 2.pptQC-UNIT 2.ppt
QC-UNIT 2.ppt
ย 
Shorโ€™s algorithm the ppt
Shorโ€™s algorithm the pptShorโ€™s algorithm the ppt
Shorโ€™s algorithm the ppt
ย 
QC - UNIT 1.ppt
QC - UNIT 1.pptQC - UNIT 1.ppt
QC - UNIT 1.ppt
ย 
Quantum computing - A Compilation of Concepts
Quantum computing - A Compilation of ConceptsQuantum computing - A Compilation of Concepts
Quantum computing - A Compilation of Concepts
ย 
Quantum computing
Quantum computingQuantum computing
Quantum computing
ย 
Quantum Computers
Quantum ComputersQuantum Computers
Quantum Computers
ย 
HiPEAC'19 Tutorial on Quantum algorithms using QX - 2019-01-23
HiPEAC'19 Tutorial on Quantum algorithms using QX - 2019-01-23HiPEAC'19 Tutorial on Quantum algorithms using QX - 2019-01-23
HiPEAC'19 Tutorial on Quantum algorithms using QX - 2019-01-23
ย 
Quantum computing.pptx
Quantum computing.pptxQuantum computing.pptx
Quantum computing.pptx
ย 

Recently uploaded

UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
sivaprakash250
ย 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
Epec Engineered Technologies
ย 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
SUHANI PANDEY
ย 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
ย 
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
ย 
Call Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
Call Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night StandCall Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
Call Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
amitlee9823
ย 

Recently uploaded (20)

Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
ย 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
ย 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
ย 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
ย 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
ย 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
ย 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
ย 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
ย 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
ย 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
ย 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
ย 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
ย 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
ย 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
ย 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
ย 
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...
ย 
Call Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
Call Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night StandCall Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
Call Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
ย 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
ย 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
ย 
Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086
ย 

Quantum Computing

  • 1. QUANTUM COMPUTING PRESENTED BY: ROHIT MISHRA & ANKIT AGARWAL 210/11, 167/11 NATIONAL INSTITUTE OF TECHNOLOGY JAMSHEDPUR-831014
  • 2. OVERVIEW โ€ข Introduction and History โ€ข Data Representation โ€ข Operations on Data โ€ข Shorโ€™s Algorithm โ€ข Conclusion and Scope 2
  • 3. INTRODUCTION What is a Quantum Computer? A quantum computer is a machine that performs calculations based on the laws of quantum mechanics, which is the behavior of particles at the sub-atomic level. 3
  • 4. HISTORY ๏ถ 1982 - Feynman proposed the idea of creating machines based on the laws of quantum mechanics instead of the laws of classical physics. ๏ถ 1985 - David Deutsch developed the Quantum Turing Machine, showing that quantum circuits are universal. ๏ถ 1994 - Peter Shor came up with a quantum algorithm to factor very large numbers in polynomial time. ๏ถ 1997 - Lov Grover develops a quantum search algorithm with O(โˆšN) complexity. ๏ถ In 2001, a 7 qubit machine was built and programmed to run Shorโ€™s algorithm to successfully factor 15. 4
  • 5. Data Representation - Qubits A bit of data is represented by a single atom that is in one of two states denoted by |0> and |1>. A single bit of this form is known as a qubit. A physical implementation of a qubit could use the two energy levels of an atom. An excited state representing |1> and a ground state representing |0>. A single qubit can be forced into a superpositionof the two states denoted by the addition of the state vectors: |๏น> = ๏ก|0> + ฮฒ|1> Where ๏ก and ฮฒ are complex numbers and | ๏ก |ยฒ + | ฮฒ |ยฒ = 1 5
  • 6. A qubit in superposition is in both of the states |1> and |0> at the same time. Qubits 6 Consider a 3 bit qubit register. An equally weighted superposition of all possible states would be denoted by: |๏น> = _|000> + _|001> + . . . + _|111>1 โˆš8 โˆš8 1 โˆš8 1 In general, an n qubit register can represent the numbers 0 through 2^n-1 simultaneously. If we attempt to retrieve the values represented within a superposition, the superposition randomly collapses to represent just one of the original values.
  • 7. 7 In our equation: |๏น> = ๏ก|0> + ฮฒ|1> ,where ๏ก represents the probability of the superposition collapsing to |0> and ฮฒ to |1> These are called probability amplitudes. In a balanced superposition, ๏ก = 1/โˆš(2^n) where n is the number of qubits. ๏ถ Entanglement is the ability of quantum systems to exhibit correlations between states within a superposition. ๏ถ Imagine two qubits, each in the state |0> + |1> (a superposition of the 0 and 1.) We can entangle the two qubits such that the measurement of one qubit is always correlated to the measurement of the other qubit. Relationships among data โ€“ Entanglement
  • 8. 8 Operations on Qubits - Reversible Logic ๏ถ Due to the nature of quantum physics, the destruction of information in a gate will cause heat to be evolved which can destroy the superposition of qubits. A B C 0 0 0 0 1 0 1 0 0 1 1 1 INPUT OUTPUT Example: The Logical AND Gate Note: This type of gate cannot be used. We must use Quantum Gates. A B C
  • 9. 9 Quantum Gates ๏ถ Quantum Gates are similar to classical gates, but do not have a degenerate output. i.e. their original input state can be derived from their output state, uniquely. They must be reversible. ๏ถ This means that a deterministic computation can be performed on a quantum computer only if it is reversible. Luckily, it has been shown that any deterministic computation can be made reversible. (Charles Bennet, 1973)
  • 10. 10 Quantum Gates-Hadamard ๏ถ Simplest gate involves one qubit and is called a Hadamard Gate (also known as a square-root of NOT gate.) Used to put qubits into superposition. H H State |0> State |1>State |0> + State |1> Two Hadamard gates used in succession can be used as a NOT gate. Note:
  • 11. 11 Quantum Gates - Controlled NOT ๏ถ A gate which operates on two qubits is called a Controlled-NOT (CN) Gate. If the bit on the control line is 1, invert the bit on the target line. +A-Target B-Target Aโ€™ Bโ€™ Note: The CN gate has a similar behavior to the XOR gate with some extra information to make it reversible. A B Aโ€™ Bโ€™ 0 0 0 0 0 1 1 1 1 0 1 0 1 1 0 1 INPUT OUTPUT
  • 12. 12 Shorโ€™s Algorithm ๏ถ Shorโ€™s algorithm shows (in principle,) that a quantum computer is capable of factoring very large numbers in polynomial time. ๏ถ The algorithm uses the following concepts: ๏ถModular Arithmetic ๏ถQuantum Parallelism ๏ถQuantum Fourier Transform
  • 13. 13 Shorโ€™s Algorithm - Periodicity ๏ถ An important result from Number Theory: F(a) = x mod N is a periodic function. ๏ถ Choose N = 15 and x = 7 and we get the following: 7 mod 15 = 1 7 mod 15 = 7 7 mod 15 = 4 7 mod 15 = 13 7 mod 15 = 1 โ€ฆ a 0 1 2 3 4
  • 14. 14 Shorโ€™s Algorithm - Analysis To Factor an odd integer N (Letโ€™s choose 15) : ๏ถ Choose an integer q such that N < q < 2N letโ€™s pick 256 ๏ถ Choose a random integer x such that GCD(x, N) = 1 letโ€™s pick 7 ๏ถ Create two quantum registers (these registers must also be entangled so that the collapse of the input register corresponds to the collapse of the output register) ๏ถ Input register: must contain enough qubits to represent numbers as large as q-1. up to 255, so we need 8 qubits . ๏ถ Output register: must contain enough qubits to represent numbers as large as N-1. up to 14, so we need 4 qubits. 2 2
  • 15. 15 Shorโ€™s - Preparing Data ๏ถLoad the input register with an equally weighted superposition of all integers from 0 to q-1. 0 to 255. ๏ถLoad the output register with all zeros. The total state of the system at this point will be: 1__ โˆš256 โˆ‘ 255 a=0 |a, 000 > INPUT REGISTER OUTPUT REGISTER Note: the comma here denotes that the registers are entangled.
  • 16. 16 ๏ถ Apply the transformation x mod N to each number in the input register, storing the result of each computation in the output register. ๏ถ Now take a measurement on the output register. This will collapse the superposition to represent just one of the results of the transformation, letโ€™s call this value c. Our output register will collapse to represent one of the following: |1>, |4>, |7>, or |13> For sake of example, lets choose |1> ๏ถ Since the two registers are entangled, measuring the output register will have the effect of partially collapsing the input register into an equal superposition of each state between 0 and q-1 that yielded c (the value of the collapsed output register.) a
  • 17. 17 Since the output register collapsed to |1>, the input register will partially collapse to: |0> + |4> + |8> + |12>, . . . The probabilities in this case are since our register is now in an equal superposition of 64 values (0, 4, 8, . . . 252) 1 โˆš64 __ __ โˆš64 __ โˆš64 __ โˆš64 1 1 1 1/โˆš64 ๏ถWe now apply the Quantum Fourier transform on the partially collapsed input register. The fourier transform has the effect of taking a state |a> and transforming it into a state given by: 1 โˆšq __ โˆ‘ q-1 c=0 |c> * e2ฯ€iac / q
  • 18. 18 1__ โˆš64 โˆ‘ |a>, |1> a โ‚ฌ A ___ โˆš256 1 โˆ‘ 255 C=0 |c> * e 2ฯ€iac / q Note: A is the set of all values that 7 mod 15 yielded 1.In our case A = {0, 4, 8, โ€ฆ, 252} So the final state of the input register after the QFT is: ๏ถ The QFT will essentially peak the probability amplitudes at integer multiples of q/4 in our case 256/4, or 64. |0>, |64>, |128>, |192>, โ€ฆ 1 โˆš64 โˆ‘ a โ‚ฌ A 1___ โˆš256 โˆ‘|c> * e2ฯ€iac / q ,|1> ___ a
  • 19. 19 ๏ถ So we no longer have an equal superposition of states, the probability amplitudes of the above states are now higher than the other states in our register. We measure the register, and it will collapse with high probability to one of these multiples of 64, letโ€™s call this value p. ๏ถ Now that we have the period, the factors of N can be determined by taking the greatest common divisor of N with respect to x ^ (P/2) + 1 and x ^ (P/2) - 1. The idea here is that this computation will be done on a classical computer. We compute: Gcd(7 + 1, 15) = 5 Gcd(7 - 1, 15) = 3 We have successfully factored 15! 4/2 4/2
  • 20. 20 Conclusionand Scope ๏ถ Various researchers are actively looking for new algorithms and communication protocols to exploit the properties of quantum systems. ๏ถ D-Wave Systems is a Canadian company that claims to have developed a 28-qubit quantum computer, though there have been criticisms of their claims. In 2007, they demonstrated the use of a 16-qubit computer to solve such problems as pattern-matching, seating arrangements, and a Sudoku puzzle. ๏ถ It is unlikely that quantum computers will entirely replace classical computers. Their advantage over classical computers is significant only in specific application areas. ๏ถ It is most likely that future computers will instead be some sort of hybrid, containing components from both types of computers.