Danial Motlagh, Matthew Pocrnic (May 21 2026).
Abstract: Table lookup, often referred to as quantum read only memory (QROM), is one of the most widely used subroutines in quantum algorithms, and constitutes the majority share of algorithmic overheads in most practical applications of quantum computers. It involves the coherent loading of
N bitstrings of length
b in superposition, and naively has a non-Clifford cost of
N Toffolis. It is known that given access to
bλ dirty qubits, one can reduce the Toffoli cost of QROM to
2λN​+4b(λ−1). In this work, we first present an optimization to reduce this cost to
2λN​+2b(λ−1)+2λ−6 by replacing the
SelectSwap" architecture with SelectCopy". We then provide a further optimization for the qubit-constrained regime where the Toffoli cost is typically
∼2λN​, and reduce it to
∼(1+b1​)λN​, cutting the cost by approximately
50% and effectively matching the performance of clean-qubit QROM using dirty qubits for practical values of
b. Lastly, we provide a parametric family of methods that allow the interpolation of the prefactor of the
λN​ term from
2 to (
1+b1​) to obtain the best cost for different qubit availability regimes.