Next Article in Journal
Special Issue “Trends in Fractional Modelling in Science and Innovative Technologies”
Previous Article in Journal
Special Issue Editorial “Deep Learning Technologies for Mobile Networks: A Themed Issue in Honor of Prof. Han-Chieh Chao”
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Quantum Pattern Classification in a Three-Qubit System

1
Department of Mathematics and Computer Science, Faculty of Science, Alexandria University, Alexandria 21511, Egypt
2
Alexandria Quantum Computing Group, Faculty of Science, Alexandria University, Alexandria 21511, Egypt
3
Faculty of Computer Science and Engineering, Al Alamein International University, Al Alamein 51718, Egypt
*
Author to whom correspondence should be addressed.
Symmetry 2023, 15(4), 883; https://doi.org/10.3390/sym15040883
Submission received: 20 February 2023 / Revised: 29 March 2023 / Accepted: 6 April 2023 / Published: 8 April 2023
(This article belongs to the Topic Quantum Information and Quantum Computing)

Abstract

:
The problem of pattern classification in quantum data has been of great importance over the past few years. This study investigates the effect of deploying Grover’s, the partial diffusion, and the fixed-phase algorithms separately to amplify the amplitudes of a desired pattern in an unstructured dataset. These quantum search operators were applied to symmetric and antisymmetric input superpositions on a three-qubit system for 20 iterations each. After each iteration, different probabilities of classification were calculated in order to determine the accuracy of classification for each of the three quantum search operators. The results indicated that, in the case of applying the three quantum search operators to incomplete superposition input states, the partial diffusion operator outperformed the other operators with a probability of correct classification that reached 100% in certain iterations. It also showed that the classification accuracy of the fixed-phase operator exceeded the accuracy of the other two operators by 40% in most cases when the input state was a uniform superposition, and some of the basis states were phase-inverted.

1. Introduction

In the past few years, the use of quantum computers to solve complex problems has increased rapidly. It has been proven that some quantum algorithms can provide more accurate and faster solutions to some complex problems than their classical counterparts [1]. Quantum algorithms are being used in many fields, for example, quantum cryptography [2], quantum image processing [3], quantum machine learning [4,5], and quantum classification [6]. One of the most important problems in quantum computation is quantum search. Many algorithms were proposed to solve this problem [7,8,9,10,11] more efficiently than the classical search algorithms. The efficiency of these quantum search algorithms significantly improved in the last 20 years. Most of these quantum algorithms exploit the special properties of quantum systems, such as entanglement, in order to match elements of the input superposition. Switching the entanglement of the search subspace in some quantum algorithms helps to amplify the amplitudes of the desired matches. This leads to a better probability of matching the desired pattern upon measurement of the quantum system.
In [8], a quantum search algorithm was proposed by Lov Grover that searches for a certain pattern in quantum data and showed a quadratic increase in speed compared to the classical search algorithms. This algorithm is one of the first and most important quantum search algorithms to later be adopted in many other subfields in quantum technology. Grover’s operator was able to amplify the amplitude of the matching patterns in O ( N ) , where N = 2 n and n is the number of qubits. This operator showed the best performance when the input state was in a uniform superposition. However, searching in an incomplete superposition (i.e., some input basis states have zero amplitudes) was not one of Grover’s strong suits. Dan Ventura proposed quantum associative memory (AuAM) [9,12], which combined quantum computations and classical neural networks and used these for pattern recall in a set of quantum data. It was not only one of the first and most important contributions to quantum machine learning, but Ventura also claimed to provide a higher probability of success than Grover’s algorithm. In [13,14,15], these quantum search algorithms (Grover’s algorithm and Ventura’s algorithm) are used to classify a pre-defined pattern in an unstructured dataset in two- and three-qubit systems; the classification probabilities were calculated when the two algorithms were applied to three input superposition types. However, it has been shown in [13,14,15] that Grover’s operator is more effective in cases where the number of patterns in the input dataset is large, which obviously contradicted Ventura’s claim. In [13,14], the effects of applying Grover’s [8] and Ventura’s [9] algorithms were tested on a two-qubit system, while, in [15], this was tested on a three-qubit system. The effects of Grover’s and Ventura’s algorithms have been studied over three input state types to determine which is more suitable for pattern classification. This study proved that some superpositions are not suitable for use as input datasets for classification because of the limitations of the algorithms used in the classification process [15].
In [10], Younes introduced the partial diffusion operator, which used entanglement for amplitude amplification. The partial diffusion operator was used in quantum search, which performs inversions around the mean operation. It runs in O ( N M ) where N is the data size, and M is the number of matches. The partial diffusion operator [10] splits the solution subspace into smaller subspaces and inverts the phase of each half of these every other iteration to guarantee that the patterns in the solution subspace resist de-amplification. In this way, the probability of success exceeds Grover’s operator by more than 40%. Another algorithm was introduced by Younes in [11] for quantum search, which used phase shifts of 1.91684 π . This ensures that this phase shift enhances the searching process, and the fixed-phase operator can achieve at least a 95.58% probability of success. Notwithstanding the fact that partial diffusion and fixed-phase operators have a better probability of success than Grover’s, pattern classification using these two operators has not been investigated to date. The problem of pattern classification is the need to define various objects or patterns that have n features in a quantum dataset; which input superposition is more suitable for obtaining better accuracy of classification needs to be studied. Additionally, a quantum search operator is the best option depending on the input size.
The aim of this paper is to investigate the effect of applying different quantum search algorithms to unstructured datasets in a three-qubit system to amplify the amplitudes of predefined patterns in order to provide a more accurate solution to the quantum pattern classification problem and determine which algorithm is more suitable for use depending on the input superposition type. The chosen quantum algorithms are applied to symmetric, non-symmetric, and antisymmetric quantum states [16]. The classification process is made in terms of repetitive iterations of the studied quantum search algorithms. The probability of classification is calculated after using three separate methods: Grover’s [8], the partial diffusion [10], and the fixed-phase [11] quantum search algorithms. Each of the three algorithms is studied with respect to their classification accuracy depending on the size and/or type of the input state in order to identify the best deployment of each algorithm. The classification approach adopted in this study includes the input state preparation, applying the operators for 20 iterations each, and calculating the probability of classification to validate the accuracy achieved by each operator. This study shows that the partial diffusion operator achieves a higher probability of classification than Grover’s operator in all of the incomplete superposition input states. On the other hand, the fixed-phase operator outperforms Grover’s operator and the partial diffusion operator when the input state is in a uniform superposition and some of the basis states are phase-inverted.

2. Approach

This section describes the steps followed in order to classify patterns using different quantum search algorithms. Taking into consideration the different behaviors of each of the three search algorithms used in this study, our approach is divided into three stages. The first is the state preparation stage, where the superpositions under investigation are constructed. The second is the operators’ application stage, where we use the input states prepared in stage 1 and apply each of the operators associated with our quantum search algorithms to 20 iterations in order to classify a certain pattern. The third is the classification evaluation stage, where the probabilities of classification are calculated after each iteration and used to measure the classification accuracy in each of the three search algorithms.

2.1. State Preparation

To prepare the input superpositions, an unstructured dataset P of size m was drawn from the powerset of B n , where B = { 0 , 1 } . Let x i B n be a basis state of size n qubits that may or may not exist in the dataset P.
Three different methods were adopted to construct input states based on the dataset P: (1) inclusion, (2) exclusion, and (3) phase-inversion. Inclusion is a direct approach where basis states that do not belong to P have zero coefficients, and those that belong to P have non-zero coefficients:
ψ i n c = 1 m x i P x i
Exclusion is the opposite of inclusion superposition where the basis states that belong to P have zero coefficients, and the others have non-zero coefficients:
ψ e x c = 1 2 n m x i P x i
In contrast, the phase-inversion approach involves inverting the phase of elements belonging to P and setting all coefficients to equal values:
ψ p h i = 1 2 n x i P x i x i P x i

