Goal

After this module you can read Section 3.2, Section 3.3 and the constraint parts of Section 4 of Paper B. You can show how a 50:50 beamsplitter, a nonlinear element on each arm and an inverse beamsplitter act on two single-rail qubits. You can derive the incoherent constraint and its rate, and the controlled phase of the coherent constraint. You can also explain why the pump phase must be chosen with care.

In Paper B’s optimizer (1) every vertex of a graph is an optical mode holding zero or one photon. The rule of the maximum independent set problem is that two vertices joined by an edge must not both be occupied. The optimizer therefore needs an element that acts on two modes and , leaves , and alone, and penalizes . Module 11 built a single-mode element that leaves zero and one photon alone and acts on two photons. What is missing is a way to turn “one photon in each of two modes” into “two photons in one mode”, and to undo it afterwards.

Linear optics provides exactly this, through the Hong-Ou-Mandel (HOM) effect (2). Two identical photons that meet at a balanced beamsplitter always leave through the same output port. Behind the beamsplitter, the forbidden state has become a superposition of and , where the single-mode blockade can act. The allowed states and have only one photon, so they pass the nonlinear elements untouched. A second, inverse beamsplitter restores the original modes.

This module follows that construction in Paper B’s language of channels. There are two versions. In the incoherent unit, two-photon absorption (TPA) removes the forbidden pair, which works like a measurement of “both occupied”. In the coherent unit, sum-frequency generation (SFG) lends the pair to a pump mode and returns it with a phase. The second version keeps the quantum state pure. It also hides a trap that Paper B addresses with its formula .

The beamsplitter as a basis change

The first question is what a balanced beamsplitter does to the four states of two single-rail qubits.

