An Abstraction Hierarchy Toward Productive Quantum Programming
Abstract: Experience from seven decades of classical computing suggests that a sustainable computer industry depends on a community of software engineers writing programs to address a wide variety of specific end-user needs, achieving both performance and utility in the process. Quantum computing is an emerging technology, and we do not yet have the insight to understand what quantum software tools and practices will best support researchers, software engineers, or applications specialists. Developers for today's quantum computers are grappling with the low-level details of the hardware, and progress towards scalable devices does not yet suggest what higher-level abstractions may look like. In this paper, we analyze and reframe the current state of the quantum software stack using the language of programming models. We propose an abstraction hierarchy to support quantum software engineering and discuss the consequences of overlaps across the programming, execution, and hardware models found in current technologies. We exercise this hierarchy for solving the eigenvalue estimation problem in two ways (a variational algorithm with error mitigation, and phase estimation with error correction) and pinpoint key differences in these approaches in terms of these layered models and their overlaps. While our work points to concrete conceptual challenges and gaps in quantum programming and proposes some specific steps forward, our primary thesis is that progress hinges on thinking about the abstraction hierarchy holistically, and not just about its components.
- Forbes, “Google’s top quantum scientist explains in detail why he resigned,” 2020, last accessed 22 April 2024. [Online]. Available: https://www.forbes.com/sites/moorinsights/2020/04/30/googles-top-quantum-scientist-explains-in-detail-why-he-resigned/?sh=34760dc36983
- W. Visser, “More or less following a plan during design: opportunistic deviations in specification,” International journal of man-machine studies, vol. 33, no. 3, pp. 247–278, 1990.
- L. G. Valiant, “A bridging model for parallel computation,” Communications of the ACM, vol. 33, no. 8, pp. 103–111, 1990.
- B. R. de Supinski, T. R. Scogland, A. Duran, M. Klemm, S. M. Bellido, S. L. Olivier, C. Terboven, and T. G. Mattson, “The ongoing evolution of OpenMP,” Proceedings of the IEEE, vol. 106, no. 11, pp. 2004–2019, 2018.
- W. D. Gropp and R. Thakur, “Message passing interface,” 2015.
- S. R. Buss, “An introduction to proof theory,” Handbook of proof theory, vol. 137, pp. 1–78, 1998.
- E. Younis, C. C. Iancu, W. Lavrijsen, M. Davis, and E. Smith, “Berkeley quantum synthesis toolkit (bqskit) v1,” Lawrence Berkeley National Laboratory (LBNL), Berkeley, CA (United States), Tech. Rep., 2021.
- C. Campbell, F. T. Chong, D. Dahl, P. Frederick, P. Goiporia, P. Gokhale, B. Hall, S. Issa, E. Jones, S. Lee et al., “Superstaq: Deep optimization of quantum programs,” in 2023 IEEE International Conference on Quantum Computing and Engineering (QCE), vol. 1. IEEE, 2023, pp. 1020–1032.
- H. Kaphengst, “Eine abstrakte programmgesteuerte rechenmaschine,” Mathematical Logic Quarterly, vol. 5, no. 14-24, pp. 366–379, 1959.
- C. C. Elgot and A. Robinson, “Random-access stored-program machines, an approach to programming languages,” Journal of the ACM (JACM), vol. 11, no. 4, pp. 365–399, 1964.
- Q. Wang and M. Ying, “Quantum random access stored-program machines,” Journal of Computer and System Sciences, vol. 131, pp. 13–63, 2023.
- P. Fu, K. Kishida, and P. Selinger, “Linear dependent type theory for quantum programming languages,” in Proceedings of the 35th Annual ACM/IEEE Symposium on Logic in Computer Science, 2020, pp. 440–453.
- A. S. Green, P. L. Lumsdaine, N. J. Ross, P. Selinger, and B. Valiron, “Quipper: a scalable quantum programming language,” in Proceedings of the 34th ACM SIGPLAN conference on Programming language design and implementation, 2013, pp. 333–342.
- B. Bichsel, M. Baader, T. Gehr, and M. Vechev, “Silq: A high-level quantum language with safe uncomputation and intuitive semantics,” in Proceedings of the 41st ACM SIGPLAN Conference on Programming Language Design and Implementation, 2020, pp. 286–300.
- C. M. McNally, “Practical modern quantum programming,” Ph.D. dissertation, Massachusetts Institute of Technology, 2021.
- R. Seidel, S. Bock, N. Tcholtchev, and M. Hauswirth, “Qrisp: A framework for compilable high-level programming of gate-based quantum computers,” PlanQC-Programming Languages for Quantum Computing, 2022.
- T. Varga, Y. Aragonés-Soria, and M. Oriol, “Quantum types: going beyond qubits and quantum gates,” arXiv preprint arXiv:2401.15073, 2024.
- A. Peruzzo, J. McClean, P. Shadbolt, M.-H. Yung, X.-Q. Zhou, P. J. Love, A. Aspuru-Guzik, and J. L. O’Brien, “A variational eigenvalue solver on a photonic quantum processor,” Nature Communications, vol. 5, no. 1, Jul. 2014. [Online]. Available: http://dx.doi.org/10.1038/ncomms5213
- Z. Liang, J. Cheng, H. Ren, H. Wang, F. Hua, Z. Song, Y. Ding, F. Chong, S. Han, X. Qian, and Y. Shi, “Napa: Intermediate-level variational native-pulse ansatz for variational quantum algorithms,” 2024.
- M. K. Vijayan, A. Paler, J. Gavriel, C. R. Myers, P. P. Rohde, and S. J. Devitt, “Compilation of algorithm-specific graph states for quantum circuits,” Quantum Science and Technology, vol. 9, no. 2, p. 025005, feb 2024. [Online]. Available: https://dx.doi.org/10.1088/2058-9565/ad1f39
- D. Litinski and N. Nickerson, “Active volume: An architecture for efficient fault-tolerant quantum computers with limited non-local connections,” 2022.
- S. Núñez-Corrales, M. Frenkel, and B. Abreu, “quapl: Modeling quantum computation in an array programming language,” in 2023 IEEE International Conference on Quantum Computing and Engineering (QCE), vol. 1. IEEE, 2023, pp. 1001–1012.
- J. Zhao, “Quantum software engineering: Landscapes and horizons,” arXiv preprint arXiv:2007.07047, 2020.
- M. Piattini and J. M. Murillo, “Quantum software engineering landscape and challenges,” in Quantum Software Engineering. Springer, 2022, pp. 25–38.
- J. M. Murillo, J. Garcia-Alonso, E. Moguel, J. Barzen, F. Leymann, S. Ali, T. Yue, P. Arcaini, R. Pérez, I. G. R. de Guzmán et al., “Challenges of quantum software engineering for the next decade: The road ahead,” arXiv preprint arXiv:2404.06825, 2024.
Paper Prompts
Sign up for free to create and run prompts on this paper using GPT-5.
Top Community Prompts
Collections
Sign up for free to add this paper to one or more collections.