Next Article in Journal
Nose Detection Based on Quadratic Curve Fitting with Geometric–Photometric–Structural Scoring
Previous Article in Journal
Efficient and Explainable Glaucoma Detection Using an Attention-Enhanced Custom CNN on Retinal Fundus Images
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Proceeding Paper

Parameter Determination of Quantum Approximate Optimization Algorithm Using Layerwise Grid Search Method †

1
Department of Computer Science and Information Engineering, Chang Jung Christian University, Tainan 711301, Taiwan
2
Department of Computer and Communication Engineering, National Kaohsiung University of Science and Technology, Kaohsiung 824005, Taiwan
*
Author to whom correspondence should be addressed.
Presented at the 7th Eurasia Conference on IoT, Communication and Engineering 2025 (ECICE 2025), Yunlin, Taiwan, 14–16 November 2025.
Eng. Proc. 2026, 134(1), 69; https://doi.org/10.3390/engproc2026134069
Published: 22 April 2026

Abstract

The quantum approximate optimization algorithm (QAOA) is an efficient method for solving combinatorial optimization problems in quantum computing. These problems involve finding the best solution from a finite set of possibilities. At its core, the QAOA uses an Ansatz circuit composed of alternating unitary operators, the mixing and problem Hamiltonians, that are controlled by a set of parameters. Its goal is to find the optimal parameters so that the final quantum state of the circuit encodes the problem’s solution. While this parameter optimization is often handled by classical optimizers, including constrained optimization by linear approximations (COBYLA) and Nelder–Mead, these methods frequently present local extrema. Therefore, we developed a layerwise grid search (LGS) method as an alternative. Since a full grid search is too time-consuming, the LGS method significantly reduces the search time while still finding a good solution. To demonstrate its effectiveness, we present experimental results for the max-cut problem, comparing the performance of our LGS method against conventional classical optimizers.

1. Introduction

Quantum computation is a revolutionary field that uses the principles of quantum mechanics to process information, offering a paradigm shift from classical computing [1,2,3,4]. While classical computers rely on binary bits (0 s and 1 s), quantum computers use qubits, which can exist in a superposition of both states simultaneously. This, along with entanglement, which is a phenomenon where qubits are linked and their states are interdependent, enables quantum computers to perform certain calculations exponentially faster than classical machines. This has led to the development of powerful quantum algorithms, such as Shor’s algorithm for integer factorization and Grover’s algorithm for database searches, which provide exponential and quadratic speedups, respectively, over their classical counterparts.
These breakthroughs have significant implications, particularly in cybersecurity. For example, Shor’s algorithm poses a direct threat to current public-key encryption, driving the urgent development of new, quantum-resistant cryptographic methods. Beyond security, an emerging subfield of quantum machine learning seeks to leverage quantum computers to accelerate the training of complex models and to analyze vast datasets, which could lead to significant discoveries in fields like materials science and drug development. The ongoing challenge is to develop robust quantum hardware and refine these algorithms, with the ultimate promise of transforming computation, data analysis, and problem-solving across countless engineering disciplines.
In the research of quantum computation, the quantum approximate optimization algorithm (QAOA) is a hybrid quantum–classical algorithm designed to find approximate solutions to combinatorial optimization problems, which involves finding the best solution from a finite, but often exponentially large, set of possibilities [5,6,7]. The QAOA is well-suited for the noisy intermediate-scale quantum era because it uses relatively shallow quantum circuits [8]. The algorithm operates by encoding the optimization problem into a quantum circuit with adjustable parameters. It begins by preparing a quantum state in a uniform superposition of all possible solutions. This state is then evolved by a sequence of two types of unitary operators: a problem Hamiltonian, which imprints the cost function of the optimization problem onto the quantum state, and a mixing Hamiltonian, which helps explore the solution space by creating new superpositions. The duration of each application of these Hamiltonians is controlled by classical parameters. A classical computer then measures the final quantum state, evaluates its quality, and uses a classical optimizer to adjust the parameters, creating a feedback loop to find better solutions. This iterative process allows the QAOA to iteratively shape the quantum state to concentrate its probability amplitude on the best possible solutions, offering a promising approach to tackle complex problems in logistics, finance, and materials science that are currently intractable for classical computers.
On the other hand, grid search methods are widely used to determine optimal hyperparameters in machine learning [9,10], but they are often computationally expensive. Instead of using a full grid search, we apply the layerwise grid search (LGS) method to find the optimal parameters for the quantum approximate optimization algorithm in this paper. The idea behind it is to break down the parameter tuning problem for an Ansatz circuit into a series of smaller, more manageable sub-problems. Instead of finding the optimal parameters for the entire Ansatz circuit at once (which is an astronomically large and computationally expensive search space), we sequentially tune the layers. That is, we perform a grid search to find the optimal parameters for the first layer of the Ansatz circuit. Once we have the best parameters for the first layer, we perform another grid search to find the best parameters for the second layer, while keeping the first layer’s parameters fixed. This process is repeated for each subsequent layer, with the new layer’s parameters being tuned on top of the already-tuned layers. Moreover, to show the effectiveness of the LGS method, we present experimental results for the max-cut problem and compare the performance against conventional classical optimizers.
This article is structured as follows. Section 2 provides a brief review of relevant background concepts, including quantum computation and the QAOA. Section 3 details our proposed layerwise grid search method. Section 4 discusses the experimental results of applying the QAOA with our LGS method to the max-cut problem. Performance comparisons of our LGS method with conventional classical optimizers are also made. Finally, discussions and conclusions are drawn.

