Quantum Approximate Optimization Algorithms for Maximum Cut on Low-Girth Graphs
Abstract
Maximum cut (MaxCut) on graphs is a classic NP-hard problem. In quantum computing, Farhi, Gutmann, and Goldstone proposed the Quantum Approximate Optimization Algorithm (QAOA) for solving the MaxCut problem. Its guarantee on cut fraction (the fraction of edges in the output cut over all edges) was mainly studied for high-girth graphs, i.e., graphs with only long cycles. On the other hand, low-girth graphs are ubiquitous in theoretical computer science, including expander graphs being outstanding examples with wide applications in theory and beyond. In this paper, we apply QAOA to MaxCut on a set of expander graphs proposed by Mohanty and O’Donnell known as additive product graphs. Additionally, we apply multi-angle QAOA (ma-QAOA) to better utilize the graph structure of additive product graphs in ansatz design. In theory, we derive an iterative formula to calculate the expected cut fraction of such graphs. This formula also extends to the quantum MaxCut problem. On the other hand, we conduct numerical experiments to compare between best-known classical local algorithms and QAOA with constant depth. Our results demonstrate that QAOA outperforms the best-known classical algorithms by 0.3% to 5.2% on several additive product graphs, while ma-QAOA further enhances this advantage by an additional 0.6% to 2.5%. In particular, we observe cases that ma-QAOA exhibits superiority over best-known classical algorithms but QAOA does not. Furthermore, we extend our experiments to planar graphs such as tiling grid graphs, where QAOA also demonstrates an advantage.
1 Introduction
MaxCut is one of the most fundamental problems in graph theory. The input of the problem is a simple (unweighted, undirected) graph, and the goal is to partition the vertices into two sets such that the number of edges between the two parts is maximized. MaxCut is one of the 21 NP-complete problems shown by Karp in 1972 [15]. Nevertheless, Goemans and Williamson [8] gave an approximation algorithm for MaxCut with an expected solution being at least 0.878 times the number of cut edges of the optimal solution. Meanwhile, solving MaxCut problem beyond this approximation ratio (the number of cut edges divided by the number of maximal cut edges) 0.878 will imply that the Unique Games Conjecture does not hold [16]. Therefore, this approximation ratio value of 0.878 can be seen as an essential barrier for the MaxCut problem, and a theoretical point of perspective, an approximation algorithm for MaxCut is better if its approximation ratio is closer to 0.878.
More recently, quantum algorithms have become promising candidates in solving classical combinatorial problems, with the quantum approximate optimization algorithm (QAOA) introduced in [6]. QAOA is a quantum algorithm that produces approximate solutions to combinatorial optimizations problems. For the MaxCut problem, QAOA applies unitary evolutions of the sum-of-Pauli operator and the sum-of-Pauli operator that encode the graph edges (see a formal definition in Section 2.1) alternatively for times. The quality of solution improves as increases, and Ref. [6] proved that the optimal solution can be obtained when approaches infinity. On the other hand, it is observed that QAOA with constant can already guarantee good approximation for MaxCut. For 3-regular graphs, Ref. [6] proved that for , QAOA can get approximation ratio of at least 0.6924.111Note that there exists a 1-local quantum algorithm based on annealing that achieves an approximation ratio over 0.7020 on 3-regular graphs [4]. The -local analysis of quantum annealing involves only analyzing it on subgraphs composed of the vertices within distance from each edge. In this paper, we specifically focus on QAOA with constant . For and , Ref. [22] proved that QAOA can achieve approximation approximation ratio 0.7559 and 0.7924 for the MaxCut problem, respectively.
For more general graphs, previous literature on QAOA with approximation ratio guarantee for MaxCut focuses on graphs with high girth. In graph theory, the girth of an undirected graph is the length of a shortest cycle contained in the graph. Hastings [9] compared single-step classical algorithms and QAOA with on -regular triangle-free graphs (i.e., graphs with girth ), and found that single-step classical algorithms outperform QAOA with for except 4 choices of degree . Furthermore, Marwaha [18] studied two-step classical algorithms on -regular graphs with girth , and found that the optimal two-step threshold classical algorithm outperforms QAOA with for all . On the other hand, Basso et al. [2] analyzed the cut fraction (the number of cut edges divided by the number of total edges) of QAOA for MaxCut on -regular graphs with girth . They gave an iterative formula to evaluate the performance of QAOA for any fixed and . With , QAOA outputs a cut with larger cut fraction than best-known classical algorithms [1].
Previous studies focus on high-girth -regular graphs because QAOA is a local algorithm and for high-girth graphs, all local neighborhoods are two complete -ary trees with roots glued together, which facilitates analysis. Random high-girth regular graphs are sparse expander graphs with high probability, which are sparse graphs with strong connectivity, and they also have wide applications in theoretical computer science including algorithm design, error correcting codes, extractors, pseudorandom generators, sorting networks, etc [17, 13]. While the performance of QAOA on high-girth graphs has been extensively studied, the approximation ratio guarantee of QAOA on expander graphs with low girth remains widely open. We extend previous studies to a set of low-girth expander graphs proposed by Mohanty and O’Donnell [19] known as additive product graphs (formally defined in Section 2.2). The additive product graphs are Ramanujan graphs, i.e., there are infinitely many graphs that are covered by them and their spectrum satisfies the second largest eigenvalue is no greater than the spectral radius of additive product graphs. Such graphs are low-girth graphs with small cycles, of general interest to the theoretical computer science, but previous work on the cut fraction of QAOA requires high girth in analysis. Understanding of how QAOA performs on low-girth graphs with additive product graphs as examples is solicited, and such understanding may offer an insight on how QAOA performs on a variety of expander graphs.
Main results.
In this paper, we systematically investigate the cut fraction of QAOA for low-girth graphs. Moreover, to better utilize the graph structure, we discuss ma-QAOA (see definition and specific settings in Section 2.3) to enhance the advantage of QAOA.
In theory, we apply QAOA to MaxCut on additive product graphs. We give an iterative formula to evaluate the expected cut fraction of additive product graphs for any fixed . The derivation of the iterative formula for additive product graphs is based on analyzing the underlying construction of the graph and identifying the relevant subgraphs.
Theorem 1 (Main Theorem).
Suppose is an additive product graph defined in Definition 2. Then for any and any parameters , the expected cut fraction of the additive product graph satisfies
(1) |
where the expectations are defined on different subgraphs and follow the recursive formulas in (29) and (30).
To the best of our knowledge, this is the first QAOA result that considers low-girth graphs with general with theoretical guarantee. Previous research has primarily focused on studying regular graphs of small values of [22] and high-girth regular graphs of general [2].
Technically, we extend the analysis in [2] from high-girth regular graphs to the more general setting of graphs that do not necessarily have high-girth. Specifically, we identify a class of spectral expander graphs, namely additive product graphs, in which the structure of subgraphs can be analyzed systematically. By leveraging this subgraph structure, we are then able to analyze the cycles in low-girth graphs iteratively and obtain the expected cut fraction of such low-girth graphs. Furthermore, we extend the analytical technique to the quantum MaxCut problem on additive product graphs, extending the existing literature on quantum MaxCut for high-girth regular graphs [14].
In experiments, we explore classical -local algorithms for MaxCut on additive product graphs to provide convincing benchmarks against QAOA. We explore the performance of the best-known classical local algorithms previously utilized in evaluating QAOA’s performance on high-girth regular graphs. Specifically, we evaluate the classical algorithms proposed by Barak and Marwaha [1] as well as the threshold algorithm demonstrated in [12, 9, 18]. Our findings indicate that on low-girth graphs, Barak and Marwaha’s algorithm yields a superior expected cut fraction at lower values of , whereas the threshold algorithm exhibits stronger performance at higher values.
We conduct extensive numerical evaluations for QAOA and the best-known classical local algorithms for the cut fraction of additive product graphs. Because low-girth graphs take significantly more computing resources, we only conduct numerical experiments for . We found that for Figure 5(a) and Figure 5(c) tested under lower values of , the QAOA algorithm outperformed the best-known classical local algorithms by 0.3-5.2 percentage and ma-QAOA enhances this advantage by 0.6-2.5 percentage. Moreover, although the classical local algorithms exhibit minor advantage against QAOA in specific graph instances Figure 5(b), ma-QAOA surpasses the best-known classical local algorithms by 3.0 percentage at . We demonstrate our results in Figure 1.

