Next Article in Journal
Modelling and Analysis of Neuro Fuzzy Employee Ranking System in the Public Sector
Previous Article in Journal
Electromyography Gesture Model Classifier for Fault-Tolerant-Embedded Devices by Means of Partial Least Square Class Modelling Error Correcting Output Codes (PLS-ECOC)
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Machine Learning Study of High Robustness Quantum Walk Search Algorithm with Qudit Householder Coins

1
Institute of Solid State Physics, Bulgarian Academy of Sciences, 72 Tzarigradsko Chaussée, 1784 Sofia, Bulgaria
2
Institute for Nuclear Research and Nuclear Energy, Bulgarian Academy of Sciences, 72 Tzarigradsko Chaussée, 1784 Sofia, Bulgaria
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Algorithms 2023, 16(3), 150; https://doi.org/10.3390/a16030150
Submission received: 28 January 2023 / Revised: 24 February 2023 / Accepted: 7 March 2023 / Published: 9 March 2023

Abstract

:
In this work, the quantum random walk search algorithm with a walk coin constructed by generalized Householder reflection and phase multiplier has been studied. The coin register is one qudit with an arbitrary dimension. Monte Carlo simulations, in combination with supervised machine learning, are used to find walk coins that make the quantum algorithm more robust to deviations in the coin’s parameters. This is achieved by introducing functional dependence between these parameters. The functions that give the best performance of the algorithm are studied in detail by numerical statistical methods. A thorough comparison between our modification and an algorithm, with coins made using only Householder reflection, shows significant advantages of the former. By applying a deep neural network, we make a prediction for the parameters of an optimal coin with an arbitrary size and estimate the algorithm’s stability for such a coin.

1. Introduction

Many examples of the differences between the classical and quantum worlds can be given. The Quantum Random Walk (QRW) [1] is one of them. Quantum interferences allow quadratically faster graph traversal compared to the classical walk [2]. This was initially tested on simple structures such as line [3] and circle [3]. Later, QRW was used to study more complex structures, such as square and hexagonal grids [4,5], cylinders [6], torus [4], and hypercubes [7]. Faster hitting time and the ability to traverse arbitrary structures make QRW a good basis for a variety of quantum algorithms, such as the one for finding triangles in a graph [8], calculating Boolean formulas [9], quantum unsupervised machine learning [10], quantum neural networks [11], quantum signature schemes [12], and the quantum random walk search algorithm (QRWS) [13]. The latter algorithm is used to search different topologies, such as simplex and star, graphs [14], trees [15], square grids [4], and hypercubes [16]. Due to the diversity of tasks where QRW is used, a variety of experimental implementations have been considered, such as optical quantum computers [17], optical lattice [18], circuit QED [19], and ion traps [20].
Most quantum algorithms are constructed using two state systems—qubits. However, using qudits instead of qubits has many advantages. The most obvious of them is exponential growth of the databases, preserving the number of information carriers [21]. Other advantages of using qudits are that they are more robust to external noise quantum gates [22], have more secure semi-quantum [23] and quantum [24,25] cryptographic protocols, and increase the effectiveness of a variety of quantum algorithms. Examples of such algorithms are Shor’s factoring [26], Grover’s search [27], and quantum counting [28]. Qudits are also used in some quantum random walk-based algorithms, such as Boolean formula evaluation [9] and quantum unsupervised machine learning [10].
There are two main methods for generating arbitrary d-dimensional quantum gates used to construct algorithms with qudits—by Given’s rotations [29] and by Householder reflections (HR) [30]. Decomposing quantum gates to HRs is quadratically faster and can be used for qudits with an arbitrary dimension [31]. It can be implemented effectively on various physical system such as ion traps [32] and photonic quantum computer [33].
In the case of linear ion traps cooled to very low temperature and individual addressing of the ions and construction of qudit gates, this requires some additional conditions to be met. For example, all Rabi frequencies of the ions interacting with the laser fields have to have the same time dependence. An HR can also be applied to qudits, when they are created by multipod system [27]. All qudit states are metastable levels of the ion and transitions between them are made through the ancilla state. This technique requires precise control of the laser field’s parameters [32] (such as pulse shape and detuning). Some techniques for reducing the sensitivity to such error types already exists. For example, composite pulses [34] can be very useful in many applications. However, in some cases, composite pulses alone will not be enough to reduce the error to the appropriate level for the algorithm to work properly.
Studying the effects of noise in quantum information is necessary, as they have undesirable but inevitable effects on the quantum system, which leads to decoherence. The physical interactions that underlie the occurrence of noise depend on the implementation of the quantum computer. There are different types of errors that may occur, such as errors in the ion’s state’s population or errors in the quantum state’s phase. The effect of quantum noise on the system is often studied by assuming that the quantum gates are imperfect, or by adding additional noise gates [29,35]. The noise lowers the performance of quantum algorithms and quantum communication. For example, in [36], it was shown how noise strongly affects communication schemes based on quantum teleportation. As another example, in Grover’s algorithm decoherence reduces the probability to find the solution by increasing the needed iterations. When the number of errors in the quantum register, occurring during the algorithm’s implementation, passes a certain threshold—it stops working entirely [37].
The quantum walk, as in any other quantum system, interacts with the outside medium. This leads to noise that impacts its performance. That is why there is a lot of research on how the quantum walk is affected by noise. We will give a few examples. In one paper [38], using a one-dimensional quantum walk, an array of quantum dots was studied, where the authors paid particular attention to how noise and inaccuracies in their circuit gates affect the quantum walk. In Chandrashekar et al. [39], they presented a detailed theoretical study of the impact of different types of errors on the quantum walk on line when the coin has different symmetries. It is also discussed how different types of errors affect the QRW implementation in nuclear magnetic resonance quantum information processor and for atoms in an optical lattice. Due to the importance of knowing the type and magnitude of noise in a quantum system to assess its negative impact, a method that can be used to sense different types of noise in one- and two-dimensional quantum walks was studied [40].
A comparison of how noise affects Grover’s search and discrete QRWS algorithm was made [41]. Their numerical calculations suggest that QRWS is more robust against white noise. How continuous time QRWS on different topologies is affected by the noise is studied in the work by Chiang and Hsieh [42]. The authors also investigated the relation of certain quantum parameters and algorithm’s robustness. The continuous time quantum search algorithm on hypercube with noise was studied [43]. The discrete time quantum walk search algorithm with systematic phase error in the walk coin was investigated [44]. The authors use as a coin only Generalized HR, and show that the algorithm has very low robustness in this case. They investigated the algorithm’s stability against phase errors in the HR.
Currently, machine learning (ML) is a diverse and modern topic that is used for a variety of tasks that include speech recognition [45], image and video generation [46,47], and medical diagnostics [48]. The quantum analog of the classical ML is an object of high scientific interest too [49,50].
In our previous work [51], we discussed discrete time QRWS on a hypercube algorithm with a walk coin constructed by one generalized HR and a phase multiplier. Numerical simulations for some particular cases (coins consisting of 1, 2, and 3 qubits) and particular configuration of the parameters showed high robustness of the algorithm to inaccuracies in those parameters.
In the current work, we investigate the stability of the modified QRWS algorithm (constructed as in [51]) in the case of qudit coins with a size from 2 to 12. Linear and nonlinear functional dependencies between walk coin parameters are studied, and we show that some of those relations lead to high robustness of QRWS on hypercube. Here, we make a detailed analysis of the quantum algorithm’s robustness to simultaneous variations in both the generalized Householder phase and an additional parameter introduced by the nonlinear functions mentioned above. We show that there is a two-dimensional region in the combined space spanned by those parameters that gives very high robustness to the algorithm. Next, we point out that the modified algorithm becomes more stable than the one with coin built by just HR (as in [44]). Most of the results here are based on numerical methods, such as Monte Carlo simulations and ML, in addition to various numerical statistical techniques used to analyze the modified algorithm’s robustness for larger set of coin register size.
This paper is organized as follows: In Section 2, a particular modification of the QRWS algorithm has been described. First, in Section 2.1, a brief description of QRWS algorithm and its quantum circuit is given. Next, in Section 2.2, we show the definition of the HR and its use in the construction of the walk coin. The simulation’s results of the QRWS algorithm’s walk coin with arbitrary dimension using HR and an additional phase are explained in Section 3. In Section 3.1, our Monte Carlo method for studying QRWS algorithm is explained and a few examples with a qudit coin are given. Next, Section 3.2 shows functional dependencies derived by MC simulation used to make the QRWS algorithm more robust to inaccuracies in the parameters of the walk coin. Section 4 shows our main results in this paper. In Section 4.1, we analyze how the region of stability changes with increasing the coin size. Robustness against inaccuracies in the relation between parameters is studied in more depth in Section 4.2. Numerical calculations of the optimal value of the parameters in the functional dependence between the phases for different walk coin size are shown in Section 4.3, with included ML prognosis for larger coins. The paper finishes with a conclusion in Section 5.

2. Quantum Random Walk Search with an Alternative Walk Coin

2.1. Quantum Random Walk Search Algorithm—Quantum Circuit