2. Preliminaries

2.1. Basics of Quantum Computation

In quantum computation, a quantum bit, or qubit, is a two-state system. Using Dirac ket notation, we represent the two basis states as 0 and 1 . The state of a single qubit can be a superposition of these two basis states, described by a linear combination.
ϕ = α 0 0 + α 1 1 .
In the above, α 0 and α 1 are complex numbers called probability amplitudes, and they must satisfy condition
α 0 2 + α 1 2 = 1 ,
where | α 0 | 2 is the probability of measuring the state as 0 and | α 1 | 2 is the probability of measuring the state as 1 . When n qubits are joined to get a quantum register, the state of register can be represented as follows:
ϕ = k = 0 2 n 1 α k k ,
where k are basis states and | α k | 2 is the probability of measuring the state as k . The following normalization condition must be satisfied:
k = 0 2 n 1 α k 2 = 1 ,
As classical computers use logic gates (AND, OR, NOT, and NAND) to manipulate bits, quantum computers use quantum gates to operate qubits. These gates are represented by unitary matrices U to preserve the normalization of the state vector. A simple example is the Pauli X gate, which flips the state of qubit by the unitary matrix.
U = 0 1 1 0 .
Applying this gate to a qubit in the state 0 results in the following:
U 0 = 0 1 1 0 1 0 = 0 1 = 1 .
Figure 1 shows frequently used quantum gates, circuit symbols, and unitary transform matrices U . A quantum circuit is a sequence of these gates applied to one or more qubits, forming a computation.
A typical structure used in quantum computation is shown in Figure 2. First, an initial superposition state is prepared; that is, the classical data is loaded into the quantum register. Second, the quantum circuit constructed using elementary quantum gates with prescribed parameters performs the unitary transformation on the state of register such that the initial state is mapped to the desired state, which encodes the solution. Third, full or partial qubits are measured as the results of the computation performed using measurement gates. These results are saved in the classical register, and post-processing tasks are conducted to obtain the final solution. The structure in Figure 2 is used to construct the quantum computation part of the QAOA.

2.2. Background Knowledge of QAOA