Furthermore, we extend our experiments to planar graphs composed of polygons. The main difference between this type of planar graph and the additive product graph is the manner in which they extend. Additive product graphs extend in a more tree-like hierarchical structure, whereas the planar graphs we study exhibit a more mesh-like, interconnected structure. Thus far, we have investigated the expected cut fraction of the planar graph composed of pentagons and hexagons shown in Figure 6(a), as well as the planar graph composed of triangles, quadrilaterals, and hexagons presented in Figure 6(b). Given the computational complexity constraints, we have run the numerical experiments for . The results demonstrate that the QAOA still outperforms the classical algorithms by 0.3-2.2 percentage, and ma-QAOA enhances this advantage by 0.1-0.9 percentage.
2 Preliminaries
2.1 The quantum approximate optimization algorithm and MaxCut
The quantum approximate optimization algorithm was introduced in [6], which is a variational quantum algorithm that requires parameters: , . The input is an -qubit string and the goal is to find an approximate ground state of cost function operator , where . It does so by preparing the state on the ground state of mixing operator . QAOA prepares the state
(2) |
where and .
The expectation of the cost function is . When approaches infinity, Eq. (2) can be seen as Trotterization of the adiabatic theorem, and thus it can reach the minimum of the cost function operator [6]. In practice, for a fixed value of , we can measure in computational basis and optimize and .
Given a graph , the cost function of MaxCut is to evaluate how many edges are cut due to the partition of vertices. If the qubits of vertices and in edge are different, then and count one edge to the cost function. If the qubits are the same, . Thus the operator can be written as:
(3) |
where is Pauli operator on qubit .
Since the constant in only introduces a global phase that does not influence measurements, we can instead use the scaled cost function operator
(4) |
And the mixing operator equals
(5) |
Note that QAOA is a local algorithm where the expectation on each edge only depends on the edges whose distance from edge are no more than and qubits on them. Therefore, edges in the same -neighborhood subgraph have the same expectation values. That is, if the edges and have the same neighborhood subgraph , in which case we denote the value by . We can categorize edges in according to different subgraphs , and the expectation becomes
(6) |
where the summation is over all possible -neighborhood subgraphs and is the number of edges whose -neighborhood subgraph is . The cut fraction is then
(7) |
where is the proportion of edges with -neighborhood subgraph .
2.2 -Ramanujan graphs
We will also provide a brief introduction to the -Ramanujan graphs in [19], the class of expander graphs that is studied by QAOA. First, we introduce the notion of spectral radius:
Definition 1.
For a graph , the spectral radius of X is
(8) |
where denotes the number of walks of length in from vertex to vertex .
Then, we introduce the definition of additive product graph. The additive product graph are generated by a set of graphs , called plain atoms, that share a common vertex set. By choosing a fixed starting vertex , the vertices and edges of additive product graph are defined as follows, with one example illustrated in Figure 3.
Definition 2 ([19, Definition 3.4]).
Let be plain atom graphs on a common vertex set . Define a sum graph with the edge set being the union of the edge sets of . Assume that is connected. Letting denote with isolated vertices removed, we also assume that each is nonempty and connected. We now define the (typically infinite) additive product graph where and are constructed as follows.
Let be a fixed vertex in let be the set of strings of the form for such that:
-
1.
each is in and each is in ,
-
2.
for all ,
-
3.
and are both in for all ,
and, let be the set of edges on vertex set such that for each string
-
1.
we let be in if is an edge in ,
-
2.
we let be in if is an edge in , and
-
3.
we let be in if is an edge in
Note that different choices of generate isomorphic additive product graphs. In Figure 3, one example generated by Definition 2 is depicted, where the generators bring corresponding local structures within the additive product graph. Note that an additive product graph may not be regular. A simple example is when is a complete bipartite graph , and represent the associated single-edge graphs on ’s vertex set, where . It can be observed that construct an infinite ()-biregular tree, where any node in an odd level has degree and any node in an even level has degree . See Figure 2 for an illustration of the case of .