Definition 12.1 (Balanced beamsplitter in Paper B's convention).

For two modes and , let

In the Heisenberg picture it mixes the modes as and . This is the convention of Paper B Eqs. (22)-(26). Paper B writes the conjugated operators as , so states transform with and the inverse beamsplitter is .

Proposition 12.2 (Hong-Ou-Mandel bunching).

On the states with at most one photon per mode,

A single photon is split evenly between the two outputs. The state has no component after the beamsplitter: both photons leave together.

Paper B Eq. (22) writes the bunched state as , without the factor . This is a global phase on the sector of the beamsplitter output. It drops out once the inverse beamsplitter is applied, and nothing downstream depends on it.

The second beamsplitter must undo the first. Paper B Fig. 8 draws this inverse as a beamsplitter, a crossing of the two arms, and a phase of on each arm. That recipe is correct.

Proposition 12.3 (Building the inverse beamsplitter).

Let swap the modes and , and let be a phase of per photon on each arm. Then

Since , the phase step is the "" of Paper B Fig. 8, in the convention that the figure uses.

The incoherent unit: rotated two-photon absorption

The next question is what happens if TPA acts on both arms between the two beamsplitters.

In the lab frame the recipe is easy to follow. Prepare . The beamsplitter gives . TPA on each arm removes either pair at the population rate of Proposition 11.2. The inverse beamsplitter maps the vacuum to itself. One-photon states see no TPA at all. Paper B packages this as a single generator on the original modes, the rotated TPA dissipator. Its Lindblad operators are the conjugated pair operators (Paper B Eqs. (23)-(26)):

and for the other arm.

Proposition 12.4 (The incoherent constraint).

Let both arms carry TPA at rate , so that the generator is , where is the dissipator with Lindblad operator . On this generator equals

It leaves , , and all coherences among them unchanged. It moves the population of to at rate , and damps every coherence with at rate . After a time with the unit is the measurement-and-reset channel “if both are occupied, empty both”.

The cancellation in the proof has a physical meaning.

Common trap: one nonlinear arm is enough

One might think that since becomes , a single absorber on one arm should catch the pair half of the time and be enough on average. It is not. With TPA on arm only, the half is emptied, but the half survives. After the inverse beamsplitter, . So a quarter of the original population returns to , and a quarter ends in or , outside the single-rail code. In the proof above this is the uncancelled piece of . The constraint needs equal nonlinearities on both arms, as Paper B Fig. 8 draws them.

Reading note: the rate of Paper B Eq. (28)

Paper B Eqs. (27)-(28) keep one copy of the jump term . Each of the two rotated dissipators contributes such a term, so the generator for TPA at rate on each arm is times Eq. (28), as in . (Eq. (25) also writes the two dissipators as a composition; for generators it should be a sum.) A direct simulation (beamsplitter, TPA on both arms at rate , inverse beamsplitter) confirms this: the population of decays as , and the coherence between and as . Only the time scale changes, so no qualitative statement of Paper B depends on it.

The coherent unit: a phase on the forbidden state

The question of Paper B Section 3.3 is how to build the same constraint without discarding the photons.

Replace TPA by SFG on each arm, with its own pump mode. Module 11 showed that a single SFG pass by the exchange angle sends . Paper B’s gadget (Eq. (29)) uses two such passes with a phase on the pump in between:

  1. SFG pass by ;
  2. pump phase , which is Paper B’s with Eq. (30);
  3. SFG pass by ;
  4. trace out the pump.

The whole sequence sits between the two beamsplitters, on both arms. Figure 12.1 shows the layout.

j k 50:50 BS SFG or TPA SFG or TPA pass, pump phase, pass 50:50 BS inv j k |11> becomes |20> + |02> pairs return to |11> |00>, |01>, |10> pass with no photon pair
Figure 12.1. The constraint unit for one edge. The beamsplitter bunches two neighbouring photons into one arm. On each arm, the nonlinear element either absorbs the pair (incoherent unit) or lends it to a pump mode, which receives a phase before the pair returns (coherent unit). The inverse beamsplitter restores the vertex modes. States with at most one photon never form a pair and pass unchanged.
Proposition 12.5 (The two-pass gadget).

Starting from with the pump kept between the passes, the gadget produces

Zero and one signal photon are unchanged. Behind the beamsplitters, the constraint unit (Paper B Eq. (34)) therefore acts on the two qubits as

Two cases matter.

  1. Full transfer per pass, (that is, per pass). Then and , and the unit is the unitary controlled phase .
  2. Pump phase . Then : the two passes act like one pass by the angle . The per-pass range runs from full removal (, the incoherent unit) to , a controlled-Z (CZ) gate.

Numbers make the two cases concrete. The table lists and the removed weight for three per-pass angles and three pump phases.

per-pass angle
, , ,
, , ,
, , ,

The column is the identity for every : the pump phase undoes the first pass exactly. In the column the unit runs from full removal to a CZ. Only the bottom row is a unitary controlled phase for every .

The program below builds the unit exactly as drawn in Figure 12.1. Each signal mode is truncated at two photons and each pump at one, and the Kraus operators on the two qubits are read off from the full unitary. It prints the and entries of each Kraus operator. The coherent unit with gives a single operator with entry . The incoherent unit gives two operators, one per pump, each sending to with amplitude .

import numpy as np
from scipy.linalg import expm
 
def unit_kraus(alpha, phi_q):
    """Kraus operators of the constraint unit on |jk>, j,k in {0,1}."""
    ds, dp = 3, 2                          # signal 0..2, pump 0..1
    a = np.diag(np.sqrt(np.arange(1, ds)), 1)
    b = np.diag(np.sqrt(np.arange(1, dp)), 1)
    def emb(*ops):                         # order: j, k, pump_j, pump_k
        out = np.eye(1)
        for o in ops:
            out = np.kron(out, o)
        return out
    Is, Ip = np.eye(ds), np.eye(dp)
    aj, ak = emb(a, Is, Ip, Ip), emb(Is, a, Ip, Ip)
    bj, bk = emb(Is, Is, b, Ip), emb(Is, Is, Ip, b)
    bs = expm(1j * np.pi / 4 * (aj.T @ ak + ak.T @ aj))
    H = aj @ aj @ bj.T + ak @ ak @ bk.T
    sfg = expm(-1j * alpha / np.sqrt(2) * (H + H.T))   # angle alpha
    ph = expm(1j * phi_q * (bj.T @ bj + bk.T @ bk))
    U = bs.conj().T @ sfg @ ph @ sfg @ bs
    idx = lambda nj, nk, pj, pk: ((nj * ds + nk) * dp + pj) * dp + pk
    q = [(0, 0), (0, 1), (1, 0), (1, 1)]
    ks = []
    for pj in range(dp):
        for pk in range(dp):
            K = np.array([[U[idx(*o, pj, pk), idx(*i, 0, 0)] for i in q]
                          for o in q])
            if abs(K).max() > 1e-12:
                ks.append(K)
    return ks
 
for alpha, phi_q in [(np.pi / 2, 1.5 * np.pi), (np.pi / 4, 0.0)]:
    print([np.round([K[3, 3], K[0, 3]], 3) for K in unit_kraus(alpha, phi_q)])

Paper B Eq. (31) prescribes

so that the coherent unit applies the phase to . With () this is the “total phase kick ” of Paper B Fig. 14. The symbol is not defined in Paper B. The next section explains what it has to be.

Reading note: the per-pass time of the phase gadget

Paper B Section 3.3 runs each pass of Eq. (29) for , which it says converts fully into a pump photon. With Paper B’s own Eqs. (6)-(8) this is , half the transfer (see the reading note of Module 11). For , Proposition 12.5 then gives and : half of the forbidden population is removed and half receives a phase of , which is neither the coherent nor the incoherent unit. The controlled phase requires per pass. The authors’ public code agrees: its default per-pass value is , documented as “complete removal and return”. For the printed range of Section 5.2 is correct per pass (case 2 above). Paper B Eq. (29) also composes the channel of Eq. (8), which contains a partial trace. Read literally, the trace after the first pass would erase the pump photon before the phase can act. The pump has to be kept coherent between the passes, as in Eqs. (32)-(33) and the code.

Paper B Eqs. (32)-(33) add pump loss to the gadget. The loss acts during the phase step, between the two passes: that step becomes the channel , with , and the pumps are traced only at the end. A pump photon lost while it holds the pair leaves the signal in vacuum. At full transfer this gives , with the missing weight moved to . So pump loss is a second way to slide the unit from coherent to incoherent. Paper B notes that and are redundant for this purpose, and its Figs. 12-13 interpolate with at .

Choosing the phase: why a sign flip is not a blockade

The question here is which controlled phase on actually stops a driven vertex from filling up next to an occupied neighbour. The natural guess, a sign flip (, the CZ gate), is subtle.

Here is the mechanism. Between two constraint units, a vertex receives a small drive . Move the constraint phases into a rotating frame. Conjugating by a controlled phase on the edge gives times a phase whenever is occupied. After rounds of constraints, the drive on carries the factor , where is the number of occupied neighbours that the frame has picked up. When is not a multiple of , these factors average to zero over many rounds. The drive that would fill then cancels: this is the coherent Zeno effect of phase reversal in Module 11, and it is a “bang-bang” (pulsed) version of the blockade. When the factors do not average out, and the drive survives.

Common trap: a sign flip is a blockade

A CZ on every edge does not forbid a vertex with two occupied neighbours. Take the 3-node line , and let all drives act first, then both constraints (the “monolithic” order). For the middle vertex, , with . Averaged over two cycles, the drive on vertex 1 is . This checks the parity of the neighbours, not whether they are empty. In the state the neighbour parity is even, so still couples to the forbidden , and the anneal destroys the very solution it should find. A simulation of the full protocol of Module 13 with in this order ends with a success probability below at every cycle number tried. With the factors for average to zero, and the same anneal succeeds with probability at 100 cycles.

This is why Paper B Section 3.3 says that a phase flip alone is not sufficient, and why Eq. (31) moves the phase away from . A reading consistent with the derivation above is the following.

Remark 12.6 (What the d in the phase formula must satisfy).

The averaging argument needs for every number of occupied neighbours that can occur. Starting from an independent set, adding the vertex creates at most as many violations as the largest independent subset of the neighbourhood of , which is at most the degree of . With , any larger than half that number works. For the line, , so suffices. For Paper B’s 5-node graph, the neighbourhood of vertex 2 contains the independent set , so , and (which fails only for ) is again enough. This matches the course simulations: reaches on the 5-node graph after 1000 cycles, close to the of an ideal projection, while a CZ reaches in the monolithic order and in the interleaved order.

The order of the drives matters for , though not for . Paper B Fig. 8 splits the drive of a vertex into equal parts, one before each of its constraint units (“0.5 ZB drive” for the middle vertex of the line). In this interleaved order, the drive slots of vertex 1 sit in the frames , , and . These average to , which is exactly the projector onto “both neighbours empty”. On the line, a CZ therefore works when the drive is interleaved: the anneal reaches at 300 cycles. On the 5-node graph it does not: the frames of vertex 2 do not cover all patterns of its four neighbours, and the success saturates near . Paper B’s Figs. 12-13 use on the line, and its Fig. 14 uses on the 5-node graph. Both choices are consistent with this analysis. Paper B does not say which order its simulations use.

Reading note: the phase in Paper B Figs. 12 and 13

The captions of Paper B Figs. 12 and 13 say that is used “such that it yields a zero phase”. By Eq. (29) and Proposition 12.5, at the coherent end gives , a phase of on (a CZ). Fig. 14, which quotes with a “total phase kick ”, follows the convention “net phase ”. By that convention the phase in Figs. 12 and 13 is , not zero. A zero net phase () would make the coherent unit the identity, and the anneal would not be constrained at all.

Try it: send , and into the beamsplitter. The single photons split evenly, while leaves with no component at all.

Try it: with TPA on both arms, follow the populations of and against , and check that the decay rate is . Switch one arm off and watch population leak into and .

Try it: move the per-pass angle from to at , then fix it at and turn . The point moves from removal to a pure phase, and only at does it stay on the unit circle for every .

Several edges: does the order of the units matter?

A graph has many edges, and edges that share a vertex share a mode. In Paper B Fig. 8 the units for the edges and of the line act one after the other on vertex 1. The question is whether their order matters.

Proposition 12.7 (Order of constraint units).
  1. Coherent units at full transfer are diagonal controlled phases. Any two of them commute, whatever edges they act on.
  2. Incoherent units on edges that share a vertex commute on every state with at most one violated edge among the two. On a state that violates both edges they do not commute. For the line, the unit on followed by the unit on sends , while the opposite order gives .

In the anneal, a state that violates two edges at once needs two forbidden steps of the drive. Its population is suppressed twice over, so the order of incoherent units is a higher-order effect. The order of the drives relative to the units is a different matter. As the previous section showed, it decides whether a CZ is a blockade at all.

Comparison with the add-drop CNOT of Paper A

Paper A (3) and Paper B use the same nonlinear process, SFG, for different jobs. Paper A’s gate (Module 8) has a control photon in the pump mode. This photon splits the ring resonance and so changes the route of a target photon of a different colour, which gives a CNOT on two distinguishable photons. Paper B’s unit needs two identical photons, which a beamsplitter bunches into one mode. There they are converted together into one pump photon. The pump is empty at the start and serves only as a temporary store.

Paper A CNOTPaper B constraint unit
photonscontrol (pump) and target (signal), different colourstwo signal photons, identical
what interactstarget with stored controltwo signals, after HOM bunching
Zeno mechanismdressed-state splitting by a stored photonconversion of the pair to the pump and back
resultCNOT (routing)controlled phase, or removal of the pair
physical modelring, pulses, coupling ratesideal channels, single mode per vertex

The two approaches are complementary. Paper A shows, with a realistic ring and pulses, that the coherent blockade of one photon by another reaches a fidelity near . Paper B assumes that the blockade works and asks what an optimizer built from it can do.

Worked example: the unit on a superposition

Send the state through each unit. Its density matrix has the entries .

  1. Incoherent unit, run long. By Proposition 12.4 the population moves to and the coherence vanishes. The output is , a mixture with entropy 1 bit. To leave less than 1% in we need , that is .
  2. Coherent unit, full transfer per pass, . Then and . The output is the pure state : the populations are unchanged and the relative phase has turned by .
  3. The paper’s printed per-pass time, , . Now with , and . The output has , , and . It is partly mixed and partly rotated by .
  4. at full transfer. , and the output is : a CZ.

Only cases 2 and 4 preserve purity. Of these, only case 2 also blockades a vertex with two occupied neighbours, whatever the order of the drives.

How the papers use this

  • Paper B Eqs. (22)-(28) are Proposition 12.2 and Proposition 12.4, with the rate corrected to . Eqs. (29)-(34) are Proposition 12.5.
  • In the optimizer of Module 13, one constraint unit sits on every edge of the graph, and the units run after the drives in each cycle (Paper B Fig. 8). The incoherent unit makes the anneal a “Zeno-constrained” open-system process. The coherent unit keeps it unitary, which Paper B Fig. 13 shows as zero entropy.
  • In the time-bin architecture of Module 14, a single unit is reused for every edge. Delays and switches bring the two vertex bins of an edge to the beamsplitter at the same time, which is the indistinguishability condition of the HOM effect.
  • Paper A (3) needs no beamsplitter: its two photons are already in different modes, and its pump photon is the control.

What breaks

Every element in this module is ideal. The beamsplitter is exactly 50:50, and the photons are perfectly indistinguishable. A reflectivity or a mode mismatch with overlap below one leaves a component behind the first beamsplitter, which no nonlinear element can see, and this component leaks through the constraint. The coherent unit needs both passes to hit the full-transfer angle on both arms. An error gives for , which turns part of each constraint into a removal. Pump loss does the same. The model also has one mode per vertex and no pulse shape. The finite bandwidth effects of Module 7, which limit Paper A, are not included. Finally, the remark about is our reading. Paper B gives only Eq. (31), and the right choice depends on the graph and on the order of the drives.

Why it matters

The constraint unit is the only place in Paper B’s machine where two vertices interact, so it carries the whole MIS problem. The beamsplitter turns a two-mode condition into a single-mode one, and Module 11 supplies the single-mode tool. The choice between absorbing the pair and lending it to a pump decides whether the optimizer is a dissipative, measurement-like process or a coherent, unitary one. The choice of the pump phase decides whether the coherent version is a blockade at all. Module 13 puts these units in an annealing loop and measures what each choice costs.

Further reading

  • Paper B, Sections 3.2-3.3 and 4.1 (1).
  • The Hong-Ou-Mandel experiment (2), and linear optics as a quantum-computing toolkit (4,5).
  • Zeno gates from the blockade of one photon by another (6,7).
  • The add-drop CNOT model that Paper B’s unit is compared with (3).
  • Zeno phase flips as a computational primitive (8).

Homework

The problems for this module are in Homework 12.

1.
Miri M-A, Chukwu U, Chancellor N. Zeno Blockade Enabling Photonic Quantum Optimization [Internet]. 2026. Available from: https://arxiv.org/abs/2604.13032
2.
Hong CK, Ou ZY, Mandel L. Measurement of subpicosecond time intervals between two photons by interference. Physical Review Letters. 1987;59(18):2044–6.
3.
Vadlamani CM, Bu T, Huang Y. Deterministic Controlled-NOT Gate Between Single Photons via Quantum Zeno Blockade in an Add–Drop Microring. 2026.
4.
Knill E, Laflamme R, Milburn GJ. A scheme for efficient quantum computation with linear optics. Nature. 2001;409(6816):46–52.
5.
Kok P, Munro WJ, Nemoto K, Ralph TC, Dowling JP, Milburn GJ. Linear optical quantum computing with photonic qubits. Reviews of Modern Physics. 2007;79(1):135–74.
6.
Huang Y-P, Kumar P. Interaction-free quantum optical Fredkin gates in χ(2) microdisks. IEEE Journal of Selected Topics in Quantum Electronics. 2012;18(2):600–11.
7.
Sun Y-Z, Huang Y-P, Kumar P. Photonic nonlinearities via quantum Zeno blockade. Physical Review Letters. 2013;110(22):223901.
8.
Berwald J, Chancellor N, Dridi R. Grover speedup from many forms of the Zeno effect. Quantum. 2024;8:1532.