Unsupervised Feature Extraction and Reconstruction Using Parameterized Quantum Circuits

L. L. Lo, Li‐Yi Hsu, En-Jui KuoarXiv 2025 · DOI

Abstract

Autoencoders are fundamental tools in classical computing for unsupervised feature extraction, dimensionality reduction, and generative learning. The Quantum Autoencoder (QAE), introduced by Romero J.[2017 Quantum Sci. Technol. 2 045001], extends this concept to quantum systems and has been primarily applied to tasks like anomaly detection. Despite its potential, QAE has not been extensively evaluated in basic classification tasks such as handwritten digit classification, which could provide deeper insights into its capabilities. In this work, we systematically investigate the performance of QAE in unsupervised feature extraction and reconstruction tasks. Using various encoder and decoder architectures, we explore QAE's ability to classify MNIST and analyze its reconstruction effectiveness. Notably, with a QCNN-based encoder, QAE achieves an average accuracy of 97.59% in binary classification of MNIST (0 and 1), demonstrating the feasibility of QAE for such tasks. This result highlights the synergy between QAE and QCNN in achieving optimal feature extraction performance. However, we also identify limitations in QAE's reconstruction capability, underscoring the need for further advancements in encoder and decoder designs. Our findings provide a foundation for future research on leveraging QAE in practical quantum machine learning applications.

Introduction

In classical machine learning, autoencoders are standard tools for dimensionality reduction and unsupervised feature extraction. While the Quantum Autoencoder (QAE) has been proposed for tasks like quantum state compression, its performance on standard classical machine learning benchmarks, such as the MNIST dataset, remains under-explored. This study investigates how well a QAE can extract meaningful latent features from classical image data and subsequently reconstruct those images. A key focus is the impact of circuit architecture, specifically comparing structured Quantum Convolutional Neural Networks (QCNNs) against generic, universal parameterized quantum circuits (PQCs).

The Quantum Autoencoder Framework

The QAE operates by mapping an input quantum state $\rho_{in}$ to a lower-dimensional latent space through an encoder $\mathcal{E}$. This compression is achieved by measuring a subset of qubits and discarding them, leaving a compressed state $\rho_{comp}$. To reconstruct the original state, a decoder $\mathcal{D}$ (typically the unitary inverse of the encoder) is applied to the compressed state along with auxiliary qubits initialized to $|0\rangle$.

General architecture of the Quantum Autoencoder (QAE) showing the encoding, encoder, compression, and decoder stages.

In this framework, the authors utilize a hybrid quantum-classical approach to train the Parameterized Quantum Circuits (PQCs). Data is embedded into quantum states using two primary methods: Amplitude Encoding, which is qubit-efficient but complex to prepare, and Angle Encoding, which maps features to rotation angles and is more suitable for Noisy Intermediate-Scale Quantum (NISQ) hardware.

QCNN-based Encoder Design

A central contribution of this work is the application of a QCNN architecture for the encoder. Similar to classical CNNs, the QCNN utilizes localized 2-qubit unitary operations as "convolutional" layers, followed by 2-qubit "pooling" layers that reduce dimensionality by discarding qubits.

The QCNN-based encoder architecture featuring alternating convolutional and pooling layers.

This structured approach introduces a beneficial inductive bias. While generic baseline architectures (Architectures A and B) require $O(n^2)$ parameters, the QCNN requires only $O(\log n)$ parameters. Despite having fewer parameters, the QCNN's structure is better suited for capturing the spatial features inherent in image data.

Experimental Results and Discussion

Feature Extraction Performance

The QCNN-based encoder demonstrated exceptional performance in binary classification tasks (distinguishing between digits '0' and '1'). It achieved a stellar 97.59% average accuracy, significantly outperforming the denser baseline architectures, which achieved 88.40% and 88.78%. Interestingly, Angle Encoding yielded higher accuracy than Amplitude Encoding for this unsupervised task, suggesting its practical utility in the NISQ era.

Reconstruction Challenges

While feature extraction was highly successful, full image reconstruction proved more difficult. The QCNN achieved a 77.20% reconstruction success rate, only marginally better than the baselines (~75%). This indicates that while the latent space (compressed to 1 or 2 qubits) is sufficient for linear separation in classification, it loses significant information required for high-fidelity reconstruction.

Hardware Validation

Tests conducted on the IonQ Aria quantum computer highlighted the impact of physical noise. While simulations of an 8-qubit setup yielded 99% accuracy, the real hardware performance dropped to 83%. A notable measurement bias toward the $|0\rangle$ state was observed, emphasizing the need for robust error mitigation in future implementations.

Conclusion

This research confirms that QCNN-based Quantum Autoencoders are highly effective for unsupervised feature extraction, achieving near-classical levels of accuracy on binary MNIST classification. However, the limitations in reconstruction and multi-class scaling suggest that current latent space representations and decoder designs require further refinement. Future work will focus on developing more expressive architectures to handle complex data distributions and improving the fidelity of generative quantum models.

Summary updated

BibTeX
@misc{lo2025unsupervised,
  author = {L. L. Lo and Li‐Yi Hsu and En-Jui Kuo},
  title = {{Unsupervised Feature Extraction and Reconstruction Using Parameterized Quantum Circuits}},
  year = {2025},
  eprint = {2502.07667},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.07667},
  howpublished = {arXiv},
}
Figure