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

More Related Content

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

What's hot

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

Similar to Shors'algorithm simplified.pptx

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

Recently uploaded

PDF
Welcome to ISPR 2026 - 12th International Conference on Image and Signal Pro...
PDF
ANPARA THERMAL POWER STATION[1] sangam.pdf
PDF
IPE 105 - Engineering Materials Constitution of Alloys
PPTX
AI at the Crossroads_ Transforming the Future of Green Technology.pptx
PPTX
Intrusion Detection Systems presentation.pptx
PDF
Soil Permeability and Seepage-Irrigation Structures
PPTX
Blockchain and cryptography Lecture Notes
PPTX
Washing-Machine-Simulation-using-PICSimLab.pptx
PDF
application of matrix in computer science
PPTX
DevFest Seattle 2025 - AI Native Design Patterns.pptx
PDF
How-Forensic-Structural-Engineering-Can-Minimize-Structural-Failures.pdf
PDF
Best Marketplaces to Buy Snapchat Accounts in 2025.pdf
PPTX
TRANSPORTATION ENGINEERING Unit-5.2.pptx
PDF
Chemical Bonding _ Class Notes.pdf for jee
PPTX
841726060-Ece-Software-Presentation.pptx
 
PPTX
Supercapacitor.pptx...............................
PDF
Workshop practice theory course (Unit-1) By Varun Pratap Singh.pdf
PPTX
TRANSPORTATION ENGINEERING Unit-5.1.pptx
PPTX
Control Structures and Looping Basics Understanding Control Flow and Loops Co...
PPT
Virtual Instrumentation Programming Techniques.ppt
Welcome to ISPR 2026 - 12th International Conference on Image and Signal Pro...
ANPARA THERMAL POWER STATION[1] sangam.pdf
IPE 105 - Engineering Materials Constitution of Alloys
AI at the Crossroads_ Transforming the Future of Green Technology.pptx
Intrusion Detection Systems presentation.pptx
Soil Permeability and Seepage-Irrigation Structures
Blockchain and cryptography Lecture Notes
Washing-Machine-Simulation-using-PICSimLab.pptx
application of matrix in computer science
DevFest Seattle 2025 - AI Native Design Patterns.pptx
How-Forensic-Structural-Engineering-Can-Minimize-Structural-Failures.pdf
Best Marketplaces to Buy Snapchat Accounts in 2025.pdf
TRANSPORTATION ENGINEERING Unit-5.2.pptx
Chemical Bonding _ Class Notes.pdf for jee
841726060-Ece-Software-Presentation.pptx
 
Supercapacitor.pptx...............................
Workshop practice theory course (Unit-1) By Varun Pratap Singh.pdf
TRANSPORTATION ENGINEERING Unit-5.1.pptx
Control Structures and Looping Basics Understanding Control Flow and Loops Co...
Virtual Instrumentation Programming Techniques.ppt

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