Abstract 1 Introduction 2 Algorithm References Appendix A Proof of Lemma 9

Improved Approximation Algorithms for the EPR Hamiltonian

Nathan Ju ORCID UC Berkeley, CA, USA Ansh Nagda ORCID UC Berkeley, CA, USA
Abstract

The EPR Hamiltonian is a family of 2-local quantum Hamiltonians introduced by King [18]. We introduce a polynomial time 1+540.809-approximation algorithm for the problem of computing the ground energy of the EPR Hamiltonian, improving upon the previous state of the art of 0.72 [17].

Keywords and phrases:
Approximation Algorithms, Quantum Local Hamiltonian
Category:
APPROX
Copyright and License:
[Uncaptioned image] © Nathan Ju and Ansh Nagda; licensed under Creative Commons License CC-BY 4.0
2012 ACM Subject Classification:
Theory of computation Approximation algorithms analysis
Supplementary Material:
Software  (Source code): https://github.com/anshnagda/EPR-algorithm
  archived at Software Heritage Logo swh:1:dir:0c84d61b32f7cc919be9311c24e8136b0e3412f1
Editors:
Alina Ene and Eshan Chattopadhyay

1 Introduction

Constraint Satisfaction Problems (CSPs) are a central class of computational problems in NP, capturing a wide range of decision problems where the goal is to determine whether there exists an assignment to variables that satisfies a given set of constraints. In the quantum setting, the analogous problem is known as the local Hamiltonian problem which is the central computational problem for the complexity class QMA. In this problem, one is given a local Hamiltonian of the form

H=i[m]hi,

where each term hi2n×2n is a Hermitian matrix over n qubits that only acts nontrivially on O(1) qubits. Given a (mixed) quantum state ρ, we say that the energy of ρ is tr(ρH). In the maximization version of the problem, the objective is to compute the maximum possible energy achieved by any state, which we call the ground state energy111This is a slight deviation from the usual notion of the ground state being the minimum energy state. We remark that both the notions are equivalent up to replacing H by H; we use the maximization notion because it is notationally convenient.. Note that the ground state energy coincides with the maximum eigenvalue of H:

λmax(H)=maxρ0,tr(ρ)=1tr(ρH).

We remark that max-CSPs can be thought of as a special case of the local Hamiltonian problem where hi is a diagonal 2n×2n matrix whose (x,x) entry indicates whether or not a particular predicate is satisfied by x viewed as an assignment of n Boolean variables. In this case, it is immediate that the ground state energy is equal to the maximum number of clauses that can be satisfied by any assignment, and is achieved by the product state |xx| where x is the optimal assignment.

Computing the ground state energy of a generic local Hamiltonians is computationally infeasible (QMA-hard), so we focus on approximating it in this work. Let be a family of local Hamiltonians. For α[0,1], an α-approximation algorithm for is a classical algorithm222For the purposes of this paper we only consider classical algorithms, but one can also consider quantum algorithms. that, upon input H, outputs a description of a (mixed) state ρ achieving energy

tr(ρH)αλmax(H).

In this work, we consider the EPR Hamiltonian family =EPR which was formally introduced by King [18]. A Hamiltonian HEPR is parametrized by a weighted graph given as a symmetric matrix w0n×n, and is defined as

H=i<j[n]wijEij,

where Eij is a projection onto the EPR state |EPR=|00+|112 on qubits i and j tensored with identity on the rest.

These Hamiltonians naturally arise in the study of quantum systems such as the antiferromagnetic Heisenberg model on lattices and the XXZ model, which have been extensively studied in the physics literature (e.g. [25, 7, 21, 5]).

From the point of view of computational complexity, the EPR Hamiltonian provides perhaps the simplest example of a local Hamiltonian that exhibits new challenges beyond traditional CSP theory. To illustrate this, one can show that among all product states, the one achieving maximal energy is always the trivial state ρ=|0n0n|. This is in contrast to the “diagonal” case of CSPs in which the optimal state is equivalent to the optimal product state. As a result, the main challenge with the EPR Hamiltonian reduces to understanding the entanglement structure of the ground state.

