Movatterモバイル変換


[0]ホーム

URL:


PPTX, PDF945 views

Shors'algorithm simplified.pptx

Shor's algorithm, developed by Peter Shor in 1994, efficiently finds prime factors of integers and poses a threat to RSA cryptography. The document explains the prerequisites, the quantum phase estimation (QPE) algorithm, and the quantum Fourier transform (QFT) necessary for implementing Shor's algorithm. Current advances in quantum computing are discussed, including successful factorizations and the need for extensive qubits to break RSA-2048 encryption.

Related topics:

Embed presentation

Downloaded 21 times
Quantum ComputationSimplifiedKathiresan SPart - 6 Shor’s algorithm, QPE & QFT
IntroductionWhat is Shor’s algorithm? This is to find prime factors of an integer and invented by an Americanmathematician Peter Shor in 1994 Could be used to break RSA cryptography schemes (used in online transactions). This is much faster than the most efficient known classical factoring algorithm.(eg. To break RSA 2048 which will use a 617-digit number, it will take manyyears in classical computer and a few seconds in a perfect Quantum Computer)
Prerequisite for this videoEssential Basic knowledge of Quantum Computing – my previous videos (Part 1 to 5) orequivalent from other videos/ textbooksDesirable Fourier transform Prime factorization Euclidean algorithm for finding GCD Continued fraction Root of unity
Factoring Algorithm N = P.Q where N is an odd composite number and P & Q are odd prime numbers (of roughlyequal in length/ value) 𝑋2= 1(mod N): 𝑋 ≠ ±1 (mod N) 𝑋2− 1 = 0(mod N) N divides (𝑋2− 1) or (X - 1)(X + 1) but not X - 1 and X + 1 GCD (N, X -1) and GCD(N, X + 1) will give factors of N Pick x a random number and find its period r such that 𝑥𝑟 = 1 mod N , Finding GreatestCommon Divisor (GCD) (𝑥𝑟/2+ 1, 𝑁) 𝑎𝑛𝑑/𝑜𝑟 GCD (𝑥𝑟/2− 1, 𝑁) will give factors of N Attempt fails when r is odd or 𝑥𝑟/2= −1 (𝑚𝑜𝑑 𝑁). Repeat above step till these two conditionsare not met. Probability of guessing the right x is 1 −12𝑘−1 where k is the number of distinct odd primefactors of N
How to get period ‘r’ What is period r? The period or order (r), is the smallest (non-zero) integer such thatxr mod N = 1 Let us assume N = 15, x = 2 , 21(mod 15) = 2, 22(mod 15) = 4, 23(mod 15) =8,24(mod 15) = 1, 25(mod 15) = 2, 26(mod 15) = 4, 27(mod 15) = 8,.. r can be found out using Quantum Phase Estimation algorithm 𝑈 𝜑 = 𝑒2𝜋𝑖𝜃 𝜑 where U is a unitary matrix and 𝑒2𝜋𝑖𝜃 is its eigen value and | 𝜑 is itseigen vector In order to measure 𝜃, we need to know about Quantum Fourier Transform (& itsinverse) and Continued Fraction
Quantum Fourier Transform (QFT) Similar to FFT/ DFT, transforms between two bases, the computational (Z) basis, andthe Fourier basis8 (decimal) in Computational Basis8 (decimal) in Fourier BasisRotation of qubits – Multiples of82𝑛 x 2𝜋 𝑟𝑎𝑑𝑖𝑎𝑛𝑠 =816x 360 𝑑𝑒𝑔𝑟𝑒𝑒𝑠15 (decimal) in Computational Basis15 (decimal) in Fourier Basis
Quantum Fourier Transform Discrete Fourier TransformDFT of a vector of complex numbers, x0,….,xN-1 is given by the following equation wherein yk = y0,…...yN-1𝑦𝑘 ≡1𝑁 𝑗=0𝑁−1𝑥𝑗𝑒2𝜋𝑖𝑗𝑘/𝑁 Quantum Fourier TransformQFT on an orthonormal basis states |0 , … … , |𝑁 − 1 is given by the following equation|𝑗 →1𝑁 𝑘=0𝑁−1𝑒2𝜋𝑖𝑗𝑘/𝑁|𝑘Assuming N = 2n where n is an integer,|𝑗 →12𝑛/2𝑘=02𝑛−1𝑒2𝜋𝑖𝑗𝑘/2𝑛|𝑘
Quantum Fourier TransformFrom previous slide,|𝑗 →12𝑛/2𝑘=02𝑛−1𝑒2𝜋𝑖𝑗𝑘/2𝑛|𝑘Normally, we need to have a Unitary matrix to do this operation. It is given by,We will simplify the matrix with known small gates (unitary matrices)|𝑗1 … … … … . . 𝑗𝑛 →|0 + 𝑒2𝜋𝑖0.𝑗𝑛|1 |0 + 𝑒2𝜋𝑖0.𝑗𝑛−1𝑗𝑛|1 … … |0 + 𝑒2𝜋𝑖0.𝑗1𝑗2……𝑗𝑛|12𝑛/2
Quantum Fourier TransformFrom previous slide,|𝑗1,……….𝑗𝑛→|0 + 𝑒2𝜋𝑖0.𝑗𝑛|1 |0 + 𝑒2𝜋𝑖0.𝑗𝑛−1𝑗𝑛|1 … … |0 + 𝑒2𝜋𝑖0.𝑗1𝑗2……𝑗𝑛|12𝑛/2𝑤ℎ𝑒𝑟𝑒𝑖𝑛 0. 𝑗1𝑗2 ….. 𝑗𝑛 =𝑗121 +𝑗222 + ⋯ … … +𝑗𝑛2𝑛This can be achieved using three types of gates - Hadamard gate121 11 −1and aRotational gate 𝑅𝑘 =1 00 𝑒2𝜋𝑖2𝑘𝑤ℎ𝑒𝑟𝑒 𝑒2𝜋𝑖2𝑘is 2k th root of unity and the circuit will look like this(we need to have swap gates to maintain the order)
Quantum Fourier TransformLet us try QFT on Binary 1000 (Decimal 8) in IBM QISKIT Quantum simulatorhttps://qiskit.org/
Quantum Phase Estimation (QPE)No of bits tomeet accuracy• Quantum phase estimation algorithm (also referred to as quantum eigenvalue estimation algorithm), isa quantum algorithm to estimate the phase (or eigenvalue) of an eigenvector of a unitary operator. 𝑈 𝜑 = 𝑒2𝜋𝑖𝜃 𝜑where U is a unitary operator and 𝑒2𝜋𝑖𝜃is its eigen value and | 𝜑 is its eigen vectorAfter applying Hadamard gates on counting qubits, 𝜓1 =12𝑛2(|0 + |1 )⊗𝑛|𝜓After applying Controlled Unitary Operator U for n times, 𝜓2 =12𝑛2|0 + 𝑒2𝜋𝑖𝜃20|1 ⊗ |0 + 𝑒2𝜋𝑖𝜃21|1 … … . .⊗|0 + 𝑒2𝜋𝑖𝜃2𝑛−1|1 ⊗ |𝜓𝜓1 𝜓2
Quantum Phase EstimationAfter applying Controlled Unitary Operator U n times,𝜓2 =12𝑛2|0 + 𝑒2𝜋𝑖𝜃20|1 ⊗ |0 + 𝑒2𝜋𝑖𝜃21|1 … … . .⊗ |0 + 𝑒2𝜋𝑖𝜃2𝑛−1|1 ⊗ |𝜓 =12𝑛2𝑘=02𝑛−1𝑒2𝜋𝑖𝜃𝑘|𝑘 ⊗ |𝜓This looks similar to QFT equation seen earlier. After applying inverse QFT and making measurement,we will get the output as 2𝑛𝜃 with high probabilityWe will run QPE with T gate given by1 00 𝑒𝑖𝜋4operating a qubit with state |1 getting T |1 = 𝑒2𝜋𝑖𝜃|𝜓 ,resulting in 𝜃 = 1/8.We will use 3 counting Qbits and divide the number that we get after measurement by 23, we will get 𝜃.https://qiskit.org/
Factoring Problem Let us try to factor 15 (N) using Shor’s algorithm We will assume ‘a’ as 7 and find out period ‘r’ (74 = 1 mod(15)) We will find the factors from GCD(𝑥𝑟/2+ 1, 𝑁) 𝑎𝑛𝑑 GCD(𝑥𝑟/2− 1, 𝑁)https://qiskit.org/
Factoring in QC – Current Status Till 2012, the largest number that was factored by Shor’s algorithm was 21 with 10qubits. Now different algorithms are being tried with more qubits. A start-up company Zapata has worked with IBM to develop a new way and factored1,099,551,473,989 to get prime factors 1,048,589 and 1,048,601 (quote from “NewScientist”) To break RSA 2048, we would need thousands of logical qubits, but millions ofphysical qubits (quote from “The Quantum Daily”) IBM is building a quantum processor with more than 1,000 physical qubits — andsomewhere between 10 and 50 logical qubits — by the end of 2023 (quote from“Techcrunch”)
References Basics & Shor algorithm explainedhttps://arxiv.org/abs/quant-ph/9508027https://www.youtube.com/playlist?list=PL74Rel4IAsETUwZS_Se_P-fSEyEVQwni7https://en.wikipedia.org/wiki/Shor%27s_algorithm Different codeshttps://qiskit.org/textbook/ch-algorithms/shor.htmlhttps://github.com/quantumlib/Cirq/blob/master/examples/shor.py Text BookQuantum Computation and Quantum Information by Michael A Nielsen and Isaax L. Chuang
What Next?YOU• You can start getting into the depth of quantum computing.• You can go through the references and other videos/ documents and letme know if I need to bring out a video on any specific topicI• I will continue to learn and come out with videos which will be useful foryour learning
THANK YOU