Additive product graphs can be easily constructed and proved to exhibit certain desirable spectral properties, by which they offer a family of explicit constructions of expander graphs. We refer to [19] for more details on this.


2.3 The multi-angle quantum approximate optimization algorithm
In the original QAOA paper [6], the authors let each layer of quantum circuit share the same parameter. Later a multi-angle version of ma-QAOA was proposed [11] in which each node or edge has an individual parameter in each layer , namely . By introducing more parameters, the model becomes more expressive and can in principle improve the performance of the algorithm. However, more parameters also imply a much larger search space which may make training harder. Indeed, from a dynamical Lie algebra point of view, more parameter sharing shrinks the generated Lie algebra, while smaller dimension makes the circuit less likely to have a barren plateau and easier to estimate its gradient; see [21, 10] for details. In this paper, we propose to have a structural parameter sharing scheme and apply it to additive product graphs.
The multi-angle quantum approximate optimization algorithm (ma-QAOA) was firstly introduced in Ref. [11]. It introduces more classical parameters into the standard QAOA framework. Typically, and represent the sum of a collection of clauses. The ma-QAOA assigns each individual summand of and its own parameter. The parameters consist of vectors: and .
(9) |
(10) |
Through having more classical parameters, the ma-QAOA can enhance the performance of standard QAOA. In Ref. [11], ma-QAOA was simulated on a collection of one-hundred triangle-free 3-regular graphs with fifty vertices and one hundred triangle-free 3-regular graphs with 100 vertices. The result shows that ma-QAOA achieved 21.26% and 17.98% increase in percentage on average to those of 1-QAOA respectively. Furthermore, the Erdős–Rényi graphs with 9-12 nodes and various edge probabilities were tested for ma-QAOA with [7], demonstrating the advantages of ma-QAOA over QAOA for multiple layers.
In our analysis of additive product graphs, we aim to leverage the advantages of the ma-QAOA while reducing the number of parameters to ensure convergence. To achieve this, we categorize the edges in the additive product graph based on their constituent atoms. If an additive product graph is constructed by atoms, then there are types of edges. Specifically, edge type comprises edges of the following form:
(11) |
For each type of edge, we assign a separate parameter to its corresponding summand. For the mixing operator , we employ a single angle parameter, consistent with the original QAOA framework. That is, in our settings, if the edge set in graph has categories, the parameters are: , .
2.4 Classical local algorithms for MaxCut
In order to better understand the performance of QAOA on MaxCut, we need to explore classical MaxCut algorithms to provide appropriate benchmarks. Since QAOA is a local algorithm, the comparison between local classical algorithms and local quantum algorithms will be reasonable. Similar to local quantum algorithm, if a classical algorithm is -local, then the spin of a vertex in graph is only related to the vertices within distance of . The statement implies that for the output of the algorithm, the spins of points and , which are separated by a distance greater than , are independent. The best classical local algorithms known to the authors are the -local algorithm proposed by Barak and Marwaha [1] and the threshold algorithm used in Refs. [12, 9, 18]. There are also other classical algorithms. For example, Ref. [20] addressed MaxCut on Erdős–Rényi graphs, while Ref. [5] extended local tree-structure graphs to local treelike structures, where a fraction of the vertices has tree-like neighborhoods. Despite the graphs under study in this paper are not high-girth graphs, we can still use existing local classical algorithms to establish good benchmarks.
The threshold algorithm was first introduced in [12]. Intuitively, the algorithm simply flips the spin of each vertex based on the spins of its neighbors. For a parameter , if a vertex has more than neighbors with the same spin as itself, then the spin of that vertex is flipped. The pseudocode for this algorithm is shown in Algorithm 1. This work studied the cut fraction of -regular triangle-free graphs and derived an expected cut fraction of with the threshold equal to . But the threshold given in [12] was for notational convenience and may not be the optimal. The optimal threshold can be obtained by directly analyzing the expression for the expected cut fraction as in Theorem 2.
Theorem 2 ([12, Section 2.6]).
The expected cut fraction of 1-step threshold algorithm on -regular triangle-free graphs is:
(12) |
where the threshold algorithm flips the spin of a vertex if more than of its neighbors has the same spin.
Note that to maximize the expected cut fraction in Theorem 2, the threshold needs to be optimized. Hastings [9] numerically optimized the cut fraction of 1-step threshold algorithm and found it outperformed for except of . Marwaha [18] extended the 1-step threshold algorithm to an n-step version and directly calculated the optimal threshold for all by assuming . The result showed that the 2-step threshold algorithm outperformed for all and the performance of 2-step threshold algorithm stabilized at for large . The results were also computed for without assuming , and found that 2-step threshold algorithm outperformed when .
The algorithm in [1] by Barak and Marwaha achieved better bound than the threshold algorithm for 1-step and 2-step cases on high-girth regular graphs. The algorithm is done by assigning an independent random normal variable to each vertex and define the spin of each vertex according to the summation of these random variables. The pseudocode of this algorithm is shown in Algorithm 2. This algorithm achieved an expected cut fraction of at least for -regular graphs with girth .
Theorem 3 ([1, Theorem 4]).
For every , there is a -local algorithm such that for all -regular -vertex graphs with girth , outputs a cut cutting fraction of edges.
3 Theoretical Guarantee of QAOA for Additive Product Graphs
3.1 Classical MaxCut
In this section, we give a theoretical guarantee for the expected cut fraction of QAOA for MaxCut on additive product graphs. Specifically, we propose an iterative formula to analyze each expectation term in Eq. (7). The analysis of the iterative formula is conducted within the framework of ma-QAOA discussed Section 2.3. When letting , we will have the iterative formula for the standard QAOA.
First, we need to analyze how many types of subgraphs exist for a given construction of additive product graph and what the proportion ( in Eq. (7)) is for each type. The type of subgraphs for depends on the edge in and the neighbors within distance from vertices and . Based on the construction of additive product graph, every vertex in is connected to its neighbors following the same pattern: Firstly has neighbors of the same layer if is an edge in ; then is connected to its successions if is an edge in and its predecessors if and is an edge in . As a consequence, all vertices exhibit identical neighborhood configurations within the additive product graph regardless of choice of . So the following property will hold:
Proposition 1.
The expectation is invariant under the following three different forms of an edge for any and any :
(13) |
Consequently, each edge in generators (in Definition 2) corresponds to a unique isomorphic subgraph in the additive product graph. For an edge in , we use to denote the expectation for any and in the additive product graph.
Since the number of types of subgraph is the number of edges in , proportion for each type is then . And this yields the expectation of cut fraction (7) to be
(14) |
where represent the number of edges in graph .
Notations.
We will introduce some notations to be used in the following. For algorithms, we denote a vector of length as
(15) |
And for the parameter vector in , we also introduce a vectorized notation. Suppose there are atom graph building the additive product graph, then we have
(16) | ||||
For parameter , we define a function of
(17) |
Iterations for infinite additive product graph .
Let us consider and take the upper graph in Figure 3 for example. There are technically six kinds of expectation to be computed:
(18) |
Here, we give the iterative formula of as an example.

