Next Article in Journal
Markov Chain-Based Stochastic Modelling of HIV-1 Life Cycle in a CD4 T Cell
Next Article in Special Issue
Quantum Algorithms for Some Strings Problems Based on Quantum String Comparator
Previous Article in Journal
Noncanonical Neutral DDEs of Second-Order: New Sufficient Conditions for Oscillation
Previous Article in Special Issue
On the Complexity of Finding the Maximum Entropy Compatible Quantum State
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

On the Amplitude Amplification of Quantum States Corresponding to the Solutions of the Partition Problem

1
Department of Education, Roma Tre University, 00154 Roma, Italy
2
Instituto De Inv. EN Informática AB, University of Castilla-La Mancha, 13001 Ciudad Real, Spain
3
Departamento de Sistemas Informáticos, University of Castilla-La Mancha, 13001 Ciudad Real, Spain
*
Author to whom correspondence should be addressed.
Mathematics 2021, 9(17), 2027; https://doi.org/10.3390/math9172027
Submission received: 27 July 2021 / Revised: 16 August 2021 / Accepted: 19 August 2021 / Published: 24 August 2021
(This article belongs to the Special Issue Quantum Computing Algorithms and Computational Complexity)

Abstract

:
In this paper we investigate the effects of a quantum algorithm which increases the amplitude of the states corresponding to the solutions of the partition problem by a factor of almost two. The study is limited to one iteration.

1. Introduction and Preliminaries

