- Home
- Library
- Computational Quantum Field Theory
- Differentiating and Optimizing Field Calculations
- Semidefinite Programming for Field Theory
Semidefinite Programming for Field Theory
How low can a scalar potential go? Minimizing a polynomial directly finds stationary points; rewriting it as a sum of squares can instead prove a bound at every field value. The latter viewpoint leads to semidefinite programming, where the unknown is constrained by matrix positivity.
We solve a quartic example analytically and with an actual damped Newton algorithm. Its dual formulation uses moments of a positive measure, so the calculation also explains why a positive matrix, a small residual and a valid bound are different statements. The same machinery underlies much larger positivity problems in field theory, although this example is a classical polynomial problem rather than a quantum vacuum-energy calculation.
Preparation: Ordinary real symmetric matrices, positive definiteness and constrained optimization. The matrices below use a Euclidean inner product; Lorentzian metric signs do not enter their positivity conditions.
A global lower bound as a matrix problem
Choose dimensionless , and initially , and ask for the largest constant satisfying
Introduce the monomial vector . A positive semidefinite matrix gives a nonnegative polynomial : if , this polynomial is the sum of squares of the components of . Here the parity-even coefficient matching is particularly simple:
Thus we maximize subject to . This is a semidefinite program (SDP): the objective and matrix entries are affine in the optimization variables.
For this quartic, the matrix construction gives the exact answer, not merely a sufficient lower bound. Since , positivity of the block and of the middle diagonal entry requires
The largest allowed occurs at :
The minima are . Conversely, evaluating any proposed global bound at either minimum proves that it cannot exceed (4). The rank-one Gram matrix and direct minimization therefore meet at the same exact answer.
More general polynomial-matrix programs require a specified domain and Gram representation. For example, positivity on a half-line uses additional factors associated with the domain; it is not the same statement as positivity on all of . The construction in Simmons-Duffin, §2.2, Theorem 2.1 concerns the half-line. Equation (4) supplies the independent proof needed for our all-real example.
The dual problem is a moment problem
For real symmetric positive semidefinite matrices ,
Introduce such an and form an upper bound on the primal objective:
The supremum over the free variables is finite only if and . Averaging under preserves positivity and the objective, so we may set its odd entries to zero. The resulting dual problem is
The notation comes from a normalized nonnegative measure :
Indeed, , and . We will exhibit an actual measure at the optimum; no general moment-representation theorem is needed for the argument.
For any feasible primal and dual pair,
This is weak duality. A feasible pair with zero gap proves optimality. The general polynomial-matrix version and its complementarity condition are derived in Simmons-Duffin, §2.3, Theorem 2.2.
Take equal point masses at the two minima:
Their moments are and . Consequently and . The dual measure is supported exactly where the bounding square vanishes.
The word “feasible” in (9) includes the moment equalities. An arbitrary positive matrix need not satisfy them. A small negative formal gap can therefore indicate an equality error rather than a violation of weak duality.
Follow the interior with a logarithmic barrier
The optimum lies on the boundary of the PSD cone. For , keep positive definite and minimize
The logarithm diverges as an eigenvalue approaches zero from above. Lowering lets the objective approach the boundary while retaining a smooth interior problem.
Write , and . Differentiating gives
At each step solve . Backtrack from step length one until is positive definite and satisfies the Armijo decrease
The implementation evaluates the determinant through Cholesky factors and obtains by linear solves. It uses the matrix derivatives in (12), including when the basis is changed on the precision page. It does not insert the analytic solution as an iterate. This is a small specialized barrier solver, not a run of SDPB or a demonstration of bootstrap-scale performance. The related primal–dual central path and Newton equations are discussed in Simmons-Duffin, §2.4, Eqs. (2.34)–(2.36).
An independent central-path solution makes this example unusually informative. Define
Stationarity implies , so
The matrix obeys the moment equalities, and
At a computed point that is not exactly stationary, however,
Thus checking alone mostly checks the inverse used to define . The moment constraints supply additional information.
What the numerical calculation achieves
The retained calculation sets and uses 68 decimal working digits. It starts from , and follows , warm-starting from the preceding computed point. This particular initial point already lies on the central path; the later six stages require actual Newton iterations.
Each stage has at most 60 Newton iterations and 60 step halvings, and stops when the working maximum gradient component is at most . Failure does not trigger a larger budget or an analytic replacement. The existing mpmath 1.3.0 linear solver temporarily uses ten extra binary guard bits internally; the quoted decimal precision describes the surrounding calculation.
| Barrier parameter | Newton steps | Primal objective | Actual primal–dual gap | Moment residual |
|---|---|---|---|---|
| 9 | ||||
| 8 | ||||
| 9 | ||||
| 9 |
The moment residual is the maximum error in its physical normalization, Hankel and odd-entry equalities. The last working point differs from the analytic central-path parameters by about . Its physical Gram and moment matrices both have smallest eigenvalue about . The actual gap differs from by about because the numerical moment equalities are not exact.
The quartic solved through seven prescribed barrier stages. The left panel compares computed objective distances from ; the right separates the moment-equality residual from the gap . The zero residual at the exactly stationary initial point is omitted from logarithmic plotting. The analytic minimum and central path provide independent controls.
Verification reads the serialized, rounded matrices in a fresh 140-digit calculation. It recomputes their polynomial coefficients, moment equalities, symmetry, minimum eigenvalues, objectives and complementarity. Directional finite differences of the separate scalar formula check the matrix gradient and Hessian; decreasing the step from to reduces their errors from roughly to .
Two deliberately incorrect candidates are also rejected: a PSD matrix that violates the moment equalities, and a still-positive Gram matrix whose constant coefficient has been altered by . These controls test errors that a positive-eigenvalue check alone would miss.
The final numerical residual and gap target is , separate from the chosen barrier endpoint. Meeting that target does not prove exact feasibility of rounded data: no outward-rounded eigenvalue enclosure or residual-repair theorem is supplied. The exact bound follows from (4) and (10). This distinction also matters in large computations, where primal residual, dual residual and objective gap have separate termination criteria; see Simmons-Duffin, §2.4.3, Eqs. (2.48)–(2.49).
The companion files quartic_sdp.py, sdp_checks.py and sdp-results.json in examples/computational-qft/optimization/ retain the implementation, independent checks and selected outputs.
From a quartic to field-theory positivity
In a bootstrap application, the unknowns may be coefficients of a linear functional, while positivity applies to matrices built from conformal blocks over a continuous range of operator dimensions. Several additional steps then separate the physical question from the finite SDP: function approximation, matrix-polynomial representation, basis choice and control of the unbounded domain.
Even the small quartic illustrates the distinction. Imposing on a finite grid permits a bound above the true minimum whenever the grid misses both minimizers. Increasing arithmetic precision cannot remove that error. Conversely, matching a known-degree polynomial identity at sufficiently many distinct points is exact algebra; it is not a claim that sampled inequalities imply positivity between samples. The latter distinction is explicit in Simmons-Duffin, §2.2, Eqs. (2.15)–(2.16).
Summary
A Gram matrix can turn a global polynomial lower bound into an SDP. Its moment dual supplies an upper bound on the optimum, and a feasible zero-gap pair proves the answer. In the quartic example, a genuine matrix Newton calculation approaches the independently known solution, while separate coefficient, moment and cone checks explain what its numerical accuracy means. The next article keeps this problem fixed while varying arithmetic, basis conditioning and approximation choices.
Exercises
1. Change the sign of the quadratic coefficient
Keep but allow any real . Find the exact global lower bound, a PSD Gram matrix attaining it, and a positive measure attaining the dual value.
Solution
For , the two minima and witnesses are those in (4) and (10). For ,
with a minimum at . Choose . Then
The measure concentrated at zero has and . Both objectives vanish, proving optimality. Combining the cases gives
At the two-point measure of the positive- case coalesces at zero.
2. A positive matrix with an impossible “bound”
For , someone proposes and evaluates . The matrix is PSD, yet the true minimum is . Identify the error and find the restriction on if the second moment really is .
Solution
The matrix violates the moment equality : its two sides are zero and two. Hence the term in (6) does not cancel, and is not a dual bound.
A normalized moment matrix with must instead be
Its principal minor requires . Its dual objective therefore satisfies , consistent with weak duality. Equivalently, the variance of is nonnegative: . Matrix positivity and the correct moment identifications must both be imposed.
References
- Simmons-Duffin, David. “A Semidefinite Program Solver for the Conformal Bootstrap.” Journal of High Energy Physics 06 (2015), 174. DOI; arXiv:1502.02033 (PDF). Sections 2.2–2.4 give the polynomial-matrix formulation, duality and solver equations; §2.6 discusses numerical precision.
Scrollable formula. Use Left and Right arrow keys to reveal hidden content.
Scrollable table. Use Left and Right arrow keys to reveal hidden columns.
Scrollable figure. Use Left and Right arrow keys to reveal hidden content.