The subgraph associated with is shown in Figure 4. This subgraph has nodes, and we restrict the state on these nodes. To avoid confusion in the name of vertices, we denote the edge we are seeking the expectation for as . In the following, we evaluate the expectation of . Following the line of computation in [2], we insert 5 complete sets in the computational Z-basis, with each ranging over all elements of .
(19) | ||||
where
(20) |
with the subscript of represent the category of edge .
We can leverage Eqs. (15), (16), and (17) to reformulate Eq. (19). Instead of summing over , we can switch the summation to the configuration basis. Consider the node within the basis vectors . we can represent using the vector . And the configuration basis is then given by , where each runs through all elements of .
(21) |
where the subscript of represent the category of edge and represents element-wise product.
To calculate Eq. (21), we need to sum over the configuration basis over each node in the subgraph in Figure 4. We can firstly sum over the leaf node attached to the node .
The summation over the configuration basis yields
(22) |
Eq. (22) can also be interpreted as the contributions from the succession nodes to node . We can sum the contribution of to using an iterative formula . The superscript denote how far the node can see. As is known the ma-QAOA is a local algorithm and the summation is done on a local subgraph. So the superscirpt means the node can get the contribution of only if the distance between node and node in graph is no more than . For the node , the superscript and we can reformulate Eq. (22) as
(23) |
Summing over the configuration basis of nodes and to in Figure 4 follows the same pattern. We need to sum the configuration basis of the successions generated by graph . And the intuition of the iterative formula is the same.
(24) |
After performing the sums for each succession of , we can simply multiply the iterative formula together to obtain the total contribution form all successor nodes , where and
(25) |
Again, summing nodes and to the parent node in Figure 4 yields
(26) |
which can also be written as an iteration
(27) | ||||
The iterative formula for the remaining vertices can be derived in a similar fashion. Finally, we sum the configuration basis corresponding to the three vertices in the triangle containing the edge . This yields the ma-QAOA expectation of edge to
(28) |
For general graphs and higher , we simply need to calculate the expectation for each type of subgraph. As proposed in Proposition 1 and (14), the expectation of subgraphs in an additive product graph depends only on the choice of and . For higher , and , every can be calculated iteratively, leveraging the same approach. Specifically, the -depth iteration on vertex in the atom graph can be calculated using the iterative formula . By incorporating contributions from the child nodes via this formula, the expectation can be obtained. In the following, we present a formal theorem to illustrate the iterative formula for ma-QAOA on additive product graphs.
Theorem 4 (expected cut fraction on additive product graph).
Let be an additive product graph. For subgraph corresponding to each edge , the expectation is given by:
(29) | ||||
where , is defined for each , , and as follows:
(30) |
Finally, the expected cut fraction of ma-QAOA on the additive product graph is obtained by summing the expectations for each subgraph.
(31) |
The iterative formula can be further simplified. The upper graph in Figure 3 exhibits symmetry between its atoms, allowing the edges to be categorized into two groups instead of four. Specifically, one group comprises the edges within the triangles, while the other group consists of the cut edges connecting the triangles. The application of this symmetry property reduces the number of parameters but can still describe the edge structure of the graph. Consequently, the iterative formula for this graph is simplified, yielding for all and , provided that the iterative formula exists.
3.2 Generalizing classical MaxCut to quantum MaxCut
The quantum MaxCut problem can be seen as a natural quantum extension of the classical MaxCut problem, and it is defined as follows:
Definition 3.
Given a graph , the goal of the quantum MaxCut problem is to determine the largest eigenvalue of the following Hamiltonian:
(32) |
As a comparison, the cost function operator for the classical MaxCut problem is given by as defined in (3). The quantum MaxCut problem generalizes the classical version by incorporating Pauli and operators on each edge, thereby capturing more quantum correlations beyond the classical MaxCut problem.
Ref. [14] investigated iterative formulas for the quantum MaxCut problem on high-girth regular graphs within the framework of the Hamiltonian QAOA. In their work, the QAOA state is prepared using four driver Hamiltonians: , along with four parameters . Here and , where each and lie on the 3-dimensional unit sphere; gives the direction of the driving Hamiltonian and is the starting state. The QAOA state is then defined as:
(33) |
and the loss function is given by the expectation value
(34) |
which can be computed by an iterative formula in [14], which can be understood as the Hamiltonian for a single edge under the prepared QAOA state on high-girth regular graphs.
Our analysis of QAOA’s iterative formula for MaxCut on additive product graphs naturally extends to the quantum MaxCut problem. Specifically, the driver Hamiltonians ,, and act on individual vertices, while the Hamiltonian operates on pairs of vertices connected by an edge. This allows us to reuse the iteration technique: summing over configurations at the leaf nodes and propagating contributions to parent nodes, with only minor modifications to the iteration terms. Similarly, we define the vector associated with node as of length as
and
We can then state the following corollary, which calculates the iterative formula for quantum MaxCut on additive product graphs.
Corollary 1.
Let be an additive product graph. For subgraph corresponding to each edge , the expectation of quantum MaxCut on this edge, where the two vertices on the edge are denoted as and , is given by:
(35) |
Let function denote the summation with respect to each vertex,
(36) |
The iterative formula for , which represents the summation over the configuration basis of the successive nodes of node , is given by:
(37) |
Finally, the expectation for is
(38) | ||||
where if , and otherwise.
Proof sketch.
For both classical MaxCut and quantum MaxCut on additive product graphs, we adopt a similar methodology by analyzing iterative formulas on these graphs. This approach involves propagating contributions from child nodes to parent nodes. We begin by defining a vector , associated with each node . The length of is in the analysis of MaxCut. In the quantum MaxCut problem, the length of is since an additional computational basis is required to account for the fact that is not diagonal, in contrast to . Similarly, we define the parameter vector . The function in (36) is analogous to that in (17) applied to the classical MaxCut setting, as it computes the product associated with each vertex . Likewise, the iterative formula (37) corresponds to (30), with Eq. (36) replaces (17) and the parameter substitutes . Both formulas utilize the same method to analyze the nodes in the additive product graph. Finally, we can obtain the expectation of the iterative formula (38) with (36), (37), and parameter , which can be considered as a generalization of (29). ∎
4 Experiments
4.1 Comparison with classical local algorithms
In this section, we will perform numerical evaluations on several cases of additive product graphs in Figure 5. First, we compare the results of different classical local algorithms for MaxCut known to the authors. Specifically, we will test the threshold algorithm as well as the variations of Barak and Marwaha’s -local algorithm to provide convincing benchmarks on the graphs tested.