2.2. Operators’ Application for Classification

In this stage, we describe the application of the three quantum search algorithms to a three-qubit system to classify objects based on certain features presented by a pattern. Let O1 and O2 be two objects that belong to the classes C1 and C2. The patterns P1 and P2 represent two objects, where P1 = 100 and P2 = 110 . Each of these objects has three features, and each feature is denoted by a qubit. Based on the minimum Hamming distance, two classes of bases C1 and C2 were defined, where P1 belongs to C1, and P2 belongs to C2. C1 contained the basis states 100 , 101 , 000 , and 001 ; On the other hand C2 contained the basis states 110 , 010 , 111 , and 011 .
The classification process involved 20 iterations of each of the three quantum search algorithms on the input datasets. The superpositions provided in Equations (1) and (2) are used to classify patterns using Grover, as in Figure 1a, partial diffusion, as in Figure 1b, and fixed-phase operators. However, the phase-inversion superposition is used in the aforementioned form in Equation (3) for Grover’s operator and the partial diffusion operator, where the phase of patterns in P shifts to 1 .
Finally, the state preparation of ψ p h i for the fixed-phase operator in Figure 2 has to invert the phase of basis states in P to 1.968 π .
This inversion will take place using the operator D = U R s ( ϕ ) U R t ( φ ) where R s ( ϕ ) = I ( 1 e i ϕ ) s s , R t ( φ ) = I ( 1 e i φ ) t t , and set ϕ = φ [11].
By applying this to the previously mentioned approaches to state preparation, the inclusion and exclusion will remain unaffected, but ψ p h i will be as follows:
ψ p h i = sin ( θ ) ( 2 cos ( δ ) e i ϕ + 1 ) x i P x i + e i ϕ cos ( θ ) ( 2 cos ( δ ) + 1 ) x i P x i

2.3. Classification Evaluation

When applying Grover’s, the partial diffusion, and the fixed-phase iterative methods, the probability of correct classification needs to be calculated. For instance, in the classification of pattern P2, the probability of correct classification P C equals the amplitude of the basis state 110 . Moreover, the probability of incorrect classification P W is the probability of other patterns in C2. Furthermore, irrelevant classification, P R , is the probability of patterns not in C2. The total probability of classification can be written as P = P C + P W , and the conditional probability of classification is expressed as P C o n d = P C P C + P W .
The three amplitude amplification algorithms were implemented over ψ i n c , ψ e x c , and ψ p h i on a quantum state simulator, and the results were used to calculate the classification probabilities after various iterations of each algorithm.

3. Results

In this section, we are going to discuss the effect of applying three quantum search methods, Grover’s algorithm [8], the partial diffusion algorithm [10] and the fixed-phase algorithm [11], on various input states of different sizes during the process of classifying the pattern 110 .
The probability of correct classification P C (probability of the desired pattern 110 ), probability of incorrect classification P W , probability of irrelevant classification P R , total probability of desired pattern classification P, and conditional probability P c o n d were calculated separately after each of the first 20 iterations.
The input states were divided into two categories depending on the size of ψ i n c , which are either a one-pattern state or a two-pattern state. The results obtained after running our experiment on each category are discussed separately in the following sections.

3.1. One-Pattern State

Considering the input state ψ i n c , which included only one pattern, we define the state
ψ i n c = 110
which represents the search input while searching for the pattern 110 ; consequently, the ψ e x c will be in the form
ψ e x c = 1 7 000 + 001 + 010 + 011 + 100 + 101 + 111
which represents the complete superposition of three qubits, except the pattern in ψ i n c . In addition, the phase-inversion state will be
ψ p h i = 1 8 000 + 001 + 010 + 011 + 100 + 101 110 + 111
which represents the complete superposition of a three-qubit system, where all the basis states are included with equal amplitudes, but the pattern in ψ i n c is phase-inverted.
After applying the three methods of pattern classification and calculating the previously demonstrated probabilities, the following results were produced.

3.1.1. State ψ i n c

The calculated probabilities after applying Grover’s operator and the partial diffusion and fixed-phase operators on ψ i n c are shown in Table 1, Table 2 and Table 3, respectively. Table 1 shows the probability of correct classification P C , the probability of incorrect classification P W , the probability of irrelevant classification P R , the total probability of classification P, and the conditional probability classification P c o n d after every iteration of applying Grover’s operator to the search state ψ i n c .
The probability of correct classification was as high as 99.9% in the 13th iteration, while the probability of irrelevant classification was as low as 0.49% in the 13th iteration. The probability of correct classification was 100% for the input state ψ i n c = 110 prior to applying Grover’s operator but drastically decreased after the first iteration to only 56%, which suggests that Grover’s operator is unsuitable for use when the input state includes only the desired pattern.
However, when using the partial diffusion operator on the same input state ψ i n c = 110 , after the first iteration, the probability of correct classification P C was 100%, and the probability of irrelevant classification P R was 0%, which indicates that no other patterns were detected aside from the input pattern 110 . The application of a partial diffusion operator for one iteration did not affect the initial P C when it was at maximum before applying the operator to ψ i n c , as shown in Table 2.
Showing similar behavior to the partial diffusion operator, Table 3 shows that the fixed-phase operator also preserved the presence of the pattern 110 with a probability of correct classification of 99.2%, with a slight decrease compared to the initial 100% P C obtained prior to the first iteration. Additionally, the probability of irrelevant classification was 0.42% on the first iteration; as a result, the conditional probability P c o n d was 99.6% on the first iteration. However, after the second and third iterations, the presence of the pattern 110 started to gradually decrease, reaching its lowest value at the 17th iteration with a probability of 12.31%. This implies that the fixed-phase and partial diffusion operators are more suitable for use when the input state includes only the pattern we are searching for, with a slight advancement of P C when using the partial diffusion operator compared to the fixed-phase operator, which indicates that both are still better than Grover’s operator in this particular case.
Comparing the behavior after applying the three operators to ψ i n c , Figure 3 illustrates the change in the probability of correct classification P C after separately applying each of the three algorithms to 20 iterations. The probability of the correct classification of P C is close to 100% after the first iteration in which the fixed-phase algorithm was applied. Then, it began to fall, reaching its minimum at the 17th iteration of application. However, the partial diffusion operator kept the probability of correct classification P C at exactly 100% after the first iteration; then, it began to show inversions about the mean and continued to fluctuate, but in a narrower range than with Grover’s algorithm, which showed similar fluctuation behaviour, but in a wider range, with a minimum at the 11th iteration of close to 0%.
Figure 4 demonstrates the change in the probability of irrelevant classification after the first 20 iterations of pattern classification using Grover’s, the partial diffusion, and the fixed-phase algorithms. As shown, the probability of irrelevant classification started at 0% in the first iteration of the partial diffusion and fixed-phase algorithms, but it started at 25% for Grover’s algorithm.
This further emphasizes that Grover’s operator is not the best choice when the input state ψ i n c includes only the desired pattern.
Finally, Figure 5 illustrates the conditional probability of classification after each iteration of Grover’s, the partial diffusion, and the fixed-phase operators’ applications to ψ i n c = 110 . Grover’s and the partial diffusion operators share the same fluctuating behavior but with different ranges in favor of partial diffusion, which varies between 100% and 40%; however, the P c o n d values range from 0% to 99% using Grover’s operator.

3.1.2. State ψ e x c

