Research on Palmprint Identification Method Based on Quantum Algorithms

Quantum image recognition is a technology by using quantum algorithm to process the image information. It can obtain better effect than classical algorithm. In this paper, four different quantum algorithms are used in the three stages of palmprint recognition. First, quantum adaptive median filtering algorithm is presented in palmprint filtering processing. Quantum filtering algorithm can get a better filtering result than classical algorithm through the comparison. Next, quantum Fourier transform (QFT) is used to extract pattern features by only one operation due to quantum parallelism. The proposed algorithm exhibits an exponential speed-up compared with discrete Fourier transform in the feature extraction. Finally, quantum set operations and Grover algorithm are used in palmprint matching. According to the experimental results, quantum algorithm only needs to apply square of N operations to find out the target palmprint, but the traditional method needs N times of calculation. At the same time, the matching accuracy of quantum algorithm is almost 100%.


Introduction
Biological recognition technology is more and more important in this modern society [1]. Palmprint as a new biometric feature has several advantages compared to other available features: low-resolution images can be used, low cost capture devices can be used, it is very difficult or impossible to fake a palmprint, and the line features of the palmprints are stable, and so forth [2]. Zhang et al. summarized and compared the common palmprint recognition algorithms [3]. Jing et al. proposed an optimal subset-division based discrimination (OSDD) approach to enhance the classification performance of discriminant analysis technique [4]. It employs the kernel -means algorithm to divide the sample set in the kernel space and obtains the nonlinear projection transformation. Guo et al. presented a study on feature band selection by analyzing hyperspectral palmprint data (520-1050 nm) [5]. Their research could be used as the guidance for designing new online multispectral palmprint systems. Palmprint recognition includes three important steps: palmprint preprocessing, feature extraction, and matching. Line feature extraction and line matching are proposed to detect whether a couple of palmprints are from the same palm. General recognition process has been shown in Figure 1.
Quantum computing and quantum information is a perfect product which combines quantum mechanics theory and classical computing theory. Quantum algorithm can solve some classical nonpolynomial problems in polynomial time and has many advantages of the superposition, coherence, and entanglement of the quantum state. So far, the most representative quantum algorithms are the large prime numbers factorization algorithm proposed by Shor [6] and the quantum searching algorithms in database proposed by Grover [7] in 1997. Grover algorithm is the kind of quantum searching method which can search a particular element in an unsorted database. This method can exponentially speed up the searching speed. Applying quantum algorithms to image processing is still in the stage of development; studies show that it is feasible to use quantum information and quantum computation in the image processing. Vlasov et al. [8] proposed a simple model which applied quantum computing method in the image recognition in 1997. In 2003, Schutzhold [9] pointed out that the specific mode could be identified and searched from the macrostructure images   on a quantum computer. In May 2006, Pang et al. [10] proposed an algorithm which can successfully check out the best matching pattern between input image and sample collection. Subsequently, Pang [11,12] proposed a series of quantum image compression algorithm. In this paper, quantum algorithms are used in the recognition steps including filtering processing, feature extraction, and palmprint matching. Every application step has been experimented and analyzed. According to the experiment results, applying quantum algorithm to palmprint recognition can decrease the numbers of repetition and raise the probability of success.

Palmprint Filtering Processing Based on Quantum Adaptive Median Filtering Algorithm
Before palmprint filter, an original palmprint is needed to be segmented and normalized. A palmprint is extracted from palmprint database which is shown in Figure 2. The palmprint after segmentation and normalization is shown in Figure 3. Traditional gray pretreatment methods include histogram equalization, median filter, mean filter, and Gaussian filter [13]. In this paper we propose a quantum adaptive median filtering algorithm on palmprint pretreatment. Based on quantum measurements and collapse tenet, median filtering algorithm is applied on the framework of the quantum signal processing. It is an adaptive median filter because it can adaptively adjust the neighbor size and shape; it is based on the local features of translational position of operation template. The size is the number of elements and the shape is the distribution of elements. Traditional filter window can be expressed as the following equation: , (2) where and represent the -axis and -axis coordinates of the image. It can be translated into quantum bit form as where ( , ) is transformed as , and | ( , )⟩ ≥ | , ⟩.
We use a quantum Hadamard operation [14] in each pixel; the quantum Hadamard operation is The Scientific World Journal The operated results are where The overall effect of formula (1) on formula (6) is In other words, the gray values which are 1 and 0 in the traditional palmprint window are converted to After all of the operations, the distribution of gray range in the palmprint image is compressed. It is conducive to generate the median operator template. (5); else ⋅ | , ⟩ = 1. Then we can get the readjusted binary window | ( , )⟩. Quantum adaptive median filter can be expressed as Obviously, by using quantum adaptive median filtering algorithm, not only the image details can be better preserved but also the filtering ability is improved. Next we apply the binarization processing and pixel flip operation to filtered palmprint in order to benefit from the feature extraction.

