Testing Multi-Subroutine Quantum Programs: From Unit Testing to Integration Testing

被引:1
|
作者
Long, Peixun [1 ,2 ]
Zhao, Jianjun [3 ]
机构
[1] Chinese Acad Sci, Inst Software, State Key Lab Comp Sci, Beijing, Peoples R China
[2] Univ Chinese Acad Sci, Beijing, Peoples R China
[3] Kyushu Univ, Fac Informat Sci & Elect Engn, Fukuoka, Japan
基金
中国国家自然科学基金;
关键词
Quantum computing; software testing; unit testing; integration testing;
D O I
10.1145/3656339
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Quantum computing has emerged as a promising field with the potential to revolutionize various domains by harnessing the principles of quantum mechanics. As quantum hardware and algorithms continue to advance, developing high-quality quantum software has become crucial. However, testing quantum programs poses unique challenges due to the distinctive characteristics of quantum systems and the complexity of multi-subroutine programs. This article addresses the specific testing requirements of multi-subroutine quantum programs. We begin by investigating critical properties by surveying existing quantum libraries and providing insights into the challenges of testing these programs. Building upon this understanding, we focus on testing criteria and techniques based on the whole testing process perspective, spanning from unit testing to integration testing. We delve into various aspects, including IO analysis, quantum relation checking, structural testing, behavior testing, integration of subroutine pairs, and test case generation. We also introduce novel testing principles and criteria to guide the testing process. We conduct comprehensive testing on typical quantum subroutines, including diverse mutants and randomized inputs, to evaluate our proposed approach. The analysis of failures provides valuable insights into the effectiveness of our testing methodology. Additionally, we present case studies on representative multi-subroutine quantum programs, demonstrating the practical application and effectiveness of our proposed testing principles and criteria.
引用
收藏
页数:61
相关论文
共 50 条
  • [1] Differentiating Integration Testing and Unit Testing
    Brar, Hanmeet Kaur
    Kaur, Puneet Jai
    [J]. 2015 2ND INTERNATIONAL CONFERENCE ON COMPUTING FOR SUSTAINABLE GLOBAL DEVELOPMENT (INDIACOM), 2015, : 796 - 798
  • [2] On Testing Quantum Programs
    Miranskyy, Andriy
    Zhang, Lei
    [J]. 2019 IEEE/ACM 41ST INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING: NEW IDEAS AND EMERGING RESULTS (ICSE-NIER 2019), 2019, : 57 - 60
  • [3] Unit and integration testing strategies for C programs using mutation
    Vincenzi, AMR
    Maldonado, JC
    Barbosa, EF
    Delamaro, ME
    [J]. SOFTWARE TESTING VERIFICATION & RELIABILITY, 2001, 11 (04): : 249 - 268
  • [4] Profiting from Unit Tests For Integration Testing
    Holling, Dominik
    Hofbauer, Andreas
    Pretschner, Alexander
    Gemmar, Matthias
    [J]. 2016 9TH IEEE INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION (ICST), 2016, : 353 - 363
  • [5] ON TESTING A SUBROUTINE FOR NUMERICAL-INTEGRATION OF ORDINARY DIFFERENTIAL EQUATIONS
    KROGH, FT
    [J]. JOURNAL OF THE ACM, 1973, 20 (04) : 545 - 562
  • [6] Incremental integration testing of concurrent programs
    Koppol, PV
    Carver, RH
    Tai, KC
    [J]. IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2002, 28 (06) : 607 - 623
  • [7] Application of Combinatorial Testing to Quantum Programs
    Wang, Xinyi
    Arcaini, Paolo
    Yue, Tao
    Ali, Shaukat
    [J]. 2021 IEEE 21ST INTERNATIONAL CONFERENCE ON SOFTWARE QUALITY, RELIABILITY AND SECURITY (QRS 2021), 2021, : 179 - 188
  • [8] Metamorphic Testing of Oracle Quantum Programs
    Abreu, Rui
    Fernandes, Joao Paulo
    Liana, Luis
    Tavares, Guilherme
    [J]. 3RD INTERNATIONAL WORKSHOP ON QUANTUM SOFTWARE ENGINEERING (Q-SE 2022), 2022, : 16 - 23
  • [9] Evaluating N-Selective Mutation for C programs:: Unit and integration testing
    Maldonado, JC
    Barbosa, EF
    Vincenzi, AMR
    Delamaro, ME
    [J]. MUTATION TESTING FOR THE NEW CENTURY, 2001, 24 : 22 - 33
  • [10] Integration testing and metamorphic testing
    Le Traon, Yves
    Xie, Tao
    [J]. Software Testing Verification and Reliability, 2022, 32 (04)