Quantum Circuits for GCD Computation with $O(n \log n)$ Depth and O(n) Ancillae
Mehdi Saeedi, Igor L. Markov

TL;DR
This paper introduces quantum circuits for GCD computation that achieve significantly reduced depth of O(n log n) while maintaining linear ancillae, improving over previous quadratic-depth circuits.
Contribution
The paper presents a novel quantum circuit design for GCD calculation with optimized depth using the binary GCD algorithm, reducing depth complexity from O(n^2) to O(n log n).
Findings
Achieves O(n log n) circuit depth for GCD computation.
Uses O(n) ancillae, matching prior resource bounds.
Maintains O(n^2) gate count, consistent with traditional circuits.
Abstract
GCD computations and variants of the Euclidean algorithm enjoy broad uses in both classical and quantum algorithms. In this paper, we propose quantum circuits for GCD computation with depth with O(n) ancillae. Prior circuit construction needs running time with O(n) ancillae. The proposed construction is based on the binary GCD algorithm and it benefits from log-depth circuits for 1-bit shift, comparison/subtraction, and managing ancillae. The worst-case gate count remains , as in traditional circuits.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsQuantum Computing Algorithms and Architecture · Coding theory and cryptography · Cryptography and Data Security