Prior to our work, King [18] obtained a 1/2-approximation for the EPR Hamiltonian, which was later slightly improved to 0.72 [17]. Our main result is an improved approximation algorithm for EPR.

Theorem 1.

There is a polynomial time 1+540.809-approximation algorithm for the EPR problem.

 Remark 2.

In concurrent work, Apte et al. [3] achieved the same approximation ratio of 1+54 for the EPR Hamiltonian using a different algorithm and analysis.

1.1 Related work

The study of approximation algorithms for local Hamiltonian problems was initiated by Bravyi, Bansal, and Terhal [4] and Gharibian and Kempe [11] which have since been followed by a sequence of works (e.g. [9, 8, 14, 6]).

A line of work initiated by Gharibian and Parekh [12] studies approximation algorithms for a closely related problem to the EPR Hamiltonian, called Quantum Max Cut [23, 1, 24, 19, 18, 15, 28, 26]. The best known results in the literature are an algorithm showing an approximation ratio of 0.611 [3] and a (conditional) hardness result ruling out approximation ratios beyond 0.956 [16]. This leaves a large range of possible values for the optimal approximability by polynomial time algorithms.

For bipartite instances of the EPR Hamiltonian where one part has O(1) vertices, Takahashi et al. [27] devised a polynomial time approximation scheme (PTAS). For general bipartite instances of the EPR Hamiltonian, [13] devised a 0.816-approximation algorithm.

2 Algorithm

2.1 An upper bound on 𝝀𝐦𝐚𝐱(𝑯)

We will begin by describing an efficiently computable upper bound on λmax(H). Let us denote by LP(w) the optimal value of the following linear program, known as the fractional matching LP:

max i<jwijxij
s.t.jixij 1for all i[n]
xij 0for all i,j[n]

Let x=(xij)i<j be an optimal solution to the above LP. We say that the LP energy on edge {i,j} is E~ij=1+xij2.

The star bound, proved by Anshu-Gosset-Morenz [1], gives a way to bound the ground state energy λmax(H) in terms of the above linear program. We will need a version of this bound that applies to the EPR Hamiltonian (appearing in [18, Lemma 7] for example).

Lemma 3.

For any n-qubit state ρ and i[n],

jimax(0,2tr(ρEij)1)1.

As a consequence, {max(0,2tr(ρEij)1)}i<j always gives a feasible solution to the LP, implying that i<jwijmax(0,2tr(ρEij)1)LP(w). This implies the upper bound

λmax(H)=maxρ0,tr(ρ)=1tr(ρH)i<jwij+LP(w)2=i<jwijE~ij. (1)

All the algorithms we present in this paper involve computing an optimal solution x to LP(w), and applying a rounding algorithm to x to compute the description of a state ρ achieving energy

tr(ρEij)αE~ij (2)

on every edge {i,j}([n]2) for some α>0. By Equation 1, we have

tr(ρH)=i<jwijtr(ρEij)αi<jwijE~ijαλmax(H),

so this results in an α-approximation algorithm.

Let us describe the rough plan for our presentation of this rounding algorithm. First, in Section 2.2, we describe how to use a rounding strategy used in the work of Lee and Parekh [20] to achieve α=3/4 in the special case that the interaction matrix w is bipartite, that is, it is the adjacency matrix of a bipartite weighted graph. Next, in Section 2.3 we give an improved rounding algorithm achieving α=1+54 for bipartite instances. Finally, in Section 2.4 we show how to achieve the same approximation ratio α=1+54 for general non-bipartite instances, proving Theorem 1.

2.2 A 𝟑/𝟒-approximation in the bipartite case

Here we focus on the case that w is the adjacency matrix of a weighted bipartite graph. For bipartite graphs, it was proved by Edmonds that the fractional matching LP is integral, i.e., its vertices are indicator vectors of matchings.

Lemma 4 ([10]).

For any weighted bipartite graph with adjacency matrix w, LP(w)=w(M), where M is the maximum weight matching of the graph. That is, the optimal solution to LP(w) is achieved by an integer vector xij=𝟏{{i,j}M}.