The QAOA is a hybrid quantum–classical (HQC) algorithm designed to find approximate solutions to combinatorial problems. Figure 3a shows a typical block diagram in which the HQC algorithm is performed on a classical computer and a quantum computer. Both computers communicate with each other by using the data saved in memory. Figure 3b shows another HQC block diagram of an iterative method. In the iterative loop, the quantum computer provides the measured result to the classical computer. The parameters in the classical computer are sent to the quantum computer.
The core idea of the QAOA is to encode the relevant optimization problem into the cost of the Hamiltonian H C . The ground state of the Hamiltonian H C corresponds to the optimal solution of the problem. Figure 4 illustrates the overview of the p-layer QAOA, whose quantum part is obtained from the structure in Figure 2; that is, the unitary transformation is replaced by an alternating operator Ansatz circuit with two parameter vectors, γ = [ γ 1 , γ 2 , , γ p ] T and β = [ β 1 , β 2 , , β p ] T . Moreover, the details of the Ansatz circuit are depicted in Figure 5, where U ( H C , γ k ) are cost unitary operators and U ( H B , γ k ) are mixing unitary operators for k = 1 ,   2 , , p .
The QAOA is a variational algorithm, so it relies on a classical computer to iteratively optimize the parameters γ and β of a shallow quantum Ansatz circuit. If n qubits are used, the details of the QAOA method are described below. The initial state preparation is obtained by applying the Hadamard gate to each of the n qubits, starting from the 0 n state as follows:
ϕ i n i t i a l = H n 0 n = + n ,
where + = 1 2 0 + 1 2 1 . That is, the initial state is a uniform superposition of all 2 n computational basis states. Moreover, the QAOA state generated by the alternating operator Ansatz circuit with p layers is given as follows:
ϕ ( γ , β ) = U ( H B , β p ) U ( H C , γ p ) U ( H B , β 1 ) U ( H C , γ 1 ) + n ,
where γ = [ γ 1 , γ 2 , , γ p ] T and β = [ β 1 , β 2 , , β p ] T are the variational parameters that are optimized classically. The above unitary operators, U ( H C , γ k ) and U ( H B , β k )   ( k = 1 ,   2 , , p ) , are described below.
The cost unitary operator U ( H C , γ k ) is used to encode the optimization problem cost function. It is defined as follows:
U ( H C , γ k ) = e i γ k H C k = 1,2 , , p .
This operator applies a phase to each computation basis state proportional to its cost. If the cost Hamiltonian H C is the sum of local terms as follows:
H C = m H C , m ,
then the cost unitary matrix U ( H C , γ k ) can be implemented as a product of exponentials by using the Trotter–Suzuki decomposition.
U ( H C , γ k ) = e i γ k H C = e i γ k m H C , m m e i γ k H C , m .
If the individual terms H C , m commute, the decomposition in Equation (11) becomes exact. Otherwise, it is an approximation. In [5], the parameters γ k   ( k = 1,2 , , p ) are all restricted to lie between 0 and 2 π ; that is, γ k [ 0 , 2 π ] .
The mixing unitary operator U ( H B , β k ) is used to explore the solution space by introducing fluctuations. The mixer Hamiltonian H B is often chosen as the sum of Pauli-X operators σ x on each qubit as follows:
H B = j = 1 n σ j x .
Therefore, the mixing unitary matrix U ( H B , β k ) is given as follows:
U ( H B , β k ) = e i β k H B = e i β k j = 1 n σ j x = j = 1 n e i β k σ j x .
In reference [5], the parameters β k   ( k = 1,2 , , p ) are all restricted to lie between 0 to π ; that is, β k [ 0 , π ] .
Based on the above descriptions, the procedure of the QAOA is summarized as follows:
  • Step 1: Initialize the parameters γ and β randomly.
  • Step 2: Prepare the quantum initial state ϕ i n i t i a l using Equation (7).
  • Step 3: Execute the alternating operator Ansatz quantum circuit with given parameters γ and β to get the state ϕ ( γ , β ) in Equation (8).
  • Step 4: Measure the state ϕ ( γ , β ) multiple times to estimate the expectation value:
    J ( γ , β ) = ϕ ( γ , β ) H C ϕ ( γ , β ) .
  • Step 5: Use a classical computer with Nelder–Mead, constrained optimization by linear approximations (COBYLA), or gradient descent methods to find new better parameters γ and β that are expected to result in a lower J ( γ , β ) .
  • Step 6: Check whether the termination condition is fulfilled or not. If the condition is satisfied, stop the iterative procedure. Otherwise, go back to step 2 and repeat the process.
