Skip to main content
KetQat

Appearance

Topic · intermediate

Optimization Theory

Convex optimization and Lagrangian duality, semidefinite programming and its duality theory, and the semidefinite programs that quantum information relies on - optimal state discrimination, the fidelity and the diamond norm - with dual certificates as the standard way to prove upper bounds.

ExpositionMachine-checkedUpdated 2026-12-01 · last verified 2026-12-01

AI-assisted text, machine-checked, not yet reviewed by a person. Citations resolve and an automated pass compared the statements with the cited sources. That is not peer review; check the sources for anything you depend on.

Overview

Many questions in quantum information are optimisation problems: what is the best measurement for telling states apart, how close can two channels be made to look, what is the largest Bell violation quantum mechanics allows. Remarkably often the set being optimised over — density operators, POVMs, channels described by Choi operators — is convex and is cut out by positive-semidefiniteness constraints, and the objective is linear. Such a problem is a semidefinite program (SDP). SDPs can be solved numerically to high accuracy, and, more importantly for theory, each comes with a dual problem whose feasible points give certified bounds on the optimum.

This page covers convex optimization and Lagrangian duality in general (Boyd and Vandenberghe), the special case of semidefinite programming in the form used in quantum information (Watrous), and three SDPs that recur throughout the Commons.

Intuition

