Assessing Quantum Extreme Learning Machines for Software Testing in Practice

Asmar Muqeet, Hassan Sartaj, Aitor Arrieta, Shaukat Ali, Paolo Arcaini, Maite Arratibel, Julie Marie Gjøby, Narasimha Raghavan Veeraragavan, Jan F. NygårdarXiv 2024

Quantum Machine Learning (QML) is often hailed as the next frontier for solving complex engineering problems. Among the various architectures, Quantum Extreme Learning Machines (QELMs) have recently gained traction for their efficiency and ability to map data into high-dimensional quantum states. However, most research to date has relied on "ideal" quantum simulators—pristine environments that don't exist in the real world.

A new paper, "Assessing Quantum Extreme Learning Machines for Software Testing in Practice," provides a much-needed reality check. By testing QELMs against real-world industrial software testing datasets under realistic noise conditions, the authors reveal that the transition from theory to practice is fraught with "noisy" obstacles.

TL;DR

While QELMs show theoretical promise for software testing, they are highly sensitive to quantum noise, suffering performance drops of up to 250% in regression tasks. While error mitigation techniques can help, no single method consistently manages uncertainty, suggesting that QELMs require tailored noise-resilience strategies before they are ready for industrial deployment.

What Problem Does This Paper Address?

Software testing activities like test generation and oracle estimation are increasingly supported by machine learning. QELMs are attractive here because they don't require the expensive iterative training of traditional neural networks; instead, they use a fixed quantum "reservoir" to extract features, followed by a simple classical linear model.

The gap, however, lies in the NISQ (Noisy Intermediate-Scale Quantum) era. Current quantum hardware is susceptible to environmental interference, decoherence, and gate errors. Most QELM studies ignore this, using ideal simulators. This paper investigates how this inevitable quantum noise impacts the accuracy and reliability (uncertainty) of QELMs when applied to three distinct industrial software testing case studies.

Methods

The researchers evaluated QELMs by comparing their performance on ideal simulators against simulations using noise models from three real IBM quantum computers: Sherbrooke, Torino, and Fez.

The QELM architecture consists of three main stages:

  1. Encoder Circuit: Converts classical data into quantum states.
  2. Reservoir (Random Circuit): Performs feature extraction in a high-dimensional Hilbert space.
  3. Measurement: Collapses the quantum state into a classical feature vector used to train a linear model.
Figure 3: Comparison between classical extreme learning machine and quantum extreme learning machine. The semantically equivalent components in both algorithms are highlighted using the same colors.

To combat noise, the authors integrated two error mitigation techniques:

  • Zero-Noise Extrapolation (ZNE): A non-ML approach that scales noise to estimate a zero-noise limit.
  • Q-LEAR: A state-of-the-art ML-based error mitigation method.

Finally, they employed Uncertainty Quantification (UQ) using bootstrapping and ensemble methods to determine if a noisy model's predictions could actually be trusted, even if they appeared accurate on average.

Datasets

The study utilized three real-world industrial datasets:

  1. Orona Elevator: A regression task predicting the Average Waiting Time (AWT) for industrial elevators to support regression testing.
  2. Karie IoT: A classification task for a medical medicine dispenser, used to create digital twins for automated testing.
  3. CaReSS: A classification task from the Norwegian Cancer Registry used to filter and prioritize test cases to reduce costs.

Key Insights and Ideas

  • The "Noise Adaptation" Effect: Interestingly, if noise is present during both the training and testing phases, the model performs better than if it were trained on ideal data and tested on noisy data. The model essentially "learns" to navigate the noise, though it still falls short of ideal performance.
  • The Saturation Effect: As the number of qubits increases, the model doesn't necessarily get smarter; it often just gets noisier. The authors observed a saturation point where accumulated noise overwhelms useful information, causing the model's predictions to become increasingly random and unreliable.
  • Mitigation is Context-Dependent: There is no "silver bullet" for quantum noise. ZNE proved more effective for regression tasks and smaller qubit counts, while the ML-based Q-LEAR excelled in classification tasks, bringing performance within 3% of the ideal case in some scenarios.
  • Accuracy $\neq$ Reliability: A model might maintain decent accuracy but have massive uncertainty. Under noise, QELMs often produced "confident but wrong" predictions, highlighting why UQ is critical for safety-sensitive applications like medical device testing.
Figure 2: Two-qubit entanglement quantum circuit: ideal output and noisy output.

Key Results

  • Regression Performance: In the Orona case study, error increased by over 250% when noise was introduced only at test time. Even with noise-aware training, the error remained 50% higher than the ideal baseline.
  • Classification Performance: Accuracy dropped by roughly 50% across the Karie and CaReSS datasets under unmitigated noise.
  • Mitigation Success: Using Q-LEAR for classification tasks reduced the performance gap to just 3% compared to the ideal simulation. However, for regression, ZNE was the superior choice, though it still struggled as qubit counts scaled.

Limitations and Future Work

The primary limitation is scalability. Currently, QELMs are only practical for small-scale problems (1-8 features) because ideal simulators become computationally expensive and real hardware becomes too noisy as qubit counts rise. Furthermore, error mitigation adds significant overhead; ZNE, for instance, triples the computational cost per prediction.

The authors suggest that future work should focus on QELM-tailored error mitigation and advanced encoding methods that compress more information into fewer qubits, potentially bypassing the noise-heavy requirements of larger circuits.

Summary updated

BibTeX
@misc{muqeet2024assessing,
  author = {Asmar Muqeet and Hassan Sartaj and Aitor Arrieta and Shaukat Ali and Paolo Arcaini and Maite Arratibel and Julie Marie Gjøby and Narasimha Raghavan Veeraragavan and Jan F. Nygård},
  title = {{Assessing Quantum Extreme Learning Machines for Software Testing in Practice}},
  year = {2024},
  eprint = {2410.15494},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.15494},
}
Figure