A Review of Supervised Variational Quantum Classifiers

DOI : 10.17577/IJERTV9IS040485

Download Full-Text PDF Cite this Publication

Text Only Version

A Review of Supervised Variational Quantum Classifiers

Amogh Agastya1, Dhruv Saldhana2, Pratyanush G3, Prof. Madhavi R P4

1,2,3 U.G Students, 4Associate Professor, Computer Science and Engineering Department, BMSCE, Bengaluru, Karnataka, India.

Abstract Innovation in machine learning is far from complete. In fact, things are just about to take a quantum leap, when the world of quantum physics and machine learning are about to merge, aiming to solve advanced problems through intelligent computing. Quantum-classical hybrid techniques termed variational algorithms are well-suited to noisy quantum computing devices and are swiftly gaining popularity in the quantum machine learning community. Quantum machines tap directly into an unimaginably vast fabric of realitythe unusual and counterintuitive realm of quantum field theory, to accelerate computation. Quantum computers will predictively play an important role in machine learning, including the essential element of accessing more computationally complex feature spaces.

Keywords Quantum Machine Learning, Quantum Classification, Hybrid Quantum Algorithm

  1. INTRODUCTION

    Quantum computing is the practical application of quantum phenomena such as superposition and entanglement to do computation that can be theoretically or physically applied [1]. This can be verified both theoretically and experimentally. The present time is now known as the Noisy Intermediate-Scale Quantum era, commonly referred to as the NISQ era [13]. Specically, this refers to quantum devices of approximately less than 100 qubits whose quantum logic gates of which still bear some error with them. Machine learning is a way to determine and evaluate patterns (instead of using traditionally-coded algorithms) and can be applied to a variety of different applications, however, its implementation in Artificial Intelligence (AI) is the one thats got the whole world abuzz. We are interested in this intersecting field where quantum computers apply machine learning algorithms and conventional machine learning methods are employed to assess the quantum machines. This area of research is developing at such blazing speeds that it has spawned an entire new field called Quantum Machine Learning (QML).

    Classical computer are based on an architecture that works on binary states that is 1's and 0's, each signifying a given state. In a Quantum environment there exists multiple states, that is 1's, 0s and both which signify respective states the machine can be in at any given state at any given time and thus is the definition of superposition. A Quantum circuit is at the heart of the Quantum hardware, it handles execution in a sequential form using Quantum Gates placed in a continual format. The Quantum Mechanical Phenomenons are used to extrapolate and manipulate the outputs and hence we will use Quantum

    Entanglement and Quantum Tunneling to get the state. This enables Quantum Hardware Devices to explore multiple states all at once and at a very high speed. Here Quantum Machine learning involves classical algorithms which when executed help to solve problems, these process uses Quantum Hardware which requires the classical algorithm to be mapped into a Quantum understandable form. This helps make the training faster and testing more accurate in labelling the Iris Flower data set. The results of these processes involves measuring Qubits at the end of processing which will give us our classification of the Iris Flower.

    Many Quantum algorithms have been executed on Near- Term Quantum Devices, these are basically Application Specific IC devices or Field Programmable hardware. This is due to the fact that full-fledged Quantum Hardware is a thing of the future until then we cannot talk about the Quantum Advantages. Hence the best practice or the logical way to go about executing Quantum Algorithms is to encode the classical data into amplitudes of Quantum states, this with the help of Quantum Circuits will allow for execution [7, 8]. The Quantum Algorithms having n Qubits can be encoded into 2n respective amplitudes, this means that the execution will be in poly-arithmetic time [9, 12].

    The present progress of Quantum Computing has given rise to Noisy Intermediate- Scale [13], this is basically a Quantum Computer with less than 100 Qubits and will contain some noise or error in the result. These devices having less than 100 Qubits and an error coefficient will not be suitable for large scale execution of everyday problems until a fully functional Quantum Environment can be created hence algorithms must be structured in such a way to be unaffected by errors. Variational Quantum algorithms are conceptualized on the principle of dual nature [14], that is a Quantum Circuit keeps updating the parameters based on some rule depending on the output and executes the algorithm with the parameterized requirements, these circuits work in an iterative fashion such that when an output is produced the circuit tries to optimize itself by manipulating its parameters in accordance to some rule.

    The next section elaborates on Variation Quantum Classifier (VQC).

  2. VARIATIONAL QUANTUM CLASSIFIER (VQC)

    Noisy Intermediate-Scale Quantum or NISQ a Variational Quantum Classifier (VQC) is a hybrid made up of Quantum and Classical algorithm where Layers or blocks the basic Quantum building block are repeatedly used to form Variational Quantum Classifier Circuits which will be the executor or processor in this demonstration, it must be noted that it should resilient to errors. The architecture is inspired by Schuld et al. (2018) and Farhi and Neven (2018). Elies M. Gil Fuster, Variational Quantum Classier.

    In this paper we will demonstrate that a Variational Quantum Classifier behavior will be determined by Quantum Circuits and output dependent functions based on free parameters executed iteratively in comparison to classical execution which takes place iteratively to minimize this functions outcome which will also make it the fault tolerant. The classical execution involves something call gradient descent, this basically means it tries to find the local minima of a function. The Quantum execution for supervised learning works differently in that it make use of Variational Algorithms which are implemented using differential programing, State Preparation which encodes classical data sets into amplitude and rotations of Quantum bits for Quantum hardware to understand after this the Quantum bits are executed using parameterized Unitary Operations, all parameters may by modified depending on given rules, the output which is the classification of the Iris Dataset is to be finally measured when the job is done.

    1. State Preparation

      In State Preparation an initial input x has to be encoded using amplitude encoding of Quantum bits, this is done by applying the static state circuit to map the classical dataset into it respective Quantum Qubits such that it is understood by the Quantum Circuit and is then executed in the initial ground state. The output Qubits are measured to get the resultant prediction of classification of the Iris flower. This is better understood by mapping n qubit Quantum Circuit Architecture where an input x R to the 2n amplitude vector (x) that describes the initial quantum state |(x) i. The encoding techniques are described below:

      • Basis Encoding: – In this type of encoding inputs say x is encoded to binary strings into the basis state of Qubits[21,22]. For Example x = 01001 is represented by the 5-qubit basis state |01001i. The computational basis state corresponds to a stanard basis vector |ii (with i being the integer representation of the bit string) in a 2n-dimensional Hilbert space F, and thus, the eect of the feature- embedding circuit is given by U : x {0,1}n |ii. This feature map maps each data input to a state from an orthonormal basis.

      • Amplitude Encoding:-In this type of encoding we normalize the inputs x such that x = (x0,…,xN1)T

        RN of dimension N = 2n with the amplitudes |xi [8, 13], U : x RN |xi = N1 X i=0 xi|ii. Please find that, |ii denotes the ith computational basis state. This represents the linear kernel, (x, x0) = hx|x0i = xTx0.

      • Product Encoding: – This type of encoding uses tensor product encoding where features which have been encoded of the x input depicted by (x1,..,xN)T RN is encoded into Qubit amplitudes.

    2. Model Circuit

      In modelling Quantum circuits the ket vector present in the Hilbert vector space maps to the ket vector 0 = U(x) by a unitary operation U, parameterized by a set of variables . Now to train our VQC model I will formulate rules for parameters that will be looked up during optimization phase and learned, this may have an effect on the shape of the cost function. A single qubit gate G is a 2×2 unitary, which can always be written as G(,,,) = ei (ei cos ei sin ei sin ei cos ) and may be dened by 4 parameters such as{,,,} [30].The number of Quantum gates depend linearly on the number of Qubit Architecture. This means the algorithm running in the VQC will require a polynomial amount of inputs, for this reason we will have a circuit architecture with rigid gates and controls. A number of combinations of Quantum circuit gates were used to mimic multi-qubit-based quantum classifiers but this is theoretical and a large number of such combinations may exists in reality [10, 13, and 20].

    3. Measurement

    Measurement involve us measuring the output Qubits from got from the previous stages of processing and give us the required prediction on classifying the Iris flower into its respective genus. The pre-processing used in the classical methods is to sum a informative bias b to extrapolate a sequential output such as (x;,b) = p(q0 = 1,x,) + b such that we may assign a rule f(x;) = {1 if (x;) }> 0.5 else 0. This is to predict all given probabilities of pa corresponding to outputs S3 for the state (x)i. pa = Tr(a| (x) (x)|, this will mean the probabilities of S3 = a; S3 =PN a=0 aa. I will be able to formulate a rule for our VQC so as to get pb = max {pa} f(x) = lb, this will inference the label LB will have S3=b as the most probable result from measuring our VQC. To reduce the noise spoken about earlier I need to Train and the VQC and optimize it using new parameter rules after every iteration or also known as Vector Matrix Multiplication or just VMM such that each weight in the matrix is adjustable based on the parameter changes and can be modified during training[8]. This may be also understood as a VMM operation because of the latter process.

  3. CONCLUSION

Our paper presents a review of existing classical-quantum hybrid algorithms, mainly the Variational Quantum Classifier (VQC) and the steps required to implement it as part of Quantum Circuit Learning and serves as a beacon for further research in the field of Quantum Computing and Quantum Machine Learning. In our demonstration of VQC for Iris Dataset we have shown that state preparation will encode the classical data set into quantum amplitudes so as to make it understandable by the quantum hardware by one of the methods, next we demonstrate how the processes will be performed by VQC by Unitary operations which involves Quantum theory knowledge with the help of non-mutable parameters for the algorithm. As a result we will measure the Qubits received from performing previous processes to actually get the prediction for classification of the Iris Flower into it correct biological genus. This signifies a hybrid algorithm which harnesses Quantum hardware and classical machine learning algorithms. Hence this states that my team and I were in fact able to deploy classical Machine Learning which can be interpreted by Quantum hardware.

REFERENCES

  1. Kak S. On quantum neural computing. Inf. Sci. (NY) 83, 143 160,(1995)J.

  2. Servedio RA, Gortler SJ. Equivalences and separations between quantum and classical learnability. SIAM J. Comput. 33, 1067 1092,(2004)

  3. Atici A, Servedio RA. Improved bounds on quantum learning algorithms. Quantum Inf. Process. 4, 355386, (2011)

  4. Childs AM. Quantum algorithms: equation solving by simulation. Nat. Phys. 5, 861861, (2011)

  5. Hen I, Young A. Exponential complexity of the quantum adiabatic algorithm for certain satisfiability problems. Phys. Rev. E 84, 061152, (2011)

  6. Schwarz M, Temme K, Verstraete F. Preparing projected entangled pair states on a quantum computer. Phys. Rev. Lett. 108,110502,(2012)

  7. Schwarz M, Temme K, Verstraete F. Preparing projected entangled pair states on a quantum computer. Phys. Rev. Lett. 108, 110502, (2012)

  8. Jacob Biamonte, Peter Wittek, Nicola Pancotti, Patrick Rebentrost, Nathan Wiebe, and Seth Lloyd. Quantum machine learning. Nature, 549(7671):195, (2017)

  9. Patrick Rebentrost, Masoud Mohseni, and Seth Lloyd. Quantum support vector machine for big data classication. Physcial Review Letters, 113:130503 (2014)

  10. Iordanis Kerenedis and Anupam Prakash. Quantum recommendation systems. arXiv preprint arXiv:1603.08675, (2016)

  11. Nathan Wiebe, Daniel Braun, and Seth Lloyd. Quantum algorithm for data tting. Physical Review Letters, 109(5):050505, (2012)

  12. Maria Schuld, Mark Fingerhuth, and Francesco Petruccione. Implementing a distance-based classier with a quantum interference circuit. EPL (Europhysics Letters) (2017)

  13. J. Preskill, Quantum 2, 79, (2018)

  14. J. R. McClean, J. Romero, R. Babbush, and A. AspuruGuzik, New J. Phys. 18, 023023 (2016)

  15. Jeremy Adcock, Euan Allen, Matthew Day, Stefan Frick, Janna Hinchliff, Mack Johnson, Sam Morley-Short, Sam Pallister, Alasdair Price, Stasja Stanisic. Advances in Quantum Machine Learning. arXiv:1512.02900 (2014)

  16. New Journal of Physics (2016) Jarrod R. McClean, Jonathan Romero, Ryan Babbush, Alán Aspuru-Guzik. The theory of variational hybrid quantum-classical algorithms. arXiv:1509.04279 (2015)

  17. Havl´cek V, C´orcoles A D, Temme K, Harrow A W, Kandala A, Chow J M and Gambetta J M, Nature 567, 209 (2019)

  18. McClean J R, Romero J, Babbush R and Aspuru-Guzik A New Journal of Physics 18 023023 (2016)

  19. ]. Arunachalam S, de Wolf R. 2017. Optimal quantum sample complexity of learning algorithms. In Proc. 32nd Computational Complexity Conference, CCC 2017, Riga, Latvia, 69 (2017)

  20. Schuld M, Bocharov A, Svore K and Wiebe N, arXiv preprint arXiv:1804.00633 (2018)

  21. E. Farhi and H. Neven, arXiv preprint arXiv:1802.06002 (2018)

  22. S. Wang, Journal of Mathematics Research 7, 175 (2015)

One thought on “A Review of Supervised Variational Quantum Classifiers

  1. Maha Metawei says:

    I was looking forward to seeing some classification results and how they differ for various datasets.

Leave a Reply