Improved Algorithms for Quantum MaxCut via Partially Entangled Matchings
Abstract
We introduce a -approximation algorithm for Quantum MaxCut and a -approximation algorithm for the EPR Hamiltonian of [12]. A novel ingredient in both of these algorithms is to partially entangle pairs of qubits associated to edges in a matching, while preserving the direction of their single-qubit Bloch vectors. This allows us to interpolate between product states and matching-based states with a tunable parameter.
Keywords and phrases:
Quantum computing, Quantum MaxCut, Maximum matchingFunding:
Eunou Lee: E.L is supported by a KIAS Individual Grant CG093801 at Korea Institute for Advanced Study.Copyright and License:
2012 ACM Subject Classification:
Theory of computation Approximation algorithms analysisAcknowledgements:
This work is supported by a collaboration between the US DOE and other Agencies. The work of A.A is supported by the Data Science Institute at the University of Chicago. This article has been authored by an employee of National Technology & Engineering Solutions of Sandia, LLC under Contract No. DE-NA0003525 with the U.S. Department of Energy (DOE). The employee owns all right, title and interest in and to the article and is solely responsible for its contents. The United States Government retains and the publisher, by accepting the article for publication, acknowledges that the United States Government retains a non-exclusive, paid-up, irrevocable, world-wide license to publish or reproduce the published form of this article or allow others to do so, for United States Government purposes. The DOE will provide public access to these results of federally sponsored research in accordance with the DOE Public Access Plan https://www.energy.gov/downloads/doe-public-access-plan.Funding:
K.M and J.S. acknowledge that this material is based upon work supported by the National Science Foundation Graduate Research Fellowship under Grant No. 2140001.Editors:
Anne Benoit, Haim Kaplan, Sebastian Wild, and Grzegorz HermanSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
Given a graph with positive edge weights and a -local Hamiltonian term , define the -qubit Hamiltonian
where is the local term applied on qubits . For two particular local terms , we are interested in the problem of computing the maximum energy of , which we denote as , for any . This is not an easy task in general: deciding if is above some threshold with inverse polynomial accuracy is known to be -hard [18].
In the first problem, we choose the local term
where is the singlet state. This problem has recently been studied under the name Quantum MaxCut (QMC) [7]. In the statistical mechanics literature, Hamiltonians defined by are instances of the zero-field quantum Heisenberg XXX1/2 model. The decision version of QMC is -hard [18].
In the second problem, we choose the local term
where . This problem, named EPR by [12], is thought to be easier than QMC, since Hamiltonians defined by are stoquastic (sign-problem free) [18, 5]. In fact, it is not yet clear if EPR can be solved in polynomial time.
In lieu of exactly computing , we may try to approximate this value. In both problems, the local term is positive semidefinite, so . We judge an approximation by its approximation ratio. Suppose we can find efficiently computable functions such that for all graphs ,
Then, the approximation ratio is at least
In most works, the upper bound is determined by solving a semidefinite programming (SDP) relaxation of the maximization problem [3, 7, 16, 19, 20, 9]. The source of such SDP relaxations are generally hierarchies of SDPs that provide increasingly better upper bounds at the cost of solving larger-sized SDPs. The quantum moment-SOS hierarchy, typically based on Pauli operators, is widely employed for quantum local Hamiltonian problems. This hierarchy is an instance of the NPA hierarchy [15] and is also known as the quantum Lasserre hierarchy [16]. The second level of the quantum moment-SOS hierarchy is necessary for good approximations, since critical monogamy-of-entanglement properties begin to emerge at that level [16, 17].
The lower bound is usually determined by an algorithm that prepares a state with this energy. Several approximation algorithms have been proposed for QMC and EPR, using product states [7, 16, 17, 12], matchings [1, 16, 17, 14, 10, 8], and short variational circuits [1, 13, 12, 11, 8]. During the preparation of this manuscript, the best known approximation ratios for these problems were improved to for QMC [8] and for EPR [11].
We provide a new algorithm for both problems. For each algorithm, we start from a good product state. We then choose a matching in and partially rotate matched qubits towards an entangled state. Our novel contribution is to perform this rotation such that individual single-qubit Bloch vectors are preserved, up to a rescaling of magnitude. This allows us to evaluate the energy of our entangled state in terms of the energy of the product state. For EPR, we use a fractional matching and provide a circuit-based algorithm. For QMC, we explicitly describe a tensor-product of single and two-qubit states, which interpolates between the product state and an integer matching-based state with a single tunable parameter. For QMC, we additionally introduce the technique of choosing a maximum-weight matching with respect to rescaled edge weights. One interpretation of this approach is that we widen the search space of our algorithm to include matchings other than the maximum-weight matching of . Combining these techniques allows us to achieve state-of-the-art approximation ratios on each problem:
Theorem 1.
For EPR, , where is the golden ratio.
Theorem 2.
For QMC, .
Remark 3.
Remark 4.
Theorem 2 requires an improved upper bound in addition to new algorithmic techniques. The technique of finding a matching with respect to rescaled edge weights was simultaneously and independently used by [8]; however, they use this as part of an improved approximation algorithm for QMC on triangle-free graphs rather than general graphs. Our QMC approximation does rely on a strengthening by [8] of a class of upper bounds first used in the work [14]. Without this strengthened bound, we still achieve an approximation ratio .
Our approximation algorithm finds a quantum state such that . For the EPR Hamiltonian, the analysis of our algorithm is optimal: there exist graphs (such as the single-edge graph) where
For QMC, however, it is possible that a better analysis of this algorithm (particularly of ) would give a larger approximation ratio.
We stress the novelty of this work is new algorithmic techniques for QMC and EPR. We use these techniques to immediately improve the approximation ratios for each algorithm, however we believe that these techniques, potentially combined with previous methods, may lead to further improvements in approximation ratios for both algorithms. In the remainder of this work, we introduce necessary notation, describe each algorithm, and prove Theorems 1 and 2. We defer some technical lemmas to the appendix, which can be found in the full version of this paper [2].
2 Preliminaries
2.1 Graph theory
Let denote a graph with vertex set , edge set , and positive edge weights . In this work, we always take . We let . When is inferred by context, we simply write . Define as the set of neighbors of a vertex . For convenience, we index edges by either or , or simply in subscripts.
A fractional matching of a graph is a function that assigns a value to each edge in , such that the sum over values is at most for any vertex . If for all edges , we say that is an integral matching. For an integral matching , we say an edge is in the matching if . The weight of a matching is defined as . We define (or ) to be the maximum total weight of any fractional (or integral) matching of . For convenience, we sometimes let also denote the set of edges in the maximum-weight integral matching of . When the graph is clear from context we drop the subscript . Optimal integral and fractional matchings can be computed in polynomial time, for example with linear programming [6].
2.2 Quantum computation
We refer to as the canonical Pauli matrices. As such, we can define the Bloch vector of any -qubit density matrix as the vector in the unit sphere such that
Pure states correspond to unit Bloch vectors. Let be the singlet state, and be the EPR state.
2.3 Previous algorithms
In our work, we use two previously known algorithms as subroutines:
-
1.
The algorithm takes a graph as an input, and outputs a good product state . For EPR, we define . For QMC, we define to be the output of the [7] rounding algorithm applied to the some fixed constant level of the quantum moment-SOS hierarchy, as in [17] and [14]. This is the only part of our algorithm for QMC that relies on an SDP. As described in [17, Sec 2.2], the output from the SDP can be interpreted as a pseudo-density matrix. It is called a pseudo-density matrix because it satisfies only some of the constraints of a valid density matrix. Furthermore, the SDP at any constant can be solved in polynomial time.
-
2.
The algorithm takes a graph as an input, and outputs a product of 2-qubit states . It was first formally proposed in [14]. The algorithm first finds a maximum-weight integral matching . For EPR (and for QMC), it outputs the tensor product of (and for QMC) for every pair of vertices in the matching, and the maximally mixed state for every vertex not in the matching. This obtains energy on matched edges and on unmatched edges, for a total of .
3 Our Algorithms
To motivate our algorithms, consider the following simple graph :
This graph is bipartite, so QMC and EPR are equivalent under local rotations [12]. We thus focus on EPR for simplicity. It is easy to compute that . The optimal product state is , where , and achieves energy . The algorithm computes the maximum matching and returns the state as described in Section 2. This state gains energy on edge and on edge , achieving total energy . Thus, the algorithm of [14], which returns the better of and , achieves of the optimal energy.
Our algorithms do better by interpolating between and , rather than taking the better of the two. For our example , the unitary
takes to , a tensor product of a two-qubit state and a single-qubit state . The parameter sets the entanglement for : when , is a product state; when , is fully rotated into the EPR state. As such, we view this approach as smoothly interpolating between and in superposition. It can be easily verified that the energy obtained by on edge is , and the single qubit marginals of and are given by
In particular, note that the single qubit marginals are simply rescaled and shifted by the identity. This fact aids in the analysis: we can still evaluate the energy of in terms of , even though the edge is not in our matching:
Thus the total energy is given by
The parameter can be optimized over; in this example, taking yields
outperforming both and .
In this example, the analysis simplifies nicely because the initial product state is the symmetric state , and because the graph is bipartite. For EPR on general graphs, we provide a circuit-based algorithm that prepares an entangled state based on a fractional matching in the graph. This state still works by partially entangling edges according to the matching while preserving single-qubit marginals, but it does not have a simple interpretation in terms of . We leave open the possibility that a -approximation algorithm can be achieved with a tensor product of one and two-qubit states that simply interpolates between and . For QMC, our algorithm does indeed interpolate between and . However the algorithm and analysis become slightly more complicated. Crucial to our analysis is the following lemma:
Lemma 5 (Energy obtained by QMC algorithm on matched and unmatched edges).
Given two -qubit pure states and a real parameter , there exists a -qubit pure state such that
The last two constraints in Lemma 5 indicate that the Bloch vectors of the single-qubit marginals of are rescaled Bloch vectors of and , respectively. This is analogous to the argument in our example, where the marginals are rescaled and shifted by the identity. This again allows us to compute the energy of unmatched edges in terms of . The parameter again sets the entanglement in : when , is a product state; when , is maximally entangled. The proof of Lemma 5 is given in the appendix of [2].
3.1 EPR
Using the intuition from our example, we introduce the following algorithm for EPR:
Algorithm 1 (Fractional matching algorithm for EPR).
Given a weighted graph :
-
1.
Define the -qubit Hamiltonian
and the angle
(1) where is the golden ratio.
-
2.
Find a fractional matching of maximum weight (e.g., via linear programming).
-
3.
Output the state
(2) where
(3)
The unitary rotates the state towards the Bell state ; this circuit was proposed in the approximation algorithm of [12].
3.2 QMC
Our algorithm for QMC relies on the following subroutine, which we call since it places partially entangled 2-qubit states on the edges of a matching, while places maximally entangled states:
Algorithm 2 ().
Given a weighted graph and a real parameter :
-
1.
Prepare the state by running the algorithm on QMC from Section 2 for some fixed, constant SDP level .
-
2.
For each edge , compute from .
-
3.
Find a maximum-weight integral matching on the reweighted graph , where
(4) and . Here, we use the notation from [14].
-
4.
Let be the state starting from , but for each edge in , replace with the state described in Lemma 5, parametrized by .
-
5.
Output the state .
Our algorithm for QMC chooses the better of the algorithms and :
Algorithm 3 (Combined algorithm for QMC).
Given a weighted graph :
-
1.
Prepare the state by running the algorithm from Section 2.
-
2.
Prepare the state by running with parameter .
-
3.
Output the state out of and obtaining larger energy on the QMC Hamiltonian .
4 Analysis
We upper-bound the maximum energy of QMC and EPR Hamiltonians using a quantifiable monogamy of entanglement:
Lemma 6 (Monogamy of Entanglement, e.g. [14, Lemma 1]).
For both EPR and QMC, and for all graphs , we have
For QMC, our analysis improves with better upper bounds on . We use an inequality of the form ; this first appears in [14, Lemma 4] with the constant . By a detailed analysis and numerical verification on graphs with up to vertices, this constant was recently improved to in [8]:
Lemma 7 (Strengthened monogamy of entanglement, [8, Lemma 3.10]).
For QMC, and for all graphs , we have
where . Additionally, the bound holds for the optimal value of the -th level of the quantum moment SoS hierarchy.
4.1 EPR
We now prove Theorem 1. Given the state in Equation 2
| (5) |
[12, Lemma 9] showed that the energy on the local term is at least
| (6) |
where
In Algorithm 1, the output state is in the form of Equation 5. Using the angles specified by Equation 3, we have
| (7) | ||||
| (8) | ||||
| (9) |
The inequalities in the first two lines follow because is a matching. For example, we have . Using Equation 6, the energy of on is at least
| (10) |
We combine Equation 10 with Lemma 6 to bound the approximation ratio on any graph :
Each term in the numerator and denominator is positive, so the approximation ratio is at least the approximation ratio of the worst edge
| (11) |
Recall from Equation 1 that we take . We empirically identified as the angle that maximizes the approximation ratio in this analysis. Substituting this value into in Equation 10, the RHS of Equation 11 yields the minimization problem
whose value is found to be by the following lemma:
Lemma 8.
Given , we have that
| (12) |
4.2 QMC
We now analyze Algorithm 3 and prove the -approximation in Theorem 2. We first introduce some helpful notation. Fix a graph . Let be the pseudo-density matrix outputted by solving the SDP of the level- quantum moment-SOS hierarchy (described in Section 2.3). We define
The first value is the energy obtained by on ; the second value is the expected value of with respect to the traceless components of the term . It is straightforward to show that . The output of the SDP gives an upper bound to the optimal energy:
| (13) |
Fix a positive integer and suppose Lemma 7 is true for . Then, consider a reweighting of the graph where . Let be a vector with
Here, we again use the notation from [14], which ensures
It is shown (e.g. in [8, Lemma 3.4]) that is in the integral matching polytope of . This means that is a convex combination of integral matchings . Since the weight of any integral matching on is at most , the weight of on is also at most . Thus,
| (14) |
Equation 14 in this context was first used in [16] and also appears in [14, Lemma 4] and [10, Lemma C.2].
We now find a lower bound for the energy obtained by the matching state in . We consider the energy on a case-by-case basis in the following lemma:
Lemma 9.
Consider the state and matching from Algorithm 2. For , let be the subset of edges not in (e.g. ) where each edge in has matched endpoints in . Then the energy of on an edge is exactly
where, is defined in Algorithm 2.
Proof.
The case when follows directly from how we choose in Algorithm 2, Step 4. For all other edges, recall that is the inner product of the Bloch vectors of qubits and with respect to the product state . The reduced density matrix of on qubits and is a product state . By [12, Lemma 10], the energy of on is
We handle each remaining case separately:
-
1.
: Here, the product state is exactly , and so by definition.111Although is a maximum matching, its edge set is a subset of , and so may be non-empty.
-
2.
: Without loss of generality, belongs to a matched edge in and is not in a matched edge. Lemma 5 implies that is rescaled to , and so .
-
3.
: and belong to two different matched edges. Therefore, it has both Bloch vectors rescaled, i.e. .
Lemma 9 allows us to compute the energy obtained by the state :
| (15) |
Note that is a maximum-weight integral matching with respect to the rescaled weights defined in Equation 4. Thus, we can invoke Equation 14 to replace the sum over in Equation 15 with a sum over . Since the rescaled weights are positive for all edges in , we have
| (16) |
Note that is a random variable because is a randomized algorithm. The analysis of in [7] is based on [4], which shows that . A definition of in the context of QMC appears in [17, Equation 3]. For our purposes, it is enough to note that is an odd function because it has the form
| (17) |
where is a constant and is a hypergeometric function. Since Section 4.2 is linear in , we use linearity of expectation to conclude
| (18) |
The following lemma lets us analyze the performance of Algorithm 3, which takes the better of two algorithms, and .
Lemma 10 (Reducing worst-case bounds to a single edge).
Suppose we have a collection of approximation algorithms and an upper bound on the maximum energy , where for all , and is a constant. Furthermore, suppose that the energy that algorithm earns on edge is a function of , which we denote , such that earns . Then, by running each of and taking the output with the maximum energy, we can obtain an approximation ratio
where the maximum is taken over valid probability distributions
and the minimum is taken over .
Proof.
Given a specific graph , outputting the best of is at least as good as outputting the result of with probability , for all and for any possible . Now, given a fixed distribution the approximation ratio is at least
The third line follows because
is a distribution over . Since the statement is true for all possible distributions , we take the maximum over to finish the lemma.
We apply Lemma 10 with the SDP upper bound in Equation 13 and our two algorithms and as described in Algorithm 3. For , we consider the minimum of three different functions, depending on if an edge is in , in , or otherwise. For , we derived in Section 2.3 that the energy obtained by on is . Since M is a maximum-weight matching with respect to , we may invoke Equation 14 to express
implying that achieves energy at least
We have lower-bounded the energy that each algorithm earns on an edge as a function of . Note that the SDP upper bound is trivial (i.e. at most ) when , so we may search over . Altogether, Lemma 10 implies that Algorithm 3 obtains approximation ratio at least
| (19) |
| (20) | ||||
| (21) | ||||
| (22) | ||||
| (23) |
In the above, is demoted to a scalar (which fully describes a probability distribution over two variables). Equation 23 is the approximation ratio obtained by on an edge with . The expected approximation ratio obtained by is Equation 22 on an edge in , Equation 21 on an edge in , and is Equation 20 on all other edges.
We further simplify Equation 19. Recall that is an odd function (Equation 17). So, for all we have when and when . So we may rewrite Equation 19 as
| (24) |
One may then search over the three free parameters , , and using an enumeration of the feasible ranges. For a more efficient approach, it is also possible to solve a linear program where the number of variables and constraints is based on an enumeration of the feasible ranges for and . We obtain for at and . By Lemma 7, our algorithm thus achieves a -approximation in expectation if . If the factor in Lemma 7 is improved to , we would obtain at and .
Remark 11.
We may simplify Equation 19 by assuming . This is because if then and for all . This follows from being odd, and in addition for all .
5 Discussion
In this work, we introduce two novel techniques for constructing algorithms for the Quantum MaxCut and EPR Hamiltonians on arbitrary graphs. The main techniques are a) partially entangling edges in a matching towards an entangled state while maintaining the direction of the marginal Bloch vectors as b) choosing matching with respect to reweighted graphs. We show that these techniques immediately lead to state-of-the-art approximation ratios for both problems. We believe that these techniques may be combined with other methods to obtain further improvements, and encourage further studies in this direction.
References
- [1] Anurag Anshu, David Gosset, and Karen Morenz. Beyond product state approximations for a quantum analogue of Max Cut. LIPIcs, Volume 158, TQC 2020, 158:7:1–7:15, 2020. doi:10.4230/LIPIcs.TQC.2020.7.
- [2] Anuj Apte, Eunou Lee, Kunal Marwaha, Ojas Parekh, and James Sud. Improved algorithms for quantum maxcut via partially entangled matchings, 2025. arXiv:2504.15276.
- [3] Fernando G. S. L. Brandão and Aram W. Harrow. Product-state Approximations to Quantum Ground States, December 2014. arXiv:1310.0017.
- [4] Jop Briet, Fernando Mario de Oliveira Filho, and Frank Vallentin. The positive semidefinite Grothendieck problem with rank constraint, 2010. doi:10.1007/978-3-642-14165-2_4.
- [5] Toby Cubitt and Ashley Montanaro. Complexity classification of local Hamiltonian problems, March 2016. arXiv:1311.3161.
- [6] Jack Edmonds. Paths, Trees, and Flowers. Canadian Journal of Mathematics, 17:449–467, January 1965. doi:10.4153/CJM-1965-045-4.
- [7] Sevag Gharibian and Ojas Parekh. Almost optimal classical approximation algorithms for a quantum generalization of Max-Cut. LIPIcs, Volume 145, APPROX/RANDOM 2019, 145:31:1–31:17, 2019. doi:10.4230/LIPIcs.APPROX-RANDOM.2019.31.
- [8] Sander Gribling, Lennart Sinjorgo, and Renata Sotirov. Improved approximation ratios for the Quantum Max-Cut problem on general, triangle-free and bipartite graphs, April 2025. arXiv:2504.11120.
- [9] Felix Huber, Kevin Thompson, Ojas Parekh, and Sevag Gharibian. Second order cone relaxations for quantum Max Cut, November 2024. arXiv:2411.04120.
- [10] Zackary Jorquera, Alexandra Kolla, Steven Kordonowy, Juspreet Singh Sandhu, and Stuart Wayland. Monogamy of Entanglement Bounds and Improved Approximation Algorithms for Qudit Hamiltonians, November 2024. arXiv:2410.15544.
- [11] Nathan Ju and Ansh Nagda. Improved approximation algorithms for the EPR Hamiltonian, April 2025. doi:10.48550/arXiv.2504.10712.
- [12] Robbie King. An Improved Approximation Algorithm for Quantum Max-Cut. Quantum, 7:1180, November 2023. doi:10.22331/q-2023-11-09-1180.
- [13] Eunou Lee. Optimizing quantum circuit parameters via SDP, September 2022. arXiv:2209.00789.
- [14] Eunou Lee and Ojas Parekh. An improved Quantum Max Cut approximation via matching, February 2024. arXiv:2401.03616.
- [15] Miguel Navascues, Stefano Pironio, and Antonio Acin. A convergent hierarchy of semidefinite programs characterizing the set of quantum correlations. New Journal of Physics, 10(7):073013, July 2008. doi:10.1088/1367-2630/10/7/073013.
- [16] Ojas Parekh and Kevin Thompson. Application of the Level-$2$ Quantum Lasserre Hierarchy in Quantum Approximation Algorithms. LIPIcs, Volume 198, ICALP 2021, 198:102:1–102:20, 2021. doi:10.4230/LIPIcs.ICALP.2021.102.
- [17] Ojas Parekh and Kevin Thompson. An Optimal Product-State Approximation for 2-Local Quantum Hamiltonians with Positive Terms, June 2022. doi:10.48550/arXiv.2206.08342.
- [18] Stephen Piddock and Ashley Montanaro. The complexity of antiferromagnetic interactions and 2D lattices, December 2015. arXiv:1506.04014.
- [19] Jun Takahashi, Chaithanya Rayudu, Cunlu Zhou, Robbie King, Kevin Thompson, and Ojas Parekh. An SU(2)-symmetric Semidefinite Programming Hierarchy for Quantum Max Cut, August 2023. arXiv:2307.15688.
- [20] Adam Bene Watts, Anirban Chowdhury, Aidan Epperly, J. William Helton, and Igor Klep. Relaxations and Exact Solutions to Quantum Max Cut via the Algebraic Structure of Swap Operators. Quantum, 8:1352, May 2024. doi:10.22331/q-2024-05-22-1352.
