NobleBlocks

Research indexJournal article

quantumsort(): Quantum-Eraser Sorting Algorithm: Theory and Implementation

Yglesias

Zenodo (CERN European Organization for Nuclear Research)22 Jul 2025Open access

NobleIDark:/48914/w1/20260524/2D4D5988DOI10.5281/zenodo.16329865

Free to read at the publisher

You can read the abstract here, or the full text at the publisher.

Read at the publisher

Abstract

Quantum-eraser sorting amplifies the lexicographically sorted basis state of an N-state register so that a single measurement yields the sorted order directly. By performing in one erasure-amplification cycle what standard Grover loops would require Theta(N sqrt(N)) oracle calls to achieve, this method completes the sort in just order sqrt(N) divided by two calls—a two-fold reduction over Grover-based minimum search, while also reducing circuit depth by about 35 percent. At its core is a delayed-choice quantum-eraser comparator that suppresses out-of-order amplitudes before each diffusion step. Algorithmic performance is demonstrated on IBM's 127-qubit Eagle processor using a three-qubit instance, achieving a raw hardware success rate of 62 percent (mean 55 percent) across 2048 shots, compared to 94 percent in noiseless simulation. These are the first published sorting experiments on quantum hardware with more than 100 qubits. By collapsing the entire order in a single interference step, quantum-eraser sorting emerges as a scalable primitive for top-k selection and other rank-heavy workloads, illustrating that engineered interference—rather than iterative comparison—can underpin future quantum sorting. Note: Python source code and Qiskit circuits for the quantumsort() algorithm included, as described in the associated arXiv preprint. Demonstrates quantum eraser sorting using Grover interference on IBM hardware.

Topics

More

Suggest a correction or report