For the classification of the pattern 110 in the input state presented in Equation (6), which does not contain the desired pattern in its initial form, the three methods for the iterative quantum search were used separately to determine which is best for use in this case.
Table 4 presents the probabilities after applying 20 iterations of Grover’s algorithm to the input state ψ e x c .
By the 11th iteration, Grover’s operator was able to obtain a 99% probability of the correct classification of P C , and a 0.05% probability of irrelevant classification P R . For this reason, the conditional probability of the classification of P c o n d has a maximal value of 99.6% in this iteration.
In comparison, the partial diffusion operator demonstrates a significant presence of the desired pattern 110 in the third iteration, with a probability of correct classification of 99.9%, while the probability of irrelevant classification was 0.014%; hence, the conditional probability classification was 99.98%. This indicates that the partial diffusion operator outperforms Grover’s operator in defining the desired pattern, even if it is not present in the input state ψ e x c , as shown in Table 5.
Different from Grover’s operator and the partial diffusion operator, the fixed-phase operator guarantees a maximum probability of classification at the 17th iteration in Table 6, with 87% accuracy, showing a gradual increase from the 0% P C obtained at the initial state. Moreover, the probability of irrelevant classification was 0.7% at the 17th iteration. Therefore, the conditional probability of classification was 94.3% at the same iteration.
To illustrate this, Figure 6 shows a comparison of the three quantum search operators used and their effect on the probability of correct classification P C . Similar to ψ i n c , in ψ e x c , the probability of correct classification measured after applying iterations of Grover’s operator or the partial diffusion operator maintained a periodic fluctuating behavior, unlike the fixed-phase operator, which increases the probability of correct classification in a gradual manner.
Figure 7 presents the change in the probability of irrelevant classification P R , where the fixed-phase algorithm started at 56% and decreased to only 0.7% at the 17th iteration, while the partial diffusion and Grover’s algorithms showed a periodic increase and decrease over the first 20 iterations in a similar fluctuation range.
Finally, the conditional probability of classification P c o n d when applying the three operators to ψ e x c , illustrated in Figure 8, indicates that the maximal P c o n d was achieved by applying the partial diffusion operator to only three iterations of ψ e x c , where the desired pattern does not exist in the initial input state.

3.1.3. State ψ p h i

In this section, we describe the results obtained when using the state ψ p h i , which contains a combination of both the inclusion and exclusion states, as input to the three quantum search algorithms. The phase of bases in ψ i n c are inverted to −1 for Grover’s and the partial diffusion operators and to 1.91684 π for the fixed-phase operator during the state preparation process.
Table 7 demonstrates the effect of applying Grover’s algorithm to the input state ψ p h i = 1 8 000 + 001 + 010 + 011 + 100 + 101 110 + 111 where all the bases have equal amplitudes in the input state with a phase-inversion on the bases in ψ i n c . In the seventh iteration, Grover’s operator showed an accuracy of 99.97% for P C , 0.012% for the irrelevant classification P R , and 99.99% for the conditional probability of classification P c o n d .
Moreover, the partial diffusion operator showed close results obtained at the 16th iteration, presented in Table 8; when applied to the same input state, the probability of classification was 99.95%, and the probability of irrelevant classification was 0.023%, resulting in a conditional probability P c o n d of 99.98%. This shows that the partial diffusion operator’s results are slightly lower than Grover’s in this particular case in which only the desired pattern is phase-inverted.
Furthermore, when applying the fixed-phase operator to ψ p h i in Table 9, the probability of correct classification did not exceed 15.3% in the first iteration but gradually increased until the 16th iteration, where it reached 99.8%, whereas the probability of irrelevant classification was 0.1%, and the conditional probability of classification was 99.92%.
It has been noted that ψ p h i was the only input state in which Grover outperformed the other search operators, when the input state was in a complete superposition with only the desired pattern being phase-inverted.
Figure 9 and Figure 10a,b illustrate the change in the probability of correct classification, the probability of irrelevant classification, and the conditional probability of classification, respectively, for the three algorithms.
In Figure 9, the probability of correct classification varied over the 20 tested iterations and almost reached 100% when using the three operators on the 7th iteration of Grover’s operator and the 16th iteration of the partial diffusion and fixed-phase operators. However, Grover’s algorithm, at the seventh iteration, obtained a slightly higher P C than the other operators.
On the other hand, the probability of irrelevant classification, as shown in Figure 10a, never exceeded 60% when using the three quantum search operators, leaving us with a minimal value at the seventh iteration of Grover’s operator.
Hence, the conditional probability of classification demonstrated in Figure 10b shows that Grover’s operator had the maximal value in the 7th iteration, whereas the partial diffusion and fixed-phase operators had maximal values in the 16th iteration, with only a 0.1% difference between the highest and lowest values of conditional probability for the three algorithms.

3.2. Similarity of Results in One-Pattern States

After running experimental results on all one-pattern input states (size of ψ i n c = 1), we found a repeating pattern of behavior between all input state patterns belonging to C1 and all input state patterns belonging to C2. The calculated probability of the results was nearly identical in all iterations for ψ i n c , ψ e x c , and ψ p h i with input pattern states 000 , 001 , 100 , and 101 or input pattern states 010 , 011 , and 111 .
This behavior was shown with ψ i n c , ψ e x c , and ψ p h i for every state in C1 or C2. Figure 11 shows that the results are identical for the probability of correct classification P C after 20 iterations of the three algorithms applied to ψ i n c = 010 , ψ i n c = 011 , and ψ i n c = 111 .
In Figure 11, it is shown that the partial diffusion operator recorded the maximal probability of correct classification as 14.2% in the third iteration of application when applied to the input states ψ i n c = 010 , ψ i n c = 011 , and ψ i n c = 111 . Figure 12 represents the probability of correct classification when the three algorithms are applied to ψ e x c = 1 7 000 + 001 + 011 + 100 + 101 + 110 + 111 , ψ e x c = 1 7 000 + 001 + 010 + 100 + 101 + 110 + 111 , and ψ e x c = 1 7 000 + 001 + 010 + 011 + 100 + 101 + 110 of the previous inclusion states. The partial diffusion operator guaranteed the maximal P c in the 15th iteration of application with 87%.
Finally, the fixed-phase operator recorded the best probability of correct classification on the 17th iteration when applied to ψ p h i = 1 8 000 + 001 010 + 011 + 100 + 101 + 110 + 111 , ψ p h i = 1 8 000 + 001 + 010 011 + 100 + 101 + 110 + 111 , and ψ p h i = 1 8 000 + 001 + 010 + 011 + 100 + 101 + 110 111 with a maximal value of 99.2%, as shown in Figure 13.

3.3. Two-Pattern State

In this section, we discuss the effect of applying Grover’s, the partial diffusion, and the fixed-phase operators to ψ i n c , ψ e x c , and ψ p h i where ψ i n c is the state that equally includes the two patterns 100 and 110
ψ i n c = 1 2 100 + 110
which represents the search input, while searching for the pattern 110 ; consequently, ψ e x c will be in the form
ψ e x c = 1 6 000 + 001 + 010 + 011 + 101 + 111
Additionally, the phase-inversion state will be
ψ p h i = 1 8 000 + 001 + 010 + 011 100 + 101 110 + 111

3.3.1. State ψ i n c