Palmprint Feature Extraction Based on
Quantum Fourier Transform fingerprint image, composed of all the white dots to match operation. Traditional feature extraction method is mainly based on discrete Fourier transform. For a given dimension the traditional discrete Fourier transform [15] is a linear operator on The quantum Fourier transform (QFT) algorithm can be obtained from the traditional discrete Fourier transform [16] which is QFT can be used in novel image encryption and decryption [17], where the quantum bit numbers of the quantum state | ⟩ are , QFT is a unitary operator, and QFT is a 2dimensional unitary transformation [18,19]. The effect of (11) is to transform a unit quantum state into a superposition state. After once QFT we can get multiple quantum states. Some coefficients quantum states are negative number and the others are positive number. The result of amplitude distribution shows significant concentration. When we measure the quantum state and then the state collapses, we can produce a better probability of success. Then we use QFT method to extract the palmprint feature. The dimension of the filtered palmprint is × ( = 2 , = 2 ); we need to build + numbers of quantum registers; elements in quantum registers are + quantum bits on × and are × -dimensional complex column vectors, and the location of the whiter point can be expressed by the coordinates of and . Let = + ; are the numbers of white points in each line, and | ⟩ = | ⟩ ⊗ | ⟩. All the steps of our algorithm are as follows.
A quantum initial state is constructed which expresses the locations of all the white points in palmprint as where is the proportion of the white spot accounting for all pixels and is the white spots divided by the total number of black and white dots; then the QFT is applied to the state | ⟩: Formula (13) includes ( ) × ( ) items after being expanded. After comparing with formula (10) and formula (13), we can find out the difference between traditional Fourier transform and QFT: traditional method is unitary transformation on -dimensional Euclidean space, QFT is unitary transformation on × -dimensional space, and computation method of traditional method is serial computation, but QFT is parallel computing; complex vector ( 0 , 1 , . . . , −1 ) has become one row of the quantum state matrix which facilitates high-speed processing. If we apply traditional feature extraction method on a palmprint image, the amount of computation will be very large. In this paper, we use the parallel computing features of the quantum algorithm; the ( ) × ( ) numbers of calculations can be completed through using one time of Fourier transform operation. Compared with traditional algorithm, the calculation speed of our method shows exponential improvement. By using formula (13) in Figure 6, Let = / − 1; transform formula (13) to where is the additional phase. Finally, formula (13)