Once the above iterative loop is completed, the final parameters γ and β are used to run the quantum computer to obtain state ϕ ( γ , β ) . This final state is measured, and the resulting bit string is the final solution produced by the QAOA method. In step 5, the Nelder–Mead or COBYLA method needs to be employed to find the parameters γ and β . Because these optimization tools are complicated, a simple layerwise grid search method is used in this study.

3. Layerwise Grid Search Method

In this section, the LGS method is used to find the parameters γ and β of the Ansatz circuit that yield good performance. A conventional full grid search is first described. Then, the LGS method is described.

3.1. Full Grid Search Method

For a grid search method, we define a discrete, finite set of parameters γ k and β k   ( k = 1,2 , , p ) . To achieve this purpose, the parameter space ( γ k , β k ) at the k-th layer of the Ansatz circuit is discretized below. Because γ k is restricted to lie in the interval [ 0 , 2 π ] and β k is restricted to lie in the interval [ 0 , π ] , the uniform dense grid points of ( γ k , β k ) are defined as follows:
γ k ( m k ) = m k π N     ( m k = 0,1 , 2 , , 2 N ) ,
β k ( j k ) = j k π N     ( j k = 0,1 , 2 , , N ) .
Figure 6 shows the graphical representation of this discretization of parameter space. All of these grid points of ( γ k , β k ) can be combined into the following point set:
S k = { ( γ k ( m k ) , β k ( j k ) ) | m k = 0,1 , , 2 N ,   j k = 0,1 , , N } .
The grid of all possible parameter combinations of the QAOA is the Cartesian product of all sets at each layer.
G r i d = S 1 × S 2 × × S p = { ( γ 1 ( m 1 ) , β 1 ( j 1 ) ) S 1 , , ( γ p ( m p ) , β p ( j p ) ) S p } .
The full grid search algorithm exhaustively evaluates every single possible combination from the Grid in Equation (18), and the one with the best performance is selected as the solution. That is, the optimal parameter is given as follows:
( γ , β ) = a r g m i n ( γ , β ) G r i d J ( γ , β ) ,
where J ( γ , β ) is defined in (14). Although the above grid search method is simple and effective for finding the optimal parameters γ and β , it is computationally extensive and time-consuming. The total number of grid points in (18) is equal to ( ( 2 N + 1 ) ( N + 1 ) ) p , so the computational complexity of the full grid search method is O ( N 2 p ) . That is, the number of evaluations of the cost function J ( γ , β ) grows exponentially. To reduce the computational load, a layerwise grid search method is used.

3.2. LGS Method

Instead of finding the optimal parameters γ and β for the entire Ansatz circuit at once, the optimization problem is broken down into a series of smaller, more manageable sub-problems. And each sub-problem is sequentially solved layer by layer. The Ansatz circuit is chosen as a single-layer circuit with p = 1 ; then, the first step of the LGS method is to find the best parameters γ 1 and β 1 . That is, the best parameters γ 1 and β 1 are determined by using the following equation:
( γ 1 , β 1 ) = a r g m i n ( γ 1 , β 1 ) S 1 J 1 ( γ 1 , β 1 ) .
The above cost function J 1 ( γ 1 , β 1 ) is defined as follows:
J 1 ( γ 1 , β 1 ) = ϕ ( γ 1 , β 1 ) H C ϕ ( γ 1 , β 1 ) ,
where state is given as Equation (22):
ϕ ( γ 1 , β 1 ) = U ( H B , β 1 ) U ( H C , γ 1 ) + n .
Because the number of grid points in this sub-problem is equal to ( 2 N + 1 ) ( N + 1 ) , the computational complexity is only O ( N 2 ) . After we have the best parameters for the first layer, we perform another grid search to find the best parameters γ 2 and β 2 for the second layer, while keeping the first layer’s parameters ( γ 1 , β 1 ) fixed at ( γ 1 , β 1 ) . That is, let the Ansatz circuit be chosen as a double-layer circuit with p = 2 ; the best parameters γ 2 and β 2 are determined by the following equation:
( γ 2 , β 2 ) = a r g m i n ( γ 2 , β 2 ) S 2 J 2 ( γ 2 , β 2 ) .
The above cost function J 2 ( γ 2 , β 2 ) is defined as follows:
J 2 ( γ 2 , β 2 ) = ϕ ( γ 2 , β 2 ) H C ϕ ( γ 2 , β 2 ) ,
where state is given by
ϕ ( γ 2 , β 2 ) = U ( H B , β 2 ) U ( H C , γ 2 ) U ( H B , β 1 ) U ( H C , γ 1 ) + n .
After we have the best parameters for the first and second layers, we perform the other grid search to find the best parameters γ 3 and β 3 for the third layer, while keeping the first and second layer’s parameters fixed at ( γ 1 , β 1 ) and ( γ 2 , β 2 ) . That is, the Ansatz circuit is used as a triple-layer circuit with p = 3 ; the best parameters γ 3 and β 3 are found by the following equation:
( γ 3 , β 3 ) = a r g m i n ( γ 3 , β 3 ) S 3 J 3 ( γ 3 , β 3 ) .
The above cost function J 3 ( γ 3 , β 3 ) is defined as follows:
J 3 ( γ 3 , β 3 ) = ϕ ( γ 3 , β 3 ) H C ϕ ( γ 3 , β 3 ) ,
where state is given as follows:
ϕ ( γ 3 , β 3 ) = U ( H B , β 3 ) U ( H C , γ 3 ) U ( H B , β 2 ) U ( H C , γ 2 ) U ( H B , β 1 ) U ( H C , γ 1 ) + n .
The process is repeated for each subsequent layer, with the new layer’s parameters being determined on top of the already-determined layers. Because there are p layers in the Ansatz circuit in Figure 5, we need to solve p sub-problems with computational complexity O ( N 2 ) at each layer. Therefore, the total computational complexity of the above layerwise grid search method is O ( p N 2 ) , which is much smaller than the complexity O ( N 2 p ) of the conventional full grid search method. In Section 4, the max-cut problem is solved by the QAOA with the LGS method to show the effectiveness of the proposed method.

4. Results and Discussions

A typical application example for the QAOA is the max-cut problem. Given a graph G = { V , E } where V is the vertex set and E is the edge set, the goal of max-cut is to partition the vertex set V into two disjoint subsets, V 1 and V 2 , such that the number of edges with one endpoint in V 1 and the other in V 2 is maximized. The cost Hamiltonian H C of this max-cut problem is given by
H C = 1 2 ( l , m ) E ( 1 σ l z σ m z ) ,
where σ z is the Pauli Z operator. This maximization problem is transformed into a minimization problem by multiplying the cost function by a factor of –1 such that the QAOA can be performed. The max-cut of a star graph is used to conduct the experiment. Figure 7a shows a star graph with five vertices and four edges, and Figure 7b depicts the maximum cut of this star graph.
When the QAOA is applied to solve this problem, the details of the alternating operator of the Ansatz circuit with p = 1 are shown in Figure 8. In this circuit, each qubit corresponds to each vertex, and each ZZ gate corresponds to each edge.
Figure 9 shows the results of the first step of the LGS method. The integer N in Equations (15) and (16) is chosen as 30. The cost function J 1 ( γ 1 , β 1 ) defined in Equation (21) is shown in Figure 9a. The best parameters γ 1 and β 1 to minimize J 1 ( γ 1 , β 1 ) are then given by 5.64421731 and 1.94995406. Figure 9b depicts the count of measured histogram of the QAOA method with p = 1 when the quantum circuit is performed 1024 times. The expectation value of the cut of the star graph is 3.04199219 for this result with p = 1.
Moreover, when the QAOA is applied to solve this problem, the details of the alternating operator Ansatz circuit with p = 2 are shown in Figure 10. The experimental results of the second step of the LGS method are shown in Figure 11. The cost function J 2 ( γ 2 , β 2 ) defined in Equation (24) is shown in Figure 11a. The best parameters γ 2 and β 2 to minimize J 2 ( γ 2 , β 2 ) are then given as 4.68576531 and 1.19163859. Figure 11b depicts the count of measured histogram of the QAOA method with p = 2 when the quantum circuit is performed 1024 times. The expectation value of the cut of the star graph is 3.90917969 for this result with p = 2.
Next, when the QAOA is applied to solve this problem, the details of the alternating operator Ansatz circuit with p = 3 are shown in Figure 12. The experimental results of the third step of the LGS method are shown in Figure 13. The cost function J 3 ( γ 3 , β 3 ) defined in Equation (27) is shown in Figure 13a. The best parameters γ 3 and β 3 to minimize J 3 ( γ 3 , β 3 ) are then given as 5.64421731 and 3.03326187. Figure 13b depicts the count of measured histogram of the QAOA method with p = 3 when the quantum circuit is performed 1024 times. The expectation value of the cut of the star graph is 3.984375 for this result with p = 3. Furthermore, the bit strings 00100 and 11011 are observed to have the highest counts, which correlate with the maximum-cut scenario depicted in Figure 7b. As the maximum cut for the star graph in Figure 7 is 4, an expectation value of the cut that more closely approaches this value of 4 is indicative of superior performance by the QAOA method.
Finally, let us compare the proposed LGS method with conventional methods. When QAOA methods using COBYLA and Nelder–Mead are used to solve the max-cut problem of the star graph, Figure 14a,b show the counts of measured histograms of conventional QAOA methods with p = 3 when the quantum circuit is performed 1024 times. The expectation value of the cut of the star graph is 3.837890625 for the COBYLA method. The expectation value of the cut of the star graph is 3.5537109375 for the Nelder–Mead method. Both cut values are smaller than the cut value 3.984375 of the proposed method. Therefore, the proposed LGS method is effective for solving the max-cut problem of the graph.

