Quantum Algorithm for Binary Vector Encoding and Retrieval Utilizing the Permutation Trick
Andreas Wichert
TL;DR
This paper introduces a permutation-based quantum storage method to encode $k$ binary vectors of dimension $m$ into an $m$-qubit state, offering a dense encoding with reduced qubit requirements compared to Ventura and Martinez's QuAM. A key contribution is the permutation trick, which, together with a reduce algorithm, lowers gate counts and enables retrieval via a modified Grover search in $O(\sqrt{k})$ steps, independent of $n=2^m$. The authors contrast this with the VM approach, which requires $O(\sqrt{n})$ Grover rotations, and show that PT can significantly reduce retrieval effort when $k$ is small or highly correlated data permit efficient parallelization. The work addresses fundamental bottlenecks in quantum associative memory and nearest-neighbor retrieval, highlighting practical implications for dense quantum storage and efficient data preparation in quantum systems.
Abstract
We present a novel quantum storage algorithm for k binary vectors of dimension m into a superposition of a m qubit quantum state based on a permutation technique. We compare this algorithm to the storage algorithm proposed by Ventura and Martinez. The permutation technique is simpler and can lead to an additional reduction through the reduce algorithm. To retrieve a binary vector from the superposition of k vectors represented by a m qubit quantum state, we must use a modified version of Grover algorithm, as Grover algorithm does not function correctly for non uniform distributions. We introduce the permutation trick that enables an exhaustive search by Grover algorithm in square root of k steps for k patterns, independent of n equal two power m. We compare this trick to the Ventura and Martinez trick, which requires square root of n steps for k patterns.