Quantum computing promises to offer a different paradigm for solving long standing complex problems. Shor’s algorithm [1] is a clear example of the success of the application of quantum computation to a difficult problem, the factoring of integers. Other algorithms like Deutsch-Josza’s [2] or Grover’s [3] give strong hints that the intrinsic parallelism of quantum computation could be used in order to efficiently solve computationally complex problems. In particular, Grover’s algorithm uses the concept of an oracle f ( x ) which, given a configuration x of the problem at hand, computes whether or not x is a solution of the problem. In other words, if x is a configuration that solves an instance of a combinatorial problem then the oracle returns f ( x ) = 1 otherwise the oracle outputs f ( x ) = 0 . By using this oracle, Grover’s algorithm is capable of speeding up the time to search for a solution of many, very complex, combinatorial problems. In Grover’s algorithm the Grover iteration amplifies the amplitude of the configuration states corresponding to solutions of the problem (i.e., those states x for which f ( x ) = 1 ) by a factor less than O ( 1 / N ) (in the worst case in which there is only one configuration which is the solution of the problem), where N = 2 n is the number of possible configurations. In this way, after approximately O ( N ) iterations, the amplitudes of the states corresponding to the solutions of the problem approach 1.
We exploit the parallelism of quantum computation, therefore devising a quantum algorithm that is capable of doubling the amplitude of the states corresponding to the solution of a problem. In this paper, we will focus on the subset sum problem, a well known NP-complete problem. The subset sum problem is very important both at a theoretical level in complexity theory, and at a practical level in applications such as cryptography. The problem can be stated in the following way in which we denote by N + , the set of non-zero natural numbers. Let E be a finite set of elements, s : E N + a function and W N + a target number. The subset sum problem wonders whether there exists a subset E E such that e E s ( e ) = W . Usually this problem can also be reformulated as follows. There exists a subset E E such that e E s ( e ) = e E E s ( e ) ? In this later formulation it is called the partition problem (PP) [4]. From now on we do not lose any generality in considering the set E equals the set of the first | E | natural numbers; that is, we always consider E = { 0 , 1 , , n 1 } . Furthermore, we note that if PP has a solution E then E E is also a solution of the PP.
The literature is abundant in the study of this problem, for which the dynamic programming solving strategy is the most commonly applied. More recently, it has also been approached from the point of view of quantum computing, among these references we can mention [5] where an instance of the subset sum problem can be implemented by a quantum algorithm using the nuclear magnetic resonance (NMR) technique. In that paper, even at a very early stage and with a low number of qubits, they limit themselves to showing that the problem can be approached from this new perspective.
In [6], the authors studied the problem through both an asymptotic heuristic and a new data structure for using quantum gates. There, the possibility of obtaining an improvement over classical algorithms is shown, specifically the Howgrave–Graham–Joux [7], which of course is fully coherent with the NP ⊆ BQP conjecture, obtaining a bound time O ˜ ( 2 2 / 3 n ) .
More recently, in 2018, Helm and May [8] proposed a quantum algorithm that reduces the heuristic time to O ˜ ( 2 0.226 n ) . A couple of years later, Li and Li [9] reduced this time beyond that, i.e., to O ˜ ( 2 0.209 n ) .
In this work we will get rid of the heuristics of these studies to better go for the modest approach of [5]. In this sense, we propose a piece of quantum code using a quantum circuit to model the problem, consequently we devise a transformation that will allow us to increase the amplitudes of those corresponding to the solution by 50 % , leaving the line of how and how many times this process could be iterated, as the key issue to be dealt with. In fact, we think that we could find the same limitations as those from Grover’s algorithm. Anyway, we believe that this line of research deserves to be addressed.
Let x N , 0 x < 2 n then we say that | x is a computational state, the binary representation of which is | x n 1 x n 2 x 0 with x n 1 being the most significant bit of the binary representation of | x .
The S gate for a single qubit is represented by the following matrix:
S = 1 0 0 i
Other usual gates are Pauli X gate, also known as NOT gates, and X gates.
X = 0 1 1 0 X = 1 2 1 + i 1 i 1 i 1 + i
The Hadamard gate for a single qubit is
H = 2 2 1 1 1 1
While the same gate for n qubits is represented by the following matrix
H n = i = 1 n 2 2 1 1 1 1
As stated before, we are interested in amplifying amplitudes for the search problem. In order to do this we make use of sequences of quantum gates in the way of Hadamard-S-Hadamard. Let us start by describing graphically the effect of such quantum gates and so resorting to the positions of the state vector represented in the Bloch sphere.
The effect of applying an H q-gate over a qubit represented on the Bloch Sphere can be seen as “first rotating an angle of π radians around the Z axis and then rotating an angle of π 2 radians around the Y axis” (fully equivalent to “first rotating an angle of π 2 radians around the Y axis and then rotating an angle of π radians around the X axis”, which are the movements made by H in Figure 1). Hadamard q-gate application changes a qubit from a computational basis to a Hadamard basis. To better understand the effects of the sequence H-S-H we start, as usual, from a qubit initialized to | 0 , i.e., located at the north pole of the Bloch s. which, moved through a Hadamard gate, gets located at the equator of the Bloch s., specifically on the X axis, in the position usually known as a | + , which corresponds to the qubit
| + = 2 2 | 0 + 2 2 | 1
After this gate, we apply an S gate, the effect of which is a rotation of the state vector through an angle of π 2 radians around the Z axis. This places the qubit at position | i .
| i = 2 2 | 0 + i · 2 2 | 1
Finally, the effect of the second application of gate H is to reset the computational base, and then the vector from position | i moves to the opposite point on the Y axis, that is, to the position
| i = 2 2 | 0 i · 2 2 | 1
In general, we have the following result
H S H = X
That is, an HSH gate is equivalent to a π 2 radians clockwise rotation around the X axis as Figure 1 shows over a single qubit initialized to | 0 .
Let us go for the general case of a qubit register initialized, as usual, to | 0 n .

2. The Effect of Applying Hadamard-S-Hadamard Gates to | 0 n

