Abstract
Quantum convolutional neural networks (QCNNs) represent a promising approach in quantum machine learning, particularly due to the absence of the barren plateau problem and their feasibility on near-term hardware. However, applying QCNNs to classical data is often limited by architectural constraints requiring input qubits to be a power of two. This paper proposes a QCNN architecture capable of handling arbitrary input data dimensions by optimizing the allocation of ancillary qubits and quantum gates. Through numerical simulations on datasets like MNIST and Fashion-MNIST, the proposed "single-ancilla qubit padding" technique is shown to achieve high classification performance with minimal resource overhead and superior noise resilience.
Introduction: The Power-of-Two Bottleneck
In Quantum Machine Learning (QML), Quantum Convolutional Neural Networks (QCNNs) have emerged as a robust alternative to standard Quantum Neural Networks (QNNs). Their primary advantage lies in avoiding "barren plateaus"—regions in the optimization landscape where gradients vanish, rendering training impossible. Despite this, QCNNs face a significant practical hurdle: their hierarchical structure, which halves the number of qubits in each pooling layer, naturally favors input dimensions that are powers of two (e.g., 4, 8, 16).
Real-world datasets rarely conform to these dimensions. For instance, a dataset with 30 features would typically require padding up to 128 features to fit a standard QCNN, wasting significant quantum resources. Alternatively, "skipping" pooling for certain qubits increases circuit depth, which is detrimental in the Noisy Intermediate-Scale Quantum (NISQ) era where noise accumulates with every additional gate operation.
Methodology: Single-Ancilla Qubit Padding
To address these limitations, the researchers explored several strategies for handling non-power-of-two data. While baseline methods like classical data padding or "skip pooling" exist, they either waste qubits or suffer from excessive noise due to increased circuit depth.
The core innovation presented is the Single-ancilla Qubit Padding technique. Instead of adding multiple ancillary qubits at every layer with an odd number of qubits, this architecture reuses a single ancilla qubit across multiple layers. This approach maintains the efficient logarithmic depth ($O(\log n)$) of the circuit while requiring only one additional qubit beyond the minimum necessary for the data.
The training process follows the standard hybrid quantum-classical loop: classical data is embedded into a quantum state, processed through parameterized quantum circuits (PQCs), and measured. The results are then used to update the circuit parameters $\theta$ by minimizing a loss function.
Experimental Benchmarking
The proposed architecture was benchmarked against four diverse datasets, framed as binary classification tasks:
- MNIST & Fashion-MNIST: Image datasets reduced to 30 dimensions via Principal Component Analysis (PCA).
- Landsat Satellite: Multi-spectral pixel data.
- Ionosphere: Radar return data.
These datasets provided a rigorous test for the architecture's ability to handle arbitrary dimensions (e.g., 30 features mapped to 5 qubits) compared to traditional padding methods.
Key Results and Insights
The study yielded three primary findings:
- Resource Efficiency: The single-ancilla method significantly reduces the qubit count compared to classical padding. For large datasets, this saving can be as high as $\log(n)$ qubits, a critical factor for current hardware.
- Noise Resilience: Simulations using noise profiles from the ibmq_jakarta device revealed that the "Skip Pooling" method, while qubit-efficient, fails under noise due to its increased circuit depth. In contrast, the single-ancilla padding maintained high accuracy, proving its suitability for NISQ devices.
- Competitive Accuracy: In noiseless environments, the proposed method achieved accuracy levels comparable to wasteful classical padding. For example, it reached approximately 91.75% accuracy on the MNIST (0 vs 1) task.
Limitations and Future Work
While the paper successfully solves the "power of two" bottleneck for standard QCNNs, several areas remain for further exploration:
- Multi-qubit Operations: The study primarily focused on two-qubit convolutional gates. Extending this to $n$-qubit operations ($n > 2$) would be mathematically possible but requires more complex gate decompositions.
- Hardware Specifics: The optimal padding method might shift depending on the specific error rates (gate error vs. readout error) of different quantum architectures, such as trapped ions versus superconductors.
- Quantum Data: The focus was on classical data mapped to quantum states. Applying these optimized architectures to "intrinsically quantum" data, such as outputs from quantum simulators, remains an open frontier.
Summary updated