Sublinear Classical-to-Quantum Data Encoding using $n$-Toffoli Gates
Vittorio Pagni, Gary Schmiedinghoff, Kevin Lively, Michael Epping, Michael Felderer
TL;DR
This work tackles the challenge of loading classical data into quantum states by proposing a sublinear-depth amplitude-encoding scheme based on multi-controlled X gates. It builds an isomorphism between target states and hypercube graphs and formulates the encoding as a sequence of controlled operations whose cost is optimized via a Kronecker-decomposition approach. The method yields poly-logarithmic-depth behavior for structured data (e.g., Gaussian, Ricker) and an efficient core variant suitable for NISQ devices, with explicit probabilistic success $\rho$ and potential amplification. Overall, the paper delivers a gate-efficient, hardware-friendly framework for quantum state preparation that extends the utility window for near-term quantum architectures. Mathematical constructs such as $N=2^n$, $\boldsymbol{B}\in\mathbb{F}_2^{N\times L}$, and $\rho=\frac{1}{N}\sum_i (v_i/v_\infty)^2$ are central to the method and its performance characterization.
Abstract
Quantum state preparation, also known as encoding or embedding, is a crucial initial step in many quantum algorithms and often constrains theoretical quantum speedup in fields such as quantum machine learning and linear equation solvers. One common strategy is amplitude encoding, which embeds a classical input vector of size N=2\textsuperscript{n} in the amplitudes of an n-qubit register. For arbitrary vectors, the circuit depth typically scales linearly with the input size N, rapidly becoming unfeasible on near-term hardware. We propose a general-purpose procedure with sublinear average depth in N, increasing the window of utility. Our amplitude encoding method encodes arbitrary complex vectors of size N=2\textsuperscript{n} at any desired binary precision using a register with n qubits plus 2 ancillas and a sublinear number of multi-controlled NOT (MCX) gates, at the cost of a probabilistic success rate proportional to the sparsity of the encoded data. The core idea of our procedure is to construct an isomorphism between target states and hypercube graphs, in which specific reflections correspond to MCX gates. This reformulates the state preparation problem in terms of permutations and \emph{binary addition}. The use of MCX gates as fundamental operations makes this approach particularly suitable for quantum platforms such as \emph{ion traps} and \emph{neutral atom devices}. This geometrical perspective paves the way for more gate-efficient algorithms suitable for near-term hardware applications.