Using ψ i n c as the input state for the iterative methods (Grover’s, partial diffusion, and fixed-phase) for 20 iterations each, the calculated probabilities of classification are discussed in this section.
Table 10 illustrates the probability of correct classification, the probability of irrelevant classification, the probability of incorrect classification, the total probability, and the conditional probability of classification for the 20 iterations tested using Grover’s operator and the partial diffusion and fixed-phase operators.
Although the P C on the first iteration was exactly 50% in the proceeding iterations, Grover’s operator failed to provide a P C that exceeds 56.7%, and the probability of incorrect classification had its minimal value at the 18th iteration of 38%. The conditional probability of classification was 100% in the first iteration but kept fluctuating between 0.27% and 99.9% afterward.
The partial diffusion operator showed similar behavior to Grover’s on ψ i n c , although it was slightly more accurate. The probability of correct classification had a maximal value at the eighth iteration of 56.98%. The probability of irrelevant classification was initially 37.5% and never decreased in the 20 tested iterations.
Finally, the conditional probability of classification varied between 14.9% and 99.9%, as shown in Table 11.
Using the fixed-phase operator on ψ i n c in Table 12 resulted in 50% of P C in the first iteration and never exceeded that in the following iterations, while the probability of irrelevant classification P R had its minimal value at the eighth iteration. The conditional probability of classification was at its maximal value in the first iteration. This shows that the partial diffusion operator is the best option when the input state includes only two patterns with equal amplitudes, with the desired pattern existing in the initial superposition.
Figure 14 illustrates the changes in the probability of correct classification P C over 20 iterations using the three quantum search methods. It shows that the partial diffusion operator, on the 8th iteration, provided the maximal value of P C of 56.9%, with a close value of P C using Grover’s operator on the 18th iteration, at 56.7%.
In terms of the probability of irrelevant classification, the minimum value was achieved by the partial diffusion operator in the 14th iteration, with a variation range that did not exceed 64%, while Grover’s and the fixed-phase operators had higher values of P R over the first 20 iterations, as demonstrated in Figure 15.

3.3.2. State ψ e x c

Applying Grover’s, the partial diffusion, and the fixed-phase operators to ψ e x c presented in Equation (9). Table 13, Table 14 and Table 15 show the calculated probabilities of classification after various applications of the previously mentioned operators.
In Table 13, the probability of correct classification after 11 iterations was 84.9%, with only a 12.4% probability of irrelevant classification and a conditional probability of classification of 97%, which is very close to the value of calculated classification probabilities at the second iteration, where the probability of correct classification was 84.3%, the probability of irrelevant classification was 12.5%, and the conditional probability of classification was 96.4%.
In addition, the calculated probabilities of classification in Table 14 reached the maximal desired values after only three iterations of the partial diffusion operator were applied to ψ e x c , where the probability of correct classification P C was 85.6%, and the conditional probability of classification was at its maximal value of 99.9% in the 16th iteration.
Finally, the fixed-phase operator resulted in the probabilities of classification presented in Table 15. The probability of correct classification steadily increased, from only 0.6% at the first iteration to 75% at the 17th iteration, whereas the probability of irrelevant classification decreased from 50% at the first iteration to only 7% in the 17th iteration, and the conditional probability of classification significantly increased from 0.1% to 98% in the first 17 iterations. This shows the steady behavior of the fixed-phase operator.
Figure 16 illustrates the probability of correct classification measured in 20 iterations after applying Grover’s, the partial diffusion, and the fixed-phase algorithms. This shows the expected behavior of the three operatorsm in which Grover’s operator and the partial diffusion operator resulted in a fluctuating value of P C , and the fixed-phase operator resulted in gradual progress. Although Grover’s and the partial diffusion values for P C are close, the partial diffusion operator outperforms Grover’s operator in the third iteration of application, achieving the highest value for P C across all operators.
In addition, the probability of irrelevant classification shown in Figure 17 never exceeded 60% in the first 20 iterations using the partial diffusion operator, whereas, when using Grover’s operator, the probability of irrelevant classification went up to 70% at some iterations and never exceeded 50% using the fixed-phase operator.
Finally, Figure 18 shows the conditional probability of classification; the maximal result of P c o n d was found at the 16th iteration of the partial diffusion operator, with a very close difference to Grover’s and the fixed-phase operators.

3.3.3. State ψ p h i

Table 16, Table 17 and Table 18 present the calculated probabilities of classification over the 20 iterations of Grover’s, partial diffusion, and fixed-phase operators, respectively, over the input state ψ p h i . Grover’s operator achieved the highest probability of correct classification in the 16th iteration; the maximal value of P C was only 56%, as shown in Table 16. However, the partial diffusion operator reached a much better accuracy when classifying the desired pattern at the 10th iteration in Table 17; the probability of correct classification was as high as 76.6%, which indicates that the partial diffusion operator outperformed Grover’s operator in this case. The fixed-phase operator reached an outstanding 99.1% probability of correct classification in the 16th iteration. This made it the best choice of operator in the phase-inversion superposition, which disproves the claim that the phase-inversion superposition was not suitable for pattern classification in [15].
The combined change in P C after applying the three quantum search algorithms to the input state ψ p h i is illustrated in Figure 19. This shows the significant accuracy achieved by the fixed-phase operator after 16 iterations of application.
On the other hand, the probability of irrelevant classification, as shown in Figure 20, demonstrates the significance of the behavior of the fixed-phase algorithm, providing minimal results.

4. Discussion

The results presented in the previous section helped us to understand the different behaviors of the three studied quantum search operators when applied to various superpositions of different sizes. The following provides a discussion of the comparative effectiveness of the three quantum search algorithms investigated in this paper when separately applied to various types of input superpositions to achieve higher accuracy in correct pattern classification. This comparative analysis was conducted with the aid of the calculated classification probabilities. The probability of correct classification P C is the probability of the desired pattern 110 and the probability of irrelevant classification. P R is the total probability of all patterns belonging to C2, which are 010 , 011 , and 101 . The probability of correct classification P W is the summation of the probabilities of patterns belonging to C1, the total probability of classification P = P C + P W , and, finally, the conditional probability of classification, which represents the percentage of the pattern 110 of the total probability of C2.
When the input size was one pattern per state ψ i n c , an identical behavior was observed among the input states in C1; 000 , 001 , 100 , and 101 . This is where the partial diffusion operator achieved the highest probability of correct classification P c . Similarly, the input states belonging to C2 were 010 , 011 , and 111 ; the results were identical.
The partial diffusion operator was better than any other operator applied to ψ i n c and ψ e x c . All of these input state cases reached their best probabilities of correct classification P c in the third iteration, with a probability of 14.2%. This is one of the key advantages of the partial diffusion operator as it uses similar inversions regarding the mean to Grover’s; however, as presented in [10], the probability of achieving success with these iterations using the partial diffusion operator has a lower bound of 90%, which is higher than that of Grover’s operator, whose probability of success’s lower bound may reach 50%.
However, regarding ψ p h i , the probability of correct classification P C reached its maximum value using the fixed-phase operator. This operator shows a special effect of a gradual increase over the first 20 iterations, which is different from the fluctuating behavior of Grover’s and the partial diffusion operators. The fixed-phase operator guarantees a maximal value at the 16th or 17th iteration of application.
Apart from the states included in C1 or C2, the input state 110 showed a distinct behavior of results compared to all other input states of the same size. This behavior is justified by the usage of this very state as the oracle we are searching for, making this the self-search state. The partial diffusion operator showed exquisite results when operating on the self-search state for ψ i n c and ψ e x c . However, for the phase-inversion state, the probability of correct classification started close to 100% and then began to descend. This is because the wave function of the fixed-phase operator will not have recovered in the first 20 iterations if it started with a peak.
Similar to the one-pattern state, when the three methods of quantum search were applied to ψ i n c and when the size of ψ i n c is only two patterns or ψ e x c , the best probability of correct classification was achieved using the partial diffusion operator. As presented in Table 11 and Table 14, the probability of obtaining a correct classification using the partial diffusion operator exceeded all values of P C presented by Grover’s operator.
For the phase-inversion input state ψ p h i , and similar to the one-pattern state, the fixed-phase operator outperformed all other quantum search operators in this particular case. The probability of correct classification was guaranteed to be at its maximal value at the 17th iteration of the fixed-phase operator, with a more distinct difference than any other operator.
The best probability of correct classification resulted from applying the three quantum search algorithms to the four-pattern input state ψ = 1 2 000 + 100 + 110 + 111 , which was in favor of the partial diffusion operator only at the second iteration; in addition, using the superposition ψ = 1 2 001 + 010 + 011 + 101 as input to the same quantum search methods, the best probability of correct classification was reached at the third iteration of the partial diffusion operator. This not only proves that the partial diffusion outperforms Grover’s algorithm if the input state has an incomplete superposition, i.e., some basis states’ amplitudes are equal to zero, but it also denies the claims in [15] that Grover’s method is more effective with a large amount of stored data.
In comparison to [15], in which they claim that some input states are not suitable for classifying a certain desired pattern, our results show that these input states can be used to classify/detect a certain pattern using the appropriate algorithm for the input state’s particular case.
The partial diffusion operator obtained higher results than Grover’s in all ψ i n c and ψ e x c input states provided in Table 19 (Line 1–11). The fixed-phase operator was superior to both of the other operators in phase-inverted conditions, with complete superpositions shown in Table 19 (Line 13–17). However, the only case in which Grover’s operator was better than the partial diffusion and fixed-phase operators was the state ψ = 1 8 ( 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 ) , where the difference between the lowest probability of correct classification and Grover’s maximal P C was only 0.1%.
To conclude, the fixed-phase operator is most suitable for use when the input state is in a complete superposition with some base states marked and phase-shifted to 1.91684 π . In addition, the partial diffusion operator is most suitable when the input state is in an incomplete superposition of any size.