Quantum random walk search is a quantum algorithm designed for searching an unsorted database with arbitrary topology. Because of the faster traversing of structures by the quantum random walk, QRWS is quadratically faster than its classical counterpart. The algorithm is probabilistic with the probability to find a solution depending on the node register size [13], topology of the searched structure [4,16], modification of the algorithm [16], and the number and position of the solutions [52,53]. The quantum circuit of the QRWS algorithm in the case of qudits is shown in Figure 1.
The algorithm begins with preparing the initial states of node ( | x i n i t ) and edge ( | c i n i t ) registers in equal weight superposition and the control register qubit is in state | 0 . Such superposition can be achieved by applying the Discrete Fourier Transform operator on the coin and node registers when each of them is in state | 0 . In Figure 1, those operators are denoted by F m and F n .
| c i n i t = 1 m i = 1 m | i
| x i n i t = 1 n i = 1 n | i
The dimensions of control, node, and coin registers are 2, n and m, accordingly. The initial state of the whole algorithm has dimension 2 m n and can be written as follows:
| ψ 0 = | x i n i t | c i n i t | 0
In the case of hypercube n = 2 m , so the dimension of the initial state is m 2 m + 1 .
The algorithm continues by applying the algorithm’s iteration a fixed number of times. The probability to find a solution is a periodic function of the number of iterations. Each iteration consists of the following steps:
First, an Oracle (O) is applied. Its goal is to recognize a solution and mark it, to ensure that the first coin C 0 (traversing coin) is applied to all non-solutions and the second coin C 1 (marking coin) is applied to all solutions. We have the following elements that are solutions h 1 , , h λ . The Oracle has dimension 2 n (in the case of hypercube 2 m + 1 ) and the following matrix form:
O = I ^ 2 n i = 1 λ [ h i , h i ] i = 1 λ [ h i n , h i n ] + i = 1 λ [ h i , h i n ] + i = 1 λ [ h i n , h i ]
Here, I ^ 2 n is the identity operator with dimension 2 n , and [ r , c ] denotes matrix element with value “1” positioned on the r-th row and c-th column. In this way, all register elements that are not solutions continue to stay in the second half of the register and all that are solutions are separated by moving them in the first half.
Traversing C 0 and marking coins C 1 are applied using controlled gates. Both controlled gates have block diagonal matrix representation and can be written as:
C 0 = I ^ m n 0 ^ m n 0 ^ m n C 0 I ^ n
C 1 = C 1 I ^ n 0 ^ m n 0 ^ m n I ^ m n
where 0 ^ m n is a matrix with dimension m n with all elements equal to zero. Hence, the simultaneous action of both controlled coins can be written as sequential applying of both operators:
C = C 0 · C 1
The operator C acts on the node, coin, and control registers. This ensures applying the right coin on the nodes.
However, after acting with the coin operators, the whole circuit’s register has to be returned to its initial form to ensure that the shift operator will make the desired walk. This should be performed by applying the inverse matrix of the Oracle. However, the Oracle is the inverse matrix of itself. This is why the Oracle has to be used a second time during each iteration of the QRWS algorithm. A description of the quantum circuit can also be seen in the following dissertation [54].
The shift operator S defines the topology of searched structure by determining which nodes are connected by an edge. Depending on the probabilities of going in each direction (coming from the coin register state) the shift operator acts on the node register and executes the quantum walk. The shift operator can be written in the following way:
S = i = 0 2 m 1 j = 0 2 n 1 | i , j i , g ( i , j ) | .
Here m is a function of the elements of the node register j and of the coin register i. This operator should be used at the end of each iteration. In case of a hypercube, the function g ( i , j ) flips the i-th bit of vector j.
The algorithm’s iteration (shown in Figure 1 of the quantum circuit with black rectangle) can be written as:
W = ( I ^ 2 S ) · ( O I ^ m ) · C · ( O I ^ m )
The state of the whole register after each iteration can be written as:
| ψ k + 1 = W | ψ k
The algorithm ends with a measurement of the node register. If the result is not one of the searched for elements, the algorithm is repeated.
The original QRWS for a hypercube [13] uses a Grover coin as traversing coin and have probability to find solution approximately 1 / 2 O ( 1 / 2 m ) , where m is the size of the edge register (and, respectively, node register has n = 2 m states). The number of iterations k of the QRWS algorithm for hypercube in case one solution is obtained analytically when the Grover coin is used [16]:
k = π 2 2 m 1
This formula can be used for a coin consisting of qubits or one qudit with arbitrary dimension.
The maximum probability to find a solution depends on the walk coin operator. In the next section, we will show the alternative construction of the walk coin using HR and a phase multiplier. A similar modification of the algorithm in the case of qubits is shown in [51].

2.2. Walk Coin by a Householder Reflection and an Additional Phase Multiplier

The traverse coin, on an undirected graph, can be constructed using one generalized HR with phase ϕ and one phase multiplier ζ in front of the coin, as is explained in [51]. The modified coin operator is:
C 0 ϕ , χ , ζ = e i ζ ( I ( 1 e i ϕ ) | χ χ | ) .
If the state used to build HR | χ is equal weight superposition, then the probability to go at each adjacent node is equal.
Here, we will study the dependence of the probability to find a solution for the phases ζ and ϕ . We will show that properly chosen relation between them will lead to more robust QRWS regardless of the node register’s number of states. This will increase the probability in all experimental implementations where HR can be performed efficiently.
Two simple examples of the coin operator C 0 with different values of angles are the Grover coin when ϕ = ζ = π (high probability) and the identity operator when ϕ = ζ = 0 (there is no random walk). In those cases, the probability to find solution of the QRWS depends only on the number of node register’s states (i.e., 2 m ). However, in the general case the dependence is more complex:
p ( ζ , ϕ , m ) = 1 2 O 1 2 m f ϕ , ζ .
To search for the hypercube with dimension m, the walk coin, in the general case, has to be made by qudits. If it consists of qubits—m will be a power of two, for qutrits—power of three, and so on. It is easy to see from Equation (13) that the algorithm can be implemented in all cases when the size of the coin register is the same even if the qudit internal structure is different—for example 2 qutrits or one qudit of size 9. However, the experimental realization will differ depending on the structure of the coin register. Further in this work, we will consider the case when the coin register is built by only one qudit with arbitrary dimension. The algorithm’s node register will consist of qubits.

3. Qrws with Qudit Coin Constructed by Householder Reflection

Here, we study QRWS on a hypercube with a qudit coin that has a dimension of up to 12 states. Using qudits instead of qubits gives us more detailed information how the algorithm’s parameters change as the coin size increases. Even more, the fact that qudits are more robust against noise, will further increase the modified QRWS algorithm’s stability.

3.1. Monte Carlo Simulations of Qrws

We carried out series of Monte Carlo simulations of QRWS algorithm with qudit coin. Our numerical code takes random values for both angles ϕ , ζ [ 0 , 2 π ] , and simulates the quantum algorithm with walk coin constructed by a HR and a phase multiplier with those values. The coin size is prior known, so we will consider it as constant ( m = c o n s t ). After each run of the QRWS algorithm’s simulation, the angles ( ϕ , ζ ) and the probability to find solution p ( ϕ , ζ ) are stored.
Examples of Monte Carlo simulations for coins with dimensions 5 and 9 are shown in Figure 2a and Figure 2b, correspondingly. The darker color shows higher probability to find a solution, and lighter color—smaller p ( ϕ , ζ ) . In the case of coin size m 4 , there is a stripe with high probability to find solution. As p ( ϕ , ζ ) increases, the width of the stripe decreases. In Appendix A in Figure A1, similar figures for coin size m [ 2 , 11 ] are shown. For m 4 , they have the same behavior as discussed above.
By using a ML model (described in Appendix F) trained on the Monte Carlo datapoints ( ϕ , ζ , p ( ϕ , ζ ) ) with coin size m [ 2 , 10 ] , we make a prediction for p ( ϕ , ζ ) , m 11 . The results for coin size 11 and 16 are plotted in Figure 3b and Figure 3c, respectively. They show that ML also confirms the observation from the last paragraph for reducing the width of the stripe of high p ( ϕ , ζ ) by increasing the coin size. In order to evaluate our ML model, in the case of QRWS with coin size m = 11 , additional Monte Carlo simulations were performed—they were our validation set. The results are given in Figure 3a. If we compare them with the ML predictions Figure 3b, except for a slight blurring in the ML extrapolations explained in Appendix F, both figures show quite similar behavior.
The observation of stripe with high probability p ( ζ , ϕ , m ) , persisting for all studied coin dimension, point us toward defining a function ζ = ζ ( ϕ ) , and the probability to find a solution becomes a curve p ( ϕ ) in the plane spanned by ζ and ϕ :
p ϕ , ζ , m p ϕ , ζ ( ϕ ) , m = c o n s t p ϕ
The construction of such a dependence between coin parameters effectively eliminates one of the coin parameters, while allowing us to significantly increase the quantum algorithm’s robustness, as will be shown in the next sections.

3.2. Robustness of the Coin for Different Functions ζ ( ϕ )

