- Open Access
Efficient explicit circuit for quantum state preparation of piecewise continuous functions
Phys. Rev. A 113, 012604 – Published 2 January, 2026
DOI: https://doi.org/10.1103/plc3-2jyx
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 on the interval into a pure quantum state consisting of qubits, where a discretized is the amplitude of this state. The preparation cost has scaling in the number of qubits and linear scaling with the degree of the polynomial . This efficiency allows the preparation of states whose amplitudes correspond to high-degree polynomials (up to ), 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 piecewise 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.
Physics Subject Headings (PhySH)
Article Text
References (43)
- R. P. Feynman, Simulating physics with computers, Int. J. Theor. Phys. 21, 467 (1982).
- A. Aspuru-Guzik, A. D. Dutoi, P. J. Love, and M. Head-Gordon, Simulated quantum computation of molecular energies, Science 309, 1704 (2005).
- P. C. S. Costa, S. Jordan, and A. Ostrander, Quantum algorithm for simulating the wave equation, Phys. Rev. A 99, 012323 (2019).
- F. Gaitan, Finding flows of a Navier–Stokes fluid through quantum computing, npj Quantum Inf. 6, 61 (2020).
- S. Jin, N. Liu, and Y. Yu, Time complexity analysis of quantum algorithms via linear representations for nonlinear ordinary and partial differential equations, J. Comput. Phys. 487, 112149 (2023).
- N. Linden, A. Montanaro, and C. Shao, Quantum vs. classical algorithms for solving the heat equation, Commun. Math. Phys. 395, 601 (2022).
- S. Jin, N. Liu, and Y. Yu, Quantum simulation of partial differential equations: Applications and detailed analysis, Phys. Rev. A 108, 032603 (2023).
- N. Stamatopoulos, D. J. Egger, Y. Sun, C. Zoufal, R. Iten, N. Shen, and S. Woerner, Option pricing using quantum computers, Quantum 4, 291 (2020).
- J. Gonzalez-Conde, A. Rodríguez-Rozas, E. Solano, and M. Sanz, Efficient Hamiltonian simulation for solving option price dynamics, Phys. Rev. Res. 5, 043220 (2023).
- S. Zhang and L. Li, A brief introduction to quantum algorithms, CCF Transactions on High Performance Computing 4, 53 (2022).
- M. A. Nielsen and I. L. Chuang, Quantum Computation and Quantum Information: 10th Anniversary Edition (Cambridge University Press, Cambridge, England, 2010).
- E. Tang, Quantum principal component analysis only achieves an exponential speedup because of its state preparation assumptions, Phys. Rev. Lett. 127, 060503 (2021).
- A. M. Childs, On the relationship between continuous- and discrete-time quantum walk, Commun. Math. Phys. 294, 581 (2010).
- A. Scherer, B. Valiron, S.-C. Mau, S. Alexander, E. van den Berg, and T. E. Chapuran, Concrete resource analysis of the quantum linear-system algorithm used to compute the electromagnetic scattering cross section of a 2D target, Quantum Inf. Process. 16, 60 (2017).
- Y. Cao, A. Papageorgiou, I. Petras, J. Traub, and S. Kais, Quantum algorithm and circuit design solving the Poisson equation, New J. Phys. 15, 013021 (2013).
- S. K. Leyton and T. J. Osborne, A quantum algorithm to solve nonlinear differential equations, arXiv:0812.4423.
- D. W. Berry, Y. Su, C. Gyurik, R. King, J. Basso, A. D. T. Barba, A. Rajput, N. Wiebe, V. Dunjko, and R. Babbush, Analyzing prospects for quantum advantage in topological data analysis, PRX Quantum 5, 010319 (2024).
- A. M. Childs, R. Kothari, and R. D. Somma, Quantum algorithm for systems of linear equations with exponentially improved dependence on precision, SIAM J. Comput. 46, 1920 (2017).
- Edited by M. Abramowitz and I. A. Stegun, in Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables, National Bureau of Standards Applied Mathematics Series Vol. 55 (United States Government Printing Office, Washington, D.C., 1964).
- I. F. Araujo, D. K. Park, T. B. Ludermir, W. R. Oliveira, F. Petruccione, and A. J. da Silva, Configurable sublinear circuits for quantum state preparation, Quantum Inf. Process. 22, 123 (2023).
- J. Biamonte, P. Wittek, N. Pancotti, P. Rebentrost, N. Wiebe, and S. Lloyd, Quantum machine learning, Nature (London) 549, 195 (2017).
- E. Muñoz Coreas and H. Thapliyal, T-count and qubit optimized quantum circuit design of the non-restoring square root algorithm, J. Emerg. Technol. Comput. Syst. 14, 1 (2018).
- T. Häner, M. Roetteler, and K. Svore, Optimizing quantum circuits for arithmetic, arXiv:1805.12445.
- A. Gilyén, Y. Su, G. H. Low, and N. Wiebe, Quantum singular value transformation and beyond: Exponential improvements for quantum matrix arithmetics, in Proceedings of the 51st Annual ACM SIGACT Symposium on Theory of Computing, STOC 2019 (Association for Computing Machinery, New York, 2019), pp. 193–204.
- A. M. Dalzell, S. McArdle, M. Berta, P. Bienias, C. Chen, A. Gilyén, C. T. Hann, M. J. Kastoryano, E. T. Khabiboulline, A. Kubica, G. Salton, S. Wang, and F. G. S. L. Brandão, Quantum Algorithms: A Survey of Applications and End-to-End Complexities (Cambridge University Press, Cambridge, England, 2025).
- A. G. Rattew and B. Koczor, Preparing arbitrary continuous functions in quantum registers with logarithmic complexity, arXiv:2205.00519.
- A. N. Soklakov and R. Schack, Efficient state preparation for a register of quantum bits, Phys. Rev. A 73, 012307 (2006).
- F. M. Creevey, C. D. Hill, and L. C. L. Hollenberg, Gasp: A genetic algorithm for state preparation on quantum computers, Sci. Rep. 13, 11956 (2023).
- I. F. Araujo, C. Blank, I. C. S. Araújo, and A. J. da Silva, Low-rank quantum state preparation, IEEE Trans. Comput. Aided Des. Integr. Circuits Syst. 43, 161 (2024).
- M. Rosenkranz, E. Brunner, G. Marin-Sanchez, N. Fitzpatrick, S. Dilkes, Y. Tang, Y. Kikuchi, and M. Benedetti, Quantum state preparation for multivariate functions, Quantum 9, 1703 (2025).
- J. Gonzalez-Conde, T. W. Watts, P. Rodriguez-Grasa, and M. Sanz, Efficient quantum amplitude encoding of polynomial functions, Quantum 8, 1297 (2024).
- A. G. Rattew and P. Rebentrost, Non-linear transformations of quantum amplitudes: Exponential improvement, generalization, and applications, arXiv:2309.09839.
- N. Guo, K. Mitarai, and K. Fujii, Nonlinear transformation of complex amplitudes via quantum singular value transformation, Phys. Rev. Res. 6, 043227 (2024).
- L. K. Grover and T. Rudolph, Creating superpositions that correspond to efficiently integrable probability distributions, arXiv:quant-ph/0208112.
- S. McArdle, A. Gilyén, and M. Berta, Quantum state preparation without coherent arithmetic, arXiv:2210.14892.
- H. Li, H. Ni, and L. Ying, On efficient quantum block encoding of pseudo-differential operators, Quantum 7, 1031 (2023).
- N. M. Guseynov, A. A. Zhukov, W. V. Pogosov, and A. V. Lebedev, Depth analysis of variational quantum algorithms for the heat equation, Phys. Rev. A 107, 052422 (2023).
- M. Plesch and I. C. V. Brukner, Quantum-state preparation with universal gate decompositions, Phys. Rev. A 83, 032302 (2011).
- V. Bergholm, J. J. Vartiainen, M. Möttönen, and M. M. Salomaa, Quantum circuits with uniformly controlled one-qubit gates, Phys. Rev. A 71, 052330 (2005).
- V. V. Shende, I. L. Markov, and S. S. Bullock, Minimal universal two-qubit controlled-not-based circuits, Phys. Rev. A 69, 062321 (2004).
- Y. Dong, X. Meng, K. B. Whaley, and L. Lin, Efficient phase-factor evaluation in quantum signal processing, Phys. Rev. A 103, 042419 (2021).
- Y. Dong, L. Lin, H. Ni, and J. Wang, Infinite quantum signal processing, Quantum 8, 1558 (2024).
- Uchuang community, pyqsp: python quantum signal processing phase-angle solver (2025), https://github.com/ichuang/pyqsp.