Nothing Special   »   [go: up one dir, main page]

skip to main content
10.1007/978-3-030-88106-1_2guideproceedingsArticle/Chapter ViewAbstractPublication PagesConference Proceedingsacm-pubtype
Article

Generating Failing Test Suites for Quantum Programs With Search

Published: 11 October 2021 Publication History

Abstract

Testing quantum programs requires systematic, automated, and intelligent methods due to their inherent complexity, such as their superposition and entanglement. To this end, we present a search-based approach, called Quantum Search-Based Testing (QuSBT), for automatically generating test suites of a given size depending on available testing budget, with the aim of maximizing the number of failing test cases in the test suite. QuSBT consists of definitions of the problem encoding, failure types, test assessment with statistical tests, fitness function, and test case generation with a Genetic Algorithm (GA). To empirically evaluate QuSBT, we compared it with Random Search (RS) by testing six quantum programs. We assessed the effectiveness of QuSBT and RS with 30 carefully designed faulty versions of the six quantum programs. Results show that QuSBT provides a viable solution for testing quantum programs, and achieved a significant improvement over RS in 87% of the faulty programs, and no significant difference in the rest of 13% of the faulty programs.

References

[1]
Agresti, A.: An Introduction to Categorical Data Analysis, 3 edn. Wiley-Blackwell (2019)
[2]
Ali, S., Arcaini, P., Wang, X., Yue, T.: Assessing the effectiveness of input and output coverage criteria for testing quantum programs. In: 2021 14th IEEE Conference on Software Testing, Verification and Validation (ICST), pp. 13–23 (2021).
[3]
Arcuri, A., Briand, L.: A practical guide for using statistical tests to assess randomized algorithms in software engineering. In: Proceedings of the 33rd International Conference on Software Engineering, ICSE 2011, pp. 1–10. ACM, New York (2011)
[4]
Arcuri A and Fraser G Parameter tuning or default values? An empirical investigation in search-based software engineering Empir. Softw. Eng. 2013 18 594-623
[5]
Benítez-Hidalgo A, Nebro AJ, García-Nieto J, Oregi I, and Del Ser J jMetalPy: a Python framework for multi-objective optimization with metaheuristics Swarm Evol. Comput. 2019 51 100598
[6]
Gimeno-Segovia M, Harrigan N, and Johnston E Programming Quantum Computers: Essential Algorithms and Code Samples 2019 Newton O’Reilly Media, Inc.
[7]
Honarvar, S., Mousavi, M.R., Nagarajan, R.: Property-based testing of quantum programs in Q#. In: Proceedings of the IEEE/ACM 42nd International Conference on Software Engineering Workshops, ICSEW 2020, pp. 430–435. Association for Computing Machinery, New York (2020)
[8]
Huang, Y., Martonosi, M.: QDB: from quantum algorithms towards correct quantum programs. In: 9th Workshop on Evaluation and Usability of Programming Languages and Tools (PLATEAU 2018). OpenAccess Series in Informatics (OASIcs), vol. 67, pp. 4:1–4:14. Schloss Dagstuhl-Leibniz-Zentrum fuer Informatik, Dagstuhl (2019)
[9]
Li, G., Zhou, L., Yu, N., Ding, Y., Ying, M., Xie, Y.: Projection-based runtime assertions for testing and debugging quantum programs. Proc. ACM Program. Lang. 4(OOPSLA), 1–29 (2020)
[10]
Liu, J., Byrd, G.T., Zhou, H.: Quantum circuits for dynamic runtime assertions in quantum computation. In: Proceedings of the Twenty-Fifth International Conference on Architectural Support for Programming Languages and Operating Systems, pp. 1017–1030 (2020)
[11]
Miranskyy, A., Zhang, L.: On testing quantum programs. In: 2019 IEEE/ACM 41st International Conference on Software Engineering: New Ideas and Emerging Results (ICSE-NIER), pp. 57–60 (2019)
[12]
Wang, J., Ma, F., Jiang, Y.: Poster: fuzz testing of quantum program. In: 2021 14th IEEE Conference on Software Testing, Verification and Validation (ICST), pp. 466–469 (2021).
[13]
Wille, R., Van Meter, R., Naveh, Y.: IBM’s Qiskit tool chain: working with and developing for real quantum computers. In: 2019 Design, Automation Test in Europe Conference Exhibition (DATE), pp. 1234–1240 (2019)

Cited By

View all
  • (2024)Testing Multi-Subroutine Quantum Programs: From Unit Testing to Integration TestingACM Transactions on Software Engineering and Methodology10.1145/365633933:6(1-61)Online publication date: 27-Jun-2024
  • (2024)Quantum Software Testing 101Proceedings of the 2024 IEEE/ACM 46th International Conference on Software Engineering: Companion Proceedings10.1145/3639478.3643059(426-427)Online publication date: 14-Apr-2024
  • (2024)Agile meets quantum: a novel genetic algorithm model for predicting the success of quantum software development projectAutomated Software Engineering10.1007/s10515-024-00434-z31:1Online publication date: 4-Apr-2024
  • Show More Cited By

Recommendations

Comments

Please enable JavaScript to view thecomments powered by Disqus.

Information & Contributors

Information

Published In

cover image Guide Proceedings
Search-Based Software Engineering: 13th International Symposium, SSBSE 2021, Bari, Italy, October 11–12, 2021, Proceedings
Oct 2021
175 pages
ISBN:978-3-030-88105-4
DOI:10.1007/978-3-030-88106-1
  • Editors:
  • Una-May O'Reilly,
  • Xavier Devroey

Publisher

Springer-Verlag

Berlin, Heidelberg

Publication History

Published: 11 October 2021

Author Tags

  1. Quantum programs
  2. Software testing
  3. Genetic algorithms

Qualifiers

  • Article

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)0
  • Downloads (Last 6 weeks)0
Reflects downloads up to 26 Sep 2024

Other Metrics

Citations

Cited By

View all
  • (2024)Testing Multi-Subroutine Quantum Programs: From Unit Testing to Integration TestingACM Transactions on Software Engineering and Methodology10.1145/365633933:6(1-61)Online publication date: 27-Jun-2024
  • (2024)Quantum Software Testing 101Proceedings of the 2024 IEEE/ACM 46th International Conference on Software Engineering: Companion Proceedings10.1145/3639478.3643059(426-427)Online publication date: 14-Apr-2024
  • (2024)Agile meets quantum: a novel genetic algorithm model for predicting the success of quantum software development projectAutomated Software Engineering10.1007/s10515-024-00434-z31:1Online publication date: 4-Apr-2024
  • (2022)Metamorphic testing of oracle quantum programsProceedings of the 3rd International Workshop on Quantum Software Engineering10.1145/3528230.3529189(16-23)Online publication date: 18-May-2022
  • (2022)Investigating quantum cause-effect graphsProceedings of the 3rd International Workshop on Quantum Software Engineering10.1145/3528230.3529186(8-15)Online publication date: 18-May-2022
  • (2022)A multi-lingual benchmark for property-based testing of quantum programsProceedings of the 3rd International Workshop on Quantum Software Engineering10.1145/3528230.3528395(1-7)Online publication date: 18-May-2022
  • (2022)Generating failing test suites for quantum programs with search (hot off the press track at GECCO 2022)Proceedings of the Genetic and Evolutionary Computation Conference Companion10.1145/3520304.3534067(47-48)Online publication date: 9-Jul-2022
  • (2022)When software engineering meets quantum computingCommunications of the ACM10.1145/351234065:4(84-88)Online publication date: 19-Mar-2022
  • (2022)Mutation-based test generation for quantum programs with multi-objective searchProceedings of the Genetic and Evolutionary Computation Conference10.1145/3512290.3528869(1345-1353)Online publication date: 8-Jul-2022
  • (2022)QuSBTProceedings of the ACM/IEEE 44th International Conference on Software Engineering: Companion Proceedings10.1145/3510454.3516839(173-177)Online publication date: 21-May-2022

View Options

View options

Get Access

Login options

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media