First of all we will introduce a notation which will be heavily used in the rest of the paper. Let x N , 0 x < 2 n and x n 1 , x 1 x 0 be its binary representation. The Hamming weight of x will be denoted as w ( x ) = j = 0 n 1 x j . Let z N , 0 z < 2 n , | z = | z n 1 z n 2 z 0 . The term x · z denotes j = 0 n 1 x j z j . Furthermore, k N , 0 < k < n , we denote by z - k a natural number obtained from z by considering only the least n k significant bits, that is, the binary representation of z - k is z n k 1 z n k 2 z 0 . In other words z - k is the bitwise AND between z and 2 n k 1 .
In this section we want to determine the effect of applying Hadamard first, then S and finally Hadamard gates on quantum state | 0 n , that is, we want to determine a formula for | α such that
| α = H n S n H n | 0 n
and we show that in the out-coming computational state | α = z = 0 2 n 1 a z | z the amplitude a z of a single state | z depends just on w ( z ) .
It is well known, see [3], that given any computational state | x where 0 x < 2 n
| ψ = H n | x = 1 2 n z = 0 2 n 1 ( 1 ) x · z | z
Now we start with the following Lemma
Lemma 1.
Let 0 x < 2 n
S n | x = i w ( x ) | x n 1 x n 2 x 0
Proof. 
Induction on n is the base case with n = 1 straightforward. So suppose that the statement holds for n 1 . Then
S n | x = S | x n 1 S | x n 2 S | x 0 = S n 1 | x n 1 x 1 S | x 0 = = i j = 1 n 1 x j | x n 1 x 1 S | x 0 = ( by induction hypothesis ) = i j = 1 n 1 x j | x n 1 x 1 i x 0 | x 0 = = i w ( x ) | x n 1 x n 2 x 0
Now by Lemma 1 and Equation (2), we have that
| ψ 1 = S n H n | 0 n = S n 1 2 n x = 0 2 n 1 | x = 1 2 n x = 0 2 n 1 i w ( x ) | x
and applying the Hadamard to | ψ 1 , by (2), we have that
| ψ 2 = H n | ψ 1 = 1 2 n x = 0 2 n 1 i w ( x ) 1 2 n z = 0 2 n 1 ( 1 ) x · z | z
and reordering the term of the sum we have that
| ψ 2 = 1 2 n z = 0 2 n 1 x = 0 2 n 1 ( 1 ) x · z i w ( x ) | z = 1 2 n z = 0 2 n 1 x = 0 2 n 1 i w ( x ) ( 1 ) x · z | z
So in order to compute the amplitudes of | ψ 2 we need to compute the sum
x = 0 2 n 1 i w ( x ) ( 1 ) x · z
for every 0 z < 2 n . We will do this in the following two theorems. First of all we need the next Lemma which will be heavily used in the rest of the paper.
Lemma 2.
Let 0 z < 2 2 m + 1 and 0 x < 2 2 m + 1 and let z 2 m z 2 m 1 z 0 and x 2 m x 2 m 1 x 0 be the binary representation, respectively, of z and x. We have that
x = 2 2 m 2 2 m + 1 1 i w ( x ) ( 1 ) j = 0 2 m z j · x j = i ( 1 ) z 2 m x = 0 2 2 m 1 i w ( x ) ( 1 ) j = 0 2 m 1 z j · x j
Proof. 
We note that, on the left hand of Equation (4), for every element of the sum, we have that x 2 m = 1 . Therefore j = 0 2 m z j · x j = j = 0 2 m 1 z j · x j + z 2 m . Based on this we have that
x = 2 2 m 2 2 m + 1 1 i w ( x ) ( 1 ) j = 0 2 m z j · x j = ( 1 ) z 2 m x = 2 2 m 2 2 m + 1 1 i w ( x ) ( 1 ) j = 0 2 m 1 z j · x j
Furthermore for the same reason above, if 2 2 m x < 2 2 m + 1 and if 0 x ¯ < 2 2 m then we have that w ( x ) = w ( x ¯ ) + 1 and this proves Equation (4). □
Theorem 1.
Let 0 z < 2 n , z N . If n = 2 m is even we have that
x = 0 2 n 1 i w ( x ) ( 1 ) z · x = ( 1 ) w ( z ) i m + w ( z ) 2 m
Proof. 
We prove Equation (5) on induction on m being the base case with m = 1 being easily verifiable for all z { 0 , 1 , 2 , 3 } . So suppose the statement holds for all h m and for all 0 z < 2 2 m . Then, for any 0 z < 2 2 m + 2 we have
x = 0 2 2 m + 2 1 i w ( x ) ( 1 ) z · x = x = 0 2 2 m 1 i w ( x ) ( 1 ) j = 0 2 m 1 z j · x j
+ x = 2 2 m 2 2 m + 1 1 i w ( x ) ( 1 ) j = 0 2 m z j · x j +
+ x = 2 2 m + 1 2 2 m + 2 1 i w ( x ) ( 1 ) j = 0 2 m + 1 z j · x j
Now, by Equation (4) and by induction hypothesis, we have that (7) is equal to
x = 2 2 m 2 2 m + 1 1 i w ( x ) ( 1 ) j = 0 2 m z j · x j = i ( 1 ) z 2 m x = 0 2 2 m 1 i w ( x ) ( 1 ) j = 0 2 m 1 z j · x j = = i ( 1 ) z 2 m ( 1 ) w ( z - 2 ) i m + w ( z - 2 ) 2 m
Likewise, in the term (8), for each, x is the sum, the bit x 2 m + 1 is always set to 1, so we have that (8) is, by Equation (4), equal to
x = 2 2 m + 1 2 2 m + 2 1 i w ( x ) ( 1 ) j = 0 2 m + 1 z j · x j = i ( 1 ) z 2 m + 1 x = 0 2 2 m + 1 1 i w ( x ) ( 1 ) j = 0 2 m z j · x j
Now by repeatedly applying Equation (4) and the induction hypothesis we have that the sum in the right hand of Equation (10) is
x = 0 2 2 m + 1 1 i w ( x ) ( 1 ) j = 0 2 m z j · x j = = x = 0 2 2 m 1 i w ( x ) ( 1 ) j = 0 2 m 1 z j · x j + x = 2 2 m 2 2 m + 1 1 i w ( x ) ( 1 ) j = 0 2 m z j · x j =
= ( 1 ) w ( z - 2 ) i m + w ( z - 2 ) 2 m + i ( 1 ) z 2 m x = 0 2 2 m 1 i w ( x ) ( 1 ) j = 0 2 m 1 z j · x j = = ( 1 ) w ( z - 2 ) i m + w ( z - 2 ) 2 m 1 + i ( 1 ) z 2 m
So if we replace (12) in (10) and if we sum together (6), (9) and (10) we obtain
a z = ( 1 ) w ( z - 2 ) i m + w ( z - 2 ) 2 m 1 + i ( 1 ) z 2 m + i ( 1 ) z 2 m + 1 + i 2 ( 1 ) z 2 m + z 2 m + 1 = = ( 1 ) w ( z - 2 ) i m + 1 + w ( z - 2 ) 2 m i + ( 1 ) z 2 m + ( 1 ) z 2 m + 1 + i ( 1 ) z 2 m + z 2 m + 1
Now if we denote by P = ( 1 ) w ( z - 2 ) i m + 1 + w ( z - 2 ) 2 m we have that (13) is
a z = 2 P if z 2 m = z 2 m + 1 = 0 2 i P if z 2 m z 2 m + 1 2 P if z 2 m = z 2 m + 1 = 1
and it is now easy to verify that
a z = ( 1 ) w ( z ) i m + 1 + w ( z ) 2 m + 1
for every 0 z < 2 2 m + 2 , and this proves the induction step. □
Theorem 2.
Let n = 2 m + 1 be an odd natural, m N and let 0 z < 2 n , z N . Then
x = 0 2 n 1 i w ( x ) ( 1 ) z · x = ( 1 ) w ( z ) i m + w ( z ) 2 m ( 1 + i )
Proof. 
First of all we note that Equation (14) holds if m = 0 and z { 0 , 1 } . So in the following we suppose that m > 1 . We have that
a z = x = 0 2 2 m + 1 1 i w ( x ) ( 1 ) z · x = = x = 0 2 2 m 1 i w ( x ) ( 1 ) j = 0 2 m 1 z j · x j + x = 2 2 m 2 2 m + 1 1 i w ( x ) ( 1 ) j = 0 2 m z j · x j
and, by Theorem 1, and by Equation (4), we have
a z = ( 1 ) w ( z - 1 ) i m + w ( z - 1 ) 2 m + i ( 1 ) z 2 m x = 0 2 2 m 1 i w ( x ) ( 1 ) j = 0 2 m 1 z j · x j = = ( 1 ) w ( z - 1 ) i m + w ( z - 1 ) 2 m + i ( 1 ) z 2 m ( 1 ) w ( z - 1 ) i m + w ( z - 1 ) 2 m = = ( 1 ) w ( z - 1 ) i m + w ( z - 1 ) 2 m 1 + i ( 1 ) z 2 m
Let z 2 m z 2 m 1 z 0 be the binary representation of z. Suppose first that z 2 m = 0 . Then Equation (15) become
( 1 ) w ( z ) i m + w ( z ) 2 m + ( 1 ) w ( z ) i m + w ( z ) + 1 2 m
and the Theorem is therefore proved. So suppose that z 2 m = 1 . Then Equation (15) become
( 1 ) w ( z ) 1 i m + w ( z ) 1 2 m + ( 1 ) w ( z ) i m + w ( z ) 2 m
but observing that
( 1 ) w ( z ) i m + w ( z ) + 1 = ( 1 ) w ( z ) 1 i m + w ( z ) 1
we have that also in this case the theorem is satisfied. □
As an example we have computed the amplitudes a z (disregarding the normalization factor) for n { 3 , 4 } and we report them on Figure 2.