5. Conclusions

This study set out to determine the implications of amplitude amplification techniques to solve the quantum pattern classification problem by providing a high probability of classification. We studied the effect of applying Grover’s operator and the partial diffusion and fixed-phase operators for 20 iterations, each on unstructured datasets in a three-qubit system. By comparing the outcomes using input states based on inclusion, exclusion, and phase-inversion, it was found that the partial diffusion operator provided better classification accuracy during the inclusion and exclusion input states (i.e., incomplete superpositions), while the fixed-phase operator could obtain significant results when applied to phase-inversion superpositions. A further perspective could be provided by an investigation of the behavior of the aforementioned quantum search algorithms on four-qubit datasets, as well as new amplitude-amplification algorithms.

Author Contributions

Conceptualization, A.Y., A.E. and M.E.; software, M.E.; validation, A.Y., M.E. and I.E.; data curation, A.Y., I.E. and M.E.; writing—original draft preparation, M.E. and I.E.; writing—review and editing, M.E. and I.E.; supervision, A.Y., A.E. and I.E.; All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The data presented in this study are available on request from the corresponding author.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
PDpartial diffusion
FPfixed-phase
incinclusion
excexclusion
phiphase-inversion

References

  1. DiVincenzo, D.P. Quantum computation. Science 1995, 270, 255. [Google Scholar] [CrossRef]
  2. Scarani, V.; Kurtsiefer, C. The black paper of quantum cryptography: Real implementation problems. Theor. Comput. Sci. 2014, 560, 27–32. [Google Scholar] [CrossRef]
  3. Beach, G.; Lomont, C.; Cohen, C. Quantum image processing (QuIP). In Proceedings of the 32nd Applied Imagery Pattern Recognition Workshop, Washington, DC, USA, 15–17 October 2003; pp. 39–44. [Google Scholar] [CrossRef]
  4. Schuld, M.; Sinayskiy, I.; Petruccione, F. An introduction to quantum machine learning. Contemp. Phys. 2015, 56, 172–185. [Google Scholar] [CrossRef] [Green Version]
  5. Wittek, P. Quantum Machine Learning: What Quantum Computing Means to Data Mining; Elsevier: Amsterdam, The Netherlands, 2014. [Google Scholar] [CrossRef] [Green Version]
  6. Blank, C.; Park, D.K.; Rhee, J.K.K.; Petruccione, F. Quantum classifier with tailored quantum kernel. npj Quantum Inf. 2020, 6, 41. [Google Scholar] [CrossRef]
  7. Grover, L.K. From Schrödinger’s equation to the quantum search algorithm. Am. J. Phys. 2001, 69, 769–777. [Google Scholar] [CrossRef] [Green Version]
  8. Grover, L.K. A Fast Quantum Mechanical Algorithm for Database Search. In Proceedings of the Twenty-Eighth Annual ACM Symposium on Theory of Computing, STOC’96, Philadelphia, PA, USA, 22–24 May 1996; Association for Computing Machinery: New York, NY, USA, 1996; pp. 212–219. [Google Scholar]
  9. Ventura, D.; Martinez, T.R. Quantum associative memory. Inf. Sci. 2000, 124, 273–296. [Google Scholar] [CrossRef] [Green Version]
  10. Younes, A.; Rowe, J.; Miller, J. Quantum searching via entanglement and Partial Diffusion. arXiv 2004, arXiv:quant-ph/0406207. [Google Scholar] [CrossRef] [Green Version]
  11. Younes, A. Towards more reliable fixed phase quantum search algorithm. Appl. Math. Inf. Sci. 2013, 1, 93–98. [Google Scholar] [CrossRef]
  12. Ventura, D.; Martinez, T. Initializing the Amplitude Distribution of a Quantum State. Found. Phys. Lett. 1999, 12, 547–559. [Google Scholar] [CrossRef]
  13. Singh, M.P.; Radhey, K.; Kumar, S. Simultaneous classification of Oranges and Apples Using Grover’s and Ventura’ Algorithms in a Two-qubits System. Int. J. Theor. Phys. 2017, 56, 2521–2534. [Google Scholar] [CrossRef]
  14. Singh, M.P.; Radhey, K.; Rajput, B.S. Pattern Classifications Using Grover’s and Ventura’s Algorithms in a Two-qubits System. Int. J. Theor. Phys. 2018, 57, 692–705. [Google Scholar] [CrossRef]
  15. Singh, M.P.; Radhey, K.; Saraswat, V.K.; Kumar, S. Classification of patterns representing Apples and Oranges in three-qubit system. Quantum Inf. Process. 2017, 16, 16. [Google Scholar] [CrossRef]
  16. Kadiri, G.; Sivakumar, S. Permutation symmetry and entanglement in multipartite quantum states of unequal subsystem dimensions. arXiv 2017, arXiv:1702.04948. [Google Scholar]
