arXiv:2611.09869cs.SENov 2026

Manuscript Offprint

arXiv:2611.09869

An Empirical Study on Clustering-based Quantum Approximate Optimization Algorithm for Regression Test Case Selection

Antonio Trovato, Martin Beseda, Dario Di Nucci

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Antonio Trovato · Martin Beseda · Dario Di Nucci

Received: date / Accepted: date

Abstract Regression testing assesses whether software components that have already been developed and tested continue to work correctly after modifications. Ideally, regression testing re-executes the entire test suite after each modification, but this is infeasible in real-world scenarios because of the computational burden; therefore, optimized approaches, such as Test Case Selection, have been developed. The state of the art in regression testing optimization includes both classical approaches, such as ADDITIONAL GREEDY and DIV-GA, and quantum approaches, such as SELECTQA, BOOTQA, and IGDEC-QAOA. However, while the former incur high computational costs, the latter are constrained by the physical limitations of currently available quantum machines.

This paper extends the evaluation of QAOA-TCS, our quantum approach for the test case selection problem. We thoroughly evaluate its performance, compare it with state-of-the-art classical and quantum approaches, and assess its robustness to quantum noise.

The results show that QAOA-TCS outperforms state-of-the-art multi-objective approaches in most cases and maintains stable performance even under high noise levels. In the single-objective formulation, QAOA-based methods perform comparably. In terms of efficiency, our previous method based on quantum annealing, namely SELECTQA, is the most efficient for large problems in the multi-objective formulation, whereas QAOA-TCS offers the best trade-off between effectiveness and efficiency in the single-objective

Antonio Trovato University of Salerno, Fisciano (SA), Italy E-mail: atrovato@unisa.it

Martin Beseda University of L'Aquila, L'Aquila (AQ), Italy E-mail: martin.beseda@univaq.it

Dario Di Nucci University of Salerno, Fisciano (SA), Italy E-mail: ddinucci@unisa.it formulation when run on realistic noisy simulators. However, such analysis is constrained by the different computational environments used to run the algorithms.

Keywords Regression Testing, Regression Test Case Selection, Quantum Computing, Search-based Software Engineering

1 Introduction

In modern software development, software systems undergo continuous modifications and enhancements, particularly since the advent of Agile methodologies (Annosi et al., 2024; Meier and Kock, 2023). In this landscape, each modification could interfere with the proper behavior of already developed system components; hence, there is a strong need to continuously monitor software quality. To address this problem, regression testing (Yoo and Harman, 2012) verifies, after each developer modification, whether previously implemented and tested components still function as expected, and plays a key role. The ideal regression testing approach, also called retest-all, re-executes the entire regression test suite after each software modification; however, in real-world scenarios, it quickly becomes impractical (Rothermel and Harrold, 1998; Perrouin et al., 2012). Therefore, many Regression Test Suite Optimization (RTSO) methods have been proposed to drastically reduce the costs of regression testing, without losing its effectiveness in finding defects, either by reducing the size of the starting test suite according to specific strategies, or by finding an optimal execution order following some prioritization criteria (Yoo and Harman, 2007, 2010; Yoo et al., 2011; Wang et al., 2013; Panichella et al., 2014; Arrieta et al., 2019; Xue and Li, 2020). Above all, Test Case Selection (TCS) (Engström et al., 2010; Yoo and Harman, 2012) is one of the most adopted approaches, focusing on identifying a minimal subset of the initial regression suite to minimize overall regression testing cost while preserving effectiveness, as often measured by fault and statement coverage.

Although state-of-the-art classical strategies, such as ADDITIONAL GREEDY (Yoo and Harman, 2007) and DIV-GA (Panichella et al., 2014), have proven effective for solving TCS, their practical use is limited by their computational burden. Therefore, research has focused on alternatives that leverage the potential of quantum computing, such as superposition and entanglement (Hoare and Milner, 2005; Knight, 2018), to overcome the limitations of classical strategies in execution costs without sacrificing solution quality. Currently, such proposed strategies are: SELECTQA (Trovato et al., 2024), BOOTQA (Wang et al., 2024b), and IGDEC-QAOA (Wang et al., 2024a). While SELECTQA and BOOTQA address the TCS problem relying on Quantum Annealing (QA) (Kadowaki and Nishimori, 1998; Suzuki, 2009), IGDEC-QAOA relies on the Quantum Approximate Optimization Algorithm (QAOA) (Farhi et al., 2014; Moll et al., 2018). The major limitation of the aforementioned approaches lies in their decomposition strategy; BOOTQA totally commits to random sampling to produce the sub-suites to optimize, resulting in unstable results; IGDEC-QAOA relies on an impact-guided strategy, which does not take into account dependencies among the test cases; finally, SELECTQA does not rely on a tailored decomposition strategy at all, thus worsening its efficiency.

This paper extends Trovato et al. (2025), where we proposed QUANTUM APPROXIMATE OPTIMIZATION ALGORITHM - TEST CASE SELECTION (QAOA-TCS), a clustering-based QAOA approach for TCS. The novelty of the method was twofold: (i) circumventing the limitations of currently available quantum computers by leveraging a clustering-based decomposition strategy; (ii) applying QAOA to solve the multi-objective TCS problem.

Although our previous study showed that QAOA-TCS outperformed state-of-the-art methods in effectiveness and efficiency, it had several limitations. First, we did not consider the effect of quantum noise in the experiments, since all QAOA-TCS executions were performed on an ideal simulator. Although this choice yielded encouraging preliminary results, it was not sufficient to assess the QAOA-based approach's performance in real environments. Second, although the study compared the proposed approach with well-established state-of-the-art strategies in the literature, it did not consider more recent solutions based on quantum algorithms. Therefore, this paper provides a more rigorous and comprehensive empirical analysis of QAOA-TCS compared with state-of-the-art TCS strategies. Specifically, we have:

  • Compared QAOA-TCS with state-of-the-art single-objective quantum approaches, which were not included in the original work on QAOA-TCS

  • Executed both multi- and single-objective versions of our approach over five different noisy backend simulators, namely SAMPLING-NOISE simulator, FAKE BRISBANE WITH SAMPLING NOISE simulator, and 1%, 2%, and 5% DEPOLARIZING-NOISE MODELS with sampling noise simulators, to exhaustively evaluate the robustness of QAOA-TCS in noisy quantum environments.

  • Compared the performance of both the multi-objective and single-objective versions of QAOA-TCS over each noisy environment with the aforementioned classical and quantum state-of-the-art approaches.

  • Developed an open and reproducible online appendix (Appendix, 2026).

The empirical results show that QAOA-TCS outperforms state-of-the-art multi-objective approaches in most cases and maintains stable performance even under high noise levels. In the single-objective formulation, different quantum-based methods perform comparably. Our previous quantum annealing-based method, namely SELECTQA, is the most efficient for large problems in the multi-objective formulation. In contrast, QAOA-TCS offers the best trade-off between effectiveness and efficiency in the single-objective formulation when executed on realistic noisy environments. However, such analysis could be hindered by the different computational environments and simulators used to run the algorithms.

Paper Structure. Section 2 introduces quantum computing and its noise, details the TCS problem we aim to tackle, and describes the baseline algorithms currently available to solve it, together with their main limitations motivating the need for this study. Section 3 introduces how QAOA-TCS operates, the mathematical formulations it adopts to represent the TCS problem, and the clustering algorithm used by QAOA-TCS to decompose it. Section 4 describes the design of the empirical evaluation that compares QAOA-TCS with state-of-the-art algorithms, while its threats to validity are provided in Section 6. Finally, Section 7 summarizes the contributions of this work and envisions future work.

References (28)