3. Doubling the Amplitudes of the Solution States of the PP

In this section we consider a quantum circuit for doubling the amplitude of the solution’s states of the partition problem.
We describe an application of the gates described in the previous section in a quantum circuit to deal with PP (see Figure 3). While the following results apply specifically to the PP, they can be applied to any other search problem.
Let us denote e E s ( e ) / 2 by S . Notice that S belonging to Z is a requirement for PP to have a solution. We use the two’s complement representation of S , so requiring for it m = log 2 S + 1 qubits. Then for each e E , we use k e = log 2 s ( e ) + 1 qubits to encode s ( e ) . These qubits will remain constant in every phase of the circuit and therefore we will not consider them in the rest of the discussion. As usual, we use n qubits to encode a subset E of E, i.e., if | x n 1 x n 2 x 0 is the state of those n qubits, then an element e, 0 e < n , is included in the set E if and only if x e = 1 . We will use m qubits, denoted in the following by | σ , to store the sum σ = S + e E s ( e ) for the elements selected in | x . In this way | σ = | 0 m for a solution | x of the PP. Qubit | c is used for control purposes.
For a top-down description we can distinguish four groups of bits: | x , | σ , | c and the sets of qubits used to represent the constants s ( e ) for each element of E. Note that the number of qubits of the circuit, n + m + 1 + e E k e , is polynomial in the size of a concise specification of the PP.
At the beginning of the circuit we have the superposition:
| φ 0 = | 0 n | σ | c
where σ is set to the two’s complement of S and | c is set to | 1 . Then, we apply the Hadamard q-gate to the first n qubits, so obtaining
| φ 1 = H n I m + 1 | φ 0 = 1 2 n x = 0 2 n 1 | x | σ | c
Next, we use each qubit x e to conditionally sum the element s ( e ) to | σ . If there exists a solution to the PP then, in the final superposition of | σ , the amplitude of the state | x | 0 m | c will not be 0. The states | x for which | σ is zero will be referred to as the solutions states of the PP. The control qubit | c will be set to zero exactly for those states for which | σ = | 0 m . At this point we apply an uncomputational step in order to set | σ = | S . Now if we apply the S gate to the first n qubits we obtain, by Lemma 1
| φ 2 = S n I m + 1 | φ 1 = 1 2 n x = 0 2 n 1 i w ( x ) | x | σ | c
Afterwards Hadamard gate is applied to the first n qubits controlled by the control qubit | c such that it only affects non-solution states (see Figure 3). For the sake of simplicity we suppose that PP has only two solutions whose numeric representation is y and its bitwise complement y ¯ . By Equation (3), we obtain
| φ 2 contr H n | φ 3 = 1 2 n z { y , y ¯ } i w ( z ) | z | σ | 0 + + 1 2 n z = 0 2 n 1 x { y , y ¯ } i w ( x ) ( 1 ) x · z | z | σ | 1 = = 1 2 n 2 n z { y , y ¯ } i w ( z ) | z | σ | 0 + z = 0 2 n 1 x { y , y ¯ } i w ( x ) ( 1 ) x · z | z | σ | 1
Now we want to quantify the amplitude of the state | y | σ | 1 and | y ¯ | σ | 1 of Equation (19). We consider only the state | y | σ | 1 since the same arguments can be applied to state | y ¯ | σ | 1 . The amplitude b y of the state | y | σ | 1 (in the following we disregard the normalization factor 1 / 2 n ) is given by the following formula
b y = x { y , y ¯ } i w ( x ) ( 1 ) x · y
We may write the above sum as
b y = x { y , y ¯ } i w ( x ) ( 1 ) x · y = x = 0 2 n 1 i w ( x ) ( 1 ) x · y x { y , y ¯ } i w ( x ) ( 1 ) x · y
We have that
x { y , y ¯ } i w ( x ) ( 1 ) x · y = i w ( y ) ( 1 ) y · y + i n w ( y ) ( 1 ) y ¯ · y = = i w ( y ) ( 1 ) w ( y ) + i n w ( y ) =
Then, recalling that i x = i x when x is even and i x = i x when x is odd, we have two cases:
  • w ( y ) is even
    i w ( y ) ( 1 ) w ( y ) + i n w ( y ) = i w ( y ) ( 1 ) w ( y ) + i n + w ( y ) = = i w ( y ) ( 1 + i n )
  • w ( y ) is odd
    i w ( y ) ( 1 ) w ( y ) + i n w ( y ) = i w ( y ) ( 1 ) w ( y ) i n + w ( y ) = = i w ( y ) ( 1 + i n )