Let p m a x be the maximum probability to find solution (for particular m = c o n s t ) and ϕ m a x is the value of ϕ where p m a x is achieved. Let the phase ϕ vary in the interval defined by Δ = ( ϕ m a x ε , ϕ m a x + ε + ) , where ε and ε + are different for different angle dependencies ζ ( ϕ ) and coin sizes. In this case, the following equality holds:
p ϕ ( ϕ m a x ε , ϕ m a x + ε + ) p m a x = p ϕ m a x
Our goal is to find function ζ ( ϕ ) that gives the largest possible interval Δ . This will make the QRWS algorithm more robust to variation of the parameter ϕ .
Here, we will consider two types of functions. First, linear ones:
ζ = 2 ϕ + 3 π
and
ζ = π
are considered because the former (Equation (16)) gives the best linear fit and the latter line (Equation (17)) shows the case when parameter ζ is constant and this is a representation of the case when during the experiment no special relation between ϕ and ζ is preserved. The case ζ = π was studied by Zhang et al. in [44].
The second type of function we have considered is:
ζ = 2 ϕ + 3 π + α sin ( 2 ϕ ) , ϕ ϵ 0 , 2 π .
Such a non-linear function gives better results in comparison to the linear ones shown above. However, here we introduce another parameter α . The best value of α depends on the coin size, but relatively good initial choice is α = 1 / ( 2 π ) , as will be shown later in this paper. Such a curve better approximates p ( ϕ ) ; however, sinus function would be more difficult to implement in the experiments.
An in depth study of the value of parameter α obtained by Monte Carlo and ML, namely α M L , is given in Section 4.3. Using ML for prediction of α is required due to the impossibility of simulating the QRWS algorithm for large coin sizes.
The probability to find a solution for the functions specified above, in the case of coin size 5 and 9, is shown in Figure 4. Numerical simulations of the probability p ( ϕ ) , where different relations between coin parameters are used: (16) (red dot-dashed line), (17) (teal dashed line), and Equation (18) with α = 1 / ( 2 π ) (blue dotted line) were made, and the value α = α M L ( m ) is predicted by ML (solid green line). The lines given by Equations (16)–(18) have axial symmetry around the vertical line ϕ = π .
In Appendix B in Figure A2, the probabilities p ( ϕ , m ) , m [ 2 , 12 ] , for different functions ζ ( ϕ ) are shown (the same as in Figure 4).
A comparison between simulation results for our validation set, consisting of p ( ϕ , m = 11 ) and p ( ϕ , m = 12 ) of QRWS algorithm and predictions of the trained neural network for different relations ζ ( ϕ ) , is made to verify the reliability of the DNN extrapolations given in the paper. In Figure 5a lines are drawn, obtained from Monte Carlo simulations and in Figure 5b, which show the predictions of the ML model. It can be clearly seen that the curves on both figures show the same behavior as, for example, the similar shape of the different lines (the solid green, dotted blue, and dot-dashed red corresponding to α = α M L , α = ( 2 π ) 1 , α = 0 in Equation (18), respectively, and the dashed teal line—to Equation (17)). However, there are some asymmetries in the curves from the ML model. The lines in Figure 5c represent predictions of the neural network for QRWS algorithm with walk coin size m = 16 . By comparing both ML extrapolations for m = 11 (Figure 5b) and m = 16 (Figure 5c), it is visible that all lines became steeper and there is an increase in the high probability p ( ϕ , m ) plateau with the increase of m, an observation supported by the MC simulations for lower coin register size (Figure 4).
Due to higher computational time and memory demands, for coin size 12, we calculated fewer points for each of the probability curves (see Appendix B). However, those points were enough to confirm our predictions:
(1)
Reducing the width of the curves with increasing of m;
(2)
The suggested nonlinear dependence between angles (18) gives the highest stability of the algorithm. Worst performance is when ζ = c o n s t .
Those results give us the premise to argue that the QRWS built with an alternative walk coin, proposed in [51] and thoroughly studied in this work, will give more robust implementation of the quantum algorithm for large coin register.
Based on our numerical results, we predict that with increasing the coin size, the curves for probability p ( ϕ ) given by Equation (18) with α = 1 / ( 2 π ) and α = α M L ( m ) will become indistinguishable. Those curves will become steeper and closer to trapezoids.
Simulations of the algorithm with coin constructed using relation (18) result in higher p m a x in comparison with the standard construction (with constant phase factor ζ = π as in Equation (17)). In Table 1, are shown the maxima of probability p ( ϕ , ζ ( ϕ ) , m ) , for each of the functions ζ ( ϕ ) (Equation (16), Equation (17), and Equation (18) with α = 1 / ( 2 π ) and α = α M L ( m ) ) and coin size ϕ ϵ 0 , 2 π .
As the coin size increases, the probability to find the solution becomes higher. In the case of Equations (16) and (17) for coin size greater than 3 the maximum is always at the point with coordinates ϕ = π and ζ = π (corresponding to Grover coin). However, p m a x is not always at this point if Equation (18) is used. For example, when α = 1 / 2 π , relation (18) becomes ζ = 2 ϕ + 3 π + ( 1 / ( 2 π ) ) sin ( 2 ϕ ) . It gives higher p ( ϕ ) in comparison to the Grover coin for coin sizes m = 4 , 7 , 9 , 10 . In the particular case of m = 7 the maxima are at points φ m a x ( 1 ) and φ m a x ( 2 ) , where φ m a x ( 1 ) = 2.7925 and φ m a x ( 2 ) = 3.4907 (with numerical uncertainty Δ φ = 0.0349 ). From Table 1 it is clear that the increase is significant.
The results above show that the numerical methods used in this section can describe, important for us, properties of QRWS algorithm sufficiently well. That is why we use them to obtain the main results for the algorithm’s robustness.

4. Numerical Results

4.1. Region of Stability for Different Coin Sizes

During the experiments, there always are unavoidable time variations of the experimental setup’s parameters, such as in the frequency and the shape of the laser pulses controlling ions in the trap. In order to investigate the robustness of QRWS algorithm’s implementation we will study the half-length ε = ( ε + ε + ) / 2 of the interval Δ (defined in Section 3.2). This quantity will allow us to quantitatively evaluate the stability of the algorithm and make comparisons for different register sizes and functional dependencies between the coin parameters.
Here we show results for the width ε of each of the functions (16), (17), and Equation (18) with α = 1 / ( 2 π ) and α = α M L ( m ) , where m [ 2 , 16 ] . The solid lines correspond to results from MC simulation, and dashed lines—to prognosis given by ML. In Appendix F, an explanation of ML methods used and their drawbacks are given. Different colors and markers correspond to different dependence between phases in the walk coin. The red curve with 4-pointed star marker corresponds to Equation (16), the teal with 3-pointed star marker—to Equation (17), and the blue with 5-pointed star marker and the green with 2-pointed star marker—to Equation (18) with α = 1 / ( 2 π ) and α = α M L ( m ) correspondingly. We remark that MC points for m = 11 were not enough to obtain good ML estimation of α . This is why we used α M L ( m = 11 ) predicted with neural network model in QRWS algorithm simulation. This approach gives significantly better estimation for ε in the case m = 11 . In Figure 6 are shown examples for the values of ε in the cases when p ( ϕ ( ϕ m a x ε , ϕ m a x + ε + ) ) 0.9 × p m a x and analogically for 0.7 × p m a x :
The value of ε , depends on the coin size and on the function used to construct the coin. Monte Carlo simulation of QRWS using coins of size m 3 have completely different behavior compared with the larger coins as can be seen in Appendix A in Figure A1. For those cases, the Grover coin gives very low probability to find solution. This is the reason to exclude MC simulations of QRWS with coin size m 3 from further considerations.
In case of Equation (17) and for m = 4 the length ε is low and it continues to decrease with increasing coin size. The curve from Equation (16) for small coins have high value of the width ε , however it decreases fast with increasing the coin size. For large coin we predict that they will have similar behavior and Equation (17) will act like Equation (16) for smaller coin. So, the linear approximation is not good enough.
Equation (18) with α = 0 coincides with Equation (16). However, other values of α are much more promising. The probability p for coins constructed with functional dependence ζ ( ϕ ) , given by Equation (18), did not seem to decrease if the coin size increases. The curve corresponding to α = α M L ( m ) obtained by ML gives a slightly larger ε and shows slightly better behavior with increase of the coin size compared to α = 1 / ( 2 π ) . The value of ε deceases between 3 and 6, and remains approximately the same thereafter ( ε π / 4 ) as can be seen in Figure 6. The behavior of ε is slightly different when we evaluate it for different percentage of the maximum probability. Two examples for 0.9 × p m a x and 0.7 × p m a x are shown in Figure 6.
Based on Monte Carlo simulations, we predict that ε , when p ( ϕ ( ϕ m a x ε , ϕ m a x + ε + ) ) 0.9 × p m a x , and for coin constructed according to Equations (17) and (16), will decrease with increasing the coin size and for large coin ε 0 . However, when using Equation (18) with α = α M L , ε will remain constant with increasing the coin size. The interval ε with Equation (18) and α = ( 1 / ( 2 π ) ) , will become closer to ε corresponding to α = α M L and for large coins α M L ( 1 / ( 2 π ) ) . For lower percentage of the maximum height (for example 0.7 × p m a x ), for all those functions ε will decrease slowly with increasing the coin size and for large coin they will converge to a fixed value. The observations given above are supported by ML simulations, when we consider some drawbacks of our ML models, explained in Appendix F.
The analysis above gives us the base to assert that the half-width ε , did not decrease with increasing the coin register size if Equation (18) with optimal parameters is used. This indicates that such modification of QRWS algorithm retains its high robustness even for large coin size. Furthermore, that becomes very important when the registers reach several qudits enough for solving practical problems.

4.2. Analysis of Algorithm’S Robustness

