Module 13: Zeno-Constrained Annealing for Maximum Independent Set
Goal
After this module you can read Sections 2.3, 4.1 and 5.2-5.3 and Appendix A of Paper B. You can state the (weighted) maximum independent set problem, and write one cycle of Paper B’s optimizer as an effective Hamiltonian. You can explain the annealing schedule, work the three-node line by hand, and interpret the success and entropy curves for coherent and incoherent constraints.
Module 11 gave a drive that puts at most one photon into a mode. Module 12 gave a unit that stops two neighbouring modes from both holding a photon. Paper B (1) combines them with one more ingredient, a phase shifter, into a machine that solves an optimization problem. Each mode is a vertex of a graph. A photon in the mode means “this vertex is in the set”. The machine runs many identical cycles, and in each cycle the phases and drive strengths change a little.
The idea is the same as in quantum annealing (2). Start in a state that is easy to prepare and is the ground state of a simple Hamiltonian, here the vacuum. Then change the Hamiltonian slowly until its ground state encodes the answer. The difference from transverse-field annealing lies in the constraints. There they are quadratic energy penalties that compete with everything else. Here the Zeno effect forbids them outright, and the Hamiltonian that is annealed is only linear in the photon numbers. Paper B calls this view “Trotterized quantum annealing within a Zeno-constrained subspace”. It also offers a second view, as a real-time version of the entropy computing paradigm (3). This module develops the first view in detail and explains the second.
The problem: maximum independent set
The question here is what problem the machine solves, and why it is a natural fit for photons with a blockade.
Definition 13.1 (Maximum independent set).
Let be an undirected graph. A set is independent if no edge has both ends in . Write for the indicator of vertex . The maximum independent set (MIS) problem is Paper B Eq. (10):
In the weighted variant (Paper B Eq. (11)) each vertex has a weight , and the objective is .
The problem is NP-hard. It is equivalent to set packing, one of Karp’s 21 NP-complete problems (4), and even approximating it well is hard. It is also written in the form of an integer linear program: a linear objective, and constraints that each involve two variables. This is what makes it a good fit. The linear objective becomes a phase per photon, and each constraint becomes one unit of Module 12.
Paper B uses two small instances (Eqs. (12)-(13)), shown in Figure 13.1.
The 3-node line, and . Of the 8 configurations, 5 are independent: , , , and (the bits list vertices ). The unique MIS is , or .
The 5-node graph, with . Of the 32 configurations, 11 are independent: the empty set, the 5 singletons, the 4 pairs , , and , and the single triple , which is the unique MIS.
Figure 13.1. The two test graphs of Paper B. Shaded vertices form the unique maximum independent set. Each vertex becomes an optical mode holding zero or one photon, and each edge becomes one constraint unit.
One cycle of the machine
The question here is what one pass through the optical circuit does to the state of all the vertex modes.
A cycle has three steps (Paper B Fig. 8).
Phase shift. Each mode gets (Paper B Eq. (35)), with for the weighted problem (Eq. (43)).
Drive. Each mode gets the blockaded drive of Module 11, (Eq. (17)), where is now the rotation angle of one pass.
Constraints. Each edge gets one constraint unit of Module 12.
On the qubit space of one mode, with . So the phase step is , which is Paper B Eq. (36) up to a global phase.
Proposition 13.2 (The annealed Hamiltonian).
Suppose the constraints act ideally, so that the state never leaves the span of independent configurations. Let be the projector onto . For small and , one cycle is then, up to a global phase and errors of order and ,
For and the ground state of is the vacuum. For and it is the independent configuration that maximizes , which is the (weighted) MIS. If the change from one regime to the other is slow enough, the state follows the ground state from the vacuum to the MIS.
Derivation
For a single mode, by the Baker-Campbell-Hausdorff formula. For many modes the drives and phases on different modes commute, so the product over modes is to the same order. A constraint that confines the dynamics to replaces by its projection . In Module 12 this is the average of the drive over many rounds of constraint phases. The phase term is diagonal and maps to itself, so it needs no projection. This proves .
At the Hamiltonian is diagonal, with energy on each independent configuration. For the minimum is , reached only by the vacuum. For the minimum is , reached by the weighted MIS. The adiabatic theorem then says that a slow enough change keeps the system in the instantaneous ground state, provided this state is non-degenerate along the path. For the unweighted problem has non-positive off-diagonal entries in the configuration basis after the sign change . The graph of configurations connected by single flips is connected, since every independent set can be emptied one vertex at a time. By the Perron-Frobenius theorem the ground state is therefore non-degenerate for every .
The Hamiltonian is the “PXP”-type Hamiltonian of a blockaded spin system. The drive flips a vertex only if all its neighbours are empty, and the “field” rewards or punishes occupation. Two features set it apart from transverse-field Ising annealing, and Paper B Section 7 stresses both. The state never leaves the feasible set, and the problem enters only through linear terms. Paper B compares this with a classical interior-point method: the phase acts like a barrier, and the quantum state is pushed against the constraints in superposition.
Reading note: signs in Paper B Eqs. (37)-(39)
With Eq. (36), up to a global phase, so the combined step is . Paper B Eq. (37) writes , with the opposite sign and without the factor . The text that follows is consistent with Eq. (37). It starts at , where the ground state of is , and Fig. 7 shows rising from to . Eqs. (38)-(39) instead use , which starts large and positive. In the convention of Eq. (35) this positive start is the right one: the ground state of for is . The authors’ code uses , matching Fig. 7. The choice matters little. A on every mode flips the sign of every drive and leaves the vacuum, the phases and the constraint units alone. Complex conjugation then flips the signs of all angles, including the constraint phase . Together, reversing the sign of gives exactly the same probabilities as keeping and replacing by . For a CZ () the two schedules are identical. For they differ slightly: on the line at 100 cycles we find and . This course uses Eq. (39) as printed, together with .
The annealing schedule
The question here is how fast to change and , and what controls the quality of the result.
Paper B uses a schedule borrowed from the optimal sweep for a single avoided crossing (Eqs. (38)-(40)). With for cycles :
Try it: on the 3-node line, watch the populations of , , and during the anneal. Lower at fixed and see the population left in the trap .
Figure 13.2. Phase and drive angle per cycle, in units of the total rotation divided by the number of cycles, against anneal time. The phase falls from plus one to minus one, crossing zero at mid-anneal, where the drive peaks.
Four facts about the schedule are used below. Each can be checked from the formulas.
The rotation per cycle, , is the constant , so is the total rotation of the anneal.
The “field” direction makes the angle with the axis, so it turns at a uniform rate from “all phase” to “all drive” () to “all negative phase”.
Over the anneal, , because .
The anneal has two independent knobs. plays the role of the total evolution time and controls adiabaticity. controls how finely that time is cut. The Trotter error of one cycle is of order , which gives in total.
Common trap: more cycles make the anneal slower
In a continuous anneal, “slower” means more adiabatic. Here it is tempting to equate the number of cycles with the anneal time, and to expect that doubling doubles the adiabaticity. It does not. At fixed , doubling halves every angle, so the total rotation, and hence the total “time” of the effective Hamiltonian, is unchanged. Only the Trotter error falls. For the 3-node line with ideal constraints and , the success is at 100 cycles and at cycles: it saturates at the adiabatic limit set by , and is even slightly lower, because the Trotter error happened to help at 100 cycles. To make the coherent anneal more adiabatic one must raise , and with phase-based constraints must then grow in proportion (see below).
For a coherent anneal, more cycles at fixed only make each step smaller, and the result converges to the continuous anneal with total time . For an incoherent anneal the number of cycles matters much more, as we shall see.
The whole protocol fits in a few lines when the constraints are the coherent units at full transfer (controlled phases on every occupied edge). The program applies the cycles in the order “all phases, all drives, all constraints”.
import itertoolsimport numpy as npdef anneal(n, edges, n_cycle, r_tot, theta=np.pi / 2, w=None): """Coherent Zeno-constrained anneal; returns P(MIS).""" w = np.ones(n) if w is None else np.asarray(w, float) bits = np.array(list(itertools.product((0, 1), repeat=n))) psi = np.zeros(2**n, complex) psi[0] = 1.0 # all modes empty cz = np.ones(2**n, complex) # controlled phases for i, j in edges: cz *= np.where(bits[:, i] & bits[:, j], np.exp(1j * theta), 1) for k in range(1, n_cycle + 1): tau = k / (n_cycle + 1) cot = 1 / np.tan(np.pi * tau) phi = r_tot / n_cycle * cot / (1 + abs(cot)) # Eq. (39) c = r_tot / n_cycle / (1 + abs(cot)) # Eq. (40) psi = psi * np.exp(-1j * phi * (bits @ w)) # phase shifts psi = psi.reshape((2,) * n) for v in range(n): # ZB drives a0 = np.take(psi, 0, axis=v) a1 = np.take(psi, 1, axis=v) psi = np.stack([np.cos(c) * a0 - 1j * np.sin(c) * a1, np.cos(c) * a1 - 1j * np.sin(c) * a0], axis=v) psi = psi.reshape(-1) * cz # constraints ok = ~np.any([bits[:, i] & bits[:, j] for i, j in edges], axis=0) val = np.where(ok, bits @ w, -1) return float(np.sum(abs(psi[val == val.max()]) ** 2))print(anneal(3, [(0, 1), (1, 2)], 100, 20 * np.pi)) # 0.991print(anneal(3, [(0, 1), (1, 2)], 100, 20 * np.pi, np.pi)) # CZ: ~0
The second line is the trap of Module 12. In this order a CZ checks only the parity of the neighbours, and the anneal fails.
Worked example: the 3-node line by hand
We now solve the line exactly with ideal constraints, following Proposition 13.2.
Reduce the space. The five independent configurations are , , , and . The Hamiltonian is symmetric under the reflection . The antisymmetric state has drive matrix element to both and , so it decouples with energy . In the symmetric basis with :
The entries are as follows. Flipping vertex 1 connects and with element . Flipping vertex 0 or 2 connects to with , and to with . No allowed flip leaves except back to , because and are forbidden.
The three moments of the anneal.
Start, and . The energies are , and the ground state is . The vacuum is the ground state, as required.
Middle, and . The eigenvalues of are and . The ground state is in the basis above: a superposition of all configurations, with the most weight on single occupation.
End, and . The energies are again, but now is the lowest, so the ground state is , the MIS.
The gap. The smallest gap between the two lowest eigenvalues along the schedule is , at , late in the anneal. Here the state must leave the single-occupation states and reach .
The trap. The configuration is independent and maximal: no vertex can be added. But it is not maximum. Its energy at the end is , against for , and the only way out of it is back through . A diabatic anneal that leaves population in late in the schedule cannot recover it. This local minimum is what the slow schedule has to avoid.
Numbers. With coherent constraints () and , the full protocol reaches after 100 cycles. With ideal projected constraints it reaches . The random-guess level is .
Coherent versus incoherent constraints
The question of Paper B Section 5.2 is how the success depends on the coherence of the constraint units, and why.
Paper B interpolates the per-pass SFG time over with and (Figs. 12-13). By Proposition 12.5 this gives units with , which range from full removal to a CZ. We reproduced this setting with the interleaved drive order of Paper B Fig. 8. The number of cycles needed for at is:
per-pass angle
on the pair
cycles for 99%
(incoherent)
about
about
about
about
(coherent CZ)
about
The cycle counts in the first four rows come from a scan with a step of about 40%, so they are accurate to that level. Paper B Fig. 12 shows the same range, from about cycles at the incoherent end to about at the coherent end. In the monolithic order (“all drives, then all constraints”), the coherent end fails, for the parity reason of Module 12. This is why we believe Paper B’s simulations used the interleaved order of its Fig. 8.
Why is the incoherent anneal so slow? Each cycle, the drive puts an amplitude of order onto forbidden configurations. The incoherent unit then removes the forbidden population, of order , by emptying both vertices. This is a measurement, and a successful one costs the anneal a photon pair. Over the anneal this adds up to a loss of order . The coherent unit instead returns the amplitude with a phase, and the phases cancel it on the next steps. Nothing is lost, only delayed. The course simulation of the incoherent anneal gives a failure probability of at cycles, at , at , at and at . The failure falls roughly like , a little more slowly at the end.
The lost amplitude also leaves a mark: the state becomes mixed. Paper B measures this with the von Neumann entropy (Eq. (41)):
A pure state has , and a maximally mixed state of 3 qubits has . With coherent units the protocol is unitary, so the entropy is exactly zero throughout (Paper B Fig. 13). With incoherent units the entropy at the end of 1000 cycles on the line is bits. The machine then outputs a mixture of independent sets, of which the MIS is about half.
Try it: slide the coherence of the constraint units from incoherent to coherent at fixed , and watch the final success probability and the entropy. Then switch the drive order between monolithic and interleaved at the coherent end with .
Figure 13.3. Success probability of the anneal against the number of cycles at a total rotation of twenty pi. Left, 3-node line in the setting of Paper B: zero pump phase, drives interleaved with the constraint units, and the per-pass angle swept from a quarter pi (incoherent) to a half pi (sign flip). The dotted curve is the sign flip with all drives applied before the units, which fails. Right, 5-node graph with all drives before the units: ideal constraints (dashed), coherent units with a quarter-turn phase, sign-flip units and incoherent units. Grey bands mark random guessing.
The left panel of Figure 13.3 is the table above as curves, and it has the shape of Paper B Fig. 12: every unit reaches in the end, but the number of cycles needed grows by more than two orders of magnitude as the coherence is lost. The dotted curve uses the same sign-flip units with all drives applied first; it never rises above random guessing at large . The right panel shows why Paper B Eq. (31) adds a phase: on the 5-node graph the sign flip fails, while the unit with a quarter-turn phase works almost as well as an ideal constraint.
Figure 13.4 follows the entropy along a single anneal.
Figure 13.4. Von Neumann entropy (left) and success probability (right) along an anneal of 100 cycles on the 3-node line, for constraint units from the least to the most coherent, at a pump phase of three halves pi. Only the coherent anneal stays pure, and only it climbs to near-certain success.
Reading note: the drive order in Paper B's simulations
Paper B does not say in which order its simulations apply the drives and the constraint units. With the coherent end of Figs. 12-13 is a CZ. In the order “all drives, then all constraints” the CZ anneal on the line fails (). In the interleaved order of Fig. 8, where each vertex is driven in equal parts before each of its constraints, it succeeds after about 310 cycles, in line with Fig. 12. The authors’ code offers both orders (called “monolithic” and “before”). We read Figs. 12-13 as using the interleaved order, and Fig. 14 () as valid in either.
Two readings of the protocol
The question here is where this machine sits among known ideas. Paper B offers two answers.
Trotterized annealing in a constrained subspace. A cycle is one Trotter step of , and the anneal is a digitized version of adiabatic quantum optimization (2). The fixed schedule makes it a deep circuit of alternating “phase” and “mixer” layers, just like the quantum approximate optimization algorithm (QAOA) with its angles fixed by an annealing schedule rather than optimized (5). Paper B notes that the angles could also be trained variationally. The mixer here preserves the feasible subspace by construction, because the Zeno effect removes every transition that would leave it. In the fully coherent case, Paper B Section 7 observes that the parts form a universal gate set. Repeated blockaded drives give rotations, phase shifters give rotations, and the constraint unit gives an entangling controlled phase.
Entropy computing in real time. Entropy computing (3) is QCi’s name for optimization in open photonic systems, where loss and measurement are part of the computation rather than enemies of it. Earlier implementations use measurement and feedback, which destroy superpositions. Paper B’s machine is a version in which the only nonlinear elements are Zeno effects, and in the incoherent limit those come purely from loss (two-photon absorption). Paper B stresses that even this fully dissipative version works: it solves the problem, only with far more cycles. Its encoding by displacement-driven single photons is related to the displacement-based computation of (6).
Both readings rely on the same physical idea. A strong, frequently repeated interaction can steer a quantum system, by Zeno blockade, in addition to just freezing it. This “Zeno computation” view, with its speedups and its limits, is developed in (7,8).
Approaching ideal constraints
The question of Paper B Section 5.3 is when a phase-based Zeno constraint is as good as a perfect projection, and when it breaks down.
Proposition 13.3 (When the phase blockade fails).
At fixed , a coherent anneal with controlled phases matches the ideal projected anneal as long as the drive angle per cycle stays well below the constraint phase, roughly . Since , this means
Beyond the forbidden amplitude created in one cycle is too large to be averaged away, and the anneal fails.
Proof sketch
In Module 12 the blockade came from averaging the frame factors over many cycles . The average is a good approximation when the drive changes little over the few cycles needed for the factors to cancel, that is, when . Formally the effective drive is the first term of a Magnus expansion in the toggling frame, whose corrections grow like . The constraint phase is fixed by the hardware and does not shrink with , while scales as . So the condition is .
Paper B Fig. 14 shows this on the 5-node graph with (). The course simulations agree. At 1000 cycles and the success is with phase units and with ideal constraints. In comparison, incoherent units reach and CZ units . The success falls to about one half at - for 100 cycles, - for 300 cycles, and - for 1000 cycles, which gives . The ideal projected anneal also degrades at large , through Trotter error, but more slowly.
Try it: on the 5-node graph, raise at fixed and find where the phase-based anneal leaves the ideal one. Double and check that the critical value roughly doubles.
Weighted problems and QUBO
The question of Paper B Appendix A is how far the same machine reaches beyond unweighted MIS.
Weights. Scaling the phase of each mode by its weight, (Paper B Eq. (43)), changes the final Hamiltonian to , whose ground state at is the weighted MIS (Proposition 13.2). Paper B Fig. 16 tests the smallest case, two vertices joined by one edge, with and varied (, ). The two candidate answers are and , and the anneal must pick the heavier one. The course simulation gives a success of for and for . At the two answers are equally good, and the anneal ends in a superposition of both, with probability each. Telling apart weights that differ by needs an anneal long enough to resolve an energy difference .
Try it: move through and watch the final probabilities of and cross. Lower and see the crossover widen.
Reading note: the colours of Paper B Fig. 16
The caption of Paper B Fig. 16 calls the probability of “the yellow line”. In the figure that curve is drawn in red. The blue curve, for , is labelled correctly.
QUBO. A quadratic unconstrained binary optimization problem (Paper B Eq. (44)) minimizes the energy . The diagonal terms are linear in , so they become phases per mode, as for weights. An off-diagonal term needs a phase on only, which is a controlled phase of adjustable size. The coherent constraint unit at full transfer with pump phase is exactly this (Module 12). Its phase must now follow the schedule, like , rather than stay fixed. Paper B points out the catch: the unit must be fully coherent. A lossy pump turns the phase into a partial removal, which a constrained problem can tolerate but an unconstrained energy cannot. So a QUBO solver needs a lossless pump, while an MIS solver does not.
Paper B Figs. 12-13 are the coherent-versus-incoherent comparison and Figure 13.3, Fig. 14 is Proposition 13.3, and Fig. 16 and Eqs. (43)-(44) are the last section.
The drives are those of Module 11. The simulations of Paper B Figs. 12-16 assume them ideal (“driving is assumed to operate ideally”), so their imperfections add to everything here.
Module 14 asks how to build the machine for large graphs with only two nonlinear elements, and what photon loss does to it.
Paper A (9) is a gate, not an optimizer. But its coherent blockade is the kind of element the fully coherent version of this protocol needs, and its fidelity sets a scale for how good each cycle could be.
What breaks
Every simulation here assumes ideal drives, ideal beamsplitters, indistinguishable photons and no loss of signal photons. Each cycle uses each element once, and an anneal has to cycles. A per-element error that looks small in Module 11 or Module 12 is therefore multiplied by a large number. In particular, a drive error of per cycle is fatal at 300 cycles unless it averages out. The problem sizes are tiny, 2 to 5 vertices, where any classical method is instant. Nothing here says how or must grow with the graph size. That depends on the minimum gap of , which for hard instances is expected to close quickly. Finally, the success numbers depend on the schedule and on the drive order, which Paper B fixes rather than optimizes.
Why it matters
This module turns the two Zeno elements of Paper B into an algorithm and shows how it behaves. The coherent machine is an annealer whose constraints are built in, so the problem enters only through linear phases, and it matches ideal constraints until the drive per cycle becomes comparable with the constraint phase. The incoherent machine also works, using nothing but loss as its nonlinearity, but it pays with hundreds of times more cycles and a mixed output. The worked line example contains the whole story in four dimensions: a vacuum start, a superposition in the middle, a gap, and a trap. Module 14 asks what it would take to build this machine.
Further reading
Paper B, Sections 2.3, 4.1, 5 and 7 and Appendix A (1).
Quantum annealing (2) and the quantum approximate optimization algorithm (5).
The NP-completeness of packing and independence problems (4).
Entropy computing and displacement-based photonic computation (3,6).
Miri M-A, Chukwu U, Chancellor N. Zeno Blockade Enabling Photonic Quantum Optimization [Internet]. 2026. Available from: https://arxiv.org/abs/2604.13032
2.
Kadowaki T, Nishimori H. Quantum annealing in the transverse Ising model. Physical Review E. 1998;58(5):5355–63.
3.
Nguyen L, Miri M-A, Rupert RJ, Dyk W, Wu S, Vrahoretis N, et al. Entropy computing, a paradigm for optimization in open photonic systems. Communications Physics. 2025;8(1):411.
4.
Karp RM. Reducibility among Combinatorial Problems. In: Miller RE, Thatcher JW, editors. Complexity of Computer Computations. New York: Plenum Press; 1972. p. 85–103.
5.
Farhi E, Goldstone J, Gutmann S. A Quantum Approximate Optimization Algorithm [Internet]. 2014. Available from: https://arxiv.org/abs/1411.4028
6.
Chukwu U, Miri M-A, Chancellor N. Explicitly quantum-parallel computation by displacements. Optics Express. 2026;34(7):13039–66.
7.
Berwald J, Chancellor N, Dridi R. Grover speedup from many forms of the Zeno effect. Quantum. 2024;8:1532.
8.
Berwald J, Chancellor N, Dridi R. Zeno-effect computation: Opportunities and challenges. Physical Review A. 2025;111(4):042623.
9.
Vadlamani CM, Bu T, Huang Y. Deterministic Controlled-NOT Gate Between Single Photons via Quantum Zeno Blockade in an Add–Drop Microring. 2026.