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 sitting above every weighted state". Exhibiting one good measurement proves a lower bound, exhibiting one good 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
A set is convex if for all and . A function on a convex set is convex if for all , , and concave if is convex.
A convex optimization problem in standard form is
where is convex, are convex, and , . A point satisfying the constraints is feasible; if there is none, and may be . A local minimum of a convex problem is a global minimum. Maximising a concave function is the same problem with replaced by . Linear programs ( affine) and semidefinite programs are convex problems.
The Lagrangian is
the dual function is (concave, as an infimum of affine functions of , possibly ), and the dual problem is
Weak duality, , always holds: for feasible and , because and . The difference is the duality gap; strong duality means it is zero. The problem satisfies Slater's condition if some in the relative interior of is strictly feasible: for all and . The definitions are those of chapters 2–5 of Boyd and Vandenberghe.
Let and . Write for the Hermitian operators on , for positive semidefinite, for positive definite, and , which is real on Hermitian operators. A semidefinite program is a triple where is a linear map from operators on to operators on that sends Hermitian operators to Hermitian operators, and . With the adjoint defined by , it has two associated problems:
Operators satisfying the constraints are primal feasible or dual feasible; by convention and when there are none. The program is strictly primal feasible if some has , and strictly dual feasible if some Hermitian has .
The feasible sets are convex and the objectives linear, so these are convex optimization problems; inequality constraints 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
Under Slater's condition, , and if there exist and with .
If moreover the primal optimum is attained at , then for every (complementary slackness) and minimises over ; for differentiable and open this gives the KKT conditions
which for a convex problem are also sufficient for optimality of and . 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.
- A convex optimization problem in standard form with convex domain , convex and affine equality constraints .
- Slater's condition: some in the relative interior of has for all and .
Proof · Proof of strong duality under Slater's condition (inequality constraints)
This record proves the theorem in full for problems without equality constraints (), 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 to exclude a degenerate hyperplane; see section 5.3.2 of Boyd and Vandenberghe.
Setup. If , weak duality gives as well. Assume finite; it is not because is feasible. Define
is convex: if witness , then by convexity of the the point witnesses . is convex. They are disjoint: would give a feasible with .
Separation. By the separating hyperplane theorem for disjoint convex sets in there are and with
Since is closed under increasing any coordinate, the first inequality forces and (a negative coefficient would make the left side unbounded below on ). The second says for all , hence . Taking for any ,
The hyperplane is not vertical. Suppose . Then gives for all , with and . At the Slater point every , so , a contradiction. Hence .
Conclusion. Dividing by and putting , for all , so . Weak duality gives , so .
Complementary slackness. If is feasible with , then
so both inequalities are equalities: minimises , and the sum of the nonpositive terms is zero, so each is zero. For differentiable functions on an open , minimality of the convex function at is equivalent to the vanishing of its gradient, which is the first KKT condition; conversely any point satisfying the KKT conditions minimises , and the same chain of (in)equalities shows it is primal optimal and dual optimal.
- Weak duality. For every primal feasible and dual feasible , ; hence .
- Complementary slackness. If and are feasible and , then both are optimal and .
- Slater's theorem. If the primal problem is feasible and the dual problem is strictly feasible, then and some primal feasible attains . If the dual problem is feasible and the primal problem is strictly feasible, then and some dual feasible attains .
Item 1 makes any dual feasible 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.
- A semidefinite program in the standard form, with primal optimum and dual optimum .
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 then , with equality only if . Indeed , the squared Hilbert–Schmidt norm. If it vanishes, , and then and .
Weak duality. Let be primal feasible and dual feasible. Then
using , the definition of the adjoint (all quantities are real because the operators are Hermitian and preserves Hermiticity), and the lemma with and . Taking the supremum over and the infimum over gives .
Complementary slackness. If then, by weak duality, , so and are optimal. The displayed difference is zero, so and the lemma gives .
Three semidefinite programs of quantum information
The primal problem ranges over POVMs ; the dual over Hermitian with for every . Weak duality is the one-line estimate . The primal is strictly feasible () and the dual is strictly feasible (), so the two optima are equal and both attained. Complementary slackness gives the optimality conditions: a POVM is optimal if and only if is Hermitian and satisfies for all , in which case for every (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 the value is the Helstrom bound, and is an optimal dual solution.
- States on a finite-dimensional space with prior probabilities ; one copy is measured and the guess is the POVM outcome.
The block operator is positive semidefinite exactly when for some with operator norm , so the maximum is . The dual problem is
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 with a fixed is concave and given by a semidefinite program, maximising fidelity over a convex, semidefinite-representable set of states is itself a semidefinite program.
- positive semidefinite operators on ; ranges over all operators on .
- The left side is the root fidelity; the squared fidelity of definition/fidelity is its square.
The dual problem is
and both problems are strictly feasible for every , 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 follows that paper. For the diamond distance of two channels one takes 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.
- is a linear map from operators on to operators on with Choi operator on ; ranges over all operators on .
Worked Examples
A dual certificate for the Helstrom bound
Discriminate and with equal priors. Put , . The operator is traceless; in the Bloch picture , whose eigenvalues are , so has eigenvalues and .
Dual side. Take . Since and , both and are positive semidefinite, so is dual feasible with . By weak duality no measurement succeeds with probability above .
Primal side. Let be the projector onto the positive eigenvector of and measure . The success probability is .
Primal and dual values coincide, so both are optimal, and complementary slackness can be checked: because on the range of . This is the Helstrom bound obtained entirely from duality.
Weak duality in a linear program
Maximise subject to , , . Multiplying the constraints by and adding gives . The point satisfies both constraints with equality and gives , so is the optimum and the optimal dual solution. Both multipliers are positive and both constraints are tight, as complementary slackness requires.
The fidelity SDP on a qubit
Let and . Then and the root fidelity is . The choice is primal feasible: in the basis the block matrix decouples into the block (determinant 0, trace , hence positive semidefinite) on the first and third vectors, the entry 0 on the second and on the fourth. Its objective equals the fidelity, so it is optimal. The squared fidelity of the fidelity record is .
Applications
- State and channel discrimination. Minimum-error discrimination of several states (Eldar, Megretski and Verghese) and the diamond distance between channels (Watrous); see distinguishability measures.
- Bounding quantum correlations. The set of quantum correlations of a Bell scenario is approximated from outside by a hierarchy of semidefinite programs (Navascués, Pironio and Acín), giving upper bounds on quantum winning probabilities; see Bell nonlocality.
- Entanglement detection. Testing for symmetric extensions of a state gives a hierarchy of SDP criteria for separability (Doherty, Parrilo and Spedalieri); see quantum entanglement.
- Combinatorial optimisation. The Goemans–Williamson algorithm rounds an SDP relaxation of MaxCut (Goemans and Williamson), the classical baseline against which quantum optimisation heuristics are compared; see graph theory.
- Resource theories and channel capacities. Many one-shot quantities, such as hypothesis-testing relative entropy, are defined as or computed by SDPs.
Computational Complexity
Interior-point methods solve an SDP to additive accuracy in time polynomial in the matrix size and , 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 qubits has -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.
Related Research
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.