The proposed in the work optimization of the QRWS algorithm is based on walk coin parameterized by two phases (see Equation (12)). We have showed in Section 3.2 that, if an optimal relation between them is maintained, the algorithm becomes more robust. Here, we will support this statement by numerical analysis of the stability of probability p to uncertainties in the walk coin parameters ϕ and α = α ( ϕ , ζ ) . The latter expression is derived by solving Equation (18) for α .
In Figure 7, simulations of the probability to find a solution p ϕ , α , m are shown as a function of the angle ϕ , the coin size m = 5 (in Figure 7a), m = 9 (in Figure 7b), and the parameter α of Equation (18).
For walk coin of size m 4 there is a central plateau with high values of the probability p ϕ , α , m . The lightest color area corresponds to p > 0.95 × p m a x ( m ) , the second contour is at p = 0.9 × p m a x ( m ) , etc. The values of p m a x ( m ) are given in Table 1. The plateau is relatively wide not only in the horizontal axis (along ϕ ), but in α direction too. Furthermore, this behavior remains the same for all simulated QRWS schemes with walk coin size up to 10, as could be verified from the figures illustrating the function p ϕ , α , m , 2 m 10 in Appendix D. The above observation shows that the gere proposed construction of the coin leads to a stable quantum algorithm against small deviations in both ϕ , and the parameter α introduced by our scheme.
The horizontal lines on both images of Figure 7 mark specific values for the angle α . The dashed gray, dash-dotted blue, and the solid green lines in Figure 7 correspond to α = 0 , α = 1 / ( 2 π ) , and α = α M L ( m ) (given in Table 2), respectively. The latter two lies close one to the other and both lie in regions with high probability p for all the simulated QRWS algorithms with walk coin size m 4 . This shows that the value α = 1 / ( 2 π ) is relatively good and could be used in practice, even if the optimal value of α is not known precisely for quantum algorithms with even larger registers.
To give quantitative proof for the increased robustness of the QRWS algorithm, we make estimation of the root-mean-square (r.m.s) deviation of the probability p ϕ , α , m for a fixed uncertainty in the parameters α and ϕ , namely σ α and σ ϕ . The numerical computations of the r.m.s. deviation of the probability σ p for each coin size m are performed at fixed points—the nodes of a square grid in the plane ( ϕ , α ) . Each node is indexed by a pair of numbers i and j. The values of the parameter ϕ are taken for 180 points equally spaced between 0 and 2 π , where ϕ i = 2 π / 179 ( i 1 ) , i = 1 , , 180 ( ϕ 0 = 0 , ϕ 180 = 2 π ) . Analogously, for α are taken 250 discrete values, so that α j = α m i n + ( ( α m a x α m i n ) ) / 249 ( j 1 ) , where j = 1 , , 250 , α m i n = 1.5 , and α m a x = 1 . We do not assume any correlation between these parameters and calculate the quantity:
σ p i j = 1 p i j p i j ϕ i 2 σ ϕ 2 ( ϕ i π ) 2 + p i j α j 2 σ α 2 ( α j α M L ( m ) ) 2
for each discrete point ϕ i and α j . We center the data around the points ( π , α M L ( m ) ) which lie in the middle of the region giving the most stable implementation of the quantum algorithm. Here, α M L ( m ) , 2 m 10 is the optimal value of the parameter α in Equation (18) obtained by fitting that expression to the numerical datapoints for QRWS with walk coin size m. Their values are given in Table 2.
The results for walk coin size 5 (Figure 8a) and 9 (Figure 8b) are graphically represented in a logarithmic scale. The actual values of the root-mean-square deviations σ α and σ ϕ depend on the particular physical realization of the algorithm, thus we have performed the computations with a fixed conservative value for both r.m.s. deviations σ α = σ ϕ = 0.1 . As can be seen from the figures, there is a relatively large central area where the r.m.s. deviation of the probability σ p is less than 0.01 , reaching levels σ p 10 4 in the innermost dark region. This behavior is the same for the quantum algorithm using a walk coin with five and nine states. The corresponding images in Figure A6 in Appendix E for coin of size 2 m 10 show similar characteristics. The above analysis confirms that the alternative walk coin, constructed by a HR and an additional phase, improves the QRWS algorithm, not only to obtain high probability p ϕ , α , m for large interval of ϕ , but also to have extremely high stability to changes in both parameters of the coin ( φ and α ).
It is useful to study how the robustness of the proposed construction of the QRWS algorithm compares to the stability of QRWS when the walk coin is built according to Equation (17)—corresponding to the case when the parameter ζ is not controlled as in [44] (if ϕ = π the Grover coin is obtained). We have calculated the r.m.s. of the probability for the latter case:
σ p i = 1 p i | p i ϕ i σ ϕ ( ϕ i π ) | .
Here σ ϕ = 0.1 and p ϕ , m is the probability to find a solution corresponding to the curves ζ = π given by Equation (17) (depicted with the dashed teal lines on both images of Figure 4).
In Figure 9, the ratios σ p / σ p are plotted at the logarithmic scale (similarly to the case of σ p i j in Equation (19)) and the division is performed for every value of α j (i.e., σ p i j / σ p i j = c o n s t ), where the number of points on the coordinate axes are 1 i 100 and 1 j 250 . Again, each node of the grid defined by the variables ϕ and α is indexed by a pair of numbers i and j. Here, ϕ m i n ϕ ϕ m a x and 1.5 α 1 . The angles ϕ m i n and ϕ m a x are chosen in such a way that the intervals in ϕ correspond to the high probability central peaks of p ( ϕ , ζ = π , m ) given by Equation (17) and plotted in Figure 4 (teal dashed lines). Outside this region, the probability p ( ϕ , ζ = π , m ) of the standard QRWS algorithm is very low and comparison of the robustness is not relevant to our study. In Figure 9a,b, the results are shown for coin size m = 5 and m = 9 , respectively. We will make remarks on two important points. First, the alternative QRWS shows stability O ( 10 2 ) in comparison to the most commonly used walk coin. Second, by comparing the two images for coin size five and nine in Figure 9 (all the images for 2 m 10 from Figure A7 in Appendix E show in general the same behavior), it can be seen that the relative stability further improves with increase of the coin size. For practical realizations of QRWS, the registers should have a large number of qubits(qudits). Thus, the expected improvement of the relative stability of the algorithm for a large walk coin register would lead to more robust experimental implementation of the QRWS algorithm.
In this section, we studied in more detail the stability of the QRWS algorithm constructed with an alternative walk coin. The results show the existence of a large area around the optimal coin parameter values with very small r.m.s. deviation of the probability p ϕ , α , m to uncertainties in both angles ϕ and α . If we compare the stability of the proposed QRWS algorithm to the one with the commonly used walk coin, an increase in the relative robustness is observed for higher coin register size. The results show strong indication that, despite introducing an additional parameter α for the walk coin operator, and in this way adding more possibilities for noise, the algorithm is more stable than the one studied in [44], where the angle ζ = π . These new results can be used for easier and robust implementation of QRWS algorithm.

4.3. Dependence between Alpha and Coin Size

In this section, we show results from in depth analysis of the parameter α introduced in our modification of QRWS algorithm for hypercube. Its value depends on the increase in the robustness of the studied modification of QRWS algorithm. Due to imperfections of the experimental setup, maximal theoretical probability to find a solution is unachievable. However, for many applications, probability equal to or higher than 0.9 × p m a x is sufficient. Based on this, we define the optimal value of alpha as the one that corresponds to a curve having the largest width at p = 0.9 × p m a x . The optimal values of α for each coin size m, namely α M L ( m ) , 2 m 20 are given in Table 2. For coin size 2 m 11 , they are extracted from the numerical simulations’ data and for 11 m 20 (primed values)—from predictions of a deep network model, trained with the Monte Carlo datapoints for 2 m 10 . A detailed explanation of the DNN models used in the paper is given in Appendix F. In the case of coin of size 11, we give two relatively close values of α M L . They are derived independently, the first one from the MC simulations’ data, and the second primed α M L comes from ML predictions. The value of α M L ( 11 ) obtained by MC has lower credibility because the simulated data points are much less than the ones for other values of m. The value α = 1 / ( 2 π ) 0.159 lies close to all α M L ( m ) , m 4 which justifies its use as a benchmark throughout the paper.
The values of α M L extracted only from Monte Carlo simulations’ data for QRWS with coin size m = 2 ÷ 10 are not enough to make any reasonable analysis of the behavior of this parameter for bigger coin size. However, by combining those results with the values of alpha obtained from the trained DNN models, we are able to make some predictions. To narrow the possible fitting functions, the following assumptions will be made. First, due to the completely different behavior of p ( ϕ , m ) for m = 2 , 3 (see for example Figure A1 and Figure A2), α M L ( m = 2 ) and α M L ( m = 3 ) are not included in the fitting procedure. Second, as explained in the text, the nonlinear term in Equation (18) could be considered to be a small perturbation to the linear functional dependence, so we expect that α will not become too large in absolute value for very large coin size m ( | α ( ) | < α , where α is a finite positive real number). An implication of the above statement is that if α M L ( m ) c o n s t (the simulations support this inequality), then α ( m ) should not be a linear function. Finally, the obtained values of α for different m, shown in Figure 10 (the teal dots are from MC data and the orange triangles represent ML predictions) are less than 20, so the fitting function has to be as simple as possible. We used a quadratic function and considered three scenarios. In the first scenario, we obtained α 1 ( m ) (the dotted blue line in Figure 10) by suggesting that all points have equal weight. α 2 ( m ) (the dot-dashed green line in Figure 10) is the fitting function, when the alpha values from the DNN model are considered to be less reliable (the fitting weights were set two times smaller) than the ones from Monte Carlo simulations data. The third, more well-grounded scenario, is an intermediate between the previous two. To obtain the function α 3 ( m ) (the dashed red line in Figure 10) we have suggested that the ML predictions are more reliable for smaller coin size. This is due to the fact that the training of ML models is performed with data points with coin size 4 m 10 . To numerically achieve this, we have set weight coefficients for α M L ( m ) , m = 11 ÷ 20 that decrease with increasing of m. The parameter values for the fitting functions (Equation (21)) in all of the studied scenarios are given in Table 3.
α i ( m ) = a m 2 + b m + c , i = 1 , 2 , 3
All three lines explained above and shown in Figure 10, representing the behavior of α M L as a function of the coin size in QRWS algorithm, meet the restrictions explained earlier in the section. The horizontal solid line plotted on the figure corresponds to α ( m ) = 1 / ( 2 π ) = c o n s t . All the functions α = α ( m ) suggest a relatively large value of α M L for coin registers with dimension even higher than 20. This translates to quantum algorithm able to search in a database with an arbitrary topology consisting of 2 m entries. The functions α i ( m ) , i = 1 , 2 , 3 given here, would allow physical implementation of the QRWS algorithm with increased robustness for any practically useful size of the database.
In this section, the relation between α and the coin size of QRWS algorithm has been thoroughly studied. This parameter introduced as a factor giving the nonlinearity in the functional dependence between walk coin angles ϕ and ζ , leads to an improvement in the stability of our modification of the random walk search algorithm. Here, by imposing a few reasonable restrictions to the possible fitting functions, three relations α = α ( m ) were numerically derived.

5. Conclusions

In this paper, we studied a modified QRWS algorithm with improved stability. It uses an alternative walk coin constructed by a HR and an additional phase multiplier. In this work, the more general qudit walk coin is studied. An implementation of the modified QRWS algorithm with qudits has the potential to have numerous advantages. For example, qudits’ robustness against noise, combined with the results presented in this paper, could make the quantum algorithm extremely stable to deviations in various experimental settings. Monte Carlo simulations of the QRWS algorithm for different sizes of the coin register were conducted. This allowed us to study in more detail the behavior of the proposed modification with increasing edge register’s dimensions. It also enabled us to make extrapolations for the QRWS algorithm’s stability at larger coin sizes. We have shown that, if a proper relation between the coin parameters is maintained, the quantum algorithm becomes much more robust, and this property remains true for every size of the quantum algorithm registers studied in the paper. We investigated the behavior of practically important quantities, such as the width of the area, resulting in high probability to find a solution and the maximum of this probability, for different coin parameters and relations between them. The dependence of nonlinear parameters (introduced in the relation between coin phases) on the coin size was also studied by Monte Carlo and ML methods. Optimal functional dependencies and parameter values are derived for a walk coin of size up to one qudit with 11 states. Even more, by using ML methods, we made extrapolations of the mentioned quantities for larger sizes of the coin. From an analysis of the Monte Carlo data and ML predictions, we show that the QRWS algorithm, with the proposed alternative walk coin, demonstrates high robustness to deviations of its parameters. We calculated the stability of the proposed alternative construction of the QRWS algorithm. The numerical results show that there exists a wide area in the space spanned by the walk coin’s parameters with extremely low root-mean-square uncertainty of the probability of QRWS algorithm to find a solution. The relative uncertainty of our modification of the quantum algorithm to the uncertainty of QRWS algorithm with a standard walk coin has been studied. We show that the former is more robust to coin parameter’s deviations and also that the relative stability increases for a larger coin register.