5. Conclusions

We propose the LGS method to determine the optimal parameters for the QAOA, specifically targeting combinatorial optimization problems in quantum computing. The LGS method significantly reduces search time compared to a full grid search while still identifying a high-quality solution. To demonstrate its effectiveness, we provide experimental results on the max-cut problem for a star graph, comparing the performance of the LGS against conventional classical optimizers, such as COBYLA and Nelder–Mead. Since this study was limited to the graph max-cut problem, an interesting direction for future work is to apply the QAOA with the LGS method to a wider variety of combinatorial optimization problems.

Author Contributions

Conceptualization, S.-L.L. and C.-C.T.; methodology, S.-L.L. and C.-C.T.; software, S.-L.L. and C.-C.T.; validation, S.-L.L. and C.-C.T.; formal analysis, S.-L.L. and C.-C.T.; investigation, S.-L.L. and C.-C.T.; resources, S.-L.L. and C.-C.T.; data curation, S.-L.L. and C.-C.T.; writing—original draft preparation, S.-L.L. and C.-C.T.; writing—review and editing, S.-L.L. and C.-C.T.; visualization, S.-L.L.; supervision, C.-C.T.; project administration, S.-L.L.; funding acquisition, S.-L.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Science and Technology Council, Taiwan under the grant number NSTC 114-2221-E-309-001.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data are contained within the article.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Weigold, M.; Barzen, J.; Leymann, F.; Salm, M. Encoding patterns for quantum algorithms. IET Quantum Commun. 2021, 2, 141–152. [Google Scholar] [CrossRef]
  2. Khan, M.A.; Aman, M.N.; Sikdar, B. Beyond bits: A review of quantum embedding techniques for efficient information processing. IEEE Access 2024, 12, 46118–46137. [Google Scholar] [CrossRef]
  3. Wong, H.Y. Introduction to Quantum Computing: From a Layperson to a Programmer in 30 Steps, 2nd ed.; Springer: Berlin/Heidelberg, Germany, 2024. [Google Scholar]
  4. Wong, H.Y. Quantum Computing Architecture and Hardware for Engineers; Springer: Berlin/Heidelberg, Germany, 2025. [Google Scholar]
  5. Farhi, E.; Goldstone, J.; Gutmann, S. A quantum approximate optimization algorithm. arXiv 2014, arXiv:1411.4028. [Google Scholar] [CrossRef]
  6. Weigold, M.; Barzen, J.; Leymann, F.; Vietz, D. Patterns for hybrid quantum algorithms. In Proceedings of the 15th Symposium and Summer School on Service-Oriented Computing (SummerSOC 2021), Virtual Event, 13–17 September 2021; pp. 34–51. [Google Scholar]
  7. Combarro, E.F.; Gonzalez-Castillo, S. A Practical Guide to Quantum Machine Learning and Quantum Optimization: Hands-on Approach to Modern Quantum Algorithms; Packt Publishing: Birmingham, UK, 2023. [Google Scholar]
  8. Blekos, K.; Brand, D.; Ceschini, A.; Chou, C.H.; Li, R.H.; Pandya, K.; Summer, A. A review on quantum approximate optimization algorithm and its variants. arXiv 2023, arXiv:2306.09198v2. [Google Scholar] [CrossRef]
  9. Liashchynski, P.; Liashchynski, P. Grid search, random search, genetic algorithm: A big comparison for NAS. arXiv 2019, arXiv:1912.06059v1. [Google Scholar] [CrossRef]
  10. Alibrahim, H.; Ludwig, S.A. Hyperparameter optimization: Comparing genetic algorithm against grid search and Bayesian optimization. In Proceedings of the IEEE Congress on Evolutionary Computation (CEC), Kraków, Poland, 28 June–1 July 2021; pp. 1–9. [Google Scholar]