Recommended

PPTX
Shor’s algorithm the ppt
PDF
Quantum Computing: The Why and How
PDF
Quantum Computers New Generation of Computers PART1 by Prof Lili Saghafi
PPTX
Introduction of Quantum Annealing and D-Wave Machines
PPTX
5 Qubit Modalities Used In Quantum Computing.pptx
PPTX
Fault-tolerance Quantum computation and Quantum Error Correction
PPT
Quantum Computing Lecture 1: Basic Concepts
PPTX
Quantum computing - A Compilation of Concepts
PPTX
Grover's algorithm simplified.pptx
PPTX
Quantum Computing
 
PPTX
Quantum computing
PDF
Grovers Algorithm
PPTX
Quantum Computing
PPTX
Quantum computing
PPTX
Quantum computing in machine learning
PPTX
Quantum computers
PPTX
Qunatum computing
PPTX
Quantum gates
PPTX
Quantum computing
PDF
Introduction to Quantum Computing
PPTX
Introduction to quantum computing
PDF
Quantum Computers new Generation of Computers part 7 by prof lili saghafi Qua...
PPTX
Quantum computing seminar
ODP
Quantum computers
PPTX
Grover's algorithm - Introduction to quantum computing
PPTX
Quantum Computing
PPTX
Quantum Computing: Welcome to the Future
PDF
A basic overview to the Shor's algorithm
PPTX
Quantum algorithms covering evolution, DJ, Shor's and Grover's algorithms