Author Contributions

These authors contributed equally to this work. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Bulgarian National Science Fund under Grant KP-06-M48/2/26.11.2020.

Data Availability Statement

The datasets generated during and analyzed in the current study are available from the corresponding author on reasonable request.

Acknowledgments

The work on this paper was supported by the Bulgarian National Science Fund under Grant K P -06-M48/2/26.11.2020.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
QRWQuantum Random Walk
QRWSQuantum Random Walk Search
HRHouseholder Reflection
MLMachine Learning
DNNDeep Neural Network
Eq.Equation

Appendix A. Monte Carlo Simulations for Different Coin Size

In Figure A1, Monte Carlo simulations’ results are shown of the probability to find solution p ( ϕ , ζ , m ) of the QRWS algorithm with a coin constructed by an HR and an additional phase multiplier. Simulation parameters are both phases ϕ and ζ . Different images correspond to different size of the coin m. The images in the first row represent QRWS with coin size m = 2 , 3 , 4 (Figure A1a–c), on the second—with m = 5 , 6 , 7 (Figure A1d–f) and on the third—with m = 8 , 9 , 10 (Figure A1g–i).
Figure A1. (Color online) Monte Carlo simulation of the probability to find solution p of QRWS algorithm with a coin constructed by a generalized HR and a phase multiplier. The coordinate axes correspond to the phases ϕ and ζ . In the first row are images for coin size m = 2 , 3 , 4 (ac), on the second—for m = 5 , 6 , 7 (df), and on the third—for m = 8 , 9 , 10 (gi). Higher probability is shown with darker color.
Figure A1. (Color online) Monte Carlo simulation of the probability to find solution p of QRWS algorithm with a coin constructed by a generalized HR and a phase multiplier. The coordinate axes correspond to the phases ϕ and ζ . In the first row are images for coin size m = 2 , 3 , 4 (ac), on the second—for m = 5 , 6 , 7 (df), and on the third—for m = 8 , 9 , 10 (gi). Higher probability is shown with darker color.
Algorithms 16 00150 g0a1
For coin size 2, areas with high probability p ϕ , ζ , m are chess-like arranged rhomboids. For coin size 3, those rhomboids begin to merge in the direction of the line ζ = 2 ϕ + 3 π . At coin size 4, the merged rhomboids became parallel stripes. From this point on, the stripes’ width begins to decrease with increasing the size of the coin.

Appendix B. Curves for Different Qudit Size

In Figure A2, the probability to find a solution p ( ϕ , ζ , m ) for different relations between ζ and ϕ is shown. The red dot-dashed line corresponds to Equation (16) and the teal dashed line—to Equation (17). The blue dotted and the solid green lines show Equation (18) with α = 1 / ( 2 π ) and α = α M L ( m ) correspondingly. In the first row are images for coin sizes 2, 3 (Figure A2a,b), on the second—4, 5 (Figure A2c,d), on the third—6, 7 (Figure A2e,f), on the fourth—8, 9 (Figure A2g,h), on the fifth—10, 12 (Figure A2i,j). The figure for coin size 12 is made with fewer points due to higher memory and CPU demands. For this case the simulated points are shown on the figure.
Figure A2. (Color online) Probability to find solution p ( ϕ , m ) for different coin size 2 m 10 and m = 12. In the first row are images for coin size m = 2 , 3 (a,b), on the second—for m = 4 , 5 (c,d), on the third—for m = 6 , 7 (e,f), on the fourth—for m = 8 , 9 (g,h), and on the fifth—for m = 10 , 12 (i,j). Different curves correspond to different relations between coin parameters: the red dot-dashed line—to Equation (16), the blue dotted line—to Equation (18) with α = 1 / ( 2 π ) , the teal dashed line—to Equation (17), the green line—to Equation (18) with α obtained by ML.
Figure A2. (Color online) Probability to find solution p ( ϕ , m ) for different coin size 2 m 10 and m = 12. In the first row are images for coin size m = 2 , 3 (a,b), on the second—for m = 4 , 5 (c,d), on the third—for m = 6 , 7 (e,f), on the fourth—for m = 8 , 9 (g,h), and on the fifth—for m = 10 , 12 (i,j). Different curves correspond to different relations between coin parameters: the red dot-dashed line—to Equation (16), the blue dotted line—to Equation (18) with α = 1 / ( 2 π ) , the teal dashed line—to Equation (17), the green line—to Equation (18) with α obtained by ML.
Algorithms 16 00150 g0a2

Appendix C. Region of Stability for Different Coin Sizes—Practical Consideration

In Section 4.1, the interval where the, probability to find solution exceeds certain percentage of its maximum value has been studied. The more practical point of view is to investigate the interval ε where the probability p is greater than a fixed value p > p L o c M ( m ) . This can be used in experiments, when the goal is to reach a certain probability to find a solution after each run of the algorithm. Results of simulations for p 0.37 and for p 0.31 are shown on the left and the right sides of Figure A3. Different colors correspond to different dependences between the phases in the walk coin. The red curve with the 4-pointed star marker corresponds to Equation (16), the teal with the 3-pointed star marker—to Equation (17), and the blue with the 5-pointed star marker and the green with the 2-pointed star marker correspond to Equation (18) with α = 1 / ( 2 π ) and α = α M L ( m ) correspondingly.
Figure A3. (Color online) Change of the width of the area with probability to find a solution greater than 0.37 (a) and greater than 0.31 (b). The red curve (4-pointed star marker) corresponds to Equation (16), the teal (3-pointed star marker) to Equation (17) and the blue (5-pointed star marker) and the green (2-pointed star marker) to Equation (18) with α = 1 / ( 2 π ) and α = α M L ( m ) correspondingly.
Figure A3. (Color online) Change of the width of the area with probability to find a solution greater than 0.37 (a) and greater than 0.31 (b). The red curve (4-pointed star marker) corresponds to Equation (16), the teal (3-pointed star marker) to Equation (17) and the blue (5-pointed star marker) and the green (2-pointed star marker) to Equation (18) with α = 1 / ( 2 π ) and α = α M L ( m ) correspondingly.
Algorithms 16 00150 g0a3
When the walk coin is obtained by Equation (18) with α = α M L ( m ) or α = 1 / ( 2 π ) we have better results. In Figure A3a ε for all curves decreases until reaching size 6, then it begins to slowly increase until reaching coin size 11. However, more information is needed to say with certainty how they will behave with a larger coin register. In Figure A3b, ε decreases fast until it reaches coin size 6 and then the decrease slows down.
The maximum probability to find solution increases with the coin size. Therefore, with the increase of the coin size, a fixed value of p becomes a smaller percentage of p m a x . That results in a different behavior of the curves compared to the ones in Figure 6. The lines in Figure A3 given by Equation (18) with α = α M L ( m ) and α = 1 / ( 2 π ) did not converge to a fixed value and they continue to increase. From the above, we make the hypothesis that the robustness of the proposed algorithm modification increases if greater probability than fixed value is desired.

Appendix D. Area of Stability of QRWS as Function of α and ϕ

In Figure A4, the probability p ϕ , α , m , when coin is constructed by a generalized HR and a phase multiplier (Equation (12)), and there is a relation between phases as in Equation (18), is shown. The walk coin depends on the phase ϕ , the parameter α , and the size of the coin 2 m 10 . Lighter colors correspond to higher p. The contours on the color plots show the probability p in the range between 5 % and 95 % of p m a x . The contour interval is 5 % .
The more important case from practical point of view, analogically to Appendix C, is when we search for areas with probability p greater than a fixed value. The images in Figure A5 show probability p as function of ϕ and α . However, contrary to Figure A4, here the contours are positioned at the same values of p for all coin sizes m [ 2 , 10 ] . Contour values are between 0.037 and 0.37.
Figure A4. (Color online) Probability to find solution p as function of ϕ and the parameter α in the non-linear Equation (18). The solid green line corresponds to α = α M L ( m ) , the dash-doted blue—to α = 1 / ( 2 π ) and dashed teal—to α = 0 . The lighter colors show higher probability and darker—lower. The scale is between 0 and p m a x , and the contours are at intervals 5 % × p m a x . The probabilities larger than 95 % × p m a x are depicted with the lightest color. Each picture corresponds to a different value of m [ 2 , 10 ] . In the first row from left to right are given the images for m = 2 , 3 , 4 (ac), on the second— m = 5 , 6 , 7 (df), and on the last— m = 8 , 9 , 10 (gi).
Figure A4. (Color online) Probability to find solution p as function of ϕ and the parameter α in the non-linear Equation (18). The solid green line corresponds to α = α M L ( m ) , the dash-doted blue—to α = 1 / ( 2 π ) and dashed teal—to α = 0 . The lighter colors show higher probability and darker—lower. The scale is between 0 and p m a x , and the contours are at intervals 5 % × p m a x . The probabilities larger than 95 % × p m a x are depicted with the lightest color. Each picture corresponds to a different value of m [ 2 , 10 ] . In the first row from left to right are given the images for m = 2 , 3 , 4 (ac), on the second— m = 5 , 6 , 7 (df), and on the last— m = 8 , 9 , 10 (gi).
Algorithms 16 00150 g0a4
Figure A5. (Color online)Probability to find solution p as function of ϕ and the parameter α in the non-linear Equation (18). The solid green line corresponds to α = α M L ( m ) , the dash-doted blue—to α = 1 / ( 2 π ) and dashed teal—to α = 0 . The lighter colors show higher probability and darker—lower. The scale is from 0 to p m a x , and the contours are at fixed values of p (between 0.037 and 0.37). Each picture corresponds to a different value of m [ 2 , 10 ] . In the first row from left to right are given the images for m = 2 , 3 , 4 (ac), on the second— m = 5 , 6 , 7 (df), and on the last— m = 8 , 9 , 10 (gi).
Figure A5. (Color online)Probability to find solution p as function of ϕ and the parameter α in the non-linear Equation (18). The solid green line corresponds to α = α M L ( m ) , the dash-doted blue—to α = 1 / ( 2 π ) and dashed teal—to α = 0 . The lighter colors show higher probability and darker—lower. The scale is from 0 to p m a x , and the contours are at fixed values of p (between 0.037 and 0.37). Each picture corresponds to a different value of m [ 2 , 10 ] . In the first row from left to right are given the images for m = 2 , 3 , 4 (ac), on the second— m = 5 , 6 , 7 (df), and on the last— m = 8 , 9 , 10 (gi).
Algorithms 16 00150 g0a5

Appendix E. Robustness of the Modified Quantum Random Walk Algorithm for Different Size of the Walk Coin

In Section 4.2, the stability of our proposed modification of the QRWS algorithm was investigated. A quantitative description of the root-mean-square deviation of the probability to find solution and the relative improvement in the stability have been graphically presented in the cases of walk coin size 5 and 9.
Here, in Figure A6, we give a complete set of results for the robustness of the QRWS algorithm, as defined in Equation (19), for coin of size 2 m 10 . It can be seen that, in all the images, there is a wide central area (darker colors) where the r.m.s. deviation of the probability σ p is extremely low for small changes in the parameters ϕ and α .
Figure A6. (Color online) Root-mean-square deviation of the probability p ϕ , α , m , given with Equation (19), for walk coin of size m = 2 , 3 , 4 (ac), m = 5 , 6 , 7 (df), and m = 8 , 9 , 10 (gi). The dark central area represents high stability region of the quantum algorithm for small deviations of the algorithm’s parameters ϕ and α . The dashed gray, the dash-dotted blue, and the solid green lines correspond to α = 0 , α = 1 / ( 2 π ) , and α = α M L .
Figure A6. (Color online) Root-mean-square deviation of the probability p ϕ , α , m , given with Equation (19), for walk coin of size m = 2 , 3 , 4 (ac), m = 5 , 6 , 7 (df), and m = 8 , 9 , 10 (gi). The dark central area represents high stability region of the quantum algorithm for small deviations of the algorithm’s parameters ϕ and α . The dashed gray, the dash-dotted blue, and the solid green lines correspond to α = 0 , α = 1 / ( 2 π ) , and α = α M L .
Algorithms 16 00150 g0a6
Analogously, in Figure A7 the numerical calculations’ results for the ratio of the relative stability of the modified QRWS algorithm proposed by us are presented, to the one with standard construction of the walk coin. By increasing the coin size from m = 2 to m = 10 , an expansion of the central dark area can be observed. This indicates that with increase of the coin size, the algorithm’s relative stability continues to improve.
Figure A7. (Color online) Relative stability of the QRWS algorithm with walk coin size m = 2 , 3 , 4 (ac), m = 5 , 6 , 7 (df), and m = 8 , 9 , 10 (gi), given by the ratio of the root-mean-square uncertainty with and without the proposed optimization of the coin. The chosen ranges of the parameter ϕ correspond to the high probability central peaks of p ( ϕ , ζ = π , m ) (Equation (17)). The dashed gray, dash-dotted blue, and the solid green lines correspond to α = 0 , α = 1 / ( 2 π ) , and α = α M L .
Figure A7. (Color online) Relative stability of the QRWS algorithm with walk coin size m = 2 , 3 , 4 (ac), m = 5 , 6 , 7 (df), and m = 8 , 9 , 10 (gi), given by the ratio of the root-mean-square uncertainty with and without the proposed optimization of the coin. The chosen ranges of the parameter ϕ correspond to the high probability central peaks of p ( ϕ , ζ = π , m ) (Equation (17)). The dashed gray, dash-dotted blue, and the solid green lines correspond to α = 0 , α = 1 / ( 2 π ) , and α = α M L .
Algorithms 16 00150 g0a7

Appendix F. Deep Network Model and Machine Learning Predictions

Simulations of quantum algorithms with a large number of qudits by classical computers are very demanding to computational resources. Simulating a QRWS algorithm for m-dimensional hypercube requires constructing a tensor product of the three registers used in the algorithm (control register of size 2, coin register of size m, and node register with dimension 2 m ), so the total state space is m 2 ( m + 1 ) . The number of the algorithm’s iterations needed to find solution also grows with increasing the coin size. Raising the size of both operators and the number of iterations leads to much larger computational times.
That requires an alternative approach to the task. In this paper, predictions of the studied quantum algorithm’s parameters for bigger walk coin size, and, respectively, higher searchable space size, are made with ML methods.
Here, by Monte Carlo simulations of QRWS algorithm with different size of the coin register, we are able to obtain larger set of independent data that is used to train a ML model.
A feed-forward deep neural network (DNN) was built using the Monte Carlo generated datapoints for coin size 2 m 10 to train it. Each datapoint consists of the walk coin parameters’ values ϕ , ζ , m, and the corresponding MC results for the probability p ϕ , ζ , m as labels. The neural network consists of L hidden layers, each with N neurons. The structure of the model used is shown in Figure A8. Next, the ML model is trained for a large number of epochs. Finally, it is used for predictions of the three-parameter function p ϕ , ζ , m , where ϕ [ 0 , 2 π ] , ζ [ 0 , 2 π ] , m 2 (the results for coin size 11 and 16 are plotted in Figure 3). The values of parameters α and ε defined in Section 4.1 are extracted by analyzing the above relations. Although our ML model gives relatively reliable predictions for several characteristics of the QRWS algorithm that are explained in the paper, others are not so good.
Figure A8. (Color online) Scheme of the Deep neural network used for prediction of the probability p ( φ , ζ , m 11 ) .
Figure A8. (Color online) Scheme of the Deep neural network used for prediction of the probability p ( φ , ζ , m 11 ) .
Algorithms 16 00150 g0a8
It is a well known fact that using DNN for interpolation gives very good results. However, extrapolations away from the training region of the model result in inaccuracies in the predictions. In our case, they mainly manifest in small asymmetric widening of the central high probability strip of p ϕ , ζ , m (Figure 3—middle and right images) that leads to some overestimation of the width ε , particularly for higher coin size m, seen in Figure 6. These deviations are more clearly visible when we focus on the highly nonlinear part of the function p ϕ , ζ , m shown in Figure 3 for m = 11 , 16 .

