Typical Machine Learning Datasets as Low-Depth Quantum Circuits
Florian J. Kiwit, Bernhard Jobst, Andre Luckow, Frank Pollmann, Carlos A. Riofrío
TL;DR
This work tackles the data-loading bottleneck in quantum machine learning by designing low-depth, tensor-network–inspired circuits that efficiently encode realistic image data into quantum states. It introduces FRQI and MCRQI encodings, with hierarchical indexing and patching/multi-copy strategies, and presents an optimization pipeline to realize these states with circuits whose depth scales linearly with qubits while keeping qubit counts logarithmic in data size. The authors benchmark various quantum classifiers (VQCs, nonlinear variants, quantum-kernel SVM) and tensor-network models on MNIST, Fashion-MNIST, CIFAR-10, and Imagenette, both in uncompressed and compressed forms, finding that nonlinearities improve performance on simple datasets but that CNNs still outperform on harder tasks. The released datasets and code enable community benchmarking, highlighting that while low-depth encodings are practical today, achieving parity with state-of-the-art classical methods will require further architectural innovations that introduce or exploit nonlinearities in processing quantum-encoded data.
Abstract
Quantum machine learning (QML) is an emerging field that investigates the capabilities of quantum computers for learning tasks. While QML models can theoretically offer advantages such as exponential speed-ups, challenges in data loading and the ability to scale to relevant problem sizes have prevented demonstrations of such advantages on practical problems. In particular, the encoding of arbitrary classical data into quantum states usually comes at a high computational cost, either in terms of qubits or gate count. However, real-world data typically exhibits some inherent structure (such as image data) which can be leveraged to load them with a much smaller cost on a quantum computer. This work further develops an efficient algorithm for finding low-depth quantum circuits to load classical image data as quantum states. To evaluate its effectiveness, we conduct systematic studies on the MNIST, Fashion-MNIST, CIFAR-10, and Imagenette datasets. The corresponding circuits for loading the full large-scale datasets are available publicly as PennyLane datasets and can be used by the community for their own benchmarks. We further analyze the performance of various quantum classifiers, such as quantum kernel methods, parameterized quantum circuits, and tensor-network classifiers, and we compare them to convolutional neural networks. In particular, we focus on the performance of the quantum classifiers as we introduce nonlinear functions of the input state, e.g., by letting the circuit parameters depend on the input state.