More Related Content

PPTX
Shor’s algorithm the ppt
PDF
Quantum Computing: The Why and How
PDF
Quantum Computers New Generation of Computers PART1 by Prof Lili Saghafi
PPTX
Introduction of Quantum Annealing and D-Wave Machines
PPTX
5 Qubit Modalities Used In Quantum Computing.pptx
PPTX
Fault-tolerance Quantum computation and Quantum Error Correction
PPT
Quantum Computing Lecture 1: Basic Concepts
PPTX
Quantum computing - A Compilation of Concepts
Shor’s algorithm the ppt
Quantum Computing: The Why and How
Quantum Computers New Generation of Computers PART1 by Prof Lili Saghafi
Introduction of Quantum Annealing and D-Wave Machines
5 Qubit Modalities Used In Quantum Computing.pptx
Fault-tolerance Quantum computation and Quantum Error Correction
Quantum Computing Lecture 1: Basic Concepts
Quantum computing - A Compilation of Concepts

What's hot

PPTX
Grover's algorithm simplified.pptx
PPTX
Quantum Computing
 
PPTX
Quantum computing
PDF
Grovers Algorithm
PPTX
Quantum Computing
PPTX
Quantum computing
PPTX
Quantum computing in machine learning
PPTX
Quantum computers
PPTX
Qunatum computing
PPTX
Quantum gates
PPTX
Quantum computing
PDF
Introduction to Quantum Computing
PPTX
Introduction to quantum computing
PDF
Quantum Computers new Generation of Computers part 7 by prof lili saghafi Qua...
PPTX
Quantum computing seminar
ODP
Quantum computers
PPTX
Grover's algorithm - Introduction to quantum computing
PPTX
Quantum Computing
PPTX
Quantum Computing: Welcome to the Future
Grover's algorithm simplified.pptx
Quantum Computing
 