Figure 1. (a) Grover’s iterative operator applied to state ψ ; (b) partial diffusion iterative operator applied to state ψ .
Figure 1. (a) Grover’s iterative operator applied to state ψ ; (b) partial diffusion iterative operator applied to state ψ .
Symmetry 15 00883 g001
Figure 2. Fixed-phase iterative operator applied to state ψ with a special oracle to eliminate state 000 .
Figure 2. Fixed-phase iterative operator applied to state ψ with a special oracle to eliminate state 000 .
Symmetry 15 00883 g002
Figure 3. The probability of correct classification P C after 20 iterations of Grover’s, partial diffusion, and fixed-phase operators applied to ψ i n c = 110 .
Figure 3. The probability of correct classification P C after 20 iterations of Grover’s, partial diffusion, and fixed-phase operators applied to ψ i n c = 110 .
Symmetry 15 00883 g003
Figure 4. The probability of the irrelevant classification of P R after 20 iterations of Grover’s, partial diffusion, and fixed-phase operators applied to ψ i n c = 110 .
Figure 4. The probability of the irrelevant classification of P R after 20 iterations of Grover’s, partial diffusion, and fixed-phase operators applied to ψ i n c = 110 .
Symmetry 15 00883 g004
Figure 5. The conditional probability of classification P C o n d after 20 iterations of Grover’s, partial diffusion, and fixed-phase operators applied to ψ i n c = 110 .
Figure 5. The conditional probability of classification P C o n d after 20 iterations of Grover’s, partial diffusion, and fixed-phase operators applied to ψ i n c = 110 .
Symmetry 15 00883 g005
Figure 6. The probability of correct classification P C after 20 iterations of Grover’s, partial diffusion, and fixed-phase operators applied to ψ e x c .
Figure 6. The probability of correct classification P C after 20 iterations of Grover’s, partial diffusion, and fixed-phase operators applied to ψ e x c .
Symmetry 15 00883 g006
Figure 7. The probability of irrelevant classification P R after 20 iterations of Grover’s, partial diffusion, and fixed-phase operators applied to ψ e x c .
Figure 7. The probability of irrelevant classification P R after 20 iterations of Grover’s, partial diffusion, and fixed-phase operators applied to ψ e x c .
Symmetry 15 00883 g007
Figure 8. The conditional probability of classification P c o n d after 20 iterations of Grover’s, partial diffusion, and fixed-phase operators are applied to ψ e x c .
Figure 8. The conditional probability of classification P c o n d after 20 iterations of Grover’s, partial diffusion, and fixed-phase operators are applied to ψ e x c .
Symmetry 15 00883 g008
Figure 9. The probability of correct classification P C after 20 iterations of Grover’s, partial diffusion, and fixed-phase operators applied to ψ p h i .
Figure 9. The probability of correct classification P C after 20 iterations of Grover’s, partial diffusion, and fixed-phase operators applied to ψ p h i .
Symmetry 15 00883 g009
Figure 10. (a) The probability of irrelevant classification P R after 20 iterations of Grover’s, partial diffusion, and fixed-phase operators applied to ψ p h i . (b) The conditional probability of classification P c o n d after 20 iterations of Grover’s, partial diffusion, and fixed-phase operators applied to ψ p h i .
Figure 10. (a) The probability of irrelevant classification P R after 20 iterations of Grover’s, partial diffusion, and fixed-phase operators applied to ψ p h i . (b) The conditional probability of classification P c o n d after 20 iterations of Grover’s, partial diffusion, and fixed-phase operators applied to ψ p h i .
Symmetry 15 00883 g010
Figure 11. The probability of correct classification P C after 20 iterations of Grover’s, partial diffusion, and fixed-phase operators applied to ψ i n c = 010 , ψ i n c = 011 and ψ i n c = 111 , respectively.
Figure 11. The probability of correct classification P C after 20 iterations of Grover’s, partial diffusion, and fixed-phase operators applied to ψ i n c = 010 , ψ i n c = 011 and ψ i n c = 111 , respectively.
Symmetry 15 00883 g011
Figure 12. The probability of correct classification P C after 20 iterations of Grover’s, partial diffusion, and fixed-phase operators applied to ψ e x c = 1 7 000 + 001 + 011 + 100 + 101 + 110 + 111 , ψ e x c = 1 7 000 + 001 + 010 + 100 + 101 + 110 + 111 , and ψ e x c = 1 7 { 000 + 001 + 010 + 011 + 100 + 101 + 110 } , respectively.
Figure 12. The probability of correct classification P C after 20 iterations of Grover’s, partial diffusion, and fixed-phase operators applied to ψ e x c = 1 7 000 + 001 + 011 + 100 + 101 + 110 + 111 , ψ e x c = 1 7 000 + 001 + 010 + 100 + 101 + 110 + 111 , and ψ e x c = 1 7 { 000 + 001 + 010 + 011 + 100 + 101 + 110 } , respectively.
Symmetry 15 00883 g012
Figure 13. The probability of correct classification P C after 20 iterations of Grover’s, partial diffusion, and fixed-phase operators applied to ψ p h i = 1 8 { 000 + 001 010 + 011 + 100 + 101 + 110 + 111 } , ψ p h i = 1 8 { 000 + 001 + 010 011 + 100 + 101 + 110 + 111 } , and ψ p h i = 1 8 { 000 + 001 + 010 + 011 + 100 + 101 + 110 111 } , respectively.
Figure 13. The probability of correct classification P C after 20 iterations of Grover’s, partial diffusion, and fixed-phase operators applied to ψ p h i = 1 8 { 000 + 001 010 + 011 + 100 + 101 + 110 + 111 } , ψ p h i = 1 8 { 000 + 001 + 010 011 + 100 + 101 + 110 + 111 } , and ψ p h i = 1 8 { 000 + 001 + 010 + 011 + 100 + 101 + 110 111 } , respectively.
Symmetry 15 00883 g013
Figure 14. The probability of correct classification P C after 20 iterations of Grover’s, partial diffusion, and fixed-phase operators applied to ψ i n c = 1 2 100 + 110 .
Figure 14. The probability of correct classification P C after 20 iterations of Grover’s, partial diffusion, and fixed-phase operators applied to ψ i n c = 1 2 100 + 110 .
Symmetry 15 00883 g014
Figure 15. The probability of irrelevant classification P R after 20 iterations of Grover’s, partial diffusion, and fixed-phase operators applied to ψ i n c = 1 2 100 + 110 .
Figure 15. The probability of irrelevant classification P R after 20 iterations of Grover’s, partial diffusion, and fixed-phase operators applied to ψ i n c = 1 2 100 + 110 .
Symmetry 15 00883 g015
Figure 16. The probability of correct classification P C after 20 iterations of Grover’s, partial diffusion, and fixed-phase operators applied to ψ e x c .
Figure 16. The probability of correct classification P C after 20 iterations of Grover’s, partial diffusion, and fixed-phase operators applied to ψ e x c .
Symmetry 15 00883 g016
Figure 17. The probability of irrelevant classification P R after 20 iterations of Grover’s, partial diffusion, and fixed-phase operators applied to ψ e x c .
Figure 17. The probability of irrelevant classification P R after 20 iterations of Grover’s, partial diffusion, and fixed-phase operators applied to ψ e x c .
Symmetry 15 00883 g017
Figure 18. The conditional probability classification P C o n d after 20 iterations of Grover’s, partial diffusion, and fixed-phase operators applied to ψ e x c .
Figure 18. The conditional probability classification P C o n d after 20 iterations of Grover’s, partial diffusion, and fixed-phase operators applied to ψ e x c .
Symmetry 15 00883 g018
Figure 19. The probability of correct classification P C after 20 iterations of Grover’s, partial diffusion, and fixed-phase operators applied to ψ p h i .
Figure 19. The probability of correct classification P C after 20 iterations of Grover’s, partial diffusion, and fixed-phase operators applied to ψ p h i .
Symmetry 15 00883 g019
Figure 20. The probability of irrelevant classification P R after 20 iterations of Grover’s, partial diffusion, and fixed-phase operators applied to ψ p h i .
Figure 20. The probability of irrelevant classification P R after 20 iterations of Grover’s, partial diffusion, and fixed-phase operators applied to ψ p h i .
Symmetry 15 00883 g020
Table 1. The calculated probability of classification after various iterations of Grover’s operator applied to ψ i n c = 110 .
Table 1. The calculated probability of classification after various iterations of Grover’s operator applied to ψ i n c = 110 .
Iteration1357911131517
P C 0.56250.3164090.7932120.1154890.9517680.0092060.99914570.0236990.923686
P W 0.18750.2930.0886230.3790.0206710.424620.000366120.418410.032706
P R 0.250.3910.1181640.5050.0275610.566160.000480.557880.043608
P0.750.6093770.8818350.4945690.9724390.4338260.9995120.4421090.956392
P C o n d 0.750.5192340.8995020.2335140.9787430.0212210.9996340.0536050.965803
Table 2. The calculated probability of classification after various iterations of the partial diffusion operator are applied to ψ i n c = 110 .
Table 2. The calculated probability of classification after various iterations of the partial diffusion operator are applied to ψ i n c = 110 .
Iteration1357911131517
P C 10.7539080.8691570.923210.3251210.4207180.9767360.8119160.799331
P W 00.1054680.0560760.032910.2892330.2482650.0099710.0806070.086001
P R 00.1406240.0747680.043880.3856440.331020.0132940.1074760.114668
P10.8593760.9252330.956120.6143540.6689830.9867060.8925230.885332
P C o n d 10.8772740.9393930.965580.5292080.6288920.9898950.9096860.90286
Table 3. The calculated probability of classification after various iterations of the fixed-phase operator are applied to ψ i n c = 110 .
Table 3. The calculated probability of classification after various iterations of the fixed-phase operator are applied to ψ i n c = 110 .
Iteration1357911131517
P C 0.9925770.9346930.8267010.6830970.5231770.368410.239590.1539970.123162
P W 0.0031810.0279880.0742710.1358160.2043540.2706810.325890.362580.37578
P R 0.0042420.0373180.0990280.1810880.2724720.3609080.434520.483440.50104
P0.9957590.9626820.9009720.8189130.7275310.6390910.565480.5165770.498942
P C o n d 0.9968050.9709270.9175660.8341510.7191130.576460.4236930.298110.246847
Table 4. The calculated probability of classification after various iterations of Grover’s operator applied to ψ e x c = 1 7 000 + 001 + 010 + 011 + 100 + 101 + 111 .
Table 4. The calculated probability of classification after various iterations of Grover’s operator applied to ψ e x c = 1 7 000 + 001 + 010 + 011 + 100 + 101 + 111 .
Iteration1357911131517
P C 0.43750.6835920.2067840.8845070.0482310.9907940.0008540.9763010.07631
P W 0.2410711.36 × 10 1 0.339964.95 × 10 2 0.407910.0039450.428220.0101570.39588
P R 0.3214281.81 × 10 1 0.453286.60 × 10 2 0.543880.005260.570960.0135420.52784
P0.6785710.8191950.5467440.9340040.4561410.994740.4290740.9864580.472191
P C o n d 0.6447380.8344680.378210.9470060.1057370.9960340.0019910.9897040.16161
Table 5. The calculated probability of classification after various iterations of the partial diffusion operator applied to ψ e x c .
Table 5. The calculated probability of classification after various iterations of the partial diffusion operator applied to ψ e x c .
Iteration1357911131517
P C 0.43750.9997560.3125910.1392010.951960.6000490.3133810.9655920.518318
P W 0.2410710.0001046310.2946030.368910.0205890.1714080.2942640.0147470.206436
P R 0.3214280.0001395080.3928040.491880.0274520.2285440.3923520.0196620.275248
P0.6785710.999860.6071940.5081110.9725480.7714570.6076450.9803380.724754
P C o n d 0.6447380.9998950.5148120.2739580.978830.7778130.5157310.9849580.715164
Table 6. The calculated probability of classification after various iterations of the fixed-phase operator applied to ψ e x c .
Table 6. The calculated probability of classification after various iterations of the fixed-phase operator applied to ψ e x c .
Iteration1357911131517
P C 0.0074230.0653060.17330.3168990.476820.631590.7604110.8459940.876842
P W 0.42540.400590.35430.2927580.224220.157890.1026810.0660030.052782
P R 0.56720.534120.47240.3903440.298960.210520.1369080.0880040.070376
P0.4328230.4658960.52760.6096570.701040.789480.8630920.9119970.929624
P C o n d 0.017150.1401730.3284690.5197990.6801610.8000080.8810310.9276280.943222
Table 7. The calculated probability of classification after various iterations of Grover’s operator applied to ψ p h i .
Table 7. The calculated probability of classification after various iterations of Grover’s operator applied to ψ p h i .
Iteration1357911131517
P C 0.1250.9453120.0122070.9997860.0194570.9312670.1449670.7566150.3578498
P W 0.3750.02340.423330.000090.420240.0294570.366450.1043070.275208
P R 0.53.13 × 10 2 0.564440.000120.560320.0392760.48860.1390760.366944
P0.50.968750.4355370.9998780.4396970.9607240.5114170.8609220.633057
P C o n d 0.250.9758070.0280280.9999080.044250.9693390.2834620.8788430.565272
Table 8. The calculated probability of classification after various iterations of the partial diffusion operator applied to ψ p h i .
Table 8. The calculated probability of classification after various iterations of the partial diffusion operator applied to ψ p h i .
Iteration24681012141618
P C 0.5078130.9638980.1837920.4072520.9927030.259260.3127080.9995930.347801
P W 0.2109360.0154730.34980.2540340.0031270.317460.2945550.0001745940.279513
P R 0.2812480.020630.46640.3387120.004170.423280.392740.0002327920.372684
P0.7187490.979370.5335920.6612860.995830.576720.6072630.9997670.627314
P C o n d 0.7065230.9842020.3444430.6158480.996860.4495420.5149470.9998250.554429
Table 9. The calculated probability of classification after various iterations of the fixed-phase operator applied to ψ p h i .
Table 9. The calculated probability of classification after various iterations of the fixed-phase operator applied to ψ p h i .
Iteration24681012141618
P C 0.1964460.3159280.4674280.6305890.7834980.9056190.9805530.9982380.956296
P W 0.344370.2931750.2282460.1583190.0927870.0404490.0083340.0007550.01873
P R 0.459160.39090.3043280.2110920.1237160.0539320.0111120.0010070.024974
P0.5408160.6091030.6956740.7889080.8762850.9460680.9888880.9989930.975027
P C o n d 0.363240.5186780.6719070.7993190.8941130.9572450.9915720.9992440.98079
Table 10. The calculated probability of classification after various iterations of Grover’s operator applied to ψ i n c = 1 2 100 + 110 .
Table 10. The calculated probability of classification after various iterations of Grover’s operator applied to ψ i n c = 1 2 100 + 110 .
Iteration1246891012141618
P C 0.50.1250.3828130.2582990.2417310.5603080.3983510.111470.510680.0240930.567641
P W 00.3750.2109360.0366210.0403740.0595320.2000940.38311.85 × 10 4 0.0957060.046329
P R 0.50.50.4062460.7050810.7178940.3801620.4015540.505430.4891350.8802060.386029
P0.50.50.5937490.294920.2821050.619840.5984450.494570.5108650.1197990.61397
P C o n d 10.250.6447390.8758280.8568830.9039560.6656430.2253880.9996380.2011110.924542
Table 11. The calculated probability of classification after various iterations of partial diffusion operator applied to ψ i n c = 1 2 100 + 110 .
Table 11. The calculated probability of classification after various iterations of partial diffusion operator applied to ψ i n c = 1 2 100 + 110 .
Iteration13578911131517
P C 0.531250.4454340.3435510.568720.56985870.2986090.0712940.4629810.5053310.31918
P W 0.093750.0032960.0189190.0198550.02220120.2671860.406950.1525290.00004440.023664
P R 0.3750.5512660.6375290.4114250.40794120.4342060.521730.3844890.4946240.657154
P0.6250.448730.362470.5885750.592059850.5657950.4782440.615510.5053750.342845
P C o n d 0.850.9926550.9478060.9662660.96250180.5277690.1490750.7521910.9999120.930977
Table 12. The calculated probability of classification after various iterations of fixed-phase operator applied to ψ i n c 1 2 100 + 110 .
Table 12. The calculated probability of classification after various iterations of fixed-phase operator applied to ψ i n c 1 2 100 + 110 .
Iteration135791113151720
P C 0.502080.4932860.4684210.4308370.3855690.3387070.2965410.2647310.247550.253647
P W 0.0062550.0510390.1180290.1752480.1966560.1743540.1219590.0676080.0399990.076005
P R 0.4916650.4556790.4135490.3939180.4177760.4869440.5814990.6676580.7124490.670355
P0.5083350.5443250.586450.6060850.5822250.5130610.41850.3323390.287550.329652
P C o n d 0.9876960.9062340.798740.7108530.6622340.6601690.708580.7965690.8608970.769439
Table 13. The calculated probability of classification after various iterations of Grover’s operator applied to ψ e x c = 1 6 000 + 001 + 010 + 011 + 101 + 111 .
Table 13. The calculated probability of classification after various iterations of Grover’s operator applied to ψ e x c = 1 6 000 + 001 + 010 + 011 + 101 + 111 .
Iteration12357911131520
P C 0.3749990.84374830.5859390.1772510.7581470.0413420.8492517.32E-040.8368280.773596
P W 0.1250010.0312510020.1953120.410640.0110170.2403750.0253340.499620.0377610.007781
P R 0.5000010.1250010.2187490.4121050.2308370.7182850.1254140.499620.1254110.2186211
P0.50.87499930.7812510.5878910.7691640.2817170.8745850.5003520.8745890.781377
P C o n d 0.7499980.964284540.7500010.3015030.9856770.146750.9710330.0014640.9568240.990041
Table 14. The calculated probability of classification after various iterations of partial diffusion operator applied to ψ e x c = 1 6 000 + 001 + 010 + 011 + 101 + 111 .
Table 14. The calculated probability of classification after various iterations of partial diffusion operator applied to ψ e x c = 1 6 000 + 001 + 010 + 011 + 101 + 111 .
Iteration135791113151720
P C 0.3749990.8569350.2679390.1193070.8159670.5143290.268620.827650.444270.486439
P W 0.1250010.0122070.364230.440040.054690.0796860.1609650.000130.2721330.088551
P R 0.5000010.1308570.3678060.4406780.1293440.4059860.5704150.172220.2835960.425011
P0.50.8691420.6321690.5593470.8706570.5940150.4295850.827780.7164040.57499
P C o n d 0.7499980.9859550.4238410.2132960.9371850.8658520.6253010.9998430.620140.845996
Table 15. The calculated probability of classification after various iterations of fixed-phase operator applied to ψ e x c = 1 6 000 + 001 + 010 + 011 + 101 + 111 .
Table 15. The calculated probability of classification after various iterations of fixed-phase operator applied to ψ e x c = 1 6 000 + 001 + 010 + 011 + 101 + 111 .
Iteration135791113151720
P C 0.0063620.0559780.1485440.271630.4087080.5413590.6517810.7251380.751580.697362
P W 0.493650.445260.360990.261150.1667130.0927360.0449490.0208010.01390.026479
P R 0.5000130.4987370.490440.467220.4245830.3659060.3032690.2540610.234520.276159
P0.5000120.5012380.5095350.532780.5754210.6340950.696730.7459390.765480.723841
P C o n d 0.0127240.111680.291530.5098350.7102760.8537510.9354860.9721140.9818420.963419
Table 16. The calculated probability of classification after various iterations of Grover’s operator applied to ψ p h i = 1 8 000 + 001 + 010 + 011 100 + 101 110 + 111 .
Table 16. The calculated probability of classification after various iterations of Grover’s operator applied to ψ p h i = 1 8 000 + 001 + 010 + 011 100 + 101 110 + 111 .
Iteration2468101214161820
P C 0.3828130.2582990.2417310.3983510.111470.510680.0240930.5676410.0010980.555229
P W 0.2109360.0366210.04040.2000940.38310.0001850.0957060.0463290.448050.066711
P R 0.4062460.7050810.7178940.4015540.505430.4891350.8802060.3860290.550870.378061
P0.5937490.294920.2821050.5984450.494570.5108650.1197990.613970.4491480.62194
P C o n d 0.6447390.8758280.8568830.6656430.2253880.9996380.2011110.9245420.0024450.892737
Table 17. The calculated probability of classification after various iterations of partial diffusion operator applied to ψ p h i = 1 8 000 + 001 + 010 + 011 100 + 101 110 + 111 .
Table 17. The calculated probability of classification after various iterations of partial diffusion operator applied to ψ p h i = 1 8 000 + 001 + 010 + 011 100 + 101 110 + 111 .
Iteration2468101214161820
P C 0.375490.7469480.1463210.2758810.766650.2349520.2312980.7662610.2800490.143181
P W 0.247560.00005150.1837230.1381590.0121550.319650.321510.0129090.1367160.184842
P R 0.376950.2530020.6699530.5859590.2211950.445390.44720.2208290.5832360.671972
P0.623050.7469990.3300440.414040.7788050.5546020.5528080.779170.4167650.328023
P C o n d 0.6026640.9999310.4433370.6663150.9843930.4236410.4184050.9834320.6719590.436497
Table 18. The calculated probability of classification after various iterations of fixed-phase operator applied to ψ p h i = 1 8 000 + 001 + 010 + 011 100 + 101 110 + 111 .
Table 18. The calculated probability of classification after various iterations of fixed-phase operator applied to ψ p h i = 1 8 000 + 001 + 010 + 011 100 + 101 110 + 111 .
Iteration135791113151617
P C 0.151860.2448750.3791620.5366660.6962510.8364740.9385080.9886510.99180.980166
P W 0.356370.304710.2416620.1760490.1147920.0629280.0244190.0030580.00001240.002637
P R 0.491770.450430.3791720.2872890.1889560.1005970.0370740.0082910.0081340.017196
P0.508230.5495850.6208240.7127150.8110430.8994020.9629270.9917090.99180.982804
P C o n d 0.2988020.4455640.610740.7529880.8584640.9300340.9746410.9969160.99990.997316
Table 19. Comparative probabilities of correct classification of pattern 110 over 20 iterations of Grover, partial diffusion, and fixed-phase operators.
Table 19. Comparative probabilities of correct classification of pattern 110 over 20 iterations of Grover, partial diffusion, and fixed-phase operators.
StateGroverItrPDItrFPItr
1 ψ = 000 0.14154110.1428230.1252617
2 ψ = 001 0.14154110.1428230.1252617
3 ψ = 100 0.14154110.1428230.1252617
4 ψ = 101 0.14154110.1428230.1252617
5 ψ = 110 0.999145713110.992577251
6 ψ = 1 2 ( 100 + 110 ) 0.56764114180.569858780.50208031
7 ψ = 1 2 ( 0 , 4 , 6 , 7 ) 0.5661683100.571287720.50168316
8 ψ = 1 2 ( 1 , 2 , 3 , 5 ) 0.5661683110.571287730.5010530417
9 ψ = 1 6 ( 0 , 1 , 2 , 3 , 5 , 7 ) 0.84925103110.8569351430.751580117
10 ψ = 1 7 ( 0 , 1 , 2 , 3 , 5 , 6 , 7 ) 0.8774648190.87753105150.873708416
11 ψ = 1 7 ( 0 , 1 , 2 , 3 , 4 , 5 , 7 ) 0.99079424110.999755830.876841817
12 ψ = 1 8 ( 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 ) 0.999786370.9995926160.998238116
13 ψ = 1 8 ( 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 ) 0.567641190.767833150.992003917
14 ψ = 1 8 ( 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 ) 0.567641190.767833150.992003917
15 ψ = 1 8 ( 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 ) 0.567641190.767833150.992003917
16 ψ = 1 8 ( 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 ) 0.56764114190.76783323150.992003917
17 ψ = 1 8 ( 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 ) 0.56764114160.76665026100.991853516
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.

Share and Cite

MDPI and ACS Style

Elmasry, M.; Younes, A.; Elkabani, I.; Elsayed, A. Quantum Pattern Classification in a Three-Qubit System. Symmetry 2023, 15, 883. https://doi.org/10.3390/sym15040883

AMA Style

Elmasry M, Younes A, Elkabani I, Elsayed A. Quantum Pattern Classification in a Three-Qubit System. Symmetry. 2023; 15(4):883. https://doi.org/10.3390/sym15040883

Chicago/Turabian Style

Elmasry, Menna, Ahmed Younes, Islam Elkabani, and Ashraf Elsayed. 2023. "Quantum Pattern Classification in a Three-Qubit System" Symmetry 15, no. 4: 883. https://doi.org/10.3390/sym15040883

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop