Quantum comparators and modular arithmetic are fundamental in many quantum algorithms. Current research mainly focuses on operations between two quantum states. However, various applications, such as integer factorization, optimization, option pricing, and risk analysis, commonly require one of the inputs to be classical. It requires many ancillary qubits, especially when subsequent computations are involved. In this paper, we propose a quantum-classical comparator based on the quantum Fourier transform (QFT). Then we extend it to compare two quantum integers and modular arithmetic. Proposed operators only require one ancilla qubit, which is optimal for qubit resources. We analyze limitations in the current modular addition circuit and develop it to process arbitrary quantum states in the entire $n$-qubit space. The proposed algorithms reduce computing resources and make them valuable for Noisy Intermediate-Scale Quantum (NISQ) computers.
Demonstration of a quantum comparator on an ion-trap quantum device
RIKEN Center for Quantum Computing(理化学研究所量子计算中心);BlocQ, Inc.(BlocQ公司);Faculty of Social Informatics, ZEN University(ZEN大学社会信息学部);Department of Applied Physics, Hokkaido University(北海道大学应用物理系);Department of Applied Physics, The University of Tokyo(东京大学应用物理系);Department of Physics, The University of Tokyo(东京大学物理学系);Institute for Photon Science and Technology, The University of Tokyo(东京大学光子科学技术研究所);Center for Quantum Information and Quantum Biology, The University of Osaka(大阪大学量子信息与量子生物学中心)
Stesso: A reconfigurable decomposition of $n$-bit Toffoli gates using symmetrical logical structures and adjustable support qubits
College of Information Engineering, Capital Normal University(首都师范大学信息工程学院);Department of Electrical and Computer Engineering, Portland State University(波特兰州立大学电气与计算机工程系)
Communication Complexity of Distributed Unitary Synthesis
State Key Lab of Processors, Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);School of Computer Science and Technology, University of Chinese Academy of Sciences(中国科学院大学计算机科学与技术学院)