Quantum computing
Grovers Algorithm
Quantum Computing
Quantum computing
Quantum computing in machine learning
Quantum computers
Qunatum computing
Quantum gates
Quantum computing
Introduction to Quantum Computing
Introduction to quantum computing
Quantum Computers new Generation of Computers part 7 by prof lili saghafi Qua...
Quantum computing seminar
Quantum computers
Grover's algorithm - Introduction to quantum computing
Quantum Computing
Quantum Computing: Welcome to the Future

Similar to Shors'algorithm simplified.pptx

PDF
A basic overview to the Shor's algorithm
PPTX
Quantum algorithms covering evolution, DJ, Shor's and Grover's algorithms
PPT
quantumComputers in Application of Qunatum Physics.ppt
PPT
quantumComputerswith Qubits explonationqweqerqr
PPT
quantum Computers /quantum computing.ppt
PPT
quantumComputers (2).ppafewqweafwaeaewet
PDF
QT06-Quantum_Safe_Cryptography for beginers
PPT
QC-UNIT 2.ppt
PDF
COMPUTATIONAL PERFORMANCE OF QUANTUM PHASE ESTIMATION ALGORITHM
PDF
COMPUTATIONAL PERFORMANCE OF QUANTUM PHASE ESTIMATION ALGORITHM
PDF
HiPEAC'19 Tutorial on Quantum algorithms using QX - 2019-01-23
PPTX
Shors_Algorithm_Factorization using.pptx
PDF
THE RESEARCH OF QUANTUM PHASE ESTIMATION ALGORITHM
PPTX
Shors_Algorithm_Factoring using the number.pptx
PDF
Quant2a
PPTX
myppt for health issues at IITB. Don't come to IITB
PPT
Matt Purkeypile's Doctoral Dissertation Defense Slides
PDF
Quantum factorization.pdf
PDF
ML Reading Group (Intro to Quantum Computation)
PDF
Experimental realisation of Shor's quantum factoring algorithm using qubit r...
A basic overview to the Shor's algorithm
Quantum algorithms covering evolution, DJ, Shor's and Grover's algorithms
quantumComputers in Application of Qunatum Physics.ppt
quantumComputerswith Qubits explonationqweqerqr
quantum Computers /quantum computing.ppt
quantumComputers (2).ppafewqweafwaeaewet
QT06-Quantum_Safe_Cryptography for beginers
QC-UNIT 2.ppt
COMPUTATIONAL PERFORMANCE OF QUANTUM PHASE ESTIMATION ALGORITHM
COMPUTATIONAL PERFORMANCE OF QUANTUM PHASE ESTIMATION ALGORITHM
HiPEAC'19 Tutorial on Quantum algorithms using QX - 2019-01-23
Shors_Algorithm_Factorization using.pptx
THE RESEARCH OF QUANTUM PHASE ESTIMATION ALGORITHM
Shors_Algorithm_Factoring using the number.pptx
Quant2a
myppt for health issues at IITB. Don't come to IITB
Matt Purkeypile's Doctoral Dissertation Defense Slides
Quantum factorization.pdf
ML Reading Group (Intro to Quantum Computation)
Experimental realisation of Shor's quantum factoring algorithm using qubit r...

Recently uploaded

