Engineering the development of quantum programs: Application to the Boolean satisfiability problem

被引:9
作者
Alonso, Diego [1 ]
Sanchez, Pedro [1 ]
Sanchez-Rubio, Francisco [1 ]
机构
[1] Univ Politecn Cartagena, Div Syst & Elect Engn DSIE, Cartagena, Spain
关键词
Quantum computing; Model-driven engineering; Boolean satisfiability; MODEL TRANSFORMATION;
D O I
10.1016/j.advengsoft.2022.103216
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
The development of quantum programs is becoming a reality due to the rapid advancement of quantum computing. Over the past few years, a multitude of hardware platforms, algorithms, and programming languages have emerged to support this paradigm. By the very nature of Quantum Mechanics principles, there is an enormous change of philosophy when building quantum programs, which operate in a probabilistic space, unlike the deterministic behaviour shown by classical programming languages. These conceptual differences can be overcome by using techniques and tools of Software Engineering. In this paper, we apply Model-Driven Engineering techniques in a systematic way to ease the generation of quantum programs and we apply it to solve the satisfiability problem, very important in many engineering domains like verification of discrete systems and test of integrated circuits. To that aim, we contribute with a metamodel for representing quantum circuits and a model-to-text transformation to generate working IBM Qiskit code. This model-driven infrastructure is employed to automatically generate quantum programs from SAT equations through a model-to-model transformation that embeds Grover's algorithm. Besides, we provide formulas for calculating the number of required quantum elements from SAT equations, crucial in the current context of limited quantum resources. The interoperability with other tools and the extensibility to target additional quantum platforms is guaranteed thanks to the use of a model-based toolchain. We cover several usage scenarios to validate the approach, providing exemplary SAT equations, the generated Qiskit code and the results of executing this code in IBM Quantum infrastructure.
引用
收藏
页数:13
相关论文
共 45 条
[1]   Quantum Algorithm Implementations for Beginners [J].
Abhijith, J. ;
Adedoyin, Adetokunbo ;
Ambrosiano, John ;
Anisimov, Petr ;
Casper, William ;
Chennupati, Gopinath ;
Coffrin, Carleton ;
Djidjev, Hristo ;
Gunter, David ;
Karra, Satish ;
Lemons, Nathan ;
Lin, Shizeng ;
Malyzhenkov, Alexander ;
Mascarenas, David ;
Mniszewski, Susan ;
Nadiga, Balu ;
O'Malley, Daniel ;
Oyen, Diane ;
Pakin, Scott ;
Prasad, Lakshman ;
Roberts, Randy ;
Romero, Phillip ;
Santhi, Nandakishore ;
Sinitsyn, Nikolai ;
Swart, Pieter J. ;
Wendelberger, James G. ;
Yoon, Boram ;
Zamora, Richard ;
Zhu, Wei ;
Eidenbenz, Stephan ;
Bartschi, Andreas ;
Coles, Patrick J. ;
Vuffray, Marc ;
Lokhov, Andrey Y. .
ACM TRANSACTIONS ON QUANTUM COMPUTING, 2022, 3 (04)
[2]  
Ali Shaukat, 2020, APEQS 2020: Proceedings of the 1st SIGSOFT International Workshop on Architectures and Paradigms for Engineering Quantum Software, P14, DOI 10.1145/3412451.3428499
[3]  
Ambainis A., 2004, SIGACT News, V35, P22, DOI 10.1145/992287.992296
[4]  
[Anonymous], 2021, MANY QISKIT OPEN SOU
[5]  
[Anonymous], QCORE REPOSITORY
[6]  
[Anonymous], 2005, ART COMPUTER PROGRAM, DOI DOI 10.1103/PhysRevLett.93.130502
[7]   Towards an automation of the mutation analysis dedicated to model transformation [J].
Aranega, Vincent ;
Mottu, Jean-Marie ;
Etien, Anne ;
Degueule, Thomas ;
Baudry, Benoit ;
Dekeyser, Jean-Luc .
SOFTWARE TESTING VERIFICATION & RELIABILITY, 2015, 25 (5-7) :653-683
[8]   Model-driven development:: A metamodeling foundation [J].
Atkinson, C ;
Kühne, T .
IEEE SOFTWARE, 2003, 20 (05) :36-+
[9]   ELEMENTARY GATES FOR QUANTUM COMPUTATION [J].
BARENCO, A ;
BENNETT, CH ;
CLEVE, R ;
DIVINCENZO, DP ;
MARGOLUS, N ;
SHOR, P ;
SLEATOR, T ;
SMOLIN, JA ;
WEINFURTER, H .
PHYSICAL REVIEW A, 1995, 52 (05) :3457-3467
[10]   Satisfiability modulo theories [J].
Barrett, Clark ;
Sebastiani, Roberto ;
Seshia, Sanjit A. ;
Tinelli, Cesare .
Frontiers in Artificial Intelligence and Applications, 2009, 185 (01) :825-885