Streaming IoT Data and the Quantum Edge: A Classic/Quantum Machine Learning Use Case

Sabrina Herbst, Vincenzo De Maio, Ivona Brandic · DOI

TL;DR

As classical computing hits the limits of Moore’s Law, researchers are looking to Quantum Machine Learning (QML) to handle the deluge of IoT data. This paper proposes the "Quantum Edge"—a hybrid architecture that uses Edge computing to bridge the gap between classical sensors and quantum processors, handling the heavy lifting of data encoding and hyperparameter tuning to enable near real-time analytics.

What Problem Does This Paper Address?

We have entered the "Post-Moore era," where traditional High-Performance Computing (HPC) facilities struggle to scale with the massive streams of data generated by the Internet of Things (IoT). While QML offers theoretical speedups and better space efficiency, it faces three major "real-world" hurdles:

  1. Data Encoding: Translating classical bits into quantum states is computationally expensive.
  2. Hyperparameter Sensitivity: QML models are notoriously finicky; the wrong choice of optimizer or circuit structure can ruin performance.
  3. Hardware Integration: Current quantum computers (NISQ devices) are noisy and reside in specialized labs, making them difficult to integrate into a distributed "computing continuum."

The authors argue that sending raw IoT data directly to a quantum cloud is inefficient. Instead, they propose using the Edge as an intelligent intermediary.

Methods

The authors introduce the concept of Quantum Edge Analytics. In this framework, Edge nodes (like Raspberry Pis or specialized accelerators) sit between IoT sources and Quantum hardware.

Fig. 2: The Quantum Edge Analytics.

Key responsibilities offloaded to the Edge include:

  • Pre-processing: Encoding streaming data into quantum feature maps and transpiling circuits for specific quantum backends.
  • Optimization: Running classical optimizers to update the parameters of Variational Quantum Algorithms (VQAs).
  • Post-processing: Applying error mitigation to the noisy output of quantum executions.

To validate this, the authors focused on Variational Quantum Regression (VQR). They used a hybrid loop where a classical optimizer iteratively tunes a Parametrized Quantum Circuit (PQC) to minimize a cost function.

Fig. 1: Variational Quantum Algorithms.

Datasets

The study utilized the Seoul Bike Sharing Demand Dataset.

  • Characteristics: 8,760 instances with 13 attributes (temperature, humidity, wind speed, etc.).
  • Preprocessing: The authors used Principal Component Analysis (PCA) to reduce the 13 features down to 7, allowing the experiments to fit within the constraints of free 7-qubit IBM quantum systems.
  • Scope: Training was limited to 400 data points to maintain reasonable simulation runtimes.

Key Insights and Ideas

  • The Edge as a Translator: Data encoding is the biggest bottleneck. The authors suggest that for the Quantum Edge to be viable, we need to move beyond standard CPUs at the edge and utilize GPUs, FPGAs, or ASICs to handle the complex algebraic operations required for quantum state preparation.
  • Feature Map Dominance: The choice of how data is mapped to qubits (the Feature Map) significantly impacts accuracy. In their tests, the ZFeatureMap consistently outperformed the more complex ZZFeatureMap.
  • Optimizer Trade-offs: While the SPSA (Simultaneous Perturbation Stochastic Approximation) optimizer found the most accurate models, COBYLA was faster. This suggests that for "urgent analytics" with strict deadlines, researchers might need to sacrifice some accuracy for speed.
  • No "One-Size-Fits-All": Hyperparameters are highly dependent on the specific quantum hardware and the input problem, making automatic tuning at the Edge a necessity rather than a luxury.

Key Results

The authors performed an exhaustive search of 672 configurations. The best-performing setup utilized the EfficientSU2 ansatz with an SPSA optimizer and circular entanglement.

Extracted table from page 8 showing top configurations

Quantitatively, the top configuration achieved a Mean Square Error (MSE) of 0.0209 and a Mean Absolute Error (MAE) of 0.1074. However, the training time remained high (over 6 hours for a small sample), underscoring the need for efficient offloading strategies.

Fig. 3: MSE of Training w.r.t. Feature Map

As shown in Figure 3, the ZFeatureMap (left) provided a much lower and more stable MSE across different optimizers compared to the ZZFeatureMap (right).

Limitations and Future Work

  • Simulation vs. Reality: These results were obtained using "perfect" quantum simulators (Qiskit Aer). Real-world NISQ hardware introduces noise that will likely degrade these performance metrics.
  • Hardware Constraints: Typical edge devices like a Raspberry Pi are currently too weak to run complex neural-network-based error mitigation.
  • Future Directions: The authors plan to test these models on actual IBM quantum hardware and investigate more diverse IoT scenarios to build a more robust "Quantum Edge" ecosystem.

Summary updated

BibTeX
@inproceedings{herbst2023streaming,
  author = {Sabrina Herbst and Vincenzo De Maio and Ivona Brandic},
  title = {{Streaming IoT Data and the Quantum Edge: A Classic/Quantum Machine Learning Use Case}},
  booktitle = {Euro-Par Workshops},
  year = {2023},
  url = {https://openreview.net/forum?id=azpDcfCVuZ},
}
Figure