Simple Quantum Circuits for Data Classification

  • Joanna WiśniewskaEmail author
  • Marek Sawerwain
Conference paper
Part of the Lecture Notes in Computer Science book series (LNCS, volume 12033)


The paper is dedicated to the problem of supervised learning in quantum circuits. We present two solutions: SWAP-test and Simple Quantum Circuits (SQCs) based on the tree tensor networks which are able to properly classify samples from Moons, Circles, Blobs and Iris sets. Moreover, the mentioned circuits were constructed not only for qubits, but also for the units of quantum information with higher freedom level. The SWAP-test, prepared as a part of this paper, works for units like qutrits and ququads – so far this solution has been only discussed in the context of qubits. We present the procedure of data preparation which is important in further data classification with high success rate. It should be emphasized that the shown circuits are effective in pattern recognition in spite of a low level of their complexity.


Classification Quantum circuits SWAP-test Qudits 



We would like to thank for useful discussions with the Q-INFO group at the Institute of Control and Computation Engineering (ISSI) of the University of Zielona Góra, Poland. We would like also to thank to anonymous referees for useful comments on the preliminary version of this paper. The numerical results were done using the hardware and software available at the “GPU \(\mu \)-Lab” located at the Institute of Control and Computation Engineering of the University of Zielona Góra, Poland.


  1. 1.
    Aïmeur, E., Brassard, G., Gambs, S.: Machine learning in a quantum world. In: Lamontagne, L., Marchand, M. (eds.) AI 2006. LNCS (LNAI), vol. 4013, pp. 431–442. Springer, Heidelberg (2006). Scholar
  2. 2.
    Biamonte, J., Wittek, P., Pancotti, N., Rebentrost, P., Wiebe, N., Lloyd, S.: Quantum machine learning. Nature 549, 195–202 (2017)CrossRefGoogle Scholar
  3. 3.
    Hall, B.C.: Lie Groups, Lie Algebras, and Representations: An Elementary Introduction. Springer, New York (2003)CrossRefGoogle Scholar
  4. 4.
    Li, Z., Li, P.: Clustering algorithm of quantum self-organization network. Open J. Appl. Sci. 5, 270–278 (2015)CrossRefGoogle Scholar
  5. 5.
    Liu, D., et al.: Machine learning by unitary tensor network of hierarchical tree structure. New J. Phys. 21, 073059 (2019)MathSciNetCrossRefGoogle Scholar
  6. 6.
    MacMahon, D.: Quantum Computing Explained. Wiley, Hoboken (2007)CrossRefGoogle Scholar
  7. 7.
    Murgia, M., Waters, R.: Google claims to have reached quantum supremacy. Financial Times, 20 September 2019Google Scholar
  8. 8.
    Narayanan, A., Menneer, T.: Quantum artificial neural network architectures and components. Inf. Sci. 128(3–4), 231–255 (2000)MathSciNetCrossRefGoogle Scholar
  9. 9.
    von Neumann, J.: Mathematical Foundations of Quantum Mechanics. Princeton University Press, Princeton (1955)zbMATHGoogle Scholar
  10. 10.
    Nielsen, M.A., Chuang, I.L.: Quantum Computation and Quantum Information, 10 Anniversary edn. Cambridge University Press, Cambridge (2010)CrossRefGoogle Scholar
  11. 11.
    Pedregosa, F., et al.: Scikit-learn: machine learning in Python. J. Mach. Learn. Res. 12, 2825–2830 (2011)MathSciNetzbMATHGoogle Scholar
  12. 12.
    Sawicki, A., Karnas, K.: Universality of single qudit gates. Annales Henri Poincaré 18, 3515 (2017). Scholar
  13. 13.
    Schuld, M., Sinayskiy, I., Petruccione, F.: An introduction to quantum machine learning. Contemp. Phys. 56, 172–185 (2015)CrossRefGoogle Scholar
  14. 14.
    Veenman, C.J., Reinders, M.J.T.: The nearest sub-class classifier: a compromise between the nearest mean and nearest neighbor classifier. IEEE Trans. PAMI 27(9), 1417–1429 (2005)CrossRefGoogle Scholar
  15. 15.
    Virtanen, P., Gommers, R., Oliphant T.E.: SciPy 1.0-fundamental algorithms for scientific computing in Python. arXiv:1907.10121 (2019)
  16. 16.
    Weigang, L.: A study of parallel self-organizing map. arXiv:quant-ph/9808025v3 (1998)
  17. 17.
    Wiebe, N., Kapoor, A., Svore, K.M.: Quantum nearest-neighbor algorithms for machine learning. Quantum Inf. Comput. 15(3–4), 318–358 (2015)Google Scholar
  18. 18.
    Zhou, S.S., Loke, T., Izaac, J.A., Wang, J.B.: Quantum fourier transform in computational basis. arXiv:quant-ph/1511.04818v2 (2016)
  19. 19.
    IBM Q experience. Accessed 28 Sept 2019
  20. 20.
    Jones, E., Oliphant, T., Peterson, P., et al.: SciPy: open source scientific tools for Python. Accessed 28 Sept 2019
  21. 21.
    Rigetti QCS. Accessed 28 Sept 2019

Copyright information

© Springer Nature Switzerland AG 2020

Authors and Affiliations

  1. 1.Institute of Information Systems, Faculty of CyberneticsMilitary University of TechnologyWarsawPoland
  2. 2.Institute of Control and Computation EngineeringUniversity of Zielona GóraZielona GóraPoland

Personalised recommendations