For simplicity of notation in the following we denote w ( y ) as simply w ¯ . We have that if n = 2 m is even then, by Theorem 1, b y is
b y = ( 1 ) w ¯ i m + w ¯ 2 m i w ¯ ( 1 + i 2 m ) if w ¯ is even ( 1 ) w ¯ i m + w ¯ 2 m + i w ¯ ( 1 + i 2 m ) if w ¯ is odd
while if n = 2 m + 1 is odd, by Theorem 2, b y is
b y = ( 1 ) w ¯ i m + w ¯ 2 m ( 1 + i ) i w ¯ ( 1 + i 2 m + 1 ) if w ¯ is even ( 1 ) w ¯ i m + w ¯ 2 m ( 1 + i ) + i w ¯ ( 1 + i 2 m + 1 ) if w ¯ is odd
It is immediate to check that in Equations (25) and (26) the term i w ¯ ( 1 + i n ) becomes negligible, with respect to the other term in the equation, as m becomes bigger. We conclude that the amplitude of the state | y | σ | 1 is almost the same as the amplitude of state | y | σ | 0 , thus effectively duplicating the chances of state | y at the end of the circuit.
Figure 3 captures on the Quirk simulator the instance of the PP where elements in E are s ( 0 ) = 2 , s ( 1 ) = 1 and s ( 2 ) = 3 depicted in rows 1–2, 3–4 and 5–6, bottom-up referring to the number of the rows as well as the significance of the qubits. The 7th row is used for the control qubit. Rows 8–11 encode S = 3 which in two’s complement is represented with four bits σ = 1101 (bootom-up). The last three qubits are used to be set on the superposition as usual.
Since n = 2 m + 1 = 3 and | y = | 011 , we have that b y = 3 3 i , thus the probability of getting | y is, by (19), 1 64 | 2 2 | 2 + | 3 3 i | 2 = 26 64 = 0.40625 which is exactly the output of Quirk simulator as it can be checked in [10].
As can be easily seen, this circuit resembles Grover’s algorithm. Both have an initial superposition in the states where the solution will be encoded, afterwards the function to be solved (also called oracle) is computed in order to identify the solution state that should be marked in some way. Finally, a sort of transformation (Z axis turns, Hadamards) before measuring is required. However, they have important differences in some of these generic steps that can generate on the one hand why our proposal amplifies the probability of the solution state more than Grover’s but on the other hand Grover’s one can be iterated; meanwhile, ours cannot.
The main difference relies on how the algorithms mark the solution state. In our proposal the X axis is used for that; i.e., formerly the control qubit is set to | 1 which means “no solution”; meanwhile, as soon as σ = S + e E s ( e ) equals 0 (solution condition) it is set to | 0 . In Grover’s algorithm, the solution state is marked on the Z axis; that is, by means of a negative sign in the solution state. This last fact allows the calculations to be carried without any entanglement with the solution state.
Finally, the amplitude amplification part is also different but follows somehow the same fashion. In our proposal, we perform the amplification of the probability amplitude by means of turns in the Z axis and Hadamard transformations, which is very similar to the inversion on the mean of Grover’s algorithm nevertheless, we apply Hadamard gates controlled by a qubit in which the solution has been marked. This fact generates an entanglement with the result of the function, which probably disables the interference required to iterate the corresponding piece of code.