PPTX
neural-networks-intro-basic-engineering.pptx
PDF
Introduction to MySQL Spatial Features and Real-World Use Cases
PPTX
State Space Model of DC-DC Boost Converter
PPTX
unit-1 Data structure (3).pptx Data structure And Algorithms
PDF
ANPARA THERMAL POWER STATION[1] sangam.pdf
PPTX
DevFest Seattle 2025 - AI Native Design Patterns.pptx
PPT
Chapter 1-Week 4-General Thermodynamics-Introduction.ppt
PPTX
Automation Testing and New Ways to test Software using AI
PDF
ghvjvhhvkjvgiyvicitiychjnlnokigytdcesdftyhuiookjhygvcrxesdcftyjiokoloihtfcxsx...
PDF
November_2025 Top 10 Read Articles in Computer Networks & Communications.pdf
PDF
IPE 105 - Engineering Materials Constitution of Alloys
PPTX
Supercapacitor.pptx...............................
PPTX
TRANSPORTATION ENGINEERING Unit-5.1.pptx
PPTX
Intrusion Detection Systems presentation.pptx
PDF
Best Marketplaces to Buy Snapchat Accounts in 2025.pdf
PDF
Advancements in Telecommunication for Disaster Management (www.kiu.ac.ug)
PPTX
31.03.24 - 7.CURRICULUM & TEACHING - LEARNING PROCESS IMPLEMENTATION DETAILS....
PDF
Reinforced Earth Walls Notes .pdf
PPTX
TRANSPORTATION ENGINEERING Unit-5.2.pptx
PPTX
Presentation 1.pptx WHAT IS ARTIFICIAL INTELLIGENCE?
neural-networks-intro-basic-engineering.pptx
Introduction to MySQL Spatial Features and Real-World Use Cases
State Space Model of DC-DC Boost Converter
unit-1 Data structure (3).pptx Data structure And Algorithms
ANPARA THERMAL POWER STATION[1] sangam.pdf
DevFest Seattle 2025 - AI Native Design Patterns.pptx
Chapter 1-Week 4-General Thermodynamics-Introduction.ppt
Automation Testing and New Ways to test Software using AI
ghvjvhhvkjvgiyvicitiychjnlnokigytdcesdftyhuiookjhygvcrxesdcftyjiokoloihtfcxsx...
November_2025 Top 10 Read Articles in Computer Networks & Communications.pdf
IPE 105 - Engineering Materials Constitution of Alloys
Supercapacitor.pptx...............................
TRANSPORTATION ENGINEERING Unit-5.1.pptx
Intrusion Detection Systems presentation.pptx
Best Marketplaces to Buy Snapchat Accounts in 2025.pdf
Advancements in Telecommunication for Disaster Management (www.kiu.ac.ug)
31.03.24 - 7.CURRICULUM & TEACHING - LEARNING PROCESS IMPLEMENTATION DETAILS....
Reinforced Earth Walls Notes .pdf
TRANSPORTATION ENGINEERING Unit-5.2.pptx
Presentation 1.pptx WHAT IS ARTIFICIAL INTELLIGENCE?

