Abstract
Quantum Convolutional Neural Networks (QCNNs) are promising candidates for quantum machine learning due to their resistance to barren plateaus. However, their standard architecture is constrained to input sizes that are powers of two. This paper addresses the limitations of existing workarounds, such as classical data padding and skip pooling, by introducing a "single-ancilla qubit padding" technique. This method reuses a single ancillary qubit across layers to handle arbitrary data dimensions, maintaining logarithmic circuit depth and significantly improving noise robustness on Noisy Intermediate-Scale Quantum (NISQ) devices.
Introduction
Quantum Convolutional Neural Networks (QCNNs) leverage principles from classical CNNs—local feature extraction and dimensionality reduction—within a quantum framework. A significant advantage of QCNNs is their ability to avoid "barren plateaus," a common training difficulty in variational quantum circuits. Despite their potential, QCNNs face a structural constraint: they are naturally designed for input sizes that are powers of two ($2^n$). This requirement stems from the pooling layers, which typically halve the number of qubits at each step.
Real-world datasets, such as the 30-feature Breast Cancer dataset or PCA-reduced MNIST images, rarely align with these power-of-two constraints. When the number of qubits becomes odd during pooling, the standard hierarchical structure breaks down, necessitating inefficient workarounds.
Proposed Methodology: Single-Ancilla Qubit Padding
To address the challenges of arbitrary data dimensions, the authors propose two architectural improvements over standard baselines:
- Layer-wise Qubit Padding: Introduces a new ancillary (helper) qubit at every layer where the qubit count is odd, pairing it with the "leftover" qubit for convolution and pooling.
- Single-ancilla Qubit Padding: The primary contribution of this work, which reuses a single ancillary qubit throughout the entire circuit. Instead of adding new qubits for every odd layer, the same ancilla is recycled. This maintains a logarithmic circuit depth $O(\log n)$ while keeping the total qubit count low.
Experimental Evaluation
The proposed architectures were benchmarked using the MNIST handwritten digit dataset and the Breast Cancer dataset. For MNIST, images were reduced to 30 features using Principal Component Analysis (PCA) to fit current simulation capabilities. The researchers compared their methods against "naive" baselines, including Zero-data padding, Periodic-data padding, and Skip pooling.
To ensure robustness, the study included realistic noise simulations based on the IBM Jakarta device. This allowed the researchers to evaluate how different architectures perform under gate errors and decoherence.
Key Results and Insights
The single-ancilla method demonstrated a superior balance between resource efficiency and performance:
- Resource Efficiency: For a 5-qubit input (30 features), classical padding requires 8 total qubits, whereas the proposed method requires only 6.
- Accuracy: In noiseless simulations, the single-ancilla method achieved ~98.6% accuracy on MNIST (0 vs. 1 classification), matching or exceeding baseline methods.
- Noise Robustness: Under simulated noise scaled up to 5x the levels of IBM Jakarta, the single-ancilla method proved significantly more robust than skip pooling. This is attributed to its shallower circuit depth, which minimizes the time qubits are exposed to environmental noise.
Conclusion
The single-ancilla qubit padding technique provides a practical path for applying QCNNs to real-world, high-dimensional data. By optimizing the trade-off between qubit count and circuit depth, this approach ensures that QCNNs remain effective on current noisy quantum hardware. Future research will explore scaling these architectures to higher-dimensional data and accounting for specific hardware connectivity constraints.
Summary updated