4. Conclusions and Future Work

We have presented a quantum algorithm for doubling the amplitude of the state which corresponds to the solution of the partition problem. We further studied in detail the effects of applying first Hadamard, then S and finally Hadamard gates to the state | 0 n .
Since the proposed method doubles the amplitude of the states corresponding to a solution of the referred problem, one can infer that the reiteration of the method could lead us to a quantum polynomial algorithm that could solve the problem P = NP. Of course, we emphasize, that this is not our intention. Due to the way in which we mark the solution state pointed out at the end of the previous section, our piece of quantum code cannot directly be iterated as it can in the case of Grover’s algorithm, therefore our proposal is simply to research to what extent this circuit could be either iterated/modified to be iterable, or, used as a shortcut to finish sooner some algorithms like Grover´s one.
The algorithm presented makes use of an oracle, and the approach is similar to the black box model as described in [11]; the idea of iterating this algorithm will suffer inevitably from the same limitation described there, and then the maximum speed-up should be limited to the polynomial, as it occurs with Grover’s algorithm. It is our belief that together with any transformation aimed to make iterable the proposed code, it would come as drawback that its computational cost will compensate such an advantage.
Another idea related to our proposal is the possibility of application to the hidden subgroup problem. It is described in Section 5.4.3 of [3] and it has a known quantum solution by a variant of Shor’s algorithm for the specific case of finite Abelian groups. However, the general problem remains open, with important consequences, for example for the graph isomorphism problem. This problem is discussed in Section 16.3 of [12] by using Boolean functions and their parity. This discussion is very similar to our Figure 2; thus, we think that it is worth investigating the possible relationship between them and, moreover, we also think that the problem of the hidden subgroup on Lie groups of general nature, such as SU(2) groups representing the quantum states of a single qubit, SU(4) for two qubits, and so on deserves to be studied. This could also offer an interesting research line for future works.