References

  1. Aharonov, Y.; Davidovich, L.; Zagury, N. Quantum random walks. Phys. Rev. A 1993, 48, 1687–1690. [Google Scholar] [CrossRef]
  2. Lawler, G.F.; Limic, V. Random Walk: A Modern Introduction; Cambridge Studies in Advanced Mathematics; Cambridge University Press: Cambridge, UK, 2010. [Google Scholar] [CrossRef] [Green Version]
  3. Travaglione, B.C.; Milburn, G.J. Implementing the quantum random walk. Phys. Rev. A 2002, 65, 032310. [Google Scholar] [CrossRef] [Green Version]
  4. Ambainis, A.; Kempe, J.; Rivosh, A. Coins Make Quantum Walks Faster. arXiv 2004, arXiv:quant-ph/0402107. [Google Scholar]
  5. Di Crescenzo, A.; Macci, C.; Martinucci, B.; Spina, S. Analysis of random walks on a hexagonal lattice. IMA J. Appl. Math. 2019, 84, 1061–1081. [Google Scholar] [CrossRef]
  6. Bru, L.A.; de Valcárcel, G.J.; Di Molfetta, G.; Pérez, A.; Roldán, E.; Silva, F. Quantum walk on a cylinder. Phys. Rev. A 2016, 94, 032328. [Google Scholar] [CrossRef] [Green Version]
  7. Kempe, J. Quantum Random Walks Hit Exponentially Faster. arXiv 2002, arXiv:quant-ph/0205083. [Google Scholar]
  8. Magniez, F.; Santha, M.; Szegedy, M. Quantum Algorithms for the Triangle Problem. SIAM J. Comput. 2007, 37, 413–424. [Google Scholar] [CrossRef]
  9. Ambainis, A.; Childs, A.M.; Reichardt, B.W.; Špalek, R.; Zhang, S. Any AND-OR Formula of Size N Can Be Evaluated in Time N1/2+o(1) on a Quantum Computer. SIAM J. Comput. 2010, 39, 2513–2530. [Google Scholar] [CrossRef]
  10. Sornsaeng, A.; Dangniam, N.; Palittapongarnpim, P.; Chotibut, T. Quantum diffusion map for nonlinear dimensionality reduction. arXiv 2021, arXiv:2106.07302. [Google Scholar] [CrossRef]
  11. Dernbach, S.; Mohseni-Kabir, A.; Pal, S.; Towsley, D. Quantum Walk Neural Networks for Graph-Structured Data. In Proceedings of the Complex Networks and Their Applications VII, Studies in Computational Intelligence, Cambridge, UK, 11–13 December 2018; Aiello, L.M., Cherifi, C., Cherifi, H., Lambiotte, R., Lió, P., Rocha, L.M., Eds.; Springer International Publishing: Cham, Switzerland, 2019; pp. 182–193. [Google Scholar] [CrossRef]
  12. Feng, Y.; Shi, R.; Shi, J.; Zhou, J.; Guo, Y. Arbitrated quantum signature scheme with quantum walk-based teleportation. Quantum Inf. Process. 2019, 18, 154. [Google Scholar] [CrossRef]
  13. Shenvi, N.; Kempe, J.; Whaley, K.B. Quantum random-walk search algorithm. Phys. Rev. A 2003, 67, 052307. [Google Scholar] [CrossRef] [Green Version]
  14. Novo, L.; Chakraborty, S.; Mohseni, M.; Neven, H.; Omar, Y. Systematic Dimensionality Reduction for Quantum Walks: Optimal Spatial Search and Transport on Non-Regular Graphs. Sci. Rep. 2015, 5, 13304. [Google Scholar] [CrossRef] [Green Version]
  15. Koch, D.; Hillery, M. Finding paths in tree graphs with a quantum walk. Phys. Rev. A 2018, 97, 012308. [Google Scholar] [CrossRef] [Green Version]
  16. Potoček, V.; Gábris, A.; Kiss, T.; Jex, I. Optimized quantum random-walk search algorithms on the hypercube. Phys. Rev. A 2009, 79, 012325. [Google Scholar] [CrossRef] [Green Version]
  17. Giordani, T.; Polino, E.; Emiliani, S.; Suprano, A.; Innocenti, L.; Majury, H.; Marrucci, L.; Paternostro, M.; Ferraro, A.; Spagnolo, N.; et al. Experimental Engineering of Arbitrary Qudit States with Discrete-Time Quantum Walks. Phys. Rev. Lett. 2019, 122, 020503. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  18. Côté, R.; Russell, A.; Eyler, E.E.; Gould, P.L. Quantum random walk with Rydberg atoms in an optical lattice. New J. Phys. 2006, 8, 156. [Google Scholar] [CrossRef]
  19. Zhou, J.Q.; Cai, L.; Su, Q.P.; Yang, C.P. Protocol of a quantum walk in circuit QED. Phys. Rev. A 2019, 100, 012343. [Google Scholar] [CrossRef] [Green Version]
  20. Fujiwara, S.; Osaki, H.; Buluta, I.M.; Hasegawa, S. Scalable networks for discrete quantum random walks. Phys. Rev. A 2005, 72, 032329. [Google Scholar] [CrossRef]
  21. Bullock, S.S.; O’Leary, D.P.; Brennen, G.K. Asymptotically Optimal Quantum Circuits for d-Level Systems. Phys. Rev. Lett. 2005, 94, 230502. [Google Scholar] [CrossRef] [Green Version]
  22. Gokhale, P.; Baker, J.M.; Duckering, C.; Brown, N.C.; Brown, K.R.; Chong, F.T. Asymptotic improvements to quantum circuits via qutrits. In Proceedings of the 46th International Symposium on Computer Architecture, Phoenix, AZ, USA, 22–26 June 2019; Association for Computing Machinery: New York, NY, USA, 2019; pp. 554–566. [Google Scholar] [CrossRef] [Green Version]
  23. Hajji, H.; El Baz, M. Qutrit-based semi-quantum key distribution protocol. Quantum Inf. Process. 2021, 20, 4. [Google Scholar] [CrossRef]
  24. Bruß, D.; Macchiavello, C. Optimal Eavesdropping in Cryptography with Three-Dimensional Quantum States. Phys. Rev. Lett. 2002, 88, 127901. [Google Scholar] [CrossRef] [Green Version]
  25. Durt, T.; Kaszlikowski, D.; Chen, J.L.; Kwek, L.C. Security of quantum key distributions with entangled qudits. Phys. Rev. A 2004, 69, 032313. [Google Scholar] [CrossRef] [Green Version]
  26. Bocharov, A.; Roetteler, M.; Svore, K.M. Factoring with qutrits: Shor’s algorithm on ternary and metaplectic quantum architectures. Phys. Rev. A 2017, 96, 012306. [Google Scholar] [CrossRef] [Green Version]
  27. Ivanov, S.S.; Tonchev, H.S.; Vitanov, N.V. Time-efficient implementation of quantum search with qudits. Phys. Rev. A 2012, 85, 062321. [Google Scholar] [CrossRef] [Green Version]
  28. Tonchev, H.S.; Vitanov, N.V. Quantum phase estimation and quantum counting with qudits. Phys. Rev. A 2016, 94, 042307. [Google Scholar] [CrossRef]
  29. Nielsen, M.A.; Chuang, I.L. Quantum Computation and Quantum Information; Cambridge University Press: Cambridge, UK, 2007. [Google Scholar]
  30. Ivanov, P.A.; Kyoseva, E.S.; Vitanov, N.V. Engineering of arbitrary U(N) transformations by quantum Householder reflections. Phys. Rev. A 2006, 74, 022323. [Google Scholar] [CrossRef] [Green Version]
  31. Vitanov, N.V. Synthesis of arbitrary SU(3) transformations of atomic qutrits. Phys. Rev. A 2012, 85, 032331. [Google Scholar] [CrossRef] [Green Version]
  32. Ivanov, P.A.; Vitanov, N.V. Synthesis of arbitrary unitary transformations of collective states of trapped ions by quantum Householder reflections. Phys. Rev. A 2008, 77, 012335. [Google Scholar] [CrossRef]
  33. Kyoseva, E.S.; Angelakis, D.G.; Kwek, L.C. A single-interaction step implementation of a quantum search in coupled micro-cavities. EPL 2010, 89, 20005. [Google Scholar] [CrossRef]
  34. Torosov, B.T.; Kyoseva, E.; Vitanov, N.V. Fault-tolerant composite Householder reflection. J. Phys. B 2015, 48, 135502. [Google Scholar] [CrossRef] [Green Version]
  35. Bassi, A.; Deckert, D.A. Noise gates for decoherent quantum circuits. Phys. Rev. A 2008, 77, 032323. [Google Scholar] [CrossRef] [Green Version]
  36. Feng, Y.Y.; Zhou, J.; Zhang, D.B.; Shi, J.J. Parameterized Quantum Circuits for Learning Cooperative Quantum Teleportation. Adv. Quantum Technol. 2022, 5, 2200040. [Google Scholar] [CrossRef]
  37. Salas, P.J. Noise effect on Grover algorithm. Eur. Phys. J. D 2008, 46, 365–373. [Google Scholar] [CrossRef] [Green Version]
  38. Manouchehri, K.; Wang, J.B. Quantum walks in an array of quantum dots. J. Phys. A 2008, 41, 6. [Google Scholar]
  39. Chandrashekar, C.M.; Srikanth, R.; Banerjee, S. Symmetries and noise in quantum walk. Phys. Rev. A 2007, 76, 022316. [Google Scholar] [CrossRef] [Green Version]
  40. Chen, T.; Zhang, X.; Zhang, X. Quantum sensing of noises in one and two dimensional quantum walks. Sci. Rep. 2017, 7, 4962. [Google Scholar] [CrossRef]
  41. Lei, M.; Jiang-Feng, D.; Yun, L.; Hui, L.; C, K.L.; H, O.C. White Noise in Quantum Random Walk Search Algorithm. Chin. Phys. Lett. 2006, 23, 779. [Google Scholar] [CrossRef]
  42. Chiang, C.F.; Hsieh, C.Y. Noise Characterization: Keeping Reduction Based Per-turbed Quantum Walk Search Optimal. EPJ Web Conf. 2019, 198, 00001. [Google Scholar] [CrossRef]
  43. Morley, J.G.; Chancellor, N.; Bose, S.; Kendon, V. Quantum search with hybrid adiabatic–quantum-walk algorithms and realistic noise. Phys. Rev. A 2019, 99, 022339. [Google Scholar] [CrossRef] [Green Version]
  44. Zhang, Y.C.; Bao, W.S.; Wang, X.; Fu, X.Q. Effects of systematic phase errors on optimized quantum random-walk search algorithm. Chin. Phys. B 2015, 24, 060304. [Google Scholar] [CrossRef] [Green Version]
  45. Nassif, A.B.; Shahin, I.; Attili, I.; Azzeh, M.; Shaalan, K. Speech Recognition Using Deep Neural Networks: A Systematic Review. IEEE Access 2019, 7, 19143–19165. [Google Scholar] [CrossRef]
  46. Liu, S.; Wang, T.; Bau, D.; Zhu, J.Y.; Torralba, A. Diverse Image Generation via Self-Conditioned GANs. arXiv 2022, arXiv:2006.10728. [Google Scholar]
  47. Wen, S.; Liu, W.; Yang, Y.; Huang, T.; Zeng, Z. Generating Realistic Videos From Keyframes With Concatenated GANs. IEEE Trans. Circuits Syst. Video Technol. 2019, 29, 2337–2348. [Google Scholar] [CrossRef]
  48. Wong, D.; Yip, S. Machine learning classifies cancer. Nature 2018, 555, 446–447. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  49. Shi, J.; Wang, W.; Lou, X.; Zhang, S.; Li, X. Parameterized Hamiltonian Learning with Quantum Circuit. IEEE Trans. Pattern Anal. Mach. Intell. 2022, 1–10. [Google Scholar] [CrossRef] [PubMed]
  50. Shi, J.; Tang, Y.; Lu, Y.; Feng, Y.; Shi, R.; Zhang, S. Quantum Circuit Learning with Parameterized Boson Sampling. IEEE Trans. Knowl. Data Eng. 2023, 35, 1965–1976. [Google Scholar] [CrossRef]
  51. Tonchev, H.; Danev, P. Optimizing the walk coin in the quantum random walk search algorithm through machine learning. arXiv 2021, arXiv:2105.08020. [Google Scholar]
  52. Zhang, Y.C.; Bao, W.S.; Wang, X.; Fu, X.Q. Optimized quantum random-walk search algorithm for multi-solution search. Chin. Phys. B 2015, 24, 110309. [Google Scholar] [CrossRef]
  53. Saha, A.; Majumdar, R.; Saha, D.; Chakrabarti, A.; Sur-Kolay, S. Faster Search of Clustered Marked States with Lackadaisical Quantum Walks. arXiv 2021, arXiv:2107.02049. [Google Scholar] [CrossRef]
  54. Hoyer, S. Quantum Random Walk Search on Satisfiability Problems. Bachelor’s Thesis, Swarthmore College, Department of Physics and Astronomy, Swarthmore, PA, USA, 2008. Available online: http://hdl.handle.net/10066/10450 (accessed on 23 February 2023).