A minimisation problem asks for the lowest point of a landscape inside a fenced region. The dual problem approaches from below: it asks for the highest "floor" that provably lies under every feasible point. Any floor gives a lower bound on the minimum (weak duality), and the interesting question is whether the best floor touches the lowest point. For convex problems it does, provided the region has some room inside it (Slater's condition) — the best floor is a tangent plane at the optimum, and its slopes are the Lagrange multipliers.

In quantum problems the variables are matrices and "nonnegative" becomes "positive semidefinite". The dual of "maximise success probability over measurements" is "find the smallest operator YY sitting above every weighted state". Exhibiting one good measurement proves a lower bound, exhibiting one good YY proves an upper bound, and when the two meet, the problem is solved — no search over all measurements is ever needed.

Prerequisites

Hermitian and positive semidefinite matrices, the trace inner product, and partial traces; see linear algebra and density operators. For the applications: POVMs, fidelity and the diamond norm.

Mathematical Definitions

DefinitionConvex optimization problem, Lagrangian and dual problemEstablished definition

A set C⊆RnC \subseteq \R^{n} is convex if θx+(1−θ)y∈C\theta x + (1 - \theta) y \in C for all x,y∈Cx, y \in C and θ∈[0,1]\theta \in [0, 1]. A function f:D→Rf : D \to \R on a convex set DD is convex if f(θx+(1−θ)y)≤θf(x)+(1−θ)f(y)f(\theta x + (1 - \theta) y) \le \theta f(x) + (1 - \theta) f(y) for all x,y∈Dx, y \in D, θ∈[0,1]\theta \in [0, 1], and concave if −f-f is convex.

A convex optimization problem in standard form is

p∗=inf⁡{ f0(x)  :  x∈D, fi(x)≤0 (i=1,…,m), Ax=b },p^{*} = \inf \big\{\, f_0(x) \;:\; x \in D,\ f_i(x) \le 0 \ (i = 1, \dots, m),\ A x = b \,\big\},

where D⊆RnD \subseteq \R^{n} is convex, f0,…,fm:D→Rf_0, \dots, f_m : D \to \R are convex, and A∈Rp×nA \in \R^{p \times n}, b∈Rpb \in \R^{p}. A point satisfying the constraints is feasible; p∗=+∞p^{*} = +\infty if there is none, and p∗p^{*} may be −∞-\infty. A local minimum of a convex problem is a global minimum. Maximising a concave function is the same problem with f0f_0 replaced by −f0-f_0. Linear programs (f0,…,fmf_0, \dots, f_m affine) and semidefinite programs are convex problems.

The Lagrangian is

L(x,λ,ν)=f0(x)+∑i=1mλifi(x)+νT(Ax−b),λ∈Rm, ν∈Rp,L(x, \lambda, \nu) = f_0(x) + \sum_{i=1}^{m} \lambda_i f_i(x) + \nu^{T} (A x - b), \qquad \lambda \in \R^{m},\ \nu \in \R^{p},

the dual function is g(λ,ν)=inf⁡x∈DL(x,λ,ν)g(\lambda, \nu) = \inf_{x \in D} L(x, \lambda, \nu) (concave, as an infimum of affine functions of (λ,ν)(\lambda, \nu), possibly −∞-\infty), and the dual problem is

d∗=sup⁡{ g(λ,ν)  :  λ≥0, ν∈Rp }.d^{*} = \sup \big\{\, g(\lambda, \nu) \;:\; \lambda \ge 0,\ \nu \in \R^{p} \,\big\} .

Weak duality, d∗≤p∗d^{*} \le p^{*}, always holds: for feasible xx and λ≥0\lambda \ge 0, g(λ,ν)≤L(x,λ,ν)≤f0(x)g(\lambda, \nu) \le L(x, \lambda, \nu) \le f_0(x) because λifi(x)≤0\lambda_i f_i(x) \le 0 and Ax−b=0Ax - b = 0. The difference p∗−d∗≥0p^{*} - d^{*} \ge 0 is the duality gap; strong duality means it is zero. The problem satisfies Slater's condition if some x~\tilde x in the relative interior of DD is strictly feasible: fi(x~)<0f_i(\tilde x) < 0 for all ii and Ax~=bA\tilde x = b. The definitions are those of chapters 2–5 of Boyd and Vandenberghe.

DefinitionSemidefinite programEstablished definition

Let X=Cn\mathcal{X} = \C^{n} and Y=Cm\mathcal{Y} = \C^{m}. Write Herm(X)\mathrm{Herm}(\mathcal{X}) for the Hermitian operators on X\mathcal{X}, X≥0X \ge 0 for positive semidefinite, X>0X > 0 for positive definite, and ⟨P,Q⟩=Tr⁡(P†Q)\langle P, Q \rangle = \tr(P\dagg Q), which is real on Hermitian operators. A semidefinite program is a triple (Φ,A,B)(\Phi, A, B) where Φ\Phi is a linear map from operators on X\mathcal{X} to operators on Y\mathcal{Y} that sends Hermitian operators to Hermitian operators, A∈Herm(X)A \in \mathrm{Herm}(\mathcal{X}) and B∈Herm(Y)B \in \mathrm{Herm}(\mathcal{Y}). With the adjoint Φ∗\Phi^{*} defined by ⟨Y,Φ(X)⟩=⟨Φ∗(Y),X⟩\langle Y, \Phi(X) \rangle = \langle \Phi^{*}(Y), X \rangle, it has two associated problems:

primal:α=sup⁡{⟨A,X⟩:Φ(X)=B, X≥0},dual:β=inf⁡{⟨B,Y⟩:Φ∗(Y)≥A, Y∈Herm(Y)}.\textbf{primal:}\quad \alpha = \sup \big\{ \langle A, X \rangle : \Phi(X) = B,\ X \ge 0 \big\}, \qquad \textbf{dual:}\quad \beta = \inf \big\{ \langle B, Y \rangle : \Phi^{*}(Y) \ge A,\ Y \in \mathrm{Herm}(\mathcal{Y}) \big\} .

Operators satisfying the constraints are primal feasible or dual feasible; by convention α=−∞\alpha = -\infty and β=+∞\beta = +\infty when there are none. The program is strictly primal feasible if some X>0X > 0 has Φ(X)=B\Phi(X) = B, and strictly dual feasible if some Hermitian YY has Φ∗(Y)>A\Phi^{*}(Y) > A.

The feasible sets are convex and the objectives linear, so these are convex optimization problems; inequality constraints Φ(X)≤B\Phi(X) \le B and more general linear matrix inequalities are brought into this form with slack variables. Linear programs are the special case of diagonal matrices. This is the formulation of section 1.2 of Watrous and of Watrous (2013); a survey from the optimization side, with real symmetric matrices, is Vandenberghe and Boyd. Interior-point methods solve a semidefinite program to any fixed accuracy in time polynomial in the matrix dimensions and the logarithm of the inverse accuracy, under standard boundedness assumptions (see Vandenberghe and Boyd).

Theorems

TheoremStrong duality under Slater's conditionEstablished result

Under Slater's condition, d∗=p∗d^{*} = p^{*}, and if p∗>−∞p^{*} > -\infty there exist λ∗≥0\lambda^{*} \ge 0 and ν∗\nu^{*} with g(λ∗,ν∗)=p∗g(\lambda^{*}, \nu^{*}) = p^{*}.

If moreover the primal optimum is attained at x∗x^{*}, then λi∗fi(x∗)=0\lambda_i^{*} f_i(x^{*}) = 0 for every ii (complementary slackness) and x∗x^{*} minimises L(⋅,λ∗,ν∗)L(\cdot, \lambda^{*}, \nu^{*}) over DD; for differentiable fif_i and open DD this gives the KKT conditions

∇f0(x∗)+∑iλi∗∇fi(x∗)+ATν∗=0,fi(x∗)≤0, Ax∗=b, λ∗≥0, λi∗fi(x∗)=0,\nabla f_0(x^{*}) + \sum_i \lambda_i^{*} \nabla f_i(x^{*}) + A^{T} \nu^{*} = 0, \quad f_i(x^{*}) \le 0,\ A x^{*} = b,\ \lambda^{*} \ge 0,\ \lambda_i^{*} f_i(x^{*}) = 0 ,

which for a convex problem are also sufficient for optimality of x∗x^{*} and (λ∗,ν∗)(\lambda^{*}, \nu^{*}). Without a constraint qualification such as Slater's condition the duality gap of a convex problem can be positive. The statement is in section 5.2.3 and the proof in section 5.3.2 of Boyd and Vandenberghe; the KKT conditions are in section 5.5.

Holds when
  • A convex optimization problem in standard form with convex domain DD, convex f0,…,fmf_0, \dots, f_m and affine equality constraints Ax=bAx = b.
  • Slater's condition: some x~\tilde x in the relative interior of DD has fi(x~)<0f_i(\tilde x) < 0 for all ii and Ax~=bA\tilde x = b.
Proof · Proof of strong duality under Slater's condition (inequality constraints)

This record proves the theorem in full for problems without equality constraints (p=0p = 0), and proves complementary slackness. The general case adds the affine constraints to the separation argument and needs the relative-interior hypothesis and a rank condition on AA to exclude a degenerate hyperplane; see section 5.3.2 of Boyd and Vandenberghe.

Setup. If p∗=−∞p^{*} = -\infty, weak duality gives d∗=−∞d^{*} = -\infty as well. Assume p∗p^{*} finite; it is not +∞+\infty because x~\tilde x is feasible. Define

A={(u,t)∈Rm×R  :  ∃x∈D, fi(x)≤ui (i≤m), f0(x)≤t},B={(0,s)  :  s<p∗}.\mathcal{A} = \big\{ (u, t) \in \R^{m} \times \R \;:\; \exists x \in D,\ f_i(x) \le u_i \ (i \le m),\ f_0(x) \le t \big\}, \qquad \mathcal{B} = \big\{ (0, s) \;:\; s < p^{*} \big\} .

A\mathcal{A} is convex: if x,x′x, x' witness (u,t),(u′,t′)(u, t), (u', t'), then by convexity of the fif_i the point θx+(1−θ)x′\theta x + (1 - \theta) x' witnesses θ(u,t)+(1−θ)(u′,t′)\theta(u, t) + (1 - \theta)(u', t'). B\mathcal{B} is convex. They are disjoint: (0,s)∈A(0, s) \in \mathcal{A} would give a feasible xx with f0(x)≤s<p∗f_0(x) \le s < p^{*}.

Separation. By the separating hyperplane theorem for disjoint convex sets in Rm+1\R^{m+1} there are (λ~,μ)≠(0,0)(\tilde\lambda, \mu) \ne (0, 0) and α∈R\alpha \in \R with

λ~Tu+μt≥α  on A,λ~Tu+μt≤α  on B.\tilde\lambda^{T} u + \mu t \ge \alpha \ \text{ on } \mathcal{A}, \qquad \tilde\lambda^{T} u + \mu t \le \alpha \ \text{ on } \mathcal{B} .

Since A\mathcal{A} is closed under increasing any coordinate, the first inequality forces λ~≥0\tilde\lambda \ge 0 and μ≥0\mu \ge 0 (a negative coefficient would make the left side unbounded below on A\mathcal{A}). The second says μs≤α\mu s \le \alpha for all s<p∗s < p^{*}, hence μp∗≤α\mu p^{*} \le \alpha. Taking (u,t)=(f1(x),…,fm(x),f0(x))(u, t) = (f_1(x), \dots, f_m(x), f_0(x)) for any x∈Dx \in D,

∑iλ~ifi(x)+μf0(x)  ≥  α  ≥  μp∗for all x∈D.(∗)\sum_{i} \tilde\lambda_i f_i(x) + \mu f_0(x) \;\ge\; \alpha \;\ge\; \mu p^{*} \qquad \text{for all } x \in D . \qquad (*)

The hyperplane is not vertical. Suppose μ=0\mu = 0. Then (∗)(*) gives ∑iλ~ifi(x)≥0\sum_i \tilde\lambda_i f_i(x) \ge 0 for all x∈Dx \in D, with λ~≥0\tilde\lambda \ge 0 and λ~≠0\tilde\lambda \ne 0. At the Slater point every fi(x~)<0f_i(\tilde x) < 0, so ∑iλ~ifi(x~)<0\sum_i \tilde\lambda_i f_i(\tilde x) < 0, a contradiction. Hence μ>0\mu > 0.

Conclusion. Dividing (∗)(*) by μ\mu and putting λ∗=λ~/μ≥0\lambda^{*} = \tilde\lambda / \mu \ge 0, L(x,λ∗)≥p∗L(x, \lambda^{*}) \ge p^{*} for all x∈Dx \in D, so g(λ∗)≥p∗g(\lambda^{*}) \ge p^{*}. Weak duality gives g(λ∗)≤d∗≤p∗g(\lambda^{*}) \le d^{*} \le p^{*}, so d∗=p∗=g(λ∗)d^{*} = p^{*} = g(\lambda^{*}).

Complementary slackness. If x∗x^{*} is feasible with f0(x∗)=p∗f_0(x^{*}) = p^{*}, then

p∗=g(λ∗)≤L(x∗,λ∗)=f0(x∗)+∑iλi∗fi(x∗)≤f0(x∗)=p∗,p^{*} = g(\lambda^{*}) \le L(x^{*}, \lambda^{*}) = f_0(x^{*}) + \sum_i \lambda_i^{*} f_i(x^{*}) \le f_0(x^{*}) = p^{*} ,

so both inequalities are equalities: x∗x^{*} minimises L(⋅,λ∗)L(\cdot, \lambda^{*}), and the sum of the nonpositive terms λi∗fi(x∗)\lambda_i^{*} f_i(x^{*}) is zero, so each is zero. For differentiable functions on an open DD, minimality of the convex function L(⋅,λ∗)L(\cdot, \lambda^{*}) at x∗x^{*} is equivalent to the vanishing of its gradient, which is the first KKT condition; conversely any point satisfying the KKT conditions minimises L(⋅,λ∗)L(\cdot, \lambda^{*}), and the same chain of (in)equalities shows it is primal optimal and λ∗\lambda^{*} dual optimal.

TheoremDuality for semidefinite programsEstablished result
  1. Weak duality. For every primal feasible XX and dual feasible YY, ⟨A,X⟩≤⟨B,Y⟩\langle A, X \rangle \le \langle B, Y \rangle; hence α≤β\alpha \le \beta.
  2. Complementary slackness. If XX and YY are feasible and ⟨A,X⟩=⟨B,Y⟩\langle A, X \rangle = \langle B, Y \rangle, then both are optimal and (Φ∗(Y)−A) X=0(\Phi^{*}(Y) - A)\, X = 0.
  3. Slater's theorem. If the primal problem is feasible and the dual problem is strictly feasible, then α=β\alpha = \beta and some primal feasible XX attains α\alpha. If the dual problem is feasible and the primal problem is strictly feasible, then α=β\alpha = \beta and some dual feasible YY attains β\beta.

Item 1 makes any dual feasible YY a certificate: it proves an upper bound on the primal value without solving the primal problem. In quantum information, upper bounds on a success probability or a winning probability are usually obtained this way. Item 3 is Theorem 1 of Watrous (2013) and Theorem 1.18 in section 1.2.3 of Watrous, where item 2 is Proposition 1.19; both are stated there without proof.

Holds when
  • A semidefinite program (Φ,A,B)(\Phi, A, B) in the standard form, with primal optimum α\alpha and dual optimum β\beta.
Proof · Proof of weak duality and complementary slackness for semidefinite programs

Items 1 and 2 are proved in full below. Item 3 (Slater's theorem) is not proved here; it is a separating-hyperplane argument in the space of Hermitian operators, analogous to the proof of strong duality under Slater's condition; it is stated without proof as Theorem 1.18 in section 1.2.3 of Watrous.

Lemma. If P,Q≥0P, Q \ge 0 then Tr⁡(PQ)≥0\tr(PQ) \ge 0, with equality only if PQ=0PQ = 0. Indeed Tr⁡(PQ)=Tr⁡(P1/2QP1/2)=Tr⁡((Q1/2P1/2)†(Q1/2P1/2))=∥Q1/2P1/2∥22\tr(PQ) = \tr(P^{1/2} Q P^{1/2}) = \tr\big( (Q^{1/2} P^{1/2})\dagg (Q^{1/2} P^{1/2}) \big) = \norm{Q^{1/2} P^{1/2}}_2^2, the squared Hilbert–Schmidt norm. If it vanishes, Q1/2P1/2=0Q^{1/2} P^{1/2} = 0, and then QP=Q1/2(Q1/2P1/2)P1/2=0QP = Q^{1/2}(Q^{1/2} P^{1/2}) P^{1/2} = 0 and PQ=(QP)†=0PQ = (QP)\dagg = 0.

Weak duality. Let XX be primal feasible and YY dual feasible. Then

⟨B,Y⟩−⟨A,X⟩=⟨Φ(X),Y⟩−⟨A,X⟩=⟨Φ∗(Y),X⟩−⟨A,X⟩=Tr⁡((Φ∗(Y)−A) X)  ≥  0,\langle B, Y \rangle - \langle A, X \rangle = \langle \Phi(X), Y \rangle - \langle A, X \rangle = \langle \Phi^{*}(Y), X \rangle - \langle A, X \rangle = \tr\big( (\Phi^{*}(Y) - A)\, X \big) \;\ge\; 0 ,

using B=Φ(X)B = \Phi(X), the definition of the adjoint (all quantities are real because the operators are Hermitian and Φ\Phi preserves Hermiticity), and the lemma with P=Φ∗(Y)−A≥0P = \Phi^{*}(Y) - A \ge 0 and Q=X≥0Q = X \ge 0. Taking the supremum over XX and the infimum over YY gives α≤β\alpha \le \beta.

Complementary slackness. If ⟨A,X⟩=⟨B,Y⟩\langle A, X \rangle = \langle B, Y \rangle then, by weak duality, ⟨A,X⟩≤α≤β≤⟨B,Y⟩=⟨A,X⟩\langle A, X \rangle \le \alpha \le \beta \le \langle B, Y \rangle = \langle A, X \rangle, so XX and YY are optimal. The displayed difference is zero, so Tr⁡((Φ∗(Y)−A)X)=0\tr\big((\Phi^{*}(Y) - A) X\big) = 0 and the lemma gives (Φ∗(Y)−A)X=0(\Phi^{*}(Y) - A) X = 0.

Three semidefinite programs of quantum information

EquationSemidefinite program for minimum-error state discriminationEstablished result
psuccmax⁡=max⁡Mi≥0∑iMi=I∑i=1NpiTr⁡(Miρi)  =  min⁡Y=Y†Y≥piρi ∀iTr⁡Yp_{\mathrm{succ}}^{\max} = \max_{\substack{M_i \ge 0\\ \sum_i M_i = I}} \sum_{i=1}^{N} p_i \tr(M_i \rho_i) \;=\; \min_{\substack{Y = Y\dagg\\ Y \ge p_i \rho_i\ \forall i}} \tr Y

The primal problem ranges over POVMs {Mi}\{M_i\}; the dual over Hermitian YY with Y−piρi≥0Y - p_i \rho_i \ge 0 for every ii. Weak duality is the one-line estimate ∑ipiTr⁡(Miρi)≤∑iTr⁡(MiY)=Tr⁡Y\sum_i p_i \tr(M_i \rho_i) \le \sum_i \tr(M_i Y) = \tr Y. The primal is strictly feasible (Mi=I/NM_i = I/N) and the dual is strictly feasible (Y=2IY = 2I), so the two optima are equal and both attained. Complementary slackness gives the optimality conditions: a POVM is optimal if and only if Y=∑ipiρiMiY = \sum_i p_i \rho_i M_i is Hermitian and satisfies Y≥pjρjY \ge p_j \rho_j for all jj, in which case (Y−piρi)Mi=0(Y - p_i \rho_i) M_i = 0 for every ii (Holevo; Yuen, Kennedy and Lax). The formulation as a semidefinite program, which makes the optimum numerically computable, is due to Eldar, Megretski and Verghese. For N=2N = 2 the value is the Helstrom bound, and Y=12(p1ρ1+p2ρ2+∣p1ρ1−p2ρ2∣)Y = \tfrac12\big(p_1\rho_1 + p_2\rho_2 + \abs{p_1\rho_1 - p_2\rho_2}\big) is an optimal dual solution.

Holds when
  • States ρ1,…,ρN\rho_1, \dots, \rho_N on a finite-dimensional space with prior probabilities p1,…,pNp_1, \dots, p_N; one copy is measured and the guess is the POVM outcome.
EquationSemidefinite program for the fidelityPeer-reviewed result
∥PQ∥1=max⁡{Re⁡Tr⁡X  :  (PXX†Q)≥0}\big\lVert \sqrt{P}\sqrt{Q} \big\rVert_1 = \max\Big\{ \operatorname{Re} \tr X \;:\; \begin{pmatrix} P & X \\ X\dagg & Q \end{pmatrix} \ge 0 \Big\}

The block operator is positive semidefinite exactly when X=P KQX = \sqrt{P}\, K \sqrt{Q} for some KK with operator norm ∥K∥∞≤1\norm{K}_\infty \le 1, so the maximum is max⁡∥K∥∞≤1Re⁡Tr⁡(KQP)=∥PQ∥1\max_{\norm{K}_\infty \le 1} \operatorname{Re}\tr(K \sqrt{Q}\sqrt{P}) = \norm{\sqrt{P}\sqrt{Q}}_1. The dual problem is

min⁡{12⟨P,Y⟩+12⟨Q,Z⟩  :  (Y−I−IZ)≥0, Y,Z Hermitian},\min\Big\{ \tfrac12 \langle P, Y \rangle + \tfrac12 \langle Q, Z \rangle \;:\; \begin{pmatrix} Y & -I \\ -I & Z \end{pmatrix} \ge 0,\ Y, Z \text{ Hermitian} \Big\},

which is strictly feasible, so strong duality holds; the equality of the dual value with the fidelity is Alberti's theorem. This characterisation is given in section 2.1 of Watrous (2013), who notes that it was found independently by N. Killoran, and is used there to build semidefinite programs for the diamond norm. Because the fidelity of ρ\rho with a fixed σ\sigma is concave and given by a semidefinite program, maximising fidelity over a convex, semidefinite-representable set of states is itself a semidefinite program.

Holds when
  • P,QP, Q positive semidefinite operators on Cn\C^{n}; XX ranges over all operators on Cn\C^{n}.
  • The left side is the root fidelity; the squared fidelity of definition/fidelity is its square.
EquationSemidefinite program for the diamond normPeer-reviewed result
∥Φ∥⋄=max⁡{Re⁡⟨J(Φ),X⟩  :  (IY⊗ρ0XX†IY⊗ρ1)≥0, ρ0,ρ1 density operators on X}\lVert \Phi \rVert_\diamond = \max\Big\{ \operatorname{Re}\langle J(\Phi), X \rangle \;:\; \begin{pmatrix} I_{\mathcal Y} \otimes \rho_0 & X \\ X\dagg & I_{\mathcal Y} \otimes \rho_1 \end{pmatrix} \ge 0,\ \rho_0, \rho_1 \text{ density operators on } \mathcal{X} \Big\}

The dual problem is

min⁡{12∥Tr⁡YY0∥∞+12∥Tr⁡YY1∥∞  :  (Y0−J(Φ)−J(Φ)†Y1)≥0, Y0,Y1≥0},\min\Big\{ \tfrac12 \norm{\tr_{\mathcal Y} Y_0}_\infty + \tfrac12 \norm{\tr_{\mathcal Y} Y_1}_\infty \;:\; \begin{pmatrix} Y_0 & -J(\Phi) \\ -J(\Phi)\dagg & Y_1 \end{pmatrix} \ge 0,\ Y_0, Y_1 \ge 0 \Big\},

and both problems are strictly feasible for every Φ\Phi, so the optima agree and are attained (section 3 of Watrous (2013); an earlier semidefinite program is in Watrous (2009)). The convention for the order of tensor factors in J(Φ)J(\Phi) follows that paper. For the diamond distance of two channels one takes Φ=N−M\Phi = \mathcal{N} - \mathcal{M} and halves the value. Before this characterisation the diamond norm was defined by an optimisation over input states that is not obviously tractable; the semidefinite program is what makes it a practical figure of merit for gate errors.

Holds when
  • Φ\Phi is a linear map from operators on X=Cn\mathcal{X} = \C^{n} to operators on Y=Cm\mathcal{Y} = \C^{m} with Choi operator J(Φ)=∑a,bΦ(∣a⟩⟨b∣)⊗∣a⟩⟨b∣J(\Phi) = \sum_{a,b} \Phi(\ketbra{a}{b}) \otimes \ketbra{a}{b} on Y⊗X\mathcal{Y} \otimes \mathcal{X}; XX ranges over all operators on Y⊗X\mathcal{Y} \otimes \mathcal{X}.

Worked Examples

A dual certificate for the Helstrom bound

Discriminate ρ0=∣0⟩⟨0∣\rho_0 = \ketbra{0}{0} and ρ1=∣+⟩⟨+∣\rho_1 = \ketbra{+}{+} with equal priors. Put A=12ρ0A = \tfrac12 \rho_0, B=12ρ1B = \tfrac12 \rho_1. The operator A−BA - B is traceless; in the Bloch picture ρ0−ρ1=12(Z−X)\rho_0 - \rho_1 = \tfrac12 (Z - X), whose eigenvalues are ±122\pm \tfrac12 \sqrt{2}, so A−BA - B has eigenvalues ±122\pm \tfrac{1}{2\sqrt2} and ∥A−B∥1=12\norm{A - B}_1 = \tfrac{1}{\sqrt2}.

Dual side. Take Y=12(A+B+∣A−B∣)Y = \tfrac12 (A + B + \abs{A - B}). Since ∣A−B∣≥A−B\abs{A - B} \ge A - B and ∣A−B∣≥B−A\abs{A - B} \ge B - A, both Y−A=12(∣A−B∣−(A−B))Y - A = \tfrac12(\abs{A - B} - (A - B)) and Y−BY - B are positive semidefinite, so YY is dual feasible with Tr⁡Y=12(1+12)≈0.8536\tr Y = \tfrac12 (1 + \tfrac{1}{\sqrt2}) \approx 0.8536. By weak duality no measurement succeeds with probability above 0.85360.8536.

Primal side. Let Π+\Pi_+ be the projector onto the positive eigenvector of A−BA - B and measure {M0=Π+,M1=I−Π+}\{M_0 = \Pi_+, M_1 = I - \Pi_+\}. The success probability is Tr⁡(M0A)+Tr⁡(M1B)=Tr⁡B+Tr⁡(Π+(A−B))=12+122≈0.8536\tr(M_0 A) + \tr(M_1 B) = \tr B + \tr(\Pi_+(A - B)) = \tfrac12 + \tfrac{1}{2\sqrt2} \approx 0.8536.

Primal and dual values coincide, so both are optimal, and complementary slackness can be checked: (Y−A)M0=12(∣A−B∣−(A−B))Π+=0(Y - A)M_0 = \tfrac12(\abs{A - B} - (A - B))\Pi_+ = 0 because ∣A−B∣=A−B\abs{A-B} = A - B on the range of Π+\Pi_+. This is the Helstrom bound obtained entirely from duality.

Weak duality in a linear program

Maximise x1+x2x_1 + x_2 subject to x1+2x2≤4x_1 + 2x_2 \le 4, 3x1+x2≤63x_1 + x_2 \le 6, x≥0x \ge 0. Multiplying the constraints by y=(25,15)y = (\tfrac25, \tfrac15) and adding gives 25(x1+2x2)+15(3x1+x2)=x1+x2≤25⋅4+15⋅6=145\tfrac25(x_1 + 2x_2) + \tfrac15(3x_1 + x_2) = x_1 + x_2 \le \tfrac25 \cdot 4 + \tfrac15 \cdot 6 = \tfrac{14}{5}. The point x=(85,65)x = (\tfrac85, \tfrac65) satisfies both constraints with equality and gives x1+x2=145x_1 + x_2 = \tfrac{14}{5}, so 145\tfrac{14}{5} is the optimum and yy the optimal dual solution. Both multipliers are positive and both constraints are tight, as complementary slackness requires.

The fidelity SDP on a qubit

Let P=∣0⟩⟨0∣P = \ketbra{0}{0} and Q=I/2Q = I/2. Then PQ=∣0⟩⟨0∣/2\sqrt{P}\sqrt{Q} = \ketbra{0}{0}/\sqrt2 and the root fidelity is 1/21/\sqrt2. The choice X=∣0⟩⟨0∣/2X = \ketbra{0}{0}/\sqrt2 is primal feasible: in the basis ∣0⟩⊕0, ∣1⟩⊕0, 0⊕∣0⟩, 0⊕∣1⟩\ket{0}\oplus 0,\ \ket{1}\oplus 0,\ 0\oplus\ket{0},\ 0\oplus\ket{1} the block matrix decouples into the 2×22 \times 2 block (11/21/21/2)\begin{pmatrix} 1 & 1/\sqrt2 \\ 1/\sqrt2 & 1/2 \end{pmatrix} (determinant 0, trace 3/23/2, hence positive semidefinite) on the first and third vectors, the entry 0 on the second and 1/21/2 on the fourth. Its objective Re⁡Tr⁡X=1/2\operatorname{Re}\tr X = 1/\sqrt2 equals the fidelity, so it is optimal. The squared fidelity of the fidelity record is 1/21/2.

Applications

Computational Complexity

Interior-point methods solve an SDP to additive accuracy ε\varepsilon in time polynomial in the matrix size and log⁡(1/ε)\log(1/\varepsilon), provided the feasible region is suitably bounded and a strictly feasible starting point is known (Vandenberghe and Boyd). In practice the matrix size is the limit: an SDP over operators on nn qubits has 4n4^n-dimensional variables, so exact SDP evaluation of a diamond norm or a discrimination problem is feasible for a handful of qubits only, and larger instances need exploited symmetry or problem-specific structure.

Limitations and Common Pitfalls

  • Strong duality is not automatic. SDPs can have a positive duality gap or an unattained optimum when neither side is strictly feasible. Check Slater's condition before equating a dual bound with the optimum.
  • Numerical solutions are approximate. A solver's primal value is a lower bound only if the returned point is exactly feasible; for rigorous claims, round the dual solution to an exactly feasible certificate and evaluate it.
  • Sign and scaling conventions. Diamond norm versus diamond distance (a factor 1/2), root versus squared fidelity, maximisation versus minimisation forms of the same SDP, and the ordering of tensor factors in a Choi operator all differ between sources.
  • Convex relaxations are bounds, not answers. Hierarchies such as NPA and DPS give monotone sequences of bounds; a finite level certifies an inequality but need not equal the true optimum.
  • Non-convex problems hide in plain sight. Optimising over pure states, product states or unitary circuits is not convex; the SDP machinery applies only after a relaxation.

Duality arguments of this kind appear across the Commons, for instance in hypothesis testing and one-shot theory and quantum resource theories; the variational quantum algorithms of quantum optimization address non-convex problems with different methods.

Builds on
Mentioned in

Open in the knowledge graph

Contributions about this record

Nobody has published a contribution about it yet.

Publish a result, reproduction or commentPropose a correction to this page

References

  1. Stephen Boyd, Lieven Vandenberghe (2004). Convex Optimization. Cambridge University Press. doi:10.1017/CBO9780511804441
  2. Lieven Vandenberghe, Stephen Boyd (1996). Semidefinite Programming. SIAM Review 38 (1), 49-95. doi:10.1137/1038003
  3. John Watrous (2018). The Theory of Quantum Information. Cambridge University Press. doi:10.1017/9781316848142
  4. John Watrous (2013). Simpler semidefinite programs for completely bounded norms. Chicago Journal of Theoretical Computer Science 2013, article 8. doi:10.4086/cjtcs.2013.008arXiv:1207.5726
  5. John Watrous (2009). Semidefinite programs for completely bounded norms. Theory of Computing 5, 217-238. doi:10.4086/toc.2009.v005a011arXiv:0901.4709
  6. A. S. Holevo (1973). Statistical decision theory for quantum systems. Journal of Multivariate Analysis 3 (4), 337-394. doi:10.1016/0047-259X(73)90028-6
  7. H. Yuen, R. Kennedy, M. Lax (1975). Optimum testing of multiple hypotheses in quantum detection theory. IEEE Transactions on Information Theory 21 (2), 125-134. doi:10.1109/TIT.1975.1055351
  8. Yonina C. Eldar, Alexandre Megretski, George C. Verghese (2003). Designing optimal quantum detectors via semidefinite programming. IEEE Transactions on Information Theory 49 (4), 1007-1012. doi:10.1109/TIT.2003.809510arXiv:quant-ph/0205178
  9. Michel X. Goemans, David P. Williamson (1995). Improved approximation algorithms for maximum cut and satisfiability problems using semidefinite programming. Journal of the ACM 42(6), 1115-1145. doi:10.1145/227683.227684
  10. Miguel Navascués, Stefano Pironio, Antonio Acín (2007). Bounding the Set of Quantum Correlations. Physical Review Letters 98, 010401. doi:10.1103/physrevlett.98.010401
  11. Andrew C. Doherty, Pablo A. Parrilo, Federico M. Spedalieri (2004). Complete family of separability criteria. Physical Review A 69, 022308. doi:10.1103/physreva.69.022308

Contributors

  • KetQat maintainers · @ketqatConceptualization; Supervision (CRediT roles)
  • Claude (AI drafting assistant)Writing, original draft (CRediT roles)

Review history

  1. Automated source check · Pass · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)

    Topic body only (embedded records carry their own review states). Re-derived the worked examples: Helstrom certificate for |0> vs |+> (rho0 - rho1 = (Z - X)/2, ||A - B||_1 = 1/sqrt2, dual Y feasible with tr Y = (1 + 1/sqrt2)/2 = 0.8536, primal Pi_+ measurement attains it, complementary slackness); LP example (x = (8/5, 6/5), y = (2/5, 1/5), common value 14/5, tight constraints); fidelity SDP on P = |0><0|, Q = I/2 (root fidelity 1/sqrt2, block matrix PSD with determinant 0, squared fidelity 1/2). Overview, duality intuition, complexity and pitfalls compared with Boyd-Vandenberghe (author-hosted PDF, ch. 5), Watrous TQI sec. 1.2.3 and Watrous 2013 (arXiv:1207.5726), Vandenberghe-Boyd 1996 (author-hosted PDF). Applications (NPA, DPS, Goemans-Williamson, Eldar et al.) checked by Crossref title metadata.

Revision history

  1. 2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e

Current revision ce6cccf6b91f1514. Source file knowledge/records/topic/optimization-theory.md in the content repository (readable there once it is public).