Author Contributions

Individual contributions are as follows: Conceptualization M.M. and J.J.P.; Formal analysis M.M., F.C. and F.L.P.; Investigation M.M., J.J.P., F.C., H.I.C. and F.L.P.; Writing—original draft M.M., J.J.P., H.I.C. and F.C.; Writing—reviewing & editing M.M. and F.L.P. All authors have read and agreed to the published version of the manuscript.

Funding

This research received non-external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Acknowledgments

The authors would like to thank the anonymous reviewer who has pointed out the similarity between our treatment of the partition problem with the one discussed by Svozil for the hidden subgroup problem. This work was supported by project “FAME (Formal modeling and advanced testing methods. Applications to medicine and computing systems)”, reference RTI2018-093608-B-C32, and by the Junta de Comunidades de Castilla-La Mancha project SBPLY/17/180501/000276/01 (cofunded with FEDER funds, EU).

Conflicts of Interest

The authors declare non-conflict of interest.

References

  1. Shor, P. Algorithms for quantum computation: Discrete logarithms and factoring. In Proceedings of the 35th Annual Symposium on Foundations of Computer Science, Santa Fe, NM, USA, 20–22 November 1994; pp. 124–134. [Google Scholar] [CrossRef]
  2. Deutsch, D.; Jozsa, R. Rapid solution of problems by quantum computation. Proc. R. Soc. London Ser. Math. Phys. Sci. 1992, 439, 553–558. [Google Scholar] [CrossRef]
  3. Nielsen, M.A.; Chuang, I.L. Quantum Computation and Quantum Information: 10th Anniversary Edition, 10th ed.; Cambridge University Press: Cambridge, MA, USA, 2011. [Google Scholar]
  4. Karp, R. Reducibility among combinatorial problems. In Complexity of Computer Computations; Miller, R., Thatcher, J., Eds.; Plenum Press: Berlin, Germany, 1972; pp. 85–103. [Google Scholar]
  5. Chang, W.L.; Ren, T.T.; Feng, M.; Lu, L.C.; Lin, K.W.; Guo, M. Quantum Algorithms of the Subset-Sum Problem on a Quantum Computer. In Proceedings of the 2009 WASE International Conference on Information Engineering, Taiyuan, China, 10–11 July 2009; Volume 2, pp. 54–57. [Google Scholar] [CrossRef]
  6. Bernstein, D.J.; Jeffery, S.; Lange, T.; Meurer, A. Quantum Algorithms for the Subset-Sum Problem. In Post-Quantum Cryptography; Gaborit, P., Ed.; Springer: Berlin/Heidelberg, Germany, 2013; pp. 16–33. [Google Scholar]
  7. Howgrave-Graham, N.; Joux, A. New Generic Algorithms for Hard Knapsacks. Cryptology ePrint Archive, Report 2010/189. 2010. Available online: https://eprint.iacr.org/2010/189 (accessed on 27 July 2021).
  8. Helm, A.; May, A. Subset Sum Quantumly in 1.17n. In Proceedings of the 13th Conference on the Theory of Quantum Computation, Communication and Cryptography, Sydney, Australia, 16 July 2018; pp. 5:1–5:16. [Google Scholar]
  9. Li, Y.; Li, H. Improved quantum algorithm for the random subset sum problem. arXiv 2019, arXiv:1912.09264. [Google Scholar]
  10. Mezzini, M. Quirk’s Url of an Instance of the Partition Problem. 2021. Available online: https://tinyurl.com/kp38rajd (accessed on 27 July 2021).
  11. Beals, R.; Buhrman, H.; Cleve, R.; Mosca, M.; de Wolf, R. Quantum Lower Bounds by Polynomials. J. ACM 2001, 48, 778–797. [Google Scholar] [CrossRef]
  12. Svocil, K. Quantum Queries Associated with Equi-partitioning of States and Multipartite Relational Encoding Across Space-Time. Adv. Unconv. Comput. Emerg. Complex. Comput. 2017, 22, 429–438. [Google Scholar] [CrossRef] [Green Version]