Figure 1. (Color online) Circuit of quantum random walk search algorithm.
Figure 1. (Color online) Circuit of quantum random walk search algorithm.
Algorithms 16 00150 g001
Figure 2. (Color online) Probability to find solution for coin sizes m = 5 (a) and m = 9 (b). The probability p is plotted as a function of the angles ϕ and ζ .
Figure 2. (Color online) Probability to find solution for coin sizes m = 5 (a) and m = 9 (b). The probability p is plotted as a function of the angles ϕ and ζ .
Algorithms 16 00150 g002
Figure 3. (Color online) Probability to find solution p ( ϕ , ζ , m ) for coin sizes m = 11 (a,b) and m = 16 (c). The image (a) shows Monte Carlo simulation results and images (b,c) show the ML predictions.
Figure 3. (Color online) Probability to find solution p ( ϕ , ζ , m ) for coin sizes m = 11 (a,b) and m = 16 (c). The image (a) shows Monte Carlo simulation results and images (b,c) show the ML predictions.
Algorithms 16 00150 g003
Figure 4. (Color online) The probability to find a solution for coin sizes 5 (a) and 9 (b) in the case of different functions ζ ( ϕ ) . The red dot-dashed line corresponds to Equation (16), the blue dotted line—to Equation (18) with α = 1 / ( 2 π ) , the teal dashed line—to Equation (17), the solid green line—to Equation (18) with α obtained by ML.
Figure 4. (Color online) The probability to find a solution for coin sizes 5 (a) and 9 (b) in the case of different functions ζ ( ϕ ) . The red dot-dashed line corresponds to Equation (16), the blue dotted line—to Equation (18) with α = 1 / ( 2 π ) , the teal dashed line—to Equation (17), the solid green line—to Equation (18) with α obtained by ML.
Algorithms 16 00150 g004
Figure 5. (Color online) The probability to find a solution p ( ϕ , m ) for different functions ζ ( ϕ ) : the red dot-dashed line corresponds to Equation (16), the blue dotted line—to Equation (18) with α = 1 / ( 2 π ) , the teal dashed line—to Equation (17), the green line—to Equation (18) with α obtained by ML. (a) shows results from Monte Carlo simulations for coin size m = 11 , (b)—ML predictions for m = 11 , and the one on (c)—ML predictions for m = 16 .
Figure 5. (Color online) The probability to find a solution p ( ϕ , m ) for different functions ζ ( ϕ ) : the red dot-dashed line corresponds to Equation (16), the blue dotted line—to Equation (18) with α = 1 / ( 2 π ) , the teal dashed line—to Equation (17), the green line—to Equation (18) with α obtained by ML. (a) shows results from Monte Carlo simulations for coin size m = 11 , (b)—ML predictions for m = 11 , and the one on (c)—ML predictions for m = 16 .
Algorithms 16 00150 g005
Figure 6. (Color online) Change of the area width ε , having probability to find solution equal to percentage of the maximum probability p m a x , with increase of the coin size m. (a) shows the case for 90 % × p m a x and (b)—for 70 % × p m a x . The red curve with 4-pointed star marker corresponds to Equation (16), the teal with 3-pointed star marker—to Equation (17), and the blue with 5-pointed star marker and the green with 2-pointed star marker—to Equation (18) with α = 1 / ( 2 π ) and α = α M L ( m ) correspondingly. The solid lines correspond to values obtained by MC simulations, dashed to—results prognosed by ML.
Figure 6. (Color online) Change of the area width ε , having probability to find solution equal to percentage of the maximum probability p m a x , with increase of the coin size m. (a) shows the case for 90 % × p m a x and (b)—for 70 % × p m a x . The red curve with 4-pointed star marker corresponds to Equation (16), the teal with 3-pointed star marker—to Equation (17), and the blue with 5-pointed star marker and the green with 2-pointed star marker—to Equation (18) with α = 1 / ( 2 π ) and α = α M L ( m ) correspondingly. The solid lines correspond to values obtained by MC simulations, dashed to—results prognosed by ML.
Algorithms 16 00150 g006
Figure 7. (Color online) Probability of QRWS algorithm to find solution p ϕ , α , m as a function of α and ϕ for walk coin of size m = 5 (a) and m = 9 (b). The horizontal lines represent simulation of QRWS algorithm with α = 0 —dashed gray line, α = 1 / ( 2 π ) —dash-dotted blue line, and the solid green line correspond to α M L ( m ) given in Table 2.
Figure 7. (Color online) Probability of QRWS algorithm to find solution p ϕ , α , m as a function of α and ϕ for walk coin of size m = 5 (a) and m = 9 (b). The horizontal lines represent simulation of QRWS algorithm with α = 0 —dashed gray line, α = 1 / ( 2 π ) —dash-dotted blue line, and the solid green line correspond to α M L ( m ) given in Table 2.
Algorithms 16 00150 g007
Figure 8. (Color online) R.m.s. deviation of the probability p ϕ , α , m , given by Equation (19), for walk coin of size m = 5 (on (a)) and m = 9 (on (b)). The dark central area represents high robustness of the quantum algorithm for small deviations of the algorithm’s parameters. The dashed gray, dash-dotted blue, and the solid green lines correspond to α = 0 , α = 1 / ( 2 π ) , and α = α M L .
Figure 8. (Color online) R.m.s. deviation of the probability p ϕ , α , m , given by Equation (19), for walk coin of size m = 5 (on (a)) and m = 9 (on (b)). The dark central area represents high robustness of the quantum algorithm for small deviations of the algorithm’s parameters. The dashed gray, dash-dotted blue, and the solid green lines correspond to α = 0 , α = 1 / ( 2 π ) , and α = α M L .
Algorithms 16 00150 g008
Figure 9. (Color online) Relative stability of the QRWS algorithm with walk coin size m = 5 (a) and m = 9 (b), given by the ratio of the root-mean-square uncertainty with and without the proposed optimization of the coin (Equation (19) and Equation (20), respectively). The chosen ranges of the parameter ϕ correspond to the high probability central peaks of p ( ϕ , ζ = π , m ) (Equation (17)). The dashed gray, the dash-dotted blue, and the solid green lines are obtained from Equation (18) with α = 0 , α = 1 / ( 2 π ) , and α = α M L ( m ) .
Figure 9. (Color online) Relative stability of the QRWS algorithm with walk coin size m = 5 (a) and m = 9 (b), given by the ratio of the root-mean-square uncertainty with and without the proposed optimization of the coin (Equation (19) and Equation (20), respectively). The chosen ranges of the parameter ϕ correspond to the high probability central peaks of p ( ϕ , ζ = π , m ) (Equation (17)). The dashed gray, the dash-dotted blue, and the solid green lines are obtained from Equation (18) with α = 0 , α = 1 / ( 2 π ) , and α = α M L ( m ) .
Algorithms 16 00150 g009
Figure 10. (Color online) Dependence of the parameter α M L on the QRWS algorithm’s coin size m. By fitting the values of α M L obtained from MC simulations’ data (teal dots) and ML predictions (orange triangles) three fits were derived. For the dotted blue line α 1 ( m ) , an equal weight of all data points was suggested. The dot-dashed green line α 2 ( m ) is the fitting function, when the alpha values from the DNN model are considered to be ss reliable (the fitting weights were set two times smaller) than the ones from the Monte Carlo simulations’ data. To obtain the function α 3 ( m ) (the dashed red line) we have suggested that the ML predictions are more reliable for points close to the training area (i.e., the weight of α M L ( 11 ) is higher than the weight of α M L ( 20 ) ). The horizontal solid line figure corresponds to α ( m ) = 1 / ( 2 π ) = c o n s t .
Figure 10. (Color online) Dependence of the parameter α M L on the QRWS algorithm’s coin size m. By fitting the values of α M L obtained from MC simulations’ data (teal dots) and ML predictions (orange triangles) three fits were derived. For the dotted blue line α 1 ( m ) , an equal weight of all data points was suggested. The dot-dashed green line α 2 ( m ) is the fitting function, when the alpha values from the DNN model are considered to be ss reliable (the fitting weights were set two times smaller) than the ones from the Monte Carlo simulations’ data. To obtain the function α 3 ( m ) (the dashed red line) we have suggested that the ML predictions are more reliable for points close to the training area (i.e., the weight of α M L ( 11 ) is higher than the weight of α M L ( 20 ) ). The horizontal solid line figure corresponds to α ( m ) = 1 / ( 2 π ) = c o n s t .
Algorithms 16 00150 g010
Table 1. Maxima of probability to find solution by QRWS for different coin size when relation (17) is used are shown in the first row. Analogically, p corresponding to Equation (18), with α = 0 is shown in the second row, and with α = 1 / ( 2 π ) —on the third row. The fourth row corresponds to Equation (18) with α obtained by ML.
Table 1. Maxima of probability to find solution by QRWS for different coin size when relation (17) is used are shown in the first row. Analogically, p corresponding to Equation (18), with α = 0 is shown in the second row, and with α = 1 / ( 2 π ) —on the third row. The fourth row corresponds to Equation (18) with α obtained by ML.
Line∖Coin Size4567891011
Equation (17)0.39060.41370.41170.40220.43440.42720.43340.4414
Equation (18) & α = 0 0.39060.41370.41170.40220.43440.42720.43340.4414
Equation (18) & α = ( 2 π ) 1 0.39210.41370.41170.40820.43440.42790.43540.4414
Equation (18) & α = α M L 0.39210.41370.41170.40930.43440.42770.43440.4414
Table 2. Values of the parameter α M L ( m ) in Equation (18) for QRWS algorithm’s walk coin size 2 m 20 . The primed values are derived from ML predictions, and the remaining come from Monte Carlo simulations.
Table 2. Values of the parameter α M L ( m ) in Equation (18) for QRWS algorithm’s walk coin size 2 m 20 . The primed values are derived from ML predictions, and the remaining come from Monte Carlo simulations.
m2345678
α M L 0.5580.5520.1420.1550.1630.2090.206
m9101111121314
α M L 0.1850.1680.1500.170 0.179 0.180 0.203
m151617181920
α M L 0.225 0.197 0.205 0.206 0.216 0.223
Table 3. Values of the parameters a, b, and c for the fitting functions α i ( m ) , i = 1 , 2 , 3 (Equation (21)). The bolded last line represents the most reliable fit.
Table 3. Values of the parameters a, b, and c for the fitting functions α i ( m ) , i = 1 , 2 , 3 (Equation (21)). The bolded last line represents the most reliable fit.
abc
α 1 ( m ) 4.85 × 10 5 4.78 × 10 3 1.41 × 10 1
α 2 ( m ) 2.71 × 10 4 9.82 × 10 3 1.20 × 10 1
α 3 ( m ) 1 . 17 × 10 4 6 . 24 × 10 3 1 . 35 × 10 1
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

Tonchev, H.; Danev, P. A Machine Learning Study of High Robustness Quantum Walk Search Algorithm with Qudit Householder Coins. Algorithms 2023, 16, 150. https://doi.org/10.3390/a16030150

AMA Style

Tonchev H, Danev P. A Machine Learning Study of High Robustness Quantum Walk Search Algorithm with Qudit Householder Coins. Algorithms. 2023; 16(3):150. https://doi.org/10.3390/a16030150

Chicago/Turabian Style

Tonchev, Hristo, and Petar Danev. 2023. "A Machine Learning Study of High Robustness Quantum Walk Search Algorithm with Qudit Householder Coins" Algorithms 16, no. 3: 150. https://doi.org/10.3390/a16030150

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