Submitted:
18 March 2024
Posted:
18 March 2024
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Background
2.1. Quantum Bits and States
2.2. Quantum Gates
2.2.1. Rotation Gates
2.2.2. Hadamard Gate
2.2.3. cnot Gate
2.2.4. SWAP Gate
2.2.5. Quantum Perfect-Shuffle Permutation (PSP)
2.2.6. Quantum Shift Operation
2.3. Quantum Measurement and Reset
2.4. Classical-to-Quantum (C2Q)
2.5. Quantum Machine Learning with Variational Algorithms
3. Related Work
3.1. Data Encoding
3.2. Convolution
3.2.0.1. Classical Convolution
3.2.0.2. Quantum Convolution
3.3. Quantum Machine Learning
3.3.1. Quantum Convolutional Neural Networks
3.3.2. Quanvolutional Neural Networks
4. Materials and Methods
- Develop a generalizable quantum convolution algorithm for a quantum convolution-based classifier that supports multiple features/kernels.
- Design a scalable mqcc that uses multidimensional quantum convolution and pooling based on the qht. This technique reduces training parameters and time complexity compared to other classical and quantum implementations.
- Evaluate the mqcc model in a state-of-the-art QML simulator from Xanadu using a variety of datasets.
4.1. Quantum Fully-Connected Layer
4.1.1. Single-Feature Output
4.1.2. Multi-Feature Output
4.1.2.1. Replication:
4.1.2.2. Applying the Filter:
4.1.2.3. Data Rearrangement:
4.1.3. Circuit Depth of the Quantum Fully-Connected Layer
4.2. Generalized Quantum Convolution
4.2.0.1. Stride:
4.2.0.2. Multiply-and-Accumulate (MAC):
4.2.0.3. Data Rearrangement:
4.2.1. One-Dimensional Multi-Feature Quantum Convolution
4.2.2. Multi-Dimensional Multi-Feature Quantum Convolution
4.3. Quantum Pooling
4.3.1. Quantum Average Pooling using Quantum Haar Transform
4.3.1.1. Haar Wavelet Operation:
4.3.1.2. Data Rearrangement:
4.3.2. Quantum Euclidean Pooling using Partial Measurement
4.4. Multidimensional Quantum Convolutional Classifier
4.5. Optimized MQCC
5. Experimental Work
5.1. Experimental Setup
5.2. Configuration of ML models
5.3. Results and Analysis
5.3.1. Quantum Convolution Results
6. Discussion
6.1. Number of parameters
6.2. Loss History and Accuracy
6.3. Gate Count and Circuit Depth
7. Conclusions
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
References
- Villalobos, P.; Sevilla, J.; Besiroglu, T.; Heim, L.; Ho, A.; Hobbhahn, M. Machine learning model sizes and the parameter gap. arXiv 2022, arXiv:2207.02852, preprint. [Google Scholar]
- LeCun, Y.; Kavukcuoglu, K.; Farabet, C. Convolutional networks and applications in vision. In Proceedings of the 2010 IEEE International Symposium on Circuits and Systems, Paris, France, NY, USA, 2010, 30 May–2 June 2010; IEEE: New York; pp. 253–256. [Google Scholar]
- LeCun, Y.; Bengio, Y.; Hinton, G. Deep learning. Nature 2015, 521, 436–444. [Google Scholar] [CrossRef] [PubMed]
- Chakraborty, S.; Dey, L. Computing for Data Analysis: Theory and Practices; Springer Nature Singapore 2023, pp. 161–178.
- Peruzzo, A.; McClean, J.; Shadbolt, P.; Yung, M.H.; Zhou, X.Q.; Love, P.J.; Aspuru-Guzik, A.; O’Brien, J.L. A variational eigenvalue solver on a photonic quantum processor. Nature Commun. 2014, 5, 4213. [Google Scholar] [CrossRef]
- Havlíček, V.; Córcoles, D. and Temme, K.; Harrow, W.; Kandala, A.; Chow, J.; Gambetta, M. Supervised learning with quantum-enhanced feature spaces. Nature 2019, 567, 209–212. [Google Scholar] [CrossRef] [PubMed]
- Farhi, E.; Goldstone, J.; Gutmann, S. A quantum approximate optimization algorithm. arXiv 2014, arXiv:1411.4028, preprint. [Google Scholar]
- Farhi, E.; Neven, H. Classification with quantum neural networks on near term processors. arXiv 2018, arXiv:1802.06002, preprint. [Google Scholar]
- Schuld, M.; Bocharov, A.; Svore, M. and Wiebe, N. Circuit-centric quantum classifiers. Physical Review A 2020, 101, 032308. [Google Scholar] [CrossRef]
- Anton, F. K.; Franco, N. Quantum Bits with Josephson Junctions; Springer, Cham. 2019.
- Williams, C.P. ; Explorations in Quantum Computing; 2nd edition: Springer-Verlag London Limited 2011.
- Shende, V.; Bullock, S.; Markov, I. Synthesis of quantum-logic circuits. IEEE Trans. Comput. Aided Des. Integr. Circuits Syst. 2006, 25, 1000–1010. [Google Scholar] [CrossRef]
- Balauca, S.; Arusoaie, A. Efficient Constructions for Simulating Multi Controlled Quantum Gates. Computational Science – ICCS, 22nd International Conference, London, UK, June 21–23, 2022, 25, 179–194 Springer International Publishing. [Google Scholar] [CrossRef]
- Jeng, M.; Islam, S.I.U.; Levy, D.; Riachi, A.; Chaudhary, M.; Nobel, M.A.I.; Kneidel, D.; Jha, V.; Bauer, J.; Maurya, A.; Mahmud, N.; El-Araby, E. Improving quantum-to-classical data decoding using optimized quantum wavelet transform. J. Supercomput. 2023, 79, 20532–20561. [Google Scholar] [CrossRef]
- Jeng, M.; Nobel, A.; Jha, V.; Levy, D.; Kneidel, D.; Chaudhary, M. and Islam, I.; Rahman, M.; El-Araby, E. Generalized Quantum Convolution for Multidimensional Data. Entropy 2023, 25, 11. [Google Scholar] [CrossRef] [PubMed]
- Yao, X.; Wang, H.; Liao, Z.; Chen, M.; Pan, J.; Li, J.; Zhang, K.; Lin, X.; Wang, Z.; Luo, Z.; Zheng, W.; Li, J.; Zhao, M.; Peng, X.; Suter, D. Quantum Image Processing and Its Application to Edge Detection: Theory and Experiment. Phys. Rev. X 2017, 7, 031041. [Google Scholar] [CrossRef]
- Li, X. and Yang, G. and Torres, M.; Zheng, D.; Wang, L. A Class of Efficient Quantum Incrementer Gates for Quantum Circuit Synthesis. International Journal of Modern Physics B 2014, 2. [Google Scholar] [CrossRef]
- Fan, P.; Zhou, R.; Hu, W.; Jing, N. Quantum image edge extraction based on classical Sobel operator for NEQR. Quantum Information Processing 2018, 1. [Google Scholar] [CrossRef]
- El-Araby, E.; Mahmud, N.; Jeng, M.J.; MacGillivray, A.; Chaudhary, M.; Nobel, M.A.I.; Islam, S.I.U.; Levy, D.; Kneidel, D.; Watson, M.R.; Jack, B.; Andrew, R. Towards Complete and Scalable Emulation of Quantum Algorithms on High-Performance Reconfigurable Computers. IEEE Trans. Comput. 2023, 72, 2350–2364. [Google Scholar] [CrossRef]
- IBM Quantum. Qiskit: An Open-source Framework for Quantum Computing. Zenodo, online. [CrossRef]
- Nation, P. How to measure and reset a qubit in the middle of a circuit execution. 2021. Available online: https://www.ibm.com/quantum/blog/quantum-mid-circuit-measurement (accessed on 26 February 2024).
- Mi, A.; Deng, S.; Szefer, J. Securing Reset Operations in NISQ Quantum Computers. Proceedings of the 2022 ACM SIGSAC Conference on Computer and Communications Security 2022, 2279–2293. [Google Scholar]
- Mahmud, N.; Jeng, M.; Nobel, Md. Alvir I.; Chaudhary, M.; Ul Islam, S M I.; Levy, D.; El-Araby, E. Efficient Data Encoding and Decoding for Quantum Computing. 2022 IEEE International Conference on Quantum Computing and Engineering (QCE), Broomfield, CO, USA, –23, 2022, 765–768. 18 September. [CrossRef]
- Le, Q.; Dong, F.; Hirota, K. A flexible representation of quantum images for polynomial preparation, image compression, and processing operations. Quantum Information Processing. [CrossRef]
- Zhang, Y.; Lu, K.; Gao, Y.; Wang, M. NEQR: a novel enhanced quantum representation of digital images. Quantum Information Processing, 2833. [Google Scholar] [CrossRef]
- Burrus, C.S. S. ; Parks, Thomas W. DFT/FFT and Convolution Algorithms: Theory and Implementation, 1991. [Google Scholar]
- Podlozhnyuk, V.; FFT-based 2D convolution. NVIDIA 2007. Available online: https://developer.download.nvidia.com/compute/cuda/1.1-Beta/x86_64_website/projects/convolutionFFT2D/doc/convolutionFFT2D.pdf (accessed on 18 February 2024).
- NVIDIA. CUTLASS Convolution. Github 2023. Available online: https://github.com/NVIDIA/cutlass/blob/main/media/docs/implicit_gemm_convolution.md (accessed on 18 February 2024).
- NVIDIA. Convolution Algorithms. Github 2023. Available online: https://docs.nvidia.com/deeplearning/performance/dl-performance-convolutional/index.html#conv-algo (accessed on 18 February 2024).
- Ma, Y.; Ma, H.; Chu, P. Demonstration of Quantum Image Edge Extration Enhancement Through Improved Sobel Operator. IEEE Access, 2102. [Google Scholar] [CrossRef]
- Zhang, Y.; Lu, K.; Gao, Y. QSobel: A novel quantum image edge extraction algorithm. Science China Information Sciences. [CrossRef]
- Zhou, R.; Yu, H.; Cheng, Y.; Li, F. Quantum image edge extraction based on improved Prewitt operator. Quantum Information Processing. [CrossRef]
- Li, P. Quantum implementation of the classical Canny edge detector. Multimedia Tools and Applications, 1166. [Google Scholar] [CrossRef]
- Cong, I.; Choi, S.; Lukin, M.D. Quantum convolutional neural networks. Nature Phys. 2019, 15, 1273–1278. [Google Scholar] [CrossRef]
- Henderson, M.; Shakya, S.; Pradhan, S.; Cook, T. Quanvolutional neural networks: powering image recognition with quantum circuits. Quantum Machine Intelligence 2020, 2, 2. [Google Scholar] [CrossRef]
- Bieder, F.; Sandkühler, R.; Cattin, P. Comparison of methods generalizing max-and average-pooling. arXiv, 2: arXiv, 2103. [Google Scholar] [CrossRef]
- Jeng, M.; Nobel, A.; Jha, V.; Levy, D.; Kneidel, D.; Chaudhary, M.; Islam, I.; Baumgartner, E.; Vanderhoof, E.; Facer, A.; Singh, M.; Arshad, A.; El-Araby, E. Optimizing Multidimensional Pooling for Variational Quantum Algorithms. Algorithms 2024, 17, 82. [Google Scholar] [CrossRef]
- PyTorch. torch.nn.LPPool1d [Computer Software]. 2023. Available online: https://pytorch.org/docs/stable/generated/torch.nn.LPPool1d.html (accessed on 18 February 2024).
- IBM Quantum. qiskit.circuit.library.NLocal [Computer Software]. 2023. Available online: https://qiskit.org/documentation/stubs/qiskit.circuit.library.NLocal.html (accessed on 18 February 2024).
- Xanadu. qml.BasicEntanglerLayers [computer software]. 2023. Available online: https://docs.pennylane.ai/en/stable/code/api/pennylane.BasicEntanglerLayers.html (accessed on 18 February 2024).
- Geneva, S. Sound Quality Assessment Material: Recordings for Subjective Tests. Available online: https://tech.ebu.ch/publications/sqamcd, 1988. (accessed on 18 February 2024).
- Brand Center, University of Kansas. Jayhawk Images. Available online: https://brand.ku.edu/ (accessed on 18 February 2024).
- Graña, M.; Veganzons, M.A.; Ayerdi, B. Hyperspectral Remote Sensing Scenes. Available online: https:// www.ehu.eus/ccwintco/index.php/Hyperspectral_Remote_Sensing_Scenes#Kennedy_Space_Center_(KSC) (accessed on 18 February 2024).
- Jeng, M.; Nobel, M.A.I.; Jha, V.; Levy, D.; Kneidel, D.; Chaudhary, M.; Islam, S.I.U.; El-Araby, E. Multidimensional Quantum Convolution with Arbitrary Filtering and Unity Stride. In Proceedings of the IEEE International Conference on Quantum Computing and Engineering (QCE23), Bellevue, WA, USA, 17–22 September 2023. [Google Scholar]
- Deng, L. The MNIST database of handwritten digit images for machine learning research. IEEE Signal Processing Magazine; IEEE, 2012, 29, 141–142. [Google Scholar] [CrossRef]
- Xiao, H.; Rasul, K.; Vollgraf, R. Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning Algorithms. arXiv 2017. [Google Scholar] [CrossRef]
- Krizhevsky, A. Learning Multiple Layers of Features from Tiny Images. 2009. https://www.cs.toronto.edu/~kriz/learning-features-2009-TR.pdf. (accessed on 18 February 2024).
- Paszke, A.; Gross, S.; Massa, F.; Lerer, A.; Bradbury, J.; Chanan, G.; Killeen, T.; Lin, Z.; Gimelshein, N.; Antiga, L.; Desmaison, A.; Köpf, A.; Yang, E.; DeVito, Z.; Raison, M.; Tejani, A.; Chilamkurthy, S.; Steiner, B.; Fang, L.; Bai, J.; Chintala, S. Pytorch: An imperative style, high-performance deep learning library. Advances in neural information processing systems, /: https, 5555. [Google Scholar]
- Bergholm, V.; Izaac, J.; Schuld, M.; Gogolin, C.; Ahmed, S.; Ajith, V.; Alam, M.S.; Alonso-Linaje, G.; AkashNarayanan, B.; Asadi, A.; Arrazola, J.M.; PennyLane: Automatic differentiation of hybrid quantum-classical computations. arXiv 2022. Available online: https://pennylane.ai/ (accessed on 18 February 2024).
- KU Community Cluster, Center for Research Computing, University of Kansas. Available online: https://crc.ku.edu/systems-services/ku-community-cluster (accessed on 18 February 2024).
- Kingma, D. P.; Ba, J. Adam: A method for stochastic optimization. arxiv 2014, arXiv:1412.6980. [Google Scholar]
- Arora, R.; Basu, A.; Mianjy, P.; Mukherjee, A. Understanding deep neural networks with rectified linear units. arxiv 2014, arXiv:1611.01491. [Google Scholar]
- Hur, T.; Kim, L.; Park, D. Quantum convolutional neural network for classical data classification. Quantum Machine Intelligence, Springer. [CrossRef]


































![]() |
![]() |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).