Figure 1. Frequently used quantum gates, circuit symbols and their unitary matrices U . LSB denotes the least significant bit, and MSB denotes the most significant bit.
Figure 1. Frequently used quantum gates, circuit symbols and their unitary matrices U . LSB denotes the least significant bit, and MSB denotes the most significant bit.
Engproc 134 00069 g001
Figure 2. A typical three-stage structure which is used in quantum computation.
Figure 2. A typical three-stage structure which is used in quantum computation.
Engproc 134 00069 g002
Figure 3. Two typical block diagrams in which the HQC algorithm is performed on classical and quantum computers: (a) first HQC block diagram; (b) second HQC block diagram.
Figure 3. Two typical block diagrams in which the HQC algorithm is performed on classical and quantum computers: (a) first HQC block diagram; (b) second HQC block diagram.
Engproc 134 00069 g003
Figure 4. The overview of the p-layer QAOA. The top part is performed on the quantum computer, and the bottom part is performed on the classical computer. The dotted lines are used to separate quantum computer part from classical computer part.
Figure 4. The overview of the p-layer QAOA. The top part is performed on the quantum computer, and the bottom part is performed on the classical computer. The dotted lines are used to separate quantum computer part from classical computer part.
Engproc 134 00069 g004
Figure 5. The details of the alternating operator Ansatz circuit in Figure 4, where U ( H C , γ k ) are cost unitary operators and U ( H B , γ k ) are mixing unitary operators for k = 1 ,   2 , , p .
Figure 5. The details of the alternating operator Ansatz circuit in Figure 4, where U ( H C , γ k ) are cost unitary operators and U ( H B , γ k ) are mixing unitary operators for k = 1 ,   2 , , p .
Engproc 134 00069 g005
Figure 6. A uniform grid search space at the k-th layer of the Ansatz circuit. Each black dot on the figure corresponds to a sampled point of the parameter ( γ k , β k ) .
Figure 6. A uniform grid search space at the k-th layer of the Ansatz circuit. Each black dot on the figure corresponds to a sampled point of the parameter ( γ k , β k ) .
Engproc 134 00069 g006
Figure 7. (a) Star graph with five vertices and four edges; (b) max-cut of this star graph. Its number of cuts is equal to 4. The numbers inside the circles are the labels of vertices.
Figure 7. (a) Star graph with five vertices and four edges; (b) max-cut of this star graph. Its number of cuts is equal to 4. The numbers inside the circles are the labels of vertices.
Engproc 134 00069 g007
Figure 8. The details of the alternating operator Ansatz circuit with p = 1 when the QAOA is applied to solve the max-cut problem of the star graph in Figure 7a. The notation * is multiplication sign.
Figure 8. The details of the alternating operator Ansatz circuit with p = 1 when the QAOA is applied to solve the max-cut problem of the star graph in Figure 7a. The notation * is multiplication sign.
Engproc 134 00069 g008
Figure 9. The results of the first step of the LGS method: (a) the cost function J 1 ( γ 1 , β 1 ) defined in Equation (21) when the QAOA is applied to find the max-cut of the star graph; (b) the histogram of the QAOA method with p = 1 when the quantum circuit is performed 1024 times.
Figure 9. The results of the first step of the LGS method: (a) the cost function J 1 ( γ 1 , β 1 ) defined in Equation (21) when the QAOA is applied to find the max-cut of the star graph; (b) the histogram of the QAOA method with p = 1 when the quantum circuit is performed 1024 times.
Engproc 134 00069 g009
Figure 10. The details of the alternating operator of the Ansatz circuit with p = 2 when the QAOA is applied to solve the max-cut problem of the star graph in Figure 7a. The notation * is multiplication sign.
Figure 10. The details of the alternating operator of the Ansatz circuit with p = 2 when the QAOA is applied to solve the max-cut problem of the star graph in Figure 7a. The notation * is multiplication sign.
Engproc 134 00069 g010
Figure 11. The results of the second step of the LGS method: (a) the cost function J 2 ( γ 2 , β 2 ) defined in Equation (24) when the QAOA is applied to find the max-cut of the star graph; (b) the histogram of the QAOA method with p = 2 when the quantum circuit is performed 1024 times.
Figure 11. The results of the second step of the LGS method: (a) the cost function J 2 ( γ 2 , β 2 ) defined in Equation (24) when the QAOA is applied to find the max-cut of the star graph; (b) the histogram of the QAOA method with p = 2 when the quantum circuit is performed 1024 times.
Engproc 134 00069 g011
Figure 12. The details of the alternating operator of the Ansatz circuit with p = 3 when the QAOA is applied to solve the max-cut problem of the star graph in Figure 7a. The notation * is multiplication sign.
Figure 12. The details of the alternating operator of the Ansatz circuit with p = 3 when the QAOA is applied to solve the max-cut problem of the star graph in Figure 7a. The notation * is multiplication sign.
Engproc 134 00069 g012
Figure 13. The results of the third step of the LGS method: (a) the cost function J 3 ( γ 3 , β 3 ) defined in Equation (27) when the QAOA is applied to find the max-cut of the star graph; (b) the histogram of the QAOA method with p = 3 when the quantum circuit is performed 1024 times.
Figure 13. The results of the third step of the LGS method: (a) the cost function J 3 ( γ 3 , β 3 ) defined in Equation (27) when the QAOA is applied to find the max-cut of the star graph; (b) the histogram of the QAOA method with p = 3 when the quantum circuit is performed 1024 times.
Engproc 134 00069 g013
Figure 14. The measurement histograms of the QAOA methods with p = 3 when the quantum circuit is performed 1024 times: (a) the result of the QAOA using COBYLA; (b) the result of the QAOA using Nelder–Mead.
Figure 14. The measurement histograms of the QAOA methods with p = 3 when the quantum circuit is performed 1024 times: (a) the result of the QAOA using COBYLA; (b) the result of the QAOA using Nelder–Mead.
Engproc 134 00069 g014
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

Lee, S.-L.; Tseng, C.-C. Parameter Determination of Quantum Approximate Optimization Algorithm Using Layerwise Grid Search Method. Eng. Proc. 2026, 134, 69. https://doi.org/10.3390/engproc2026134069

AMA Style

Lee S-L, Tseng C-C. Parameter Determination of Quantum Approximate Optimization Algorithm Using Layerwise Grid Search Method. Engineering Proceedings. 2026; 134(1):69. https://doi.org/10.3390/engproc2026134069

Chicago/Turabian Style

Lee, Su-Ling, and Chien-Cheng Tseng. 2026. "Parameter Determination of Quantum Approximate Optimization Algorithm Using Layerwise Grid Search Method" Engineering Proceedings 134, no. 1: 69. https://doi.org/10.3390/engproc2026134069

APA Style

Lee, S.-L., & Tseng, C.-C. (2026). Parameter Determination of Quantum Approximate Optimization Algorithm Using Layerwise Grid Search Method. Engineering Proceedings, 134(1), 69. https://doi.org/10.3390/engproc2026134069

Article Metrics

Back to TopTop