Saved in:
Bibliographic Details
Main Authors: Paviglianiti, Alessio, Seclì, Matteo, Tirrito, Emanuele, Savona, Vincenzo
Format: Preprint
Published: 2026
Subjects:
Online Access:https://arxiv.org/abs/2605.05347
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915986422104064
author Paviglianiti, Alessio
Seclì, Matteo
Tirrito, Emanuele
Savona, Vincenzo
author_facet Paviglianiti, Alessio
Seclì, Matteo
Tirrito, Emanuele
Savona, Vincenzo
contents The execution cost of quantum algorithms is typically quantified through asymptotic gate counts and qubit register sizes, yet these metrics do not directly capture which genuinely quantum resources, and in what amount, must be created and maintained for the computation to succeed. The systematic quantification of such information-theoretic requirements in quantum computing protocols remains an extremely challenging open problem, despite their direct role in establishing quantum advantage. To address this gap, we investigate the generation of non-stabilizerness (or magic), one of the key resources, in the paradigmatic Shor's factoring algorithm, revealing a deep connection between intrinsic quantum complexity and the computational hardness of the underlying number-theoretic problem. By developing an explicit analytic theory, we demonstrate the fundamental role of magic in the successful execution of the algorithm, and show that Shor's routine maximally exploits the quantum resource in practically relevant regimes. Our findings create a concise conceptual link between the classical algorithmic difficulty of a task and the non-stabilizer price to solve it on quantum hardware, complementing standard circuit-cost analyses with a resource-based metric that is naturally aligned with the real bottlenecks of fault-tolerant quantum computing.
format Preprint
id arxiv_https___arxiv_org_abs_2605_05347
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle The true cost of factoring: Linking magic and number-theoretic complexity in Shor's algorithm
Paviglianiti, Alessio
Seclì, Matteo
Tirrito, Emanuele
Savona, Vincenzo
Quantum Physics
Computational Physics
The execution cost of quantum algorithms is typically quantified through asymptotic gate counts and qubit register sizes, yet these metrics do not directly capture which genuinely quantum resources, and in what amount, must be created and maintained for the computation to succeed. The systematic quantification of such information-theoretic requirements in quantum computing protocols remains an extremely challenging open problem, despite their direct role in establishing quantum advantage. To address this gap, we investigate the generation of non-stabilizerness (or magic), one of the key resources, in the paradigmatic Shor's factoring algorithm, revealing a deep connection between intrinsic quantum complexity and the computational hardness of the underlying number-theoretic problem. By developing an explicit analytic theory, we demonstrate the fundamental role of magic in the successful execution of the algorithm, and show that Shor's routine maximally exploits the quantum resource in practically relevant regimes. Our findings create a concise conceptual link between the classical algorithmic difficulty of a task and the non-stabilizer price to solve it on quantum hardware, complementing standard circuit-cost analyses with a resource-based metric that is naturally aligned with the real bottlenecks of fault-tolerant quantum computing.
title The true cost of factoring: Linking magic and number-theoretic complexity in Shor's algorithm
topic Quantum Physics
Computational Physics
url https://arxiv.org/abs/2605.05347