We can find such an optimal solution using an algorithm for maximum weighted matching. Let U[n] be the set of vertices that do not appear in the matching M. Consider the two states

ρprod=|0n0n|,ρmatch=({i,j}M(|EPREPR|)i,j)(iUIi2).

The rounding algorithm will output a random choice between ρprod and ρmatch. In particular, we output the state ρ=(1p)ρprod+pρmatch for some choice of p[0,1].

Claim 5.

The energy attained on edge {i,j} is

tr(ρEij)={12+p2 if {i,j}M,12p4 if {i,j}M.

On the other hand, the LP energy on edge {i,j} is

E~ij=1+xij2={1 if {i,j}M,12 if {i,j}M.

If we set p=1/2, then one can check that for each edge {i,j},

tr(ρEij)=34E~ij,

proving Equation 2 for α=34.

2.3 An improvement in the bipartite case

Our improvement to this algorithm is simple to state – we interpolate between ρprod and ρmatch using quantum superposition rather than in probability. Concretely, let M be the maximum matching and U be the unmatched vertices as in Section 2.2. Define the tilted EPR state |EPRθ:=θ|00+1θ|11. We will output the state

ρ=({i,j}M(|EPRθEPRθ|)i,j)(iU(θ|00|+(1θ)|11|)i). (3)
Claim 6.

The energy attained on edge {i,j} is

tr(ρEij)={12+θ(1θ)=12+γ if {i,j}M,12θ(1θ)=12γ2 if {i,j}M,

where γ=θ(1θ).

Comparing Claim 6 to Claim 5, one can readily see that this algorithm performs strictly better; for instance, set γ=p/2. Our new rounding scheme achieves strictly better energy on edges outside M and identical energy on edges inside M.

It remains to prove Claim 6, and then to analyze the approximation ratio of this rounding algorithm. We will repeatedly use the following simple properties of |EPRθ.

Claim 7.

Let γ=θ(1θ). The following are true.

  1. 1.

    |EPR|EPRθ|EPR|EPRθ|2=12+γ.

  2. 2.

    tr[1]|EPRθEPRθ|=tr[2]|EPRθEPRθ|=θ|00|+(1θ)|11|.

  3. 3.

    EPR|(θ|00|+(1θ)|11|)2|EPR=12γ2.

Now, one can compute all the 2-qubit marginals:

tr[n]{i,j}(ρ)={|EPRθEPRθ| if {i,j}M,(θ|00|+(1θ)|11|)2 if {i,j}M,

where for the second case we used that the 1-qubit marginals are all equal to tr[n]{1}[|EPRθEPRθ|]=θ|00|+(1θ)|11|. By Claim 7, the energy achieved by each term {i,j} is determined by

EPR|tr[n]{i,j}(ρ)|EPR={12+θ(1θ)=12+γ if {i,j}M,12θ(1θ)=12γ2 if {i,j}M,

and Claim 6 follows immediately. Now let us analyze the approximation ratio. Similarly to Section 2.2, we have the LP energy

E~ij={1 if {i,j}M,12 if {i,j}M. (4)

Setting γ=514, one can check using Equation 4 and Claim 6 that

tr(ρEij)=1+54E~ij

for each edge {i,j}([n]2). Thus, we have shown Equation 2 with α=1+54 as desired.

2.4 General Case

In the general non-bipartite case, we cannot apply Lemma 4; the fractional matching LP is not necessarily integral. Previous works proceeded by bounding the integrality gap of this LP, which is quite lossy. Our main idea is to take advantage of the fact that the fractional matching LP is half-integral.

Lemma 8 ([22, Theorem 7.5.1]).

For any weighted n-vertex graph with adjacency matrix w, there is a vertex-disjoint collection of edges M([n]2) and cycles 𝒞2([n]2) such that LP(w)=w(M)+12C𝒞w(C). That is, the optimal solution to LP(w) is achieved by the half-integer vector xij=𝟏{{i,j}M}+12C𝒞𝟏{{i,j}C}.

In particular, (e.g. using the algorithm of Anstee [2]), one can efficiently find such a solution x, i.e. a vertex-disjoint collection of edges M([n]2) and odd length cycles 𝒞 such that the LP energies can be written as

E~ij=1+xij2={1 if {i,j}M,34 if {i,j}C for some C𝒞,12 otherwise . (5)

Let U be the set of vertices absent from M and 𝒞. The algorithm in the bipartite case (Equation 3) already suggests what quantum state we will output on the qubits involved in M and U. On the qubits in C for some odd cycle C𝒞 of length k, we will output a high energy state for the EPR Hamiltonian on the length k cycle, i.e. Hcycle=i[k]Ei,i+1(mod k), subject to the constraint that all 1-qubit marginals are equal to θ|00|+(1θ)|11|. The following lemma (which we prove in Appendix A) shows that there is a way to achieve sufficiently large energy on the cycle edges.

Lemma 9.

For any integer k, there is an efficient algorithm to compute the description of a k-qubit state ρk satisfying the following, where γ=514 and θ1/2 is the solution to θ(1θ)=γ.

  1. 1.

    For all i[k], tr(ρkEi,i+1(mod k))>341+54.

  2. 2.

    For all i[k], the 1-qubit marginal tr[k]i[ρk] equals θ|00|+(1θ)|11|.

  3. 3.

    For all i,j[k], tr(ρkEij)>121+54.

 Remark 10.

The main idea behind the proof is that Items 1, 2, and 3 are all linear constraints in the positive semidefinite variable ρk, and hence the Lemma reduces to solving a semidefinite program of size 2O(k). This can be verified numerically for k small enough. When k is large, we instead choose ρk to be a tensor product of states on a disjoint collection of short paths; here the states on short paths are again found by numerically solving an appropriate semidefinite program.

The bounds in Lemma 9 are not tight – our numerical proof already shows that Items 1, 2, and 3 can be simultaneously improved. However, for ease of exposition we have chosen to write the weakest bounds that suffice to attain the required approximation ratio.

Our algorithm will output the state

ρ=(C𝒞(ρ|C|)V(C))({i,j}M(|EPRθEPRθ|)i,j)(iU(θ|00|+(1θ)|11|)i), (6)

where V(C)[n] is the set of qubits in the cycle C and ρ|C| is the state guaranteed by Lemma 9. Similarly to Section 2.3, we set γ=514 and θ1/2 such that θ(1θ)=γ. Let us analyze the energy achieved by this algorithm. We have

tr(ρEij){1+54 if {i,j}M,(6)341+54 if {i,j}C for some C𝒞,(Lemma 9,Item 1)121+54 otherwise.(1-qubit marginals, Lemma 9,Item 3)

To elaborate on the last case, we note that it must be that either qubits i and j are nonadjacent vertices in the same cycle C𝒞, or they are in tensor product. If the former is true, we use the guarantee of Lemma 9, Item 3. Otherwise, we use the fact that all the 1-qubit marginals are equal to θ|00|+(1θ)|11| along with the calculations from Section 2.3 to conclude that the energy is 12γ2=1+58.

Comparing with Equation 5, we immediately get that for every edge {i,j}([n]2),

tr(ρEij)1+54E~ij,

proving Equation 2 with α=1+54. As a result, we obtain an approximation algorithm for the EPR Hamiltonian with approximation ratio 1+54, proving Theorem 1.

References

  • [1] Anurag Anshu, David Gosset, and Karen Morenz. Beyond product state approximations for a quantum analogue of max cut. arXiv preprint, 2020. arXiv:2003.14394.
  • [2] Richard P Anstee. A polynomial algorithm for b-matchings: an alternative approach. Information Processing Letters, 24(3):153–157, 1987. doi:10.1016/0020-0190(87)90178-5.
  • [3] Anuj Apte, Eunou Lee, Kunal Marwaha, Ojas Parekh, and James Sud. Improved algorithms for quantum maxcut via partially entangled matchings. arXiv preprint, 2025. arXiv:2504.15276.
  • [4] Nikhil Bansal, Sergey Bravyi, and Barbara M Terhal. Classical approximation schemes for the ground-state energy of quantum and classical ising spin hamiltonians on planar graphs. arXiv preprint, 2007. arXiv:0705.1115.
  • [5] Rodney J Baxter. Partition function of the eight-vertex lattice model. Annals of Physics, 70(1):193–228, 1972.
  • [6] Thiago Bergamaschi. Improved product-state approximation algorithms for quantum local hamiltonians. arXiv preprint, 2022. arXiv:2210.08680.
  • [7] Hans Bethe. Zur theorie der metalle: I. eigenwerte und eigenfunktionen der linearen atomkette. Zeitschrift für Physik, 71(3):205–226, 1931.
  • [8] Fernando GSL Brandao and Aram W Harrow. Product-state approximations to quantum states. Communications in Mathematical Physics, 342:47–80, 2016.
  • [9] Sergey Bravyi, David Gosset, Robert König, and Kristan Temme. Approximation algorithms for quantum many-body problems. Journal of Mathematical Physics, 60(3), 2019.
  • [10] Jack Edmonds. Maximum matching and a polyhedron with 0, 1-vertices. Journal of research of the National Bureau of Standards B, 69(125-130):55–56, 1965.
  • [11] Sevag Gharibian and Julia Kempe. Approximation algorithms for qma-complete problems. SIAM Journal on Computing, 41(4):1028–1050, 2012. doi:10.1137/110842272.
  • [12] Sevag Gharibian and Ojas Parekh. Almost optimal classical approximation algorithms for a quantum generalization of max-cut. arXiv preprint, 2019. arXiv:1909.08846.
  • [13] Sander Gribling, Lennart Sinjorgo, and Renata Sotirov. Improved approximation ratios for the quantum max-cut problem on general, triangle-free and bipartite graphs. arXiv preprint, 2025. arXiv:2504.11120.
  • [14] Aram W Harrow and Ashley Montanaro. Extremal eigenvalues of local hamiltonians. Quantum, 1:6, 2017. doi:10.22331/Q-2017-04-25-6.
  • [15] Felix Huber, Kevin Thompson, Ojas Parekh, and Sevag Gharibian. Second order cone relaxations for quantum max cut, 2024. arXiv:2411.04120.
  • [16] Yeongwoo Hwang, Joe Neeman, Ojas Parekh, Kevin Thompson, and John Wright. Unique games hardness of quantum max-cut, and a conjectured vector-valued borell’s inequality. In Proceedings of the 2023 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 1319–1384. SIAM, 2023. doi:10.1137/1.9781611977554.CH48.
  • [17] Zackary Jorquera, Alexandra Kolla, Steven Kordonowy, Juspreet Singh Sandhu, and Stuart Wayland. Monogamy of entanglement bounds and improved approximation algorithms for qudit hamiltonians. arXiv preprint, 2024. arXiv:2410.15544.
  • [18] Robbie King. An improved approximation algorithm for quantum max-cut on triangle-free graphs. Quantum, 7:1180, 2023. doi:10.22331/Q-2023-11-09-1180.
  • [19] Eunou Lee. Optimizing quantum circuit parameters via sdp, 2022. arXiv:2209.00789.
  • [20] Eunou Lee and Ojas Parekh. An Improved Quantum Max Cut Approximation via Maximum Matching. In Karl Bringmann, Martin Grohe, Gabriele Puppis, and Ola Svensson, editors, 51st International Colloquium on Automata, Languages, and Programming (ICALP 2024), volume 297 of Leibniz International Proceedings in Informatics (LIPIcs), pages 105:1–105:11, Dagstuhl, Germany, 2024. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.ICALP.2024.105.
  • [21] Elliott Lieb, Theodore Schultz, and Daniel Mattis. Two soluble models of an antiferromagnetic chain. Annals of Physics, 16(3):407–466, 1961.
  • [22] László Lovász and Michael D Plummer. Matching theory, volume 367. American Mathematical Soc., 2009.
  • [23] Ojas Parekh and Kevin Thompson. Application of the Level-2 Quantum Lasserre Hierarchy in Quantum Approximation Algorithms. In Nikhil Bansal, Emanuela Merelli, and James Worrell, editors, 48th International Colloquium on Automata, Languages, and Programming (ICALP 2021), volume 198 of Leibniz International Proceedings in Informatics (LIPIcs), pages 102:1–102:20, Dagstuhl, Germany, 2021. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.ICALP.2021.102.
  • [24] Ojas Parekh and Kevin Thompson. An optimal product-state approximation for 2-local quantum hamiltonians with positive terms. arXiv preprint, 2022. doi:10.48550/arXiv.2206.08342.
  • [25] Anders W Sandvik. Computational studies of quantum spin systems. In AIP Conference Proceedings, volume 1297, pages 135–338. American Institute of Physics, 2010.
  • [26] Jun Takahashi, Chaithanya Rayudu, Cunlu Zhou, Robbie King, Kevin Thompson, and Ojas Parekh. An SU(2)-symmetric semidefinite programming hierarchy for quantum max cut, 2023. arXiv:2307.15688.
  • [27] Jun Takahashi, Sam Slezak, and Elizabeth Crosson. Rapidly mixing loop representation quantum monte carlo for heisenberg models on star-like bipartite graphs, 2024. doi:10.48550/arXiv.2411.01452.
  • [28] 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.

Appendix A Proof of Lemma 9

For the reader’s convenience we restate Lemma 9 below. The code for verifying the numerical claims made in the below proof is available at https://github.com/anshnagda/EPR-algorithm.

Lemma 11 (Restatement of Lemma 9).

For any integer k, there is an efficient algorithm to compute the description of a k-qubit state ρk satisfying the following, where γ=514 and θ1/2 is the solution to θ(1θ)=γ.

  1. 1.

    For all i[k], tr(ρkEi,i+1(mod k))>341+54.

  2. 2.

    For all i[k], the 1-qubit marginal tr[k]i[ρk] equals θ|00|+(1θ)|11|.

  3. 3.

    For all i,j[k], tr(ρkEij)>121+54.

Proof.

For k5, we numerically verify the claim by explicitly solving a semidefinite program.

Similarly, one can verify by solving a semidefinite program that there exists a 5-qubit state ψ satisfying the following:

  1. 1.

    14i[4]tr(Ei,i+1ψ)0.668.

  2. 2.

    For all i,j[5], tr(Eijψ)>121+54.

  3. 3.

    For all i[5], the 1-qubit marginal tr[5]i[ψ] equals θ|00|+(1θ)|11|.

Now assume k7. Define the state

ρk=|EPRθEPRθ|k52ψ.

Let Shifti be the unitary that shifts qubits in the k-cycle i spots. We will set ρk to be the shift-invariant state

ρk=𝔼i[k][ShiftiρkShifti].

We will verify that ρk satisfies the three requirements.

  1. 1.

    Let i[k]. We can write the energy tr(ρkEi,i+1(mod k)) as the average energy of a random edge {j,j+1(mod k)} under ρk. By definition of ρk, one can compute

    tr(ρkEj,j+1(mod k)){1+54jk5 odd,1+58jk5 even or j=k.

    For the cases k5<j<k, the assumption on ψ allows us to bound the energy as

    k5<j<ktr(ρkEj,j+1(mod k))40.668.

    Therefore

    tr(ρkEi,i+1(mod k))=k521+54+k521+58+40.668+1+58k.

    One can verify that 40.668+1+58>5341+54, implying

    tr(ρEi,i+1(mod k))>(k5)341+54+5341+54k=341+54.
  2. 2.

    It suffices to prove that the 1-qubit marginals of ρk are equal to θ|00|+(1θ)|11|. For qubits ik5, this follows from Claim 7, and for i>k4, this follows by definition of ψ.

  3. 3.

    Let ij. It suffices to prove tr(ρkEij)>121+54 the same for ρk. We consider three cases.

    • If j=i+1 for some odd ik5, this is implied by Item 1.

    • If k5<i,jk, this is implied by the definition of ψ.

    • Otherwise, the 2-qubit marginal tr[n]{i,j}(ρk) equals (θ|00|+(1θ)|11|)2, and this is implied by Claim 7.