Efficient explicit circuit for quantum state preparation of piecewise continuous functions
Nikita Guseynov, Nana Liu
TL;DR
This work addresses efficient quantum data-loading by encoding a function $f(x)$ on the interval $[-1,1]$ as amplitudes of a quantum state, with discretization $x_k=-1+k\Delta x$ and $N=2^n$. It develops a four-parity real polynomial decomposition and leverages Quantum Singular Value Transformation (QSVT), Alternating Phase Modulation Sequence (APTS), and Linear Combination of Unitaries (LCU) to construct explicit, hardware-conscious state-preparation circuits that realize $f(\hat{x})$ via a coordinate-polynomial oracle. The main results show $U_f$ achieves $\mathcal{O}(Q\,n\log n)$ gate complexity (plus $\lceil\log_2 n\rceil+1$ pure ancillas) for a single polynomial and extends to piecewise polynomials with $G$ segments at $\mathcal{O}(Q_{\max}\,n\log n + G n + Q_{\max} G)$. These explicit circuits enable uploading high-degree polynomial amplitudes (up to $10^4$) and provide practical, scalable data-loading capabilities for quantum algorithms relying on polynomial representations and segmented data.
Abstract
Efficiently uploading data into quantum states is essential for many quantum algorithms to achieve advantage across various applications. In this paper, we address this challenge by developing a method to upload a polynomial function $f(x)$ on the interval $x \in [-1,1]$ into a pure quantum state consisting of qubits, where a discretized $f(x)$ is the amplitude of this state. The preparation cost has $\mathcal{O}(n\log n)$ scaling in the number of qubits $n$ and linear scaling with the degree of the polynomial $Q$. This efficiency allows the preparation of states whose amplitudes correspond to high-degree polynomials (up to $10^4$), enabling accurate approximation of functions that admit efficient polynomial series representations and whose amplitude profiles are not extremely localized. We provide a fully explicit circuit realization, based on four real polynomials that meet specific parity and boundedness conditions. We extend this construction to cover piece-wise polynomial functions, a case not previously addressed explicitly in the literature, the algorithm scaling linearly with the number of piecewise parts. Our method achieves efficient quantum circuit implementation and we present detailed gate counting and resource analysis.