Figure 1. H-S-H over | 0 .
Figure 1. H-S-H over | 0 .
Mathematics 09 02027 g001
Figure 2. (Left) The amplitudes of a z for n = 3 . (Right) The amplitudes of a z for n = 4 . In order to get the final amplitudes one should multiply them by a suitable normalization factor.
Figure 2. (Left) The amplitudes of a z for n = 3 . (Right) The amplitudes of a z for n = 4 . In order to get the final amplitudes one should multiply them by a suitable normalization factor.
Mathematics 09 02027 g002
Figure 3. An instance of PP in Quirk.
Figure 3. An instance of PP in Quirk.
Mathematics 09 02027 g003
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Mezzini, M.; Paulet, J.J.; Cuartero, F.; Cruz, H.I.; Pelayo, F.L. On the Amplitude Amplification of Quantum States Corresponding to the Solutions of the Partition Problem. Mathematics 2021, 9, 2027. https://doi.org/10.3390/math9172027

AMA Style

Mezzini M, Paulet JJ, Cuartero F, Cruz HI, Pelayo FL. On the Amplitude Amplification of Quantum States Corresponding to the Solutions of the Partition Problem. Mathematics. 2021; 9(17):2027. https://doi.org/10.3390/math9172027

Chicago/Turabian Style

Mezzini, Mauro, Jose J. Paulet, Fernando Cuartero, Hernan I. Cruz, and Fernando L. Pelayo. 2021. "On the Amplitude Amplification of Quantum States Corresponding to the Solutions of the Partition Problem" Mathematics 9, no. 17: 2027. https://doi.org/10.3390/math9172027

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