# Experimental quantum pattern recognition in IBMQ and diamond NVs

arXiv: https://arxiv.org/abs/2205.00561 · HTML: https://mlsanity.com/paper/2205.00561/

## Key facts

- Cited by 8 papers in the map (data through 14 Oct 2026).
- Builds on 7 of its 88 references that are in the map.
- First posted on arXiv 1 May 2022.

## Builds on (most cited first, 7 of 7)

- [Quantum-enhanced machine learning](https://mlsanity.com/paper/1610.08251/) (2016)
- [Quantum Perceptron Models](https://mlsanity.com/paper/1602.04799/) (2016)
- [Quantum-Assisted Learning of Hardware-Embedded Probabilistic Graphical Models](https://mlsanity.com/paper/1609.02542/) (2016)
- [Learning the noise fingerprint of quantum devices](https://mlsanity.com/paper/2109.11405/) (2021)
- [Quantum-enhanced barcode decoding and pattern recognition](https://mlsanity.com/paper/2010.03594/) (2020)
- [Quantum pattern matching fast on average](https://mlsanity.com/paper/1408.1816/) (2014)
- [New Trends in Quantum Machine Learning](https://mlsanity.com/paper/2108.09664/) (2021)

## Built on by (most cited first, 8 of 8)

- [Quantum-Noise-Driven Generative Diffusion Models](https://mlsanity.com/paper/2308.12013/) (2023)
- [The role of data embedding in equivariant quantum convolutional neural networks](https://mlsanity.com/paper/2312.13250/) (2023)
- [Machine-learning based noise characterization and correction on neutral atoms NISQ devices](https://mlsanity.com/paper/2306.15628/) (2023)
- [Analysis of Quantum Image Representations for Supervised Classification](https://mlsanity.com/paper/2507.22039/) (2025)
- [Physics-inspired Generative AI models via real hardware-based noisy quantum diffusion](https://mlsanity.com/paper/2505.22193/) (2025)
- [Machine-learning based high-bandwidth magnetic sensing](https://mlsanity.com/paper/2409.12820/) (2024)
- [Configurable Algorithms for Histopathologic Cancer Detection on Quantum Hardware](https://mlsanity.com/paper/2606.21752/) (2026)
- [Quantum Diffusion Models for Medical Image Analysis](https://mlsanity.com/paper/2609.31070/) (2026)

## Abstract (arXiv)

One of the most promising applications of quantum computing is the processing of graphical data like images. Here, we investigate the possibility of realizing a quantum pattern recognition protocol based on swap test, and use the IBMQ noisy intermediate-scale quantum (NISQ) devices to verify the idea. We find that with a two-qubit protocol, swap test can efficiently detect the similarity between two patterns with good fidelity, though for three or more qubits the noise in the real devices becomes detrimental. To mitigate this noise effect, we resort to destructive swap test, which shows an improved performance for three-qubit states. Due to limited cloud access to larger IBMQ processors, we take a segment-wise approach to apply the destructive swap test on higher dimensional images. In this case, we define an average overlap measure which shows faithfulness to distinguish between two very different or very similar patterns when simulated on real IBMQ processors. As test images, we use binary images with simple patterns, greyscale MNIST numbers and MNIST fashion images, as well as binary images of human blood vessel obtained from magnetic resonance imaging (MRI). We also present an experimental set up for applying destructive swap test using the nitrogen vacancy centre (NVs) in diamond. Our experimental data show high fidelity for single qubit states. Lastly, we propose a protocol inspired from quantum associative memory, which works in an analogous way to supervised learning for performing quantum pattern recognition using destructive swap test.