The threshold algorithm was firstly introduced in [12]. Hastings [9] and Marwaha [18] compared threshold algorithms with QAOA on high-girth regular graphs for respectively. Furthermore, our numerical experiments show that the threshold algorithm can provide convincing benchmarks against QAOA on Ramanujan graphs. Since the graphs in Figure 5 are no longer high-girth graphs, it is hard to derive a universal bound for the cut fraction of threshold algorithm. So Monte Carlo algorithm is used to calculate the expected cut fraction of the threshold algorithm in Algorithm 1. We obtained stable results (see Table 1) by repeating the experiments times for 1-step and 2-step version of threshold algorithm in one graph, and times for the 3-step threshold algorithm. The optimal threshold (see in Table 2) in the threshold algorithm was obtained through brute force search of all possible parameter values.
The classical -local algorithm introduced in [1] is designed for high-girth regular graphs. Basso et al. [2] compared QAOA at with this algorithm in their work for high-girth regular graphs. We also evaluate this classical algorithm in calculating the expected cut fraction on additive product graphs. Due to the different graph structures, there are several natural variations of the original algorithm in Algorithm 2.
We still assign independent Gaussian random variables to each vertex. When considering the expectation of each edge being cut, the spins of the vertices at each edge are determined by a weighted sum of the random variables of the vertices within distance (if this algorithm is -local) from . The vertices at the same distance have the same coefficients in the summation. In Algorithm 2, the coefficient for summing the vertices at distance from vertex is . For edge , denote the set as the vertices at distance from and closer to . The choice of coefficients ensure that the weighted sum of random variables in is normalized in the summation. It is worth noting that for each edge , the neighborhood structures of and are the same, so we only give as an example here. The same also applies to the coefficients in the additive product graph. For low-girth graphs, we use a similar idea to design the coefficients in the summation of Gaussian distributions. We expound different coefficient choice in Algorithm 3. The algorithm was implemented in Monte Carlo and repeated times for each choice of parameters. The results are shown in Table 1.
All the codes for classical algorithms are written in Python 3.10 and are publicly available.222https://github.com/Macondooo/MaxCut-on-low-girth-graphs/tree/main/Classical-local-algorithms-calculation The random variables are generated by NumPy library. We run our experiments on a 12 vCPU Intel(R) Xeon(R) Platinum 8255C Processor with 40GB memory.
Graph | Threshold algorithm | Variations of Barak and Marwaha’s algorithm | ||||||
---|---|---|---|---|---|---|---|---|
Para1 | Para2 | Para3 | Para4 | |||||
Figure 5(a) | 1 | 0.601 | 0.639 | 0.644 | 0.627 | 0.639 | 0.639 | 0.639 |
2 | 0.675 | 0.682 | 0.677 | 0.678 | 0.674 | 0.678 | 0.674 | |
3 | 0.713 | 0.701 | 0.694 | 0.692 | 0.695 | 0.695 | 0.695 | |
Figure 5(b) | 1 | 0.640 | 0.664 | 0.666 | 0.664 | 0.664 | ||
2 | 0.718 | 0.733 | 0.725 | 0.727 | 0.727 | |||
3 | 0.766 | 0.765 | 0.752 | 0.757 | 0.757 | |||
Figure 5(c) | 1 | 0.645 | 0.643 | 0.655 | 0.609 | 0.643 | 0.643 | 0.643 |
2 | 0.657 | 0.685 | 0.676 | 0.668 | 0.659 | 0.676 | 0.659 | |
3 | 0.713 | 0.698 | 0.684 | 0.661 | 0.683 | 0.680 | 0.683 |
In Table 1, the results show that when is smaller, variations of Barak and Marwaha’s algorithm achieves better cut fraction. On the other hand, when is larger, the threshold algorithm can perform better. We then summarize the results of the best-known classical local algorithms in Table 3 to enable a comparison with ma-QAOA and QAOA.
Graph | ||
---|---|---|
Figure 5(a) | 1 | [2 or 3] |
2 | [3,2] | |
3 | [2,3,2] | |
Figure 5(b) | 1 | [2] |
2 | [2,3] | |
3 | [2,3,2] | |
Figure 5(c) | 1 | [2] |
2 | [2,2] | |
3 | [1,2,2] |
4.2 Numerical evaluation on QAOA
For ma-QAOA we use our iterative formulas (Eqs. (30) and (29)) derived in Section 3 to calculate the expectation of cut fraction (14) and optimize for . The choice of vectors for different edges are listed below.
-
•
Figure 5(a) corresponds to . Due to symmetry, a vector is used for edges from and another vector is used for the remaining .
-
•
Figure 5(b) corresponds to , necessitating two distinct vectors, one for each component.
-
•
Figure 5(c) corresponds to . Due to symmetry, one vector is assigned to the edges from the two , and another is assigned to the remaining components.
In QAOA, we simply replace the with the same in the iterative formula. Our codes are publicly available,333https://github.com/Macondooo/MaxCut-on-low-girth-graphs/tree/main/QAOA-calculation which are written in Python 3.10. Our experiments for ma-QAOA and QAOA are obtained by simulations on classical computers, with the computational environment same to that used for the classical algorithms.
To accelerate the computations, we leverage vectorization techniques to evaluate and . In this approach, each term in the formulas is treated as a tensor. The exponential, for instance, is regarded as a tensor with subscript . In addition, parameters are optimized by the L-BFGS-B algorithm in SciPy library. Memory is dominated by store both the iterative formula (30) and the precomputed tensor. The results of ma-QAOA and QAOA and its comparison with the best-known classical local algorithms in Section 4.1 are listed in Table 3.
Graph | ma-QAOA | QAOA | Best-known classical local algorithms | |
---|---|---|---|---|
Figure 5(a) | 1 | 0.65172 | 0.64590 | 0.644 |
2 | 0.69754 | 0.69335 | 0.682 | |
3 | 0.72506 | 0.72071 | 0.713 | |
Figure 5(b) | 1 | 0.66238 | 0.66238 | 0.666 |
2 | 0.74999 | 0.72780 | 0.733 | |
3 | 0.76414 | 0.76414 | 0.766 | |
Figure 5(c) | 1 | 0.67642 | 0.65991 | 0.655 |
2 | 0.72485 | 0.72084 | 0.685 | |
3 | 0.75435 | 0.74554 | 0.713 |
Table 3 presented the expected cut fraction of the graphs shown in Figure 5, as obtained through the ma-QAOA, QAOA, and classical local algorithms in Section 4.1. Due to the limitations in computational capacity, we tested both algorithms under values of up to 3. The results show that on the additive product graphs in Figure 5(a) and Figure 5(c), QAOA performs a 0.3-5.2 percentage advantage over classical local algorithms. In the meantime, ma-QAOA can improve this advantage by 0.6-2.5 percentage. More importantly, while the classical local algorithms exhibit a minor advantage over QAOA on the graphs shown in Figure 5(b), the ma-QAOA demonstrates the advantages by more precisely encoding the underlying graph structure. As mentioned previously, Figure 5(b) is constructed from square-based atomic structures. We can categorize the edges into two distinct sets and assign different angle parameters to these two edge sets. Intuitively, if a given square is assigned angle parameters of , then the four adjacent squares will have angle parameters of . The converse also holds true. The squares with are surrounded by squares with . When , the ma-QAOA is unable to fully discern the complete square structure in the graph, and thus provides no performance improvement. However, for and in Figure 5(b), the ma-QAOA can recognize the square structures in the graph. Consequently, the use of two separate angle parameter vectors, and , enables the ma-QAOA to better capture the graph structure, leading to better performance compared to both QAOA and the best-known classical local algorithms. When in Figure 5(b), the performance of ma-QAOA and QAOA is identical. This may be attributed to the complexity of the optimization landscape, which causes random initial values failing to converge to the global optimum.
The optimal values of ma-QAOA and QAOA are shown in Table 4 and Table 5 respectively. We find that the optimized parameters at lower circuit depths can serve as good initial values for optimization at higher depths. Specifically, the optimized and at are close to the optimized ones at , and the same holds for the parameters at and .
Graph | |||
---|---|---|---|
Figure 5(a) | 1 | [0.1901, 0.3195] | [0.3814] |
2 | [0.1440, 0.2494, 0.2880, 0.4576] | [0.5221, 0.2725] | |
3 | [0.1156, 0.2294, 0.2565, 0.3943, 0.3047, 0.4685] | [0.5753, 0.4004, 0.2139] | |
Figure 5(b) | 1 | [0.2617, 0.2617] | [0.3927] |
2 | [0, 0.4522, 0, 0.5592] | [0.5592, 0.4522] | |
3 | [0.1698, 0.1698, 0.3047, 0.3047, 0.3576, 0.3576] | [0.6037, 0.4643, 0.2422] | |
Figure 5(c) | 1 | [0.1908, 0.5021] | [0.3835] |
2 | [0.2390, 0.2763, 0.4102, 0.6389] | [0.4663, 0.2589] | |
3 | [0, 0.7853, 1.3256, 1.3615, 1.5708, 0.3415] | [0.3926, 0.7853, 0.7854] |
Graph | |||
---|---|---|---|
Figure 5(a) | 1 | [0.2536] | [0.3662] |
2 | [0.2048, 0.3902] | [0.4857, 0.2578] | |
3 | [0.1786, 0.3448, 0.4000] | [0.5506, 0.3738, 0.2016] | |
Figure 5(b) | 1 | [0.2617] | [0.3927] |
2 | [0.1978, 0.3534] | [0.5557, 0.3133] | |
3 | [0.1698, 0.3047, 0.3576] | [0.6037, 0.4643, 0.2422] | |
Figure 5(c) | 1 | [0.2851] | [0.3481] |
2 | [0.2917 0.5623] | [0.4090 0.2408] | |
3 | [0.2014 0.48550 0.5916] | [0.5410 0.3187 0.1851] |
4.3 Additional experiments for low-girth graphs
In this subsection, we analyze a set of graphs that differ from the Ramanujan and high-girth regular graphs previously discussed. Specifically, here we consider graphs with more mesh-like structures, rather than tree-like structures in Ramanujan graphs and high-girth regular graphs. This distinction in the underlying topology of these graph families may produce interesting results when analyzing and comparing the performance of the QAOA and classical optimization techniques. The graphs tested are depicted in Figure 6 and the results are listed in Table 6. The running environments for quantum algorithms and classical local algorithms are identical to the ones in Section 4.


