In the rapidly evolving landscape of quantum computing, the challenge isn't just building the hardware—it's finding the right way to "translate" classical problems into a language quantum processors understand. A recent paper by Sheir Yarkoni and colleagues from Volkswagen and LIACS presents a clever translation for one of the most common tasks in data science: time series classification.
TL;DR
The researchers propose a semi-supervised method that treats time series reconstruction as a "set cover" problem, which is then solved using quantum-ready optimization (QUBO). This approach allows for accurate classification using significantly less training data than traditional classical methods, making it a promising candidate for near-term quantum hardware.
What Problem Does This Paper Address?
Time series (TS) data—sequences of data points indexed in time order—are everywhere, from heart rate monitors to traffic sensors. However, analyzing them is notoriously difficult due to the "Curse of Dimensionality." Classical techniques like Dynamic Time Warping (DTW) are powerful but can be computationally expensive or require large amounts of labeled data to be effective.
While quantum computing offers potential speedups, mapping continuous, high-dimensional time series onto discrete qubits is a major hurdle. Most existing quantum clustering methods try to directly translate distance metrics into quantum circuits, which often requires an impractical number of qubits for current "Noisy Intermediate-Scale Quantum" (NISQ) devices.
Methods
The authors introduce a multi-step pipeline that bridges the gap between raw data and quantum optimization:
- Discretization: Raw time series are converted into symbolic strings (e.g., "ABACD") using Symbolic Fourier Approximation (SFA). This reduces dimensionality while preserving essential frequency-based features.
- The "Pulling" Technique: To compare a test sample to the training data, the authors "slide" training strings against the test string. Any matching characters are recorded as subsets.
- Set Cover Formulation: The goal is to find the minimum number of training segments (subsets) needed to "cover" (reconstruct) the test string (the universe).
- QUBO Mapping: The set cover problem—which is NP-hard—is formulated as a Quadratic Unconstrained Binary Optimization (QUBO) problem. This is the "native language" of quantum annealers (like D-Wave) and can also be solved on gate-model processors using the Quantum Approximate Optimization Algorithm (QAOA).
- Classification: Once the quantum optimizer finds the best reconstruction, the test sample is assigned a label based on which training samples contributed the most or largest segments to that reconstruction.
Datasets
The authors evaluated their method on six diverse, publicly available datasets from the UCR Time Series Archive:
- SonyAIBORobotSurface1: Sensor data from robots.
- GunPoint: Motion capture data of hand movements.
- TwoLeadECG & ECG200: Electrocardiogram (heart) readings.
- BeetleFly: Image-based data mapped to 1D series.
- Chinatown: Traffic flow data.
Key Insights and Ideas
- Feature-Centric Qubits: Instead of using qubits to represent every data point, the authors use qubits to represent the selection of a feature. This makes the problem size much more manageable for current hardware.
- Permutation Robustness: Because the set cover formulation doesn't strictly enforce the order of elements, the method is naturally robust to certain types of noise or temporal shifts where the presence of a feature matters more than its exact timestamp.
- Data Efficiency: The method is designed for the "semi-supervised" regime, where you have a very small labeled training set and a large unlabeled test set. It exploits the combinatorial relationships between samples to classify accurately with minimal supervision.
Key Results
The researchers used simulated thermal annealing to solve the QUBOs (which ranged from 200 to over 700 variables) and compared the results to classical benchmarks:
- Competitive Accuracy: The quantum-based method performed comparably to semi-supervised DTW methods, despite the quantum method using "lossy" discretized strings while the classical methods used raw data.
- Outperforming Unsupervised Methods: In almost all cases, the proposed method significantly outperformed standard unsupervised K-means clustering.
- Top Performers: The method was particularly effective on the BeetleFly (0.87 weighted accuracy) and Chinatown (0.86 weighted accuracy) datasets.
- Efficiency: The authors highlight that their method achieves these results using significantly less data than conventional classical approaches.
Limitations and Future Work
The paper identifies a few areas for improvement:
- Encoding Sensitivity: The method struggled with the TwoLeadECG dataset. The authors found that Fourier-based encoding lost critical temporal information for ECGs, though switching to a different encoding (SAX) improved results.
- Scaling: While more efficient than some quantum methods, the QUBO size still grows with the length of the strings and the size of the training set.
- Hardware Execution: This study used classical simulations of quantum annealing. The next logical step is running these problems on physical NISQ hardware.
- Multivariate Data: The current work focuses on univariate (single-stream) data; extending this to multivariate time series is a key goal for future commercial applications.
Summary updated