Palmprint Matching
Processing. Palmprint feature matching algorithm matches between identifying palmprint characteristics and registered palmprint characteristics in signature database; this algorithm makes the final identification decision on the basis of feature extraction. Finally we can determine the identity of a person. The most important part of this process is to select the appropriate feature matching strategy [20]. Assume that the identifying palmprint feature vectors are , a palmprint feature vector in the database is , = (0, . . . , ), and is the dimension of feature vectors. Then the Hamming distance between the two feature vectors is [ where ⊕ represents the exclusive or operation between two vectors. When the two vectors and are not the same, the result is 1; otherwise the result is 0. When we calculate all the elements in the vector, the dimension size of these two palmprint feature vectors is very large and calculation efficiency is very low. Therefore, in this paper, we propose a matching method by using Grover algorithm and quantum set operations. This method can ensure the matching accuracy and at the same time greatly improves the matching efficiency.
We assume that the identifying palmprint after the characteristics extraction has many feature vectors which are = { 0 , 1 , . . . , −1 } and = 2 . If ̸ = 2 , we add the feature vector number of the identifying palmprint and let the result be = 2 . By the same way, we assume that the feature vectors of palmprint image in database are = 2 . The matching function in our method is defined as [22] ( , ) = { 1, = , 0, else.
To see whether the two palmprints are match or not is equivalent to calculate the intersection. The two records 0 and 0 are found out in a feature vector set which meets 0 = 0 , that is, to calculate formula (17) which is ( , ) = 1.
We treat the identifying palmprint feature vector as a database and store it in a memory. Each of the vectors in the database corresponds to only one index . The same method is used to deal with the palmprint vector . Each of the vectors corresponds only to one index . Then we structure five registers which are shown in formula (18); five registers, respectively, save the index , index , vector , vector , and matching function value . Five registers are shown by the following equation: All the five registers are initialized as Hadamard transform is applied to register1 and register2, and the effect is shown as Then is used as a unitary operation; the feature vectors of identifying palmprint and the palmprint from database are loaded in the quantum entanglement state, that is, to transform formula (20) into the following quantum state: A unitary operation is used in formula (22) after computing the matching function between the two palmprints which are shown by the following equation: The next step is to apply Grover algorithm in searching out the location of the matching palmprint in database. The quantum circuit of Grover algorithm [23] is shown in Figure 7. The simulation platform is based on MATLAB; we add QCL (quantum computation language) as a toolbox in MAT-LAB to simulate quantum algorithms. There are lots of basic operations in quantum algorithms in QCL toolbox. QCL is a high level, architecture-independent programming language for quantum computers, with a syntax derived from classical procedural languages like C. This allows for the complete implementation and simulation of quantum algorithms. The key iterative operation of Grover is shown in Figure 7 (see Pseudocode 1).
The number of identifying palmprints is 1, quantum bits, size of searching space is = 2 , and the relationship between Grover searching times and the number of quantum bits is shown in Figure 8.
Rossi et al. constructed a link between these initial states and hypergraphs, which provides an illustration of their entanglement properties [24]. In [25], the flow of quantum search algorithm and the quantum procedure model are shown. And the iteration steps in different quantum search problems are analyzed. Oracle operator is used to flip the phase of target quantum state. The effect is From formula (17) we know that, when the two characteristic vectors are the same, formula (17) is equal to 1. Therefore, when the target palmprint is searched out, the corresponding quantum state will be reversed. And then the unitary transformation matrix is used on the probability amplitude vector of all states; average of all the states' values is rotated, and matrix can enlarge the probability of quantum state amplitude and greatly reduce the probability of finding out the target quantum states. Matrix is defined as Compared to 2 times of calculation in traditional method, we just need to apply ( 1/2 ) times of operation from formula (23) to formula (25). Then we measure register1 and the location of the target iris can be found out from palmprint database.

Palmprint Matching Algorithm Experiment and Analysis.
Simulation experiment result is based on the standard library Poly U; Poly U palmprint image library is one of the largest image libraries in palmprint recognition public field. Poly U library has 600 images from 100 people (everyone has 6 images). The experiment is divided into the same palmprint experiment and cross-validation experiment.
In the same palmprint experiment, we extract 64 palmprints and put them in a database; each of the 64 palmprints is from different people. A palmprint in database is selected as an identifying palmprint. We use speed and accuracy to compare our Grover algorithm and quantum set operations with traditional Euclidean distance method. The same palmprint experiment results are shown in Table 1.
In the cross-validation experiment, we extract 64 palmprints which are different from above palmprints and put H U j |0⟩ |u⟩ |u⟩ | ⟩ FT + Figure 9: Schematic of the overall phase estimation procedure. them in a database; each of the 64 palmprints is from different people. In the cross-validation experiment, we first estimate the number of matched palmprints. We can estimate the number of solutions much more quickly than by traditional method by combining the Grover interation with the phase estimation method. The essence of Grover searching algorithm is to determinate the phase flip angle; if the angle is known, we can get the number of matched palmprints. In this paper we use phase estimation method to identify the phase of target quantum state. Phase estimation method is needed to build two registers. An overall schematic of the algorithm is shown in Figure 9.
The top line (the "/" denotes a bundle of wires) is the first register; the bottom line is the second register. Unitary operator has an eigenvector | ⟩ with eigenvalue 2 ; this schematic is used to estimate . FT + is inverse QFT.
First we prepare the state | ⟩; then we apply a Hadamard transform to the first register, followed by application of controlled operations on the second register, with raised to successive powers of two, = 2 ( = 0, 1, . . . , − 1). The final state of the first register is easily seen to be then we apply the inverse QFT on the quantum state | ⟩: After we measure the first register, we can get the estimate value |̃⟩ of . We use phase estimation method to estimate the phase when we search in training palmprints. Then we use Grover to estimate the number of palmprint which is matched with the validation palmprint. The cross-validation experiment results are shown in Table 2.
In Table 1, we can get that the matching numbers of our algorithm which combines the quantum set operations with Grover algorithm only need 8 times, that the traditional algorithm which calculates the Euclidean distance will need 64 times, and that our method has square root of the traditional one. The quantum set operations and Grover matching method needs 0.20 s matching time which has an obvious advantage on efficiency. Additionally, our matching accuracy is almost 100% which is better than Euclidean distance calculation method. In Table 2, by using the cross-validation experiment, we can see that quantum set operations and Grover matching method has good performance with short matching time, which can save more space and time in processing and will be more suitable in applications. We can get higher matching accuracy by using quantum algorithm compared with traditional algorithm too.

Conclusions
Quantum algorithms are applied to palmprint recognition in this paper. Palmprint is filtered by using quantum adaptive median filtering algorithm. Compared with the traditional methods, we can see from the filtering effect chart that this method possesses an enhanced ability of filtering and in the meantime conserves palmprint details. Then, the features of palm print are extracted by means of QFT; the features of pattern can be obtained via quantum parallel characteristics. Analysis shows that the pace of our quantum algorithms has increased exponentially compared with the pace of traditional feature extraction algorithm. Eventually, palmprint matching processing is carried out by using Grover algorithm and quantum set operations. As you can see from 8 The Scientific World Journal the analysis of the experimental result, quantum algorithms can increase matching accuracy and shorten the matching time. Therefore, it gets a marvelous matching effect.