Graph | ma-QAOA | QAOA | Threshold algorithm | Variations of Barak and Marwaha’s algorithm | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Para1 | Para2 | Para3 | Para4 | |||||||
Figure 6(a) | 1 | 0.69245 | 0.69245 | 0.687 | 0.691 | 0.695 | 0.691 | 0.691 | 0.691 | 0.691 |
2 | 0.75296 | 0.75243 | 0.730 | 0.736 | 0.734 | 0.721 | 0.736 | 0.736 | 0.736 | |
Figure 6(b) | 1 | 0.65172 | 0.64589 | 0.601 | 0.639 | 0.644 | 0.639 | 0.627 | 0.639 | 0.639 |
2 | 0.70420 | 0.69970 | 0.686 | 0.691 | 0.679 | 0.672 | 0.676 | 0.672 | 0.672 |
Table 6 shows that the performance of QAOA is better than the best-known classical local algorithms for the tiling grid graphs by 0.3-2.2 percentage except in Figure 6(a). The ma-QAOA further enhances this advantage by 0.1-0.9 percentage.
5 Conclusions
In this paper, we systematically investigated the performance guarantee of QAOA for MaxCut on low-girth graphs, and we use ma-QAOA to more precisely encoding the structure of low girth graph. In theory, we calculated the expected cut fraction of QAOA for the MaxCut on a set of expander graphs known as additive product graphs [19], which was achieved by analyzing the structure of subgraphs in additive product graphs iteratively. Furthermore, we also extend our framework to the quantum MaxCut problem on additive product graphs. In experiments, to construct convincing benchmarks against QAOA, we also investigated the best-known classical local algorithms for the MaxCut problem and tested them on low-girth additive product graphs. Specifically, we analyzed the threshold algorithm presented in Algorithm 1 as well as the variations of the algorithm proposed by Barak and Marwaha [1] in Algorithm 3. The results indicate that QAOA outperforms the best-known classical algorithms on additive product graphs, and ma-QAOA further enhances this advantage.
Furthermore, the performance comparison between QAOA and classical local algorithms are extended to the tiling grid graphs. On these types of graphs, the ma-QAOA and QAOA still demonstrates advantages over classical algorithms.
Our work leaves open questions that necessitate further investigation:
-
•
The performance of QAOA on other low-girth expander graphs is not yet fully clear. In particular, this paper leaves room for further exploration into how properties such as vertex expansion, edge expansion, or spectral expansion may affect the performance gap between QAOA and classical local algorithms.
-
•
Still, the lower bound of QAOA’s performance on general graphs is unknown. Previous studies mostly focused on regular graphs [2, 22] or complete graphs [3] with different edge weights distribution. Specifically, understanding how QAOA’s theoretical bounds compared to the 0.878 classical approximation guarantee for general graphs by the Goemans-Williamson algorithm [8] is an important open question. Exploring this comparison could shed light on the relative strengths of quantum and classical approaches to approximate optimization problems.
Acknowledgments
TL, YS, and ZY were supported by the National Natural Science Foundation of China (Grant Numbers 92365117 and 62372006), and The Fundamental Research Funds for the Central Universities, Peking University.
References
- [1] Boaz Barak and Kunal Marwaha, Classical algorithms and quantum limitations for maximum cut on high-girth graphs, 13th Innovations in Theoretical Computer Science Conference (ITCS 2022), Schloss Dagstuhl-Leibniz-Zentrum für Informatik, 2022, arXiv:2106.05900
- [2] Joao Basso, Edward Farhi, Kunal Marwaha, Benjamin Villalonga, and Leo Zhou, The quantum approximate optimization algorithm at high depth for MaxCut on large-girth regular graphs and the Sherrington-Kirkpatrick model, 17th Conference on the Theory of Quantum Computation, Communication and Cryptography (TQC 2022), Schloss-Dagstuhl-Leibniz Zentrum für Informatik, 2022, arXiv:2110.14206
- [3] Sami Boulebnane and Ashley Montanaro, Predicting parameters for the quantum approximate optimization algorithm for MAX-CUT from the infinite-size limit, 2021, arXiv:2110.10685
- [4] Arthur Braida, Simon Martiel, and Ioan Todinca, Tight Lieb--Robinson bound for approximation ratio in quantum annealing, npj Quantum Information 10 (2024), no. 1, 40, arXiv:2311.12732
- [5] Ahmed El Alaoui, Andrea Montanari, and Mark Sellke, Local algorithms for maximum cut and minimum bisection on locally treelike regular graphs of large degree, Random Structures & Algorithms 63 (2023), no. 3, 689--715, arXiv:2111.06813
- [6] Edward Farhi, Jeffrey Goldstone, and Sam Gutmann, A quantum approximate optimization algorithm, 2014, arXiv:1411.4028
- [7] Igor Gaidai and Rebekah Herrman, Performance analysis of multi-angle QAOA for , Scientific Reports 14 (2024), no. 1, 18911, arXiv:2312.00200
- [8] Michel X. Goemans and David P. Williamson, Improved approximation algorithms for maximum cut and satisfiability problems using semidefinite programming, Journal of the ACM (JACM) 42 (1995), no. 6, 1115--1145.
- [9] Matthew B. Hastings, Classical and quantum bounded depth approximation algorithms, 2019, arXiv:1905.07047
- [10] Mohsen Heidari, Masih Mozakka, and Wojciech Szpankowski, Efficient gradient estimation of variational quantum circuits with Lie algebraic symmetries, 2024, arXiv:2404.05108
- [11] Rebekah Herrman, Phillip C. Lotshaw, James Ostrowski, Travis S. Humble, and George Siopsis, Multi-angle quantum approximate optimization algorithm, Scientific Reports 12 (2022), no. 1, 6781, arXiv:2109.11455
- [12] Juho Hirvonen, Joel Rybicki, Stefan Schmid, and Jukka Suomela, Large cuts with local algorithms on triangle-free graphs, 2014, arXiv:1402.2543
- [13] Shlomo Hoory, Nathan Linial, and Avi Wigderson, Expander graphs and their applications, Bulletin of the American Mathematical Society 43 (2006), no. 4, 439--561.
- [14] Ishaan Kannan, Robbie King, and Leo Zhou, A quantum approximate optimization algorithm for local Hamiltonian problems, 2024, arXiv:2412.09221
- [15] Richard M. Karp, Reducibility among combinatorial problems, Springer, 2010.
- [16] Subhash Khot, Guy Kindler, Elchanan Mossel, and Ryan O’Donnell, Optimal inapproximability results for MAX-CUT and other -variable CSPs?, SIAM Journal on Computing 37 (2007), no. 1, 319--357.
- [17] Alexander Lubotzky, Expander graphs in pure and applied mathematics, Bulletin of the American Mathematical Society 49 (2012), no. 1, 113--162, arXiv:1105.2389
- [18] Kunal Marwaha, Local classical MAX-CUT algorithm outperforms QAOA on high-girth regular graphs, Quantum 5 (2021), 437, arXiv:2101.05513
- [19] Sidhanth Mohanty and Ryan O’Donnell, X-Ramanujan graphs, Proceedings of the Thirty-First Annual ACM-SIAM Symposium on Discrete Algorithms, pp. 1226--1243, 2020, arXiv:1904.03500
- [20] Andrea Montanari, Optimization of the Sherrington--Kirkpatrick Hamiltonian, SIAM Journal on Computing (2021), no. 0, FOCS19--1, arXiv:1812.10897
- [21] Michael Ragone, Bojko N. Bakalov, Frédéric Sauvage, Alexander F. Kemper, Carlos Ortiz Marrero, Martín Larocca, and M. Cerezo, A Lie algebraic theory of barren plateaus for deep parameterized quantum circuits, Nature Communications 15 (2024), no. 1, 7172, arXiv:2309.09342
- [22] Jonathan Wurtz and Peter Love, MaxCut quantum approximate optimization algorithm performance guarantees for , Physical Review A 103 (2021), no. 4, 042612, arXiv:2010.11209