|
| 1 | +\documentclass{article} |
| 2 | +\usepackage{amsmath} |
| 3 | +\usepackage{amssymb} |
| 4 | +\usepackage{hyperref} |
| 5 | +\usepackage{qcircuit} |
| 6 | + |
| 7 | +\title{Lecture Notes on Shor's Algorithm} |
| 8 | +\author{MHJ} |
| 9 | +\date{\today} |
| 10 | + |
| 11 | +\begin{document} |
| 12 | + |
| 13 | +\maketitle |
| 14 | + |
| 15 | +\tableofcontents |
| 16 | +\newpage |
| 17 | + |
| 18 | +\section{Introduction to Shor's Algorithm} |
| 19 | + |
| 20 | +\subsection{Historical Context} |
| 21 | +Shor's algorithm, introduced by Peter Shor in 1994, revolutionized the field of cryptography. It demonstrated that a quantum computer could solve integer factorization and the discrete logarithm problem efficiently, posing a significant threat to classical cryptosystems such as RSA. |
| 22 | + |
| 23 | +\subsection{Problem Statement} |
| 24 | +The objective of Shor's algorithm is to factorize a large composite integer \( N \) into its prime factors. Given \( N = p \times q \), where \( p \) and \( q \) are unknown distinct primes, the problem of factorization can be reduced to finding an integer \( a \) such that \( 1 < a < N \) and \( \gcd(a, N) = 1 \). |
| 25 | + |
| 26 | +\section{Classical Component} |
| 27 | + |
| 28 | +\subsection{Reduction to Order-Finding} |
| 29 | +The key reduction in Shor's algorithm lies in transforming factorization into an order-finding problem: |
| 30 | +\begin{itemize} |
| 31 | + \item Choose a random integer \( a \) such that \( 1 < a < N \) and \( \gcd(a, N) = 1 \). |
| 32 | + \item Determine the smallest positive integer \( r \) such that \( a^r \equiv 1 \pmod{N} \). |
| 33 | +\end{itemize} |
| 34 | +The integer \( r \) is known as the \textit{order} of \( a \) modulo \( N \), and it helps in discovering the factors of \( N \). |
| 35 | + |
| 36 | +\subsection{Continued Fraction Expansion} |
| 37 | +After obtaining the rational approximation from the quantum algorithm, classical computation using continued fraction expansion aids in deducing the correct order \( r \). |
| 38 | + |
| 39 | +\section{Quantum Component} |
| 40 | + |
| 41 | +\subsection{Quantum Fourier Transform (QFT)} |
| 42 | +The Quantum Fourier Transform is crucial to Shor's algorithm. It leverages quantum parallelism and interference to efficiently estimate the periodicity of a function. |
| 43 | + |
| 44 | +\[ \text{QFT}: \ket{x} \mapsto \frac{1}{\sqrt{2^n}} \sum_{y=0}^{2^n-1} e^{2\pi ixy/2^n} \ket{y} \] |
| 45 | + |
| 46 | +\subsection{Quantum Order Finding Procedure} |
| 47 | +The quantum part of Shor's algorithm is designed to find the period \( r \) of the modular exponentiation function \( f(x) = a^x \bmod N \): |
| 48 | + |
| 49 | +\[ \Qcircuit @C=1em @R=1em { |
| 50 | + \lstick{\ket{0^{n}}} & \qw & \gate{\mathrm{H^{\otimes n}}} & \qw & \multigate{1}{U_f} & \qw & \measureD{} \\ |
| 51 | + \lstick{\ket{0^{n}}} & \gate{\mathrm{H^{\otimes m}}} & \qw & \qw & \ghost{U_f} & \gate{\mathrm{QFT}^{-1}} & \measureD{} |
| 52 | +}\] |
| 53 | + |
| 54 | +\subsubsection{Details of the Circuit} |
| 55 | +\begin{itemize} |
| 56 | + \item Start with two registers. Apply Hadamard gates to obtain superposition. |
| 57 | + \item Implement the unitary operation \( U_f \) for modular exponentiation \( f(x) = a^x \bmod N \). |
| 58 | + \item Perform an inverse QFT to extract the order \( r \) from the phase information. |
| 59 | +\end{itemize} |
| 60 | + |
| 61 | +\section{Putting It All Together} |
| 62 | + |
| 63 | +\subsection{Algorithm Steps} |
| 64 | +1. Choose a random integer \( a \). |
| 65 | +2. Use a quantum circuit to find the order \( r \). |
| 66 | +3. If \( r \) is even and \( a^{r/2} \not\equiv -1 \pmod{N} \), compute \( \gcd(a^{r/2} \pm 1, N) \) to obtain non-trivial factors. |
| 67 | +4. If unsuccessful, repeat with new \( a \). |
| 68 | + |
| 69 | +\section{Error Analysis and Success Probability} |
| 70 | + |
| 71 | +\subsection{Probability of Success} |
| 72 | +The probability that a randomly chosen \( a \) leads to successful factoring is generally greater than 50\%. The quantum component requires carefully managed resources for high precision. |
| 73 | + |
| 74 | +\subsection{Error Sources} |
| 75 | +Error correction is crucial, as any errors in operations or QFT can significantly impact the accuracy of period estimation and the eventual factorization. |
| 76 | + |
| 77 | +\section{Conclusion} |
| 78 | + |
| 79 | +Shor's algorithm is an exemplary quantum algorithm demonstrating exponential speedup over classical counterparts. It ignites both excitement for potential quantum advancements and a reconsideration of current cryptographic standards. |
| 80 | + |
| 81 | +\end{document} |
0 commit comments