Implementation and Analysis of Scalability of Quantum Algorithms Based on Circuits and Subroutines
María Luisa Rodríguez Castillo
Abstract
Quantum computing has given rise to significant challenges that make its wide availability difficult, especially when it comes to the accurate calculation of execution costs of Quantum Runtime Services, which in turn complicates the ability of a programmer to take well-informed decisions given an expectation of both cost and success rates. Quantum algorithms are intertwined in a complex web of dependencies, in which modern algorithms commonly incorporate other algorithms as subroutines. This paper studies whether the characterization of success metrics in scaling scenarios of specific quantum subroutines can be extrapolated to the quantum algorithms that integrate them as subroutines. It focuses on Shor’s algorithm, and the Quantum Fourier Transform algorithm as a subroutine, analyzing possible correlations in different scaling scenarios created by modifying the input parameters ’N’ and ’a’, running three jobs with different noise models for each one. The results showed a clear correlation that closely resembles a 2:1 ratio for the circuit where N = 15. For N = 15 circuits, success rates varied significantly, only reflecting ratios close to 2:1 when the period was equal to 2, an ideal, small and even number that reduced the required operations of the modular exponentiation stage. Larger periods such as r = 6 showed lesser success rates due to the necessity of performing more operations during the modular exponentiation stage and the noise accumulation it entails. Results achieved in high noise conditions had similar Shor and QFT success rates, evidencing how the dispersion of shots can alter the expected results. There is a meaningful connection between the success rates of an algorithm and its subroutine, which can be shadowed or decreased when error rates and qubit counts are increased.