In the rapidly evolving domain of quantum computing, Shor’s algorithm has emerged as a groundbreaking innovation with far-reaching implications for the field of cryptographic security. However, the efficacy of Shor’s algorithm hinges on the critical step of determining the period, a process that poses a substantial computational challenge. This article explores innovative quantum optimization solutions that aim to enhance the efficiency of Shor’s period finding algorithm. The article focuses on quantum development environments, such as Qiskit and Cirq. A detailed analysis is conducted on three notable tools: Qiskit Transpiler, BQSKit, and Mitiq. The performance of these tools is evaluated in terms of execution time, precision, resource utilization, the number of quantum gates, circuit synthesis optimization, error mitigation, and qubit fidelity. Through rigorous case studies, we highlight the strengths and limitations of these tools, shedding light on their potential impact on integer factorization and cybersecurity. Our findings underscore the importance of quantum optimization and lay the foundation for future developments in quantum algorithmic enhancements, particularly within the Qiskit and Cirq quantum development environments.
In the rapidly evolving domain of quantum computing, Shor’s algorithm has emerged as a groundbreaking innovation with far-reaching implications for the field of cryptographic security. However, the efficacy of Shor’s algorithm hinges on the critical step of determining the period, a process that poses a substantial computational challenge. This article explores innovative quantum optimization solutions that aim to enhance the efficiency of Shor’s period finding algorithm. The article focuses on quantum development environments, such as Qiskit and Cirq. A detailed analysis is conducted on three notable tools: Qiskit Transpiler, BQSKit, and Mitiq. The performance of these tools is evaluated in terms of execution time, precision, resource utilization, the number of quantum gates, circuit synthesis optimization, error mitigation, and qubit fidelity. Through rigorous case studies, we highlight the strengths and limitations of these tools, shedding light on their potential impact on integer factorization and cybersecurity. Our findings underscore the importance of quantum optimization and lay the foundation for future developments in quantum algorithmic enhancements, particularly within the Qiskit and Cirq quantum development environments.
This study aims to explore the theoretical foundations and practical simulation of Shor’s algorithm, a quantum factoring algorithm technique that poses a considerable threat to classical cryptosystems, such as Rivest-Shamir-Adleman (RSA). It has simulated the period finding process and the factorization of the integer N = 15 with base a = 7 by using Qiskit, a quantum computing framework. The quantum circuit correctly identified the period r = 4 from the modular exponentiation function 7x mod 15, leading to factors of 15 as 3 and 5. The simulation shows how quantum superposition, interference, and the Quantum Fourier Transform (QFT) were useful for speeding up the period-finding process, which is important for integer factorization. The histogram of measurement results revealed prominent peaks at 4, 8, and 12, which are multiples of the resultant period, unveiling the constructive interference produced by the QFT. However, a dominant peak at 0000 indicates hardware noise and error, pointing to the current limitations in quantum hardware. Fault-tolerant computers and error-correcting codes can overcome this limitation. As we move towards the age of quantum computers, the applicability of this algorithm poses a great threat to digital security. Applied code and visualizations provide a reproducible foundation for further study on cybersecurity and quantum computing.
Quantum computing has emerged as a groundbreaking technology, revolutionizing the speed and capabilities of computation. Traditional computing, based on bits represented by 0s and 1s, has limitations in storage and computational efficiency, even with parallel processing. In contrast, quantum computing operates on qubits, enabling exponential reductions in storage requirements and faster computation via quantum parallelism. One prominent quantum algorithm, Shor's Algorithm, presents a significant threat to RSA encryption. This Algorithm efficiently factors large integers, a task considered intractable for classical computers. By leveraging classical and quantum computation techniques, Shor's Algorithm employs the Euclidean algorithm and the Quantum Fourier Transform (QFT) to find the greatest common divisor and perform period-finding, respectively. This research paper explores the implementation and implications of Shor's Algorithm in breaking RSA encryption. Through experiments conducted in IBM's Quantum Lab, the Algorithm successfully factorizes integers, showcasing its efficacy in practice. By examining the potential impact of quantum computing on RSA and exploring the capabilities of Shor's Algorithm, this research contributes to advancing the field of quantum computing and understanding its implications for modern cryptographic systems. The findings underscore the need for post-quantum cryptography to ensure secure communication and data protection in the era of quantum computing.
Shor’s algorithm stands as a breakthrough in quantum computing due to its potential to factor large integers exponentially quicker than classical algorithms. However, implementing and evaluating this algorithm on real quantum computer hardware remains exciting due to qubit limitations, gate noise, and hardware constraints. This research presents a comprehensive performance evaluation of Shor’s algorithm using simulated quantum backends provided by Qiskit. A flexible and generic implementation is proposed, allowing dynamic input of integers to be factored, with randomized co-prime selection and automated circuit generation. The algorithm is tested on various semiprime numbers, such as 15, 21, and 35, using IBM’s Aer simulator. A major contribution of this work is the circuit-level analysis conducted both before and after transpilation. Metrics such as gate counts, circuit depth, and simulator runtime are extracted to assess scalability and resource requirements. High-resolution plots of the pre-transpiled circuits are saved to visualize algorithmic complexity, while post-transpilation metrics inform future quantum hardware feasibility. The output measurement distributions are analyzed to estimate periodicity and derive correct factors. The proposed implementation is compared with existing fixed-instance Shor demonstrations to highlight its flexibility and extensibility. Experimental results show consistent success in factor retrieval and provide valuable insight into circuit growth and complexity under realistic constraints. This analysis lays the groundwork for future adaptation to NISQ hardware and contributes to understanding Shor’s algorithm from both computational and architectural perspectives.
This paper explores a quantum-inspired technique for factoring semi-prime integers, a problem central to the security of RSA cryptography. While Shor's algorithm offers a polynomial-time solution on a quantum computer, posing a significant threat to RSA, current quantum hardware limitations hinder its practical implementation. This study simulates Shor's algorithm classically, replacing the quantum period-finding subroutine—the source of the quantum speedup—with a classical method to analyze its performance. The experiments factored semi-primes ranging from 2 to 8 digits, demonstrating that while the technique works, the execution time increases exponentially with the size of the number, escalating from seconds for small integers to an order of minutes for an 8-digit number. This highlights the inefficiency of classical period-finding compared to the quantum approach. The results validate the theoretical framework of Shor's algorithm but underscore the impracticality of classical simulations for cryptographic-scale integers. This work also explores the necessity of advancing quantum computing to realize scalable factorization while classical methods remain confined to pedagogical or small-scale applications. The study emphasizes the urgency of hybrid quantum-classical optimizations and reinforces Shor's algorithm as pivotal for future cryptographic vulnerability assessments and quantum-ready solutions.
Quantum computing has emerged as a transformative technological advancement with the potential to challenge the foundations of classical cryptography. Traditional cryptographic algorithms, such as RSA, rely heavily on the computational hardness of problems like integer factorization—a problem quantum algorithm like Shor's can theoretically solve efficiently. This research investigates the practical capabilities and performance limitations of three prominent quantum simulation frameworks: Qiskit, Cirq, and QuTiP. The study aims to analyze and compare their efficiency in simulating the decryption process for encrypted data of varying bit lengths—specifically 8 -bit, 16 -bit, 32 -bit, 64 -bit, 128 -bit, and 512 -bit keys. By simulating classical decryption schemes through quantum circuits, we assess the computational resources, execution time, and overall performance of each platform. This benchmarking helps to highlight how effectively these simulators can model cryptographic tasks and where they currently fall short in terms of scalability and execution time. The results offer valuable insights into the practicality of deploying quantum computing for real-world cryptographic operations and outline the current limitations imposed by simulation-based approaches, especially as key sizes grow in complexity. Ultimately, this research contributes to a deeper understanding of how existing quantum tools perform under cryptographic workloads and what improvements are necessary to make quantum-assisted cryptanalysis viable at scale.
Quantum Shor’s algorithm offers an exponential speedup over classical methods for integer factorization, a central problem to modern cryptography, and the implica- tions of Shor’s algorithm in factoring large numbers. The algorithm leverages on quantum parallelism to compute the period of a modular exponentiation function, employ- ing the Inverse Quantum Fourier Transform (IQFT) to extract periodicity, and classical post-processing to derive the factors. This final report of the Quantum Engineer- ing post-graduate course of the Fundacio Polit ́ enica de ` Catalunya, presents the main findings encountered in the implementation and benchmarking of Schor’s algorithm in real IBM quantum computers. To accomplish this, we created a command line tool made in Python, that allows the integration of the circuits implementing the Shor’s algorithm with the overall set of configuration parameters needed to perform the benchmark. In this report, we first provide an overview of the quantum factoring problem, followed by a detailed description of Shor’s algorithm, and its implementation using the Qiskit Python library. The circuit depth and noise effects are analyzed across different backend types, also different values for the optimization level and approximation degrees are configured when performing the circuit transpilation. As mentioned earlier different backend types were utilized for performance comparison, namely backend class with or without a noise model (AerSim), a fake backend class provided by the Qiskit library (fake provider), and the real quantum hardware (IBM Quantum Processing Units in January- June 2025).The study follows by analyzing the different error mitigation techniques: dynamic decoupling, Pauli twirling, the SABRE Optimization (Stochastic Algorithm for Quantum Boolean Optimization and Routing), and any combination of them. Once the optimum configuration is found, the maximum number that can be reasonably factorized with success is explored. Finally, the main conclusions, findings, and possible future research lines are presented, including the factorization of a N ≈ 1000 if appropriate parameters of the algorithm are selected.