Shors'algorithm simplified.pptx

  • 1.
    Quantum ComputationSimplifiedKathiresan SPart- 6 Shor’s algorithm, QPE & QFT
  • 2.
    IntroductionWhat is Shor’salgorithm? This is to find prime factors of an integer and invented by an Americanmathematician Peter Shor in 1994 Could be used to break RSA cryptography schemes (used in online transactions). This is much faster than the most efficient known classical factoring algorithm.(eg. To break RSA 2048 which will use a 617-digit number, it will take manyyears in classical computer and a few seconds in a perfect Quantum Computer)
  • 3.
    Prerequisite for thisvideoEssential Basic knowledge of Quantum Computing – my previous videos (Part 1 to 5) orequivalent from other videos/ textbooksDesirable Fourier transform Prime factorization Euclidean algorithm for finding GCD Continued fraction Root of unity
  • 4.
    Factoring Algorithm N= P.Q where N is an odd composite number and P & Q are odd prime numbers (of roughlyequal in length/ value) 𝑋2= 1(mod N): 𝑋 ≠ ±1 (mod N) 𝑋2− 1 = 0(mod N) N divides (𝑋2− 1) or (X - 1)(X + 1) but not X - 1 and X + 1 GCD (N, X -1) and GCD(N, X + 1) will give factors of N Pick x a random number and find its period r such that 𝑥𝑟 = 1 mod N , Finding GreatestCommon Divisor (GCD) (𝑥𝑟/2+ 1, 𝑁) 𝑎𝑛𝑑/𝑜𝑟 GCD (𝑥𝑟/2− 1, 𝑁) will give factors of N Attempt fails when r is odd or 𝑥𝑟/2= −1 (𝑚𝑜𝑑 𝑁). Repeat above step till these two conditionsare not met. Probability of guessing the right x is 1 −12𝑘−1 where k is the number of distinct odd primefactors of N
  • 5.
    How to getperiod ‘r’ What is period r? The period or order (r), is the smallest (non-zero) integer such thatxr mod N = 1 Let us assume N = 15, x = 2 , 21(mod 15) = 2, 22(mod 15) = 4, 23(mod 15) =8,24(mod 15) = 1, 25(mod 15) = 2, 26(mod 15) = 4, 27(mod 15) = 8,.. r can be found out using Quantum Phase Estimation algorithm 𝑈 𝜑 = 𝑒2𝜋𝑖𝜃 𝜑 where U is a unitary matrix and 𝑒2𝜋𝑖𝜃 is its eigen value and | 𝜑 is itseigen vector In order to measure 𝜃, we need to know about Quantum Fourier Transform (& itsinverse) and Continued Fraction
  • 6.
    Quantum Fourier Transform(QFT) Similar to FFT/ DFT, transforms between two bases, the computational (Z) basis, andthe Fourier basis8 (decimal) in Computational Basis8 (decimal) in Fourier BasisRotation of qubits – Multiples of82𝑛 x 2𝜋 𝑟𝑎𝑑𝑖𝑎𝑛𝑠 =816x 360 𝑑𝑒𝑔𝑟𝑒𝑒𝑠15 (decimal) in Computational Basis15 (decimal) in Fourier Basis
  • 7.
    Quantum Fourier TransformDiscrete Fourier TransformDFT of a vector of complex numbers, x0,….,xN-1 is given by the following equation wherein yk = y0,…...yN-1𝑦𝑘 ≡1𝑁 𝑗=0𝑁−1𝑥𝑗𝑒2𝜋𝑖𝑗𝑘/𝑁 Quantum Fourier TransformQFT on an orthonormal basis states |0 , … … , |𝑁 − 1 is given by the following equation|𝑗 →1𝑁 𝑘=0𝑁−1𝑒2𝜋𝑖𝑗𝑘/𝑁|𝑘Assuming N = 2n where n is an integer,|𝑗 →12𝑛/2𝑘=02𝑛−1𝑒2𝜋𝑖𝑗𝑘/2𝑛|𝑘
  • 8.
    Quantum Fourier TransformFromprevious slide,|𝑗 →12𝑛/2𝑘=02𝑛−1𝑒2𝜋𝑖𝑗𝑘/2𝑛|𝑘Normally, we need to have a Unitary matrix to do this operation. It is given by,We will simplify the matrix with known small gates (unitary matrices)|𝑗1 … … … … . . 𝑗𝑛 →|0 + 𝑒2𝜋𝑖0.𝑗𝑛|1 |0 + 𝑒2𝜋𝑖0.𝑗𝑛−1𝑗𝑛|1 … … |0 + 𝑒2𝜋𝑖0.𝑗1𝑗2……𝑗𝑛|12𝑛/2
  • 9.
    Quantum Fourier TransformFromprevious slide,|𝑗1,……….𝑗𝑛→|0 + 𝑒2𝜋𝑖0.𝑗𝑛|1 |0 + 𝑒2𝜋𝑖0.𝑗𝑛−1𝑗𝑛|1 … … |0 + 𝑒2𝜋𝑖0.𝑗1𝑗2……𝑗𝑛|12𝑛/2𝑤ℎ𝑒𝑟𝑒𝑖𝑛 0. 𝑗1𝑗2 ….. 𝑗𝑛 =𝑗121 +𝑗222 + ⋯ … … +𝑗𝑛2𝑛This can be achieved using three types of gates - Hadamard gate121 11 −1and aRotational gate 𝑅𝑘 =1 00 𝑒2𝜋𝑖2𝑘𝑤ℎ𝑒𝑟𝑒 𝑒2𝜋𝑖2𝑘is 2k th root of unity and the circuit will look like this(we need to have swap gates to maintain the order)
  • 10.
    Quantum Fourier TransformLetus try QFT on Binary 1000 (Decimal 8) in IBM QISKIT Quantum simulatorhttps://qiskit.org/
  • 11.
    Quantum Phase Estimation(QPE)No of bits tomeet accuracy• Quantum phase estimation algorithm (also referred to as quantum eigenvalue estimation algorithm), isa quantum algorithm to estimate the phase (or eigenvalue) of an eigenvector of a unitary operator. 𝑈 𝜑 = 𝑒2𝜋𝑖𝜃 𝜑where U is a unitary operator and 𝑒2𝜋𝑖𝜃is its eigen value and | 𝜑 is its eigen vectorAfter applying Hadamard gates on counting qubits, 𝜓1 =12𝑛2(|0 + |1 )⊗𝑛|𝜓After applying Controlled Unitary Operator U for n times, 𝜓2 =12𝑛2|0 + 𝑒2𝜋𝑖𝜃20|1 ⊗ |0 + 𝑒2𝜋𝑖𝜃21|1 … … . .⊗|0 + 𝑒2𝜋𝑖𝜃2𝑛−1|1 ⊗ |𝜓𝜓1 𝜓2
  • 12.
    Quantum Phase EstimationAfterapplying Controlled Unitary Operator U n times,𝜓2 =12𝑛2|0 + 𝑒2𝜋𝑖𝜃20|1 ⊗ |0 + 𝑒2𝜋𝑖𝜃21|1 … … . .⊗ |0 + 𝑒2𝜋𝑖𝜃2𝑛−1|1 ⊗ |𝜓 =12𝑛2𝑘=02𝑛−1𝑒2𝜋𝑖𝜃𝑘|𝑘 ⊗ |𝜓This looks similar to QFT equation seen earlier. After applying inverse QFT and making measurement,we will get the output as 2𝑛𝜃 with high probabilityWe will run QPE with T gate given by1 00 𝑒𝑖𝜋4operating a qubit with state |1 getting T |1 = 𝑒2𝜋𝑖𝜃|𝜓 ,resulting in 𝜃 = 1/8.We will use 3 counting Qbits and divide the number that we get after measurement by 23, we will get 𝜃.https://qiskit.org/
  • 13.
    Factoring Problem Letus try to factor 15 (N) using Shor’s algorithm We will assume ‘a’ as 7 and find out period ‘r’ (74 = 1 mod(15)) We will find the factors from GCD(𝑥𝑟/2+ 1, 𝑁) 𝑎𝑛𝑑 GCD(𝑥𝑟/2− 1, 𝑁)https://qiskit.org/
  • 14.
    Factoring in QC– Current Status Till 2012, the largest number that was factored by Shor’s algorithm was 21 with 10qubits. Now different algorithms are being tried with more qubits. A start-up company Zapata has worked with IBM to develop a new way and factored1,099,551,473,989 to get prime factors 1,048,589 and 1,048,601 (quote from “NewScientist”) To break RSA 2048, we would need thousands of logical qubits, but millions ofphysical qubits (quote from “The Quantum Daily”) IBM is building a quantum processor with more than 1,000 physical qubits — andsomewhere between 10 and 50 logical qubits — by the end of 2023 (quote from“Techcrunch”)
  • 15.
    References Basics &Shor algorithm explainedhttps://arxiv.org/abs/quant-ph/9508027https://www.youtube.com/playlist?list=PL74Rel4IAsETUwZS_Se_P-fSEyEVQwni7https://en.wikipedia.org/wiki/Shor%27s_algorithm Different codeshttps://qiskit.org/textbook/ch-algorithms/shor.htmlhttps://github.com/quantumlib/Cirq/blob/master/examples/shor.py Text BookQuantum Computation and Quantum Information by Michael A Nielsen and Isaax L. Chuang
  • 16.
    What Next?YOU• Youcan start getting into the depth of quantum computing.• You can go through the references and other videos/ documents and letme know if I need to bring out a video on any specific topicI• I will continue to learn and come out with videos which will be useful foryour learning
  • 17.

[8]ページ先頭

©2009-2025 Movatter.jp