Introduction
A streaming algorithm reads its input item by item and is judged by how much memory it keeps. There are many ways to stream: one pass or several, streams that only insert items or also delete them, sliding windows, and more. In this work we fix a single pass over insertions and vary two other choices: whether the memory is classical or quantum, and whether the items arrive in an order chosen by an adversary or in a uniformly random order. This gives four ways to stream. Most streaming lower bounds are proved for the most restrictive one, classical memory in adversarial order, and each of the two resources is known to beat such bounds on some problems. The first is quantum memory . A quantum streaming algorithm reads a classical stream and keeps a small quantum state, and for some problems this state can be exponentially smaller than any classical memory. This is one of the few settings in which a quantum advantage on classical data is unconditional: the data arrives classically, so no quantum access to it is needed, and the quantum device only has to be as large as the memory, which can be polylogarithmic in the input. Such algorithms have been run on a trapped-ion processor [NCK+25], and quantum oracle sketching turns streams of classical samples into quantum queries for machine learning [ZZN+26]. Le Gall Le Gall [14 ] proved the first exponential gap, for online space, and quantum space advantages are now known for natural problems: triangle counting [Kal21], Maximum Directed Cut (Max-DiCut) [KPV24], and Max-k k k SAT [WY26a]. These single-pass advantages for graph and constraint-satisfaction problems all use one tool, the measurement of Hidden Matching [BJK08], often in the form of the pair sketch [PKV25]. Other quantum streaming advantages use decoded quantum interferometry or several passes (§ 3 ).
The second is random order . Adversarial order is the standard worst case, but in many settings nobody chooses the order of a data stream, and a worst-case order can make a problem look harder than it is in practice. A uniformly random order is the natural average case: the algorithm sees a typical sample of the input early, and it has to cope with no structure in the order at all. Lower bounds in random order show that a problem is hard for a reason other than the order, and algorithms for random order are a first step toward algorithms for streams with weak order assumptions [17 , 8 ] . Indeed, many lower bounds for adversarial order no longer hold in random order. Since Guha and McGregor [17 ] used it for quantile estimation, random order has helped classical algorithms on many problems: maximum matching in one semi-streaming pass [KMM12, Ber24, AB21], testing bounded-degree graph properties in constant space [MMPS17], estimating the number of connected components, the weight of a minimum spanning tree and the size of a maximum independent set [PS18], and counting triangles [MV20]. For Max-DiCut, beating the approximation ratio 4 / 9 4/9 4/9 needs Ω ( n ) \Omega(\sqrt{n}) Ω ( n ) classical space in adversarial order [9 ] but only O ( log n ) O(\log n) O ( log n ) in random order [SSSV23]. Lower bounds in random order are harder to prove. A standard tool is communication in which the input is split at random between the players [8 ] , and random-order lower bounds are known for Max-Cut [KKS15], and for Noisy Gap Cycle and the graph problems that reduce to it, among them connected components and random walks [2 ] (§ 3 ).
Why the known quantum advantages are fragile. The two resources have been studied separately, and the few results that involve both do not compare them. They do suggest a guess. Every single-pass quantum advantage for a graph or constraint problem rests on a classical lower bound that embeds Boolean Hidden Matching with the data placed before the items that ask about it. In Boolean Hidden Matching the bits of a hidden string arrive, then the edges of a matching with claimed parities, and the question is whether the claims are all right or all wrong. A classical algorithm that sees the bits first must remember about n \sqrt{n} n of them [16 ] , while a quantum algorithm keeps them all in a phase state of O ( log n ) O(\log n) O ( log n ) qubits [PKV25]. In random order the first edge arrives early, and a classical algorithm just waits for its two bits (observation F.1). So the embedding does not survive random order, and for Max-DiCut the quantum advantage disappears with it [SSSV23]. The guess is that random order and quantum memory are substitutes: each does what the other does, and together they do no more.
What was not known. Whether the guess is right was open. Can random order help a quantum algorithm, and can the two resources together do what neither does alone? Can classical memory in random order beat quantum memory? Which lower-bound techniques work for quantum memory in random order? And when a measurement destroys the quantum state it uses, can a stream that keeps bringing data rebuild it? To the best of our knowledge, none of these had been answered, even for artificial problems. Concurrent work of Bouland, Ding, and Jain [3 ] separates quantum memory from classical random order when the input itself is random (§ 1.3 ).
The map
A quantum algorithm can simulate a classical one, and an algorithm that works in every input order works in a random one. So classical memory in adversarial order is the weakest of the four models and quantum memory in random order the strongest. The two models with one resource each lie in between, and neither of them simulates the other in general. Figure 1 draws the four models, ordered by simulation, as a diamond. We compare models by exponential gaps: on a family of problems with input size n n n , one model is exponentially stronger than another if it needs polylog n n n space while the other needs n Ω ( 1 ) n^{\Omega(1)} n Ω ( 1 ) , and the two tie if neither is exponentially stronger.
Figure 1. The four streaming models. An arrow points from a model to one that simulates it. Each box lists, for one arrow, the problems on which the higher model is exponentially stronger (polylog against Ω ( 1 ) \Omega(1) Ω ( 1 ) space), in orange, and those on which it is not, in blue. The two models with one resource each do not simulate each other, and the box between them lists the problems on which each of them wins and those on which they tie.
The guess that “random order and quantum memory are substitutes” is wrong, and the map is as rich as it can be. Every pair of the four models is exponentially separated on some problem and tied on another, and the two models with one resource each are separated in both directions. All of these separations are unconditional.3
Our results
The map shows that the two resources interact in more than one way: one can replace the other, one can beat the other, they can combine, and both can fail. Their interaction had not been studied before, and our results suggest that there is a lot to learn about it. We state the new results here and outline their proofs in § 2 .
Both resources together. Quantum memory and random order together can be exponentially stronger than each of them alone. We know of no earlier problem that behaves this way, and we design one for it, Atomized Replenishable Hidden Matching (ARHM). Its stream carries the bits of a hidden string x ∈ { 0 , 1 } N x \in\{0,1\}^{N} x ∈ { 0 , 1 } N , each coordinate ∼ m 2 \sim m^2 ∼ m 2 times, mixed with m m m requests that each name a matching of the positions and must be answered, before the next item arrives, with one edge of that matching and the parity of the two bits on it.
Theorem A. (Three-way separation, informal version of theorem 5.4 and proposition 5.17.) For 2 ≤ m ≤ N 2 \le m \le\sqrt{N} 2 ≤ m ≤ N , ARHM has a stream of length Θ ( N m 2 ) \Theta(Nm^2) Θ ( N m 2 ) such that:
in uniformly random order, a quantum algorithm uses O ( log N log m ) O(\log N \log m) O ( log N log m ) qubits,
in the same order, classical algorithms need Ω ( N ) \Omega(\sqrt{N}) Ω ( N ) bits,
when all updates come before the requests, quantum algorithms need Ω ( m ) \Omega(m) Ω ( m ) qubits, and O ( N log m log N ) O(\sqrt{N}\log m\log N) O ( N log m log N ) classical bits suffice.
At m = N m = \sqrt{N} m = N , quantum memory in random order is exponentially stronger than classical memory in random order, and also than quantum memory when the data comes first, where it does no better than classical memory. The order in which all data comes first is easier for an algorithm than an
BHM Boolean Hidden Matching (§ 2.1 )
DiCut Max-DiCut at an approximation ratio in ( 4 / 9 , ∼ 0.48 ] (4/9,\sim0.48] ( 4/9 , ∼ 0.48 ] (§ 2.1 )
NGCshort _{\text{short}} short Noisy Gap Cycle with constant cycle length k ≥ 6 k \ge6 k ≥ 6 , single arrivals (proposition 7.12 and theorem 7.13)
NGCrep _{\text{rep}} rep Noisy Gap Cycle with k ≥ C log n k \ge C \log n k ≥ C log n and every edge repeated R ≥ 2 k R \ge2k R ≥ 2 k times. The adversarial bound already holds when the copies of each edge arrive together (theorem 7.11)
ARHM Atomized Replenishable Hidden Matching with m = N m = \sqrt{N} m = N (theorem 5.4). †Against the order in which all data comes first, since in a fully adversarial order ARHM cannot be solved
CI∗ ^* ∗ Code Intersection and Optimal Polynomial Intersection, concurrent work of Bouland, Ding, and Jain [3 ] , for uniformly random inputs (§ 1.3 )
NGClong _{\text{long}} long Noisy Gap Cycle with k ≥ C log n k \ge C \log n k ≥ C log n , single arrivals (theorem 7.3). The 2 Ω ( 1 / ε ) 2^{\Omega(1/\varepsilon)} 2 Ω ( 1/ ε ) bounds for connected components and the other problems of corollary 7.4 are in the same regime, with 1 / ε = Θ ( log n ) 1/\varepsilon= \Theta(\log n) 1/ ε = Θ ( log n )
adversarial one, so a quantum lower bound in that order is stronger than one in adversarial order. In a fully adversarial order a request can arrive before any data, and no algorithm can answer it.
A similar quantum lower bound (Ω ( m ) \Omega(m) Ω ( m ) for m ≤ N 1 / 2 − δ m \le N^{1/2-\delta} m ≤ N 1/2 − δ ) holds even if the algorithm is allowed to output all the answers at the end of the stream and the output space is not counted toward the space complexity.
Consumability and replenishment. Why do the two resources together beat each of them alone on ARHM? Because of two properties, one of quantum memory and one of random order. The first we call consumability . A classical memory can be read as often as we like, and it can be copied. A quantum state is read by measuring it, and the measurement that reads one answer out of a phase state destroys the state. So quantum memory has a problem that classical memory does not have: an algorithm that must answer many requests during the stream seems to need many copies of its state from the start. The second we call replenishment , and it is a way of dealing with the first. A stream may keep bringing data after a state has been used, and from that data the algorithm can rebuild the state (Figure 2 ). This needs data that keeps arriving between the requests, which random order provides and the data-first order does not. And it only helps a memory that reading destroys, which is quantum memory. So on ARHM a small quantum memory succeeds in random order, where it is replenished, and fails when the data comes first, where it is consumed. Classical memory is not consumed, and it fails for a different reason: already the first request is an instance of Hidden Matching, which needs Ω ( N ) \Omega(\sqrt{N}) Ω ( N ) classical bits (§ 2.2 and § 2.3 ).
Figure 2. Consumability and replenishment. Each request is answered by measuring a quantum state, which destroys it. When all data comes first, the memory at the end of the data must serve every request, and it needs Ω ( m ) \Omega(m) Ω ( m ) qubits. In random order, updates keep arriving between the requests, and a small quantum memory rebuilds a fresh state from them before the next request comes.
Consumability is unavoidable. Is consumability real, or could a cleverer encoding avoid it? This is a question about one-way communication. In Hidden Matching, Alice holds x ∈ { 0 , 1 } N x \in\{0,1\}^{N} x ∈ { 0 , 1 } N and Bob a perfect matching, and Bob must output one edge of his matching with the parity of its two bits. A phase state of log N \log N log N qubits answers one such request, but the measurement that reads the answer destroys it, while classical one-way protocols need Ω ( N ) \Omega(\sqrt{N}) Ω ( N ) bits [BJK08]. Gilboa, Jain, and McClean [15 ] asked whether a cleverer message could answer m m m requests, for m m m matchings, without growing linearly with m m m . They call data consumable when it cannot, proved that the message must grow at least as m \sqrt{m} m , and conjectured that it must grow linearly.
Theorem B (Consumability, informal versions of theorem 6.7 and corollary 6.13). Answering m m m Hidden Matching requests from one quantum message, with all answers correct with probability 2 / 3 2/3 2/3 , requires Ω ( m ) \Omega(m) Ω ( m ) qubits:
for m ≤ N 1 / 2 − δ m \le N^{1/2-\delta} m ≤ N 1/2 − δ , even if Bob sees all requests and decodes them jointly, which proves the conjecture of Gilboa, Jain, and McClean in this range,
The second item is the one that streams need. There Bob may keep arbitrary quantum memory between requests, as a streaming algorithm does, and this gives the Ω ( m ) \Omega(m) Ω ( m ) bound for ARHM when the data comes first. Consumability had been studied only in one-way communication, and to our knowledge it had not been used to prove streaming lower bounds.
Nothing helps. The Noisy Gap Cycle problem (NGC), introduced by Assadi and Sundaresan [2 ] , asks whether an n n n -vertex graph, given as a stream of its edges, is a union of k k k -cycles or of 2 k 2k 2 k -cycles, in both cases with disjoint paths of length k − 1 k-1 k − 1 added. For long cycles every short piece of the graph looks the same in the two cases, and the answer depends on connections over long distances. Random order does not help with this, and we show that quantum memory does not help either.
Theorem C (Quantum lower bound for Noisy Gap Cycle, informal version of theorems 7.2 and 7.3). If the cycle length satisfies k ≥ C log n k \ge C \log n k ≥ C log n , then NGC requires Ω ( n ) \Omega(n) Ω ( n ) qubits in one pass over a uniformly random edge order, and in one-way quantum communication when the edges are split at random between Alice and Bob.
Assadi and Sundaresan proved the classical random-order bound, so all four models need linear space on long cycles. They introduced NGC as a source of random-order lower bounds for natural graph problems: they reduce estimating the number of connected components, the maximum matching size, the maximum independent set size and the minimum spanning tree weight to accuracy ε \varepsilon ε , and generating random walks, to NGC with k = Θ ( 1 / ε ) k = \Theta(1/\varepsilon) k = Θ ( 1/ ε ) , and obtain 2 Ω ( 1 / ε ) 2^{\Omega(1/\varepsilon)} 2 Ω ( 1/ ε ) classical lower bounds. These reductions are classical, so the same lower bounds hold for quantum algorithms too (corollary 7.4). These bounds take 1 / ε = Θ ( log n ) 1/\varepsilon= \Theta(\log n) 1/ ε = Θ ( log n ) , so they do not give a linear bound at a fixed accuracy. We do not know of earlier quantum random-order lower bounds for natural graph problems. The proof keeps the reductions of Assadi and Sundaresan up to their last problem, and proves a quantum lower bound for it with the matrix hypercontractive inequality of Ben-Aroya, Regev, and de Wolf [6 ] (§ 2.4 ).
The same items in a different order. If every edge of a long-cycle NGC instance arrives R = 2 k R = 2k R = 2 k times in random order, a classical algorithm can follow a cycle and close it with O ( log n ) O(\log n) O ( log n ) bits. If instead the R R R copies of each edge arrive together, quantum algorithms need Ω ( n ) \Omega(n) Ω ( n ) space (theorem 7.11). The two streams consist of the same items, and only their order differs. Together with ARHM, this shows that the space of quantum algorithms can depend exponentially on the order of a fixed input.
The rest of the map
The other entries of Figure 1 are known or concurrent results.
Random order can beat quantum memory. Random order wins when the answer is decided by short structures that random order brings together and an adversary can keep apart. Repeated edges are one example. Short cycles are another, and this one is known.
Theorem D (Short cycles, informal version of proposition 7.12 and theorem 7.13). Let k ≥ 4 k \ge4 k ≥ 4 be constant and d = ⌊ k / 2 ⌋ d = \lfloor k/2 \rfloor d = ⌊ k /2 ⌋ . In random order, NGC needs only polylog n \operatorname{polylog} n polylog n classical bits. In adversarial order, it needs Ω ( n 1 − 2 / d ) \Omega\left(n^{1-2/d}\right) Ω ( n 1 − 2/ d ) qubits for d ≥ 3 d \ge3 d ≥ 3 , and Ω ( n 1 − 1 / d ) \Omega\left(n^{1-1/d}\right) Ω ( n 1 − 1/ d ) classical bits.
So for k ≥ 6 k \ge6 k ≥ 6 the classical random-order model is exponentially stronger than the quantum adversarial one. In random order the two cases differ in their number of connected components, which can be counted [11 ] , and in adversarial order Boolean Hidden Hypermmatching embeds into NGC [VY11], and its quantum one-way complexity is polynomial [SWY15].
Quantum memory can beat random order, for random inputs. The other direction is the concurrent result of Bouland, Ding, and Jain [3 ] . For the Code Intersection problem of Yamakawa and Zhandry, streamed as the values of a uniformly random oracle, a quantum algorithm with poly ( n ) \operatorname{poly}(n) poly ( n ) qubits succeeds in every order, while classical algorithms in uniformly random order need 2 Ω ( 1 ) 2^{\Omega(1)} 2 Ω ( 1 ) bits. For low-rate Optimal Polynomial Intersection they get O ( log 3 n ) O\left(\log^3 n\right) O ( log 3 n ) qubits against Ω ( n ) \Omega(n) Ω ( n ) bits. Their classical lower bounds hold in random order, but the input itself is a uniformly random oracle, and the quantum guarantee is averaged over it. So they separate the two models for random inputs (§ 3.5 ). Whether quantum memory in adversarial order can be exponentially stronger than classical memory in random order on worst-case inputs, as in the rest of Figure 1 , is open (§ 8 ).
Each resource alone. The two lower arrows are known. Boolean Hidden Matching separates both, as explained above, and on it the two middle models tie, since both solve it in O ( log n ) O(\log n) O ( log n ) space. Max-DiCut separates both arrows too, and at approximation ratios up to ∼ 0.48 \sim0.48 ∼ 0.48 the two middle models tie on it in the same way: the two algorithms estimate the same set of statistics of the input graph by different means, both in polylogarithmic space, so neither model can be exponentially stronger. This tie is only as strong as the two upper bounds. No lower bound is known for either middle model at any ratio, so Max-DiCut may still separate them at ratios beyond what the known algorithms reach (§ 2.1 ).
Organization
§ 2 explains the main ideas behind each result, § 3 discusses related work, and § 4 defines the models. § 5 and § 6 treat the problem that needs both resources: the ARHM separation and the consumability bounds behind ARHM. § 7 treats Noisy Gap Cycle, both where nothing helps and where random order wins. § 8 collects open questions. The appendices contain the longer proofs.
Technical overview
We go through the arrows of Figure 1 : each resource alone (§ 2.1 ), both together (§ 2.2 and § 2.3 ), and Noisy Gap Cycle, where nothing helps or random order wins (§ 2.4 ). Statements repeated here keep the numbers of the sections where they are proved. All communication protocols are one-way, without prior entanglement, and messages include any classical information sent.
Each resource alone
These arrows follow from known results. In Boolean Hidden Matching (definition 4.7), the stream has one bit item ( v , x v ) (v,x_v) ( v , x v ) for each v ∈ [ n ] v \in[n] v ∈ [ n ] and one edge item ( u , v , z u v ) (u,v,z_{uv}) ( u , v , z uv ) for each edge of a perfect matching, and the question is whether the bits z u v z_{uv} z uv all equal x u ⊕ x v x_u \oplus x_v x u ⊕ x v or all differ from it. In adversarial order the bits come first, and a classical algorithm must remember about n \sqrt{n} n of them to catch a matching edge [16 ] . The quantum algorithm builds the phase state n − 1 / 2 ∑ v ( − 1 ) x v ∣ v ⟩ n^{-1/2}\sum_v(-1)^{x_v}|v\rangle n − 1/2 ∑ v ( − 1 ) x v ∣ v ⟩ item by item. An edge item ( u , v , z u v ) (u,v,z_{uv}) ( u , v , z uv ) is a pair query, which reads the parity of the bits of u u u and v v v seen so far, and a bit of u u u or v v v that arrives later is added classically, so O ( log n ) O(\log n) O ( log n ) qubits suffice in every order [PKV25].
The only argument not in the literature is the folklore observation F.1: in random order the first edge item arrives early, after fewer than two bit items in expectation, and remembering it until both of its endpoints arrive takes O ( log n ) O(\log n) O ( log n ) bits (section F).
The classical lower bounds behind the other single-pass quantum advantages for graph and constraint problems embed Boolean Hidden Matching so that the data comes before the items that ask about it. Random order breaks this. For Max-DiCut at approximation ratios above 4/9, both models with one resource each use polylogarithmic space [SSSV23, KPV24], while classical algorithms in adversarial order need Ω ( n ) \Omega(\sqrt{n}) Ω ( n ) space [9 ] .
Both resources I: why a quantum message is used up
In Hidden Matching, Alice holds x ∈ { 0 , 1 } N x \in\{0,1\}^{N} x ∈ { 0 , 1 } N and Bob a perfect matching M M M . The phase state ∣ ψ x ⟩ |\psi_x\rangle ∣ ψ x ⟩ lets Bob output one edge of M M M with its parity, using log N \log N log N qubits. But measuring destroys the state, so answering m m m matchings this way takes m m m copies. Could a cleverer encoding, or a cleverer joint measurement, do better?
Definition 6.1 (Multiple Hidden Matching). In the Multiple Hidden Matching problem M H M N , m = H M N ( m ) \mathrm{MHM}_{N,m} = \mathrm{HM}_{N}^{(m)} MHM N , m = HM N ( m ) , Alice receives x ∈ { 0 , 1 } N x \in\{0,1\}^{N} x ∈ { 0 , 1 } N and Bob receives m m m perfect matchings M 1 , … , M m M_1,\ldots,M_m M 1 , … , M m on [ N ] [N] [ N ] . After receiving one message from Alice, Bob must output, for each matching M t M_t M t , an edge e t = { u t , v t } ∈ M t e_t = \{u_t,v_t\} \in M_t e t = { u t , v t } ∈ M t and the bit b t = x u t ⊕ x v t b_t = x_{u_t} \oplus x_{v_t} b t = x u t ⊕ x v t . Success requires every answer to be correct.
No encoding can, and the following argument shows why. A correct answer is a parity x u ⊕ x v x_u \oplus x_v x u ⊕ x v . Parities along the edges of a forest are independent constraints on x x x : a forest with s s s edges leaves only 2 N − s 2^{N-s} 2 N − s strings consistent with the answers. So if Bob’s correct answers span a forest with s s s edges, they reveal s s s bits about x x x , and by the dimension bound the message has at least s s s qubits. This is the argument of Gilboa, Jain, and McClean [15 ] . They obtained their forest from the fact that Bob’s output edges are distinct, and distinct edges are only guaranteed to span a forest with about m \sqrt{m} m edges, which gives their Ω ( m ) \Omega(\sqrt{m}) Ω ( m ) . If Bob may make errors, the bound only loses the entropy of whether all his answers are right:
Lemma 6.6 (Forest-information bound). Let { e 1 , … , e m } \{e_1,\ldots,e_m\} { e 1 , … , e m } be the set of edges in Bob’s output O O O , and let p = P [ G = 1 ] p = \mathbb{P}[G=1] p = P [ G = 1 ] . Then
q ≥ I ( X : O ∣ M ) ≥ E [ G f s ( { e 1 , … , e m } ) ] − h 2 ( p ) . q \ge I(X:O \mid M) \ge\mathbb{E}[G\,\mathrm{fs}(\{e_1,\ldots,e_m\})] - h_2(p). q ≥ I ( X : O ∣ M ) ≥ E [ G fs ({ e 1 , … , e m })] − h 2 ( p ) . Here q q q is the length of the message in qubits, X X X is Alice’s uniform string, M M M is the list of matchings, O O O is Bob’s output, G G G indicates that all answers are correct, f s ( { e 1 , … , e m } ) \mathrm{fs}(\{e_1,\ldots,e_m\}) fs ({ e 1 , … , e m }) is the number of edges in a spanning forest of Bob’s output edges, and h 2 ( ⋅ ) h_2(\cdot) h 2 ( ⋅ ) is the binary entropy.
What is left is a combinatorial question: must Bob’s edges form a large forest? Bob would like to keep his edges on a few vertices, where they give few independent constraints. Random matchings prevent this.
Simultaneous requests. Suppose Bob sees all m m m matchings before answering. If his edges span a forest with at most s s s edges, they touch at most 2 s 2s 2 s vertices, so there is a set of 2 s 2s 2 s vertices containing an edge of every matching. For a fixed set this happens with probability about ( s 2 / N ) m (s^2/N)^m ( s 2 / N ) m , and there are only ( N 2 s ) \binom{N}{2s} ( 2 s N ) sets. If m ≤ N 1 / 2 − δ m \le N^{1/2-\delta} m ≤ N 1/2 − δ and s s s is a small constant times m m m , a union bound over all these sets still gives a small probability (proposition A.3). So with high probability every choice of one edge per matching spans a forest with Ω ( m ) \Omega(m) Ω ( m ) edges, whatever Bob does.
Theorem 6.7 (Linear Multiple Hidden Matching lower bound). Fix constants δ ∈ ( 0 , 1 / 2 ) \delta\in(0,1/2) δ ∈ ( 0 , 1/2 ) , ε ∈ ( 0 , 1 / 2 ) \varepsilon\in(0,1/2) ε ∈ ( 0 , 1/2 ) , and a balanced distribution D \mathcal{D} D on perfect matchings of [ N ] [N] [ N ] (definition 6.3). For m ≤ N 1 / 2 − δ m \le N^{1/2-\delta} m ≤ N 1/2 − δ , every one-way protocol for M H M N , m \mathrm{MHM}_{N,m} MHM N , m that answers all m ∗ r e q u e s t s c o r r e c t l y w i t h p r o b a b i l i t y a t l e a s t ∗ $ 1 − ε m *requests correctly with probability at least* \$1-\varepsilon m ∗ r e q u es t scor r ec tl y w i t h p r o babi l i t y a tl e a s t ∗ $1 − ε , when
X X X is uniform and M 1 , … , M m M_1,\ldots,M_m M 1 , … , M m are independent draws from D \mathcal{D} D , requires Ω δ ( m ) \Omega_{\delta}(m) Ω δ ( m ) qubits. In particular, so does every protocol with worst-case joint error at most ϵ \epsilon ϵ .
The union bound stops working around m ≈ N m \approx\sqrt{N} m ≈ N , where a set of about N \sqrt{N} N vertices meets a random matching with constant probability. The bound needs random matchings: a list that repeats one matching can be answered by repeating one correct answer.
Sequential requests. If Bob must answer each matching before seeing the next, he cannot plan, and the argument becomes simpler and stronger. When the t t t th matching arrives, his edges so far form some components. A new edge fails to grow the forest only if it lies inside a component, and the current components contain at most ( t 2 ) \binom{t}{2} ( 2 t ) pairs. The new matching is independent of everything so far, including Bob’s quantum memory, so it has such an edge with probability at most ( t 2 ) / ( N − 1 ) \binom{t}{2}/(N-1) ( 2 t ) / ( N − 1 ) . If it has none, every edge Bob can choose grows the forest. Summing over t t t , the forest has at least m − m 3 / ( 6 N ) m-m^3/(6N) m − m 3 / ( 6 N ) edges in expectation (lemma 6.10), and wrong answers cost only the entropy of the error vector (theorem 6.12). With success probability 2 / 3 2/3 2/3 , this gives q = Ω ( m ) q=\Omega(m) q = Ω ( m ) all the way up to m = N m=\sqrt{N} m = N (corollary 6.13).
From messages to streams. These bounds carry over to streams by one simulation (lemma 5.10): run the algorithm on a prefix of the stream and give its whole memory to Bob as the message. If no data arrives after that point but many fresh requests do, the memory at that point must be large.
Both resources II: rebuilding the state from later data
ARHM turns this into a streaming problem. The stream contains L ≈ m 2 L\approx m^2 L ≈ m 2 copies of every coordinate update ( j , x j ) (j,x_j) ( j , x j ) and m m m Hidden Matching requests, each to be answered on arrival. If all updates come first, the memory after the last update must serve all m m m requests, so by the sequential bound it needs Ω ( m ) \Omega(m) Ω ( m ) qubits (corollary 5.16). In random order, updates keep arriving between the requests, and a quantum algorithm can use them to keep preparing fresh phase states, using only polylogarithmic quantum memory.
Building a state from updates. Start from the uniform superposition and let each update of coordinate j j j add a phase π x j / μ \pi x_j/\mu π x j / μ to ∣ j ⟩ \lvert j\rangle ∣ j ⟩ . After a batch of μ N \mu N μ N updates, in which j j j occurs κ j ≈ μ \kappa_j\approx\mu κ j ≈ μ times, the state is
∣ ϕ κ ( x ) ⟩ = 1 N ∑ j = 1 N e i π κ j x j / μ ∣ j ⟩ , \lvert\phi_{\kappa}(x)\rangle=\frac{1}{\sqrt{N}}\sum_{j=1}^{N}e^{i\pi\kappa_jx_j/\mu}\lvert j\rangle, ∣ ϕ κ ( x )⟩ = N 1 j = 1 ∑ N e iπ κ j x j / μ ∣ j ⟩ ,
and it would be exactly ∣ ψ x ⟩ \lvert\psi_x\rangle ∣ ψ x ⟩ if every κ j \kappa_j κ j were μ \mu μ . The counts are never stored or checked. A matching measurement compares the phases of two paired coordinates, so its error is about the average squared deviation ( κ j − μ ) 2 / μ 2 (\kappa_j-\mu)^2/\mu^2 ( κ j − μ ) 2 / μ 2 , that is, about 1 / μ 1/\mu 1/ μ (lemma 5.5). With μ = 100 m \mu=100m μ = 100 m the error over all m m m requests is a small constant. The stream has L = μ 2 L=\mu^2 L = μ 2 copies of each coordinate, so there are μ \mu μ batches.
Having a state ready when a request comes. The algorithm keeps two banks of registers. One is built from the current batch, while the other, ready since the previous batch, serves the requests. At the end of a batch they swap. With μ = 100 m \mu=100m μ = 100 m batches, one batch sees 1 / 100 1/100 1/100 requests on average and rarely many more, so O ( log m ) O(\log m) O ( log m ) registers per bank are enough except with probability less than 3 / 100 3/100 3/100 (lemmas 5.6 and 5.7). Registers from one batch have the same count errors, but the bank is in a product state, so measuring some registers does not disturb the rest. The total space is O ( log N log m ) O(\log N\log m) O ( log N log m ) (proposition 5.8).
Classical algorithms do not benefit. A classical algorithm can copy its memory, so it faces a different obstacle: the memory just before the first request must already answer one Hidden Matching request. This takes Ω ( N ) \Omega(\sqrt{N}) Ω ( N ) bits even when the matching is a uniformly random factor of a fixed one-factorization (lemma 5.12). So in random order the quantum space is O ( log N log m ) O(\log N\log m) O ( log N log m ) and the classical space is Ω ( N ) \Omega(\sqrt{N}) Ω ( N ) .
When the data comes first, the advantage shrinks. At m = N m=\sqrt{N} m = N , the data-first bound Ω ( m ) \Omega(m) Ω ( m ) gives no gap between quantum and classical space. A classical algorithm can store the bits of a random set S S S of Θ ( N log m ) \Theta(\sqrt{N\log m}) Θ ( N log m ) coordinates. By the birthday paradox, every requested matching then has a pair inside S S S with high probability (proposition 5.17). So at m = N m=\sqrt{N} m = N the exponential gap needs both resources: random order, so that the data keeps arriving, and quantum memory, so that the small state can answer.
Noisy Gap Cycle
When every edge arrives once, there is nothing to rebuild from, and the information that decides the answer is spread along long cycles. We show that Ω ( n ) \Omega(n) Ω ( n ) qubits are needed in random order (theorem 7.3). As in Assadi and Sundaresan [2 ] , a random-order algorithm gives a robust one-way communication protocol, in which the edges are split at random between Alice and Bob (definition 7.1), and we prove the lower bound for such protocols (theorem 7.2). The proof goes through the following communication problem, which is implicit in their argument.
Definition 7.5 (Block Hidden XOR). Let w w w and r r r be positive integers. In B H X w , r \mathrm{BHX}_{w,r} BHX w , r , Alice receives independent uniform strings X i ∈ { 0 , 1 } w X^i \in\{0,1\}^w X i ∈ { 0 , 1 } w , i ∈ [ r ] i \in[r] i ∈ [ r ] , and Bob receives independent uniform indices J i ∈ [ w ] J_i \in[w] J i ∈ [ w ] , i ∈ [ r ] i \in[r] i ∈ [ r ] , independent of Alice’s strings. Alice sends one message, and Bob must output
Z J ( X ) : = ⨁ i = 1 r X J i i . Z_J(X) := \bigoplus_{i=1}^{r} X^i_{J_i}. Z J ( X ) := i = 1 ⨁ r X J i i .
From Block Hidden XOR to cycles. In words, Alice has r r r independent bit strings, and Bob has one uniformly random index into each string and must predict the XOR of the selected bits. The graph construction of Assadi and Sundaresan turns this XOR into the length of a cycle (Figure 3 ). Each block i i i is a few layers of vertices. In the middle of the block, Alice’s edges keep the two paths at coordinate j j j parallel if X j i = 0 X^i_j=0 X j i = 0 and cross them if X j i = 1 X^i_j=1 X j i = 1 . Around them, Bob’s edges route one fixed pair of paths through coordinate J i J_i J i . So after all r r r blocks this pair is crossed exactly when Z J ( X ) = 1 Z_J(X)=1 Z J ( X ) = 1 , and joining its ends gives two cycles of length k k k or one cycle of length 2 k 2k 2 k .
Figure 3. Intuition for the graph construction, with r = 3 r = 3 r = 3 blocks. In block i i i the pair of paths routed through coordinate J i J_i J i is crossed exactly when X J i i = 1 X^i_{J_i} = 1 X J i i = 1 . Joining the ends gives one cycle of length 2 k 2k 2 k if the number of crossings is odd, as here, and two cycles of length k k k if it is even.
The hard instances of NGC contain many such pairs, and their edges are split at random, so getting back to one pair costs advantage. The reductions of Assadi and Sundaresan isolate one pair with a hybrid argument, which leaves an advantage of only about one over the number of pairs. For quantum messages, the only change is to use the trace distance in this hybrid argument. The random edge split then gives Alice the edges of a bit and Bob the edges that route the pair only at some coordinates, which we call clean (definition C.3). We keep the blocks that have many clean coordinates, including the one Bob needs, and fix everything else. This step is new, and it reuses parts of the classical lower bound of Assadi and Sundaresan for their intermediate problem. It gives B H X w , r \mathrm{BHX}_{w,r} BHX w , r with w = ⌊ n / ( 400 k ) ⌋ w=\lfloor n/(400k)\rfloor w = ⌊ n / ( 400 k )⌋ , about one hundredth of the number of pairs, r ≥ k / 1600 r \ge k/1600 r ≥ k /1600 blocks, and advantage 1 / ( 1000 w ) 1/(1000w) 1/ ( 1000 w ) (lemma 7.6). Figure 4 in section C lists the steps and says where each one comes from.
Why a quantum message cannot predict the XOR. Classically, one conditions the input on Alice’s message and uses Fourier analysis of the conditional distribution. For a quantum message we use the Fourier expansion of the encoding X ↦ ρ X X \mapsto\rho_X X ↦ ρ X itself, with matrix coefficients ρ ^ ( S ) \hat{\rho}(S) ρ ^ ( S ) . For a fixed choice J J J of one coordinate per block, the message states for the two values of the XOR differ by exactly 2 ρ ^ ( S J ) 2\hat{\rho}(S_J) 2 ρ ^ ( S J ) , where S J S_J S J is the set of the chosen coordinates. So to predict the XOR, the encoding needs a large coefficient on S J S_J S J , and since Bob’s J J J is random, it needs large coefficients on average over the w r w^r w r possible sets. The matrix hypercontractive inequality of Ben-Aroya, Regev, and de Wolf [6 ] says that a q q q -qubit encoding has little total weight on such coefficients:
∑ S λ ∣ S ∣ ∥ ρ ^ ( S ) ∥ t r 2 ≤ 2 2 λ q , 0 ≤ λ ≤ 1. \sum_{S} \lambda^{|S|}\lVert\hat{\rho}(S)\rVert_{\mathrm{tr}}^2 \leq2^{2\lambda q}, \qquad0 \leq\lambda\leq1. S ∑ λ ∣ S ∣ ∥ ρ ^ ( S ) ∥ tr 2 ≤ 2 2 λ q , 0 ≤ λ ≤ 1.
Comparing the two gives q ≳ r w ( 2 γ ) 2 / r q \gtrsim rw(2\gamma)^{2/r} q ≳ r w ( 2 γ ) 2/ r for advantage γ \gamma γ (theorem 7.9). The advantage enters only through ( 2 γ ) 2 / r (2\gamma)^{2/r} ( 2 γ ) 2/ r , so with at least log w \log w log w blocks even advantage 1 / w 1/w 1/ w costs just a constant factor:
Theorem 7.10 (Quantum Block Hidden XOR with small advantage). Let w ≥ 2000 w \geq2000 w ≥ 2000 and r ≥ log w r \geq\log w r ≥ log w be integers. Every one-way quantum protocol for B H X w , r \mathrm{BHX}_{w,r} BHX w , r with success at least 1 2 + 1 1000 w \frac{1}{2} + \frac{1}{1000w} 2 1 + 1000 w 1 communicates at least r w / 64 rw/64 r w /64 qubits.
We apply it to B H X w , r \mathrm{BHX}_{w,r} BHX w , r from lemma 7.6. There r ≥ k / 1600 r \geq k/1600 r ≥ k /1600 and w ≥ n / ( 800 k ) w \geq n/(800k) w ≥ n / ( 800 k ) , so the bound r w / 64 rw/64 r w /64 is Ω ( n ) \Omega(n) Ω ( n ) qubits. The classical reductions of Assadi and Sundaresan then give quantum random-order lower bounds for connected components, matching, independent sets, minimum spanning trees and random walks (corollary 7.4).
Where random order starts to help, classically. With repeated edges, a small classical streaming algorithm, which we call a walker , follows one cycle. It stores a start vertex, its current vertex, the previous one and a step counter, moves along its cycle whenever the next edge arrives, and finds a k k k -cycle when it returns after k k k steps. This is the classical pointer-chasing algorithm, which needs k k k passes over a stream in which every edge appears once. Random repetitions give the walker these passes within a single pass: each step waits about a 1 / R 1/R 1/ R fraction of the stream for its next edge, so about R R R steps fit.
For constant k k k , random-order component counting [11 ] solves NGC, while in adversarial order the reduction of Verbin and Yu [VY11] embeds Boolean Hidden Hypermatching into NGC (proposition 7.12 and theorem 7.13).
Related work
Quantum streaming
Le Gall [14 ] proved an exponential separation between quantum and classical online space. Natural graph problems followed. Kallaugher gave a quantum advantage for triangle counting [Kal21], and Kallaugher, Parekh, and Voronova an exponential advantage for Maximum Directed Cut [KPV24], after Kallaugher and Parekh [KP22] studied Max-Cut and its quantum analogue. Kallaugher, Parekh, and Voronova later showed that the triangle and Max-DiCut algorithms, as well as the streaming algorithm for Hidden Matching, are all built on one primitive [PKV25]. This primitive is the pair sketch : a uniform superposition over a set, which answers pair queries and is destroyed by any query that succeeds. An algorithm that needs several successful observations therefore keeps several sketches from the start. We ask when later input can replace these parallel copies with sketches rebuilt during the stream. For classical triangle counting, Chakraborty et al. [7 ] allow each edge to repeat arbitrarily often in any order, and match the single-arrival optimum of Jayaram and Kallaugher [JK21]. up to polylogarithmic factors. Their repetitions are adversarial and may be absent, so an algorithm cannot rely on them to rebuild anything. The promise in remark 5.19 is exactly R R R copies of every edge, in random order.
Wang and Yang [WY26a] extend the snapshot method used for Max-DiCut to Max-k k k SAT. With polylogarithmically many qubits they reach an approximation ratio that classical algorithms cannot reach in o ( n ) o(\sqrt{n}) o ( n ) space. Wu and Yang [WY26b] adapt decoded quantum interferometry to streams and obtain small-space one-pass algorithms for a generalization of optimal polynomial intersection, with approximation ratios that classical algorithms need polynomial space to reach, even with polynomially many passes. Other work uses several passes. Hamoudi and Magniez [HM19] estimate frequency moments with a better tradeoff between quantum memory and passes than is possible classically, and Feng, Xu, Li, Guo, and Lin [13 ] estimate Shannon entropy using quantum Monte Carlo over the stream. Liu, Raz, and Zhan [LRZ23] prove that the tradeoff between memory and samples for learning parities stays essentially the same when the learner also has quantum memory. Niroula et al. [NCK+25] ran the pair-sketch algorithm for Hidden Matching on a trapped-ion processor. All of these results are for adversarial order or fresh samples. The only quantum results that involve random order are the concurrent separations of Bouland, Ding, and Jain [3 ] , for random inputs, which we discuss in § 3.5 .
Random order
In a random-order stream, an adversary fixes the input and the stream presents it in uniformly random order. Random order helps classical algorithms on many problems, starting with quantile estimation by Guha and McGregor [17 ] . For maximum matching in one semi-streaming pass, Konrad, Magniez, and Mathieu [KMM12] beat the approximation ratio 1/2 in random order, Bernstein [4 ] improved the ratio to almost 2/3, and Assadi and Behnezhad [1 ] went beyond 2/3. Monemizadeh, Muthukrishnan, Peng, and Sohler [MMPS17] showed that every constant-query testable property of bounded-degree graphs can be tested in constant space in random order. Peng and Sohler [PS18] estimate the number of connected components, the weight of a minimum spanning tree, and the maximum independent set size of planar graphs in space that does not depend on the size of the graph. McGregor and Vorotnikova [MV20] count triangles in random order with O ~ ( m / T ) \widetilde{O}(m/\sqrt{T}) O ( m / T ) space, and Saxena, Singer, Sudan, and Velusamy [SSSV23] approximate Max-DiCut in logarithmic space beyond the ratio 4/9, which needs Ω ( n ) \Omega(\sqrt{n}) Ω ( n ) space in adversarial order [9 ] .
Lower bounds in random order are harder to prove. Chakrabarti, Jayram, and Pătraşcu [10 ] prove tight bounds for selection. The standard tool is the robust communication model of Chakrabarti, Cormode, and McGregor [8 ] . In this model the input is split among the players at random, and a protocol only needs to succeed on average over the split. A random-order stream can be cut into consecutive pieces, so a one-pass algorithm gives a one-way robust protocol, and robust communication lower bounds become random-order space lower bounds. Chakrabarti, Cormode, and McGregor prove such bounds for disjointness, Gap Hamming Distance, and Index, with consequences for frequency moments, distinct elements, entropy, and quantiles. Kapralov, Khanna, and Sudan [KKS15] show that beating a factor-2 approximation for Max-Cut needs Ω ~ ( n ) \widetilde{\Omega}(\sqrt{n}) Ω ( n ) space even in random order. Saxena, Singer, Sudan, and Velusamy [SSSV23] extend this to a class of constraint satisfaction problems: if the satisfying assignments of the constraints support a one-wise independent distribution, then every non-trivial approximation needs Ω ( n ) \Omega(\sqrt{n}) Ω ( n ) space even in random order. Chiplunkar, Kallaugher, Kapralov, and Price [11 ] prove lower bounds for Streaming-Cycles, a random-order version of Boolean Hidden Hypermatching, and apply them to component collection and random-walk generation in almost random order.
Assadi and Sundaresan [2 ] prove that Noisy Gap Cycle needs Ω ( n ) \Omega(n) Ω ( n ) robust one-way classical communication once the cycle length exceeds a large constant times log n \log n log n . A hybrid argument reduces it to a Hidden XOR problem on a random edge partition, which they bound with a KKL-type inequality. Through classical reductions, this gives 2 Ω ( 1 / ϵ ) 2^{\Omega(1/\epsilon)} 2 Ω ( 1/ ϵ ) random-order space lower bounds for estimating connected components, minimum spanning tree weight, matching size, and independent set size, and for random-walk generation. For connected components, minimum spanning tree weight, and independent set size, these bounds complement the algorithms of Peng and Sohler, and the one for connected components settles a conjecture of theirs. All of these lower bounds are for classical algorithms. We make explicit the Block Hidden XOR problem that is implicit in their argument, and prove a quantum lower bound for it with the matrix hypercontractive inequality of Ben-Aroya, Regev, and de Wolf [6 ] , as Shi, Wu, and Yu [SWY15] did for Boolean Hidden Hypermatching (§ 7 ).
Consumable quantum data
Hidden Matching [BJK08] is the one-request problem on which ARHM is built. Gilboa, Jain, and McClean [15 ] ask how the cost of one-way quantum communication grows when Alice’s single message must answer m m m requests about the same input. They call a problem consumable when this cost grows polynomially in m m m , and relate this to an asymmetric direct sum property, in which Alice has one input and only the requests multiply. They state the m m m -request problem with m m m players who receive the message and may communicate, and note that their lower bound also holds in the stronger model with one player who holds all m m m requests. Our lower bounds are for the one-player model, so they apply to both. For Multiple Hidden Matching they prove an Ω ( m ) \Omega(\sqrt{m}) Ω ( m ) qubit lower bound for m ≤ N / 2 m \le N/2 m ≤ N /2 , for a fixed list of distinct matchings, and ask whether it can be raised to Ω ( m ) \Omega(m) Ω ( m ) , or even Ω ( m log N ) \Omega(m \log N) Ω ( m log N ) , when m ≪ N m \ll\sqrt{N} m ≪ N . We prove Ω ( m ) \Omega(m) Ω ( m ) for m ≤ N 1 / 2 − δ m \le N^{1/2-\delta} m ≤ N 1/2 − δ when all requests are given at once (theorem 6.7), and up to m = N m = \sqrt{N} m = N when they arrive one at a time (corollary 6.13). The m log N m \log N m log N question remains open.
Quantum oracle sketching
Quantum oracle sketching, introduced by Zhao et al. [ZZN+26], builds a coherent operation from a stream of classical samples. For a Boolean function, each sample x x x applies a small phase rotation on the basis state ∣ x ⟩ |x\rangle ∣ x ⟩ . Because every x x x appears with roughly the same frequency, these rotations add up to the phase oracle. Their applications include linear systems, classification, and dimension reduction, all processed by a quantum device far smaller than the data. ARHM’s phase updates use the same accumulation, specialized to Boolean coordinates.
The two settings differ in two ways. First, their samples are independent draws, and correlated samples cost them a factor they call the repetition number. Our updates instead form a fixed multiset, with each coordinate repeated a fixed number of times and presented in random order. Second, each of their oracle queries consumes its own batch of samples, but the algorithm makes the queries at times it chooses. In ARHM the requests arrive in the stream, so the algorithm must keep a ready state whenever a request might come, while new states are still being built from the data in between.
Concurrent work
Independently and concurrently, Bouland, Ding, and Jain [3 ] prove the separations described in § 1.3 . In their problems the input itself is random, the quantum algorithms work in every order, and the classical lower bounds are proved directly for read-once branching programs, because the random order destroys the communication structure that earlier lower bounds for Code Intersection rely on. Their exponential separations are for random inputs, and ours are for worst-case inputs given in random order. ARHM gives an exponential separation between quantum and classical memory of a different kind: the input is fixed by an adversary, every request must be answered on arrival, and the quantum advantage needs the random order. We also compare two orders of the same stream for quantum algorithms, and find that data that keeps arriving reduces the memory needed to answer online requests.
Preliminaries and models
Notation. We write [ n ] = { 1 , … , n } [n] = \{1, \ldots, n\} [ n ] = { 1 , … , n } . Logarithms are base two, written log. The natural logarithm ln appears only inside calculations with exponentials, such as tail bounds. Entropy H ( ⋅ ) H(\cdot) H ( ⋅ ) , binary entropy h 2 ( ⋅ ) h_2(\cdot) h 2 ( ⋅ ) and mutual information I ( ⋅ : ⋅ ) I(\cdot: \cdot) I ( ⋅ : ⋅ ) are in bits. The notation O ~ \widetilde{O} O hides polylogarithmic factors in the parameters of the statement at hand. Letters are local to their section. The number of requests is m m m both in the stream of § 5 and in the communication problems of § 6 , and the number of requests after a cut is s s s (remark 5.15).
Streams, order, and correctness
Our results use two kinds of streams. ARHM has repeated coordinate updates and requests that must be answered immediately, and we compare random order with the order in which all updates come first. For NGC, each edge appears once (except in § 7.4 ), and the decision is output after the pass.
Random order. A random-order input is a fixed multiset of classical items whose occurrences are labeled, so that repetitions are distinguishable in the probability space. The stream is a uniformly random permutation of the occurrences. The labels are visible to the algorithm only when the problem’s input includes them: ARHM includes update labels and request tags (though the labels are not used by our algorithms), while an NGC algorithm sees only edges, so R R R copies of an edge are indistinguishable to it.
Correctness. A streaming guarantee with error η \eta η requires success probability at least 1 − η 1-\eta 1 − η for every allowed input, averaged over the algorithm’s randomness and measurement outcomes, and, in random order, over the permutation. A communication guarantee is worst-case if it holds for every input pair, and distributional if it holds on average over a stated input distribution.
Quantum streaming and space
The model. We use the quantum streaming model of Kallaugher, Parekh, and Voronova [PKV25]. The input stream is classical and is read one item at a time. A quantum streaming algorithm consists of an array of qubits and a classical algorithm that, for every item processed, chooses a quantum circuit and applies it to the qubits. Pre-processing and post-processing are allowed. Measurements may happen at intermediate points of the stream: in general they cannot be deferred to the end, because which measurements are performed may depend on the items seen, and remembering those items would cost space.
Space. As in [PKV25], space is the number of qubits plus the number of bits used by the classical algorithm. Answers written to the write-only output are not counted toward memory. The space of an algorithm is the maximum of its memory over all points of the stream, inputs, legal orders, random choices and measurement outcomes. We write S o r d , η Q ( P ) S^{Q}_{\mathrm{ord},\eta}(P) S ord , η Q ( P ) and S o r d , η C ( P ) S^{C}_{\mathrm{ord},\eta}(P) S ord , η C ( P ) for the minimum quantum and classical space of an algorithm for problem P P P under the order promise ord with error at most η \eta η .
One-way quantum communication
A one-way communication problem is given by a relation R ⊆ X × Y × Z \mathcal{R} \subseteq\mathcal{X} \times\mathcal{Y} \times\mathcal{Z} R ⊆ X × Y × Z . Alice receives an input x ∈ X x \in\mathcal{X} x ∈ X and Bob an input y ∈ Y y \in\mathcal{Y} y ∈ Y . Alice sends one message to Bob, and Bob must output some z ∈ Z z \in\mathcal{Z} z ∈ Z with ( x , y , z ) ∈ R (x,y,z) \in\mathcal{R} ( x , y , z ) ∈ R . Several outputs may be correct for the same inputs: in Hidden Matching (definition 4.5), for example, Bob may output any edge of his matching with its parity. When Bob must answer several requests, his output is correct only if all of its answers are.
Alice and Bob share no prior entanglement. Alice’s message is a state of dimension at most 2 q 2^q 2 q that includes any transmitted classical information, and we say it has q q q qubits. Independent public classical coins may be shared. Bob’s workspace is unrestricted, but he starts with no information about Alice’s input beyond his own input and the public coins. Alice’s encoding cannot depend on Bob’s input. We write Q → ( R ) Q^{\rightarrow}(\mathcal{R}) Q → ( R ) for the one-way quantum communication complexity of R \mathcal{R} R , the smallest q q q for which some protocol is correct with probability at least 2 / 3 2/3 2/3 on every pair of inputs (§ 4.1 ). Classical protocols are the case in which the message is a string of q q q bits.
We use the following standard facts.
Fact 4.1 (Information facts). Let X X X be a classical input, R R R public coins independent of X X X , and Q Q Q a q q q -qubit message computed from X X X , R R R and private randomness.
Dimension bound. I ( X : Q ∣ R ) ≤ q I(X:Q \mid R) \le q I ( X : Q ∣ R ) ≤ q .
Data processing. If O O O is computed from ( Q , R , Z ) (Q,R,Z) ( Q , R , Z ) , where Z Z Z is independent of ( X , Q , R ) (X,Q,R) ( X , Q , R ) , then I ( X : O ∣ Z ) ≤ I ( X : Q , R ∣ Z ) = I ( X : Q , R ) = I ( X : Q ∣ R ) I(X:O \mid Z) \le I(X:Q,R \mid Z) = I(X:Q,R) = I(X:Q \mid R) I ( X : O ∣ Z ) ≤ I ( X : Q , R ∣ Z ) = I ( X : Q , R ) = I ( X : Q ∣ R ) . The last step uses the chain rule and the independence of R R R and X X X .
Chain rule. I ( X : A , B ∣ C ) = I ( X : A ∣ C ) + I ( X : B ∣ A , C ) I(X:A,B \mid C) = I(X:A \mid C) + I(X:B \mid A,C) I ( X : A , B ∣ C ) = I ( X : A ∣ C ) + I ( X : B ∣ A , C ) .
Fact 4.2 (Distinguishing two states). Let ρ \rho ρ and σ \sigma σ be density matrices of the same dimension. If a state is ρ \rho ρ or σ \sigma σ , each with probability 1 / 2 1/2 1/2 , then the optimal probability of telling which one it is, by any measurement, is 1 2 + 1 4 ∥ ρ − σ ∥ t r \frac{1}{2} + \frac{1}{4}\lVert\rho- \sigma\rVert_{\mathrm{tr}} 2 1 + 4 1 ∥ ρ − σ ∥ tr , where ∥ A ∥ t r = Tr ∣ A ∣ \lVert A \rVert_{\mathrm{tr}} = \operatorname{Tr}|A| ∥ A ∥ tr = Tr ∣ A ∣ is the trace norm.
Probability tools
Fact 4.3 (Chernoff bounds). Let Y Y Y be an integer-valued random variable that is a sum of independent random variables with values in { 0 , 1 } \{0,1\} { 0 , 1 } , and let ν = E [ Y ] \nu= \mathbb{E}[Y] ν = E [ Y ] be its mean, a nonnegative real number. Then, for every real 0 < η ≤ 1 0 < \eta\le1 0 < η ≤ 1 ,
P [ Y ≥ ( 1 + η ) ν ] ≤ e − η 2 ν / 3 , P [ Y ≤ ( 1 − η ) ν ] ≤ e − η 2 ν / 2 . \mathbb{P}[Y \ge(1+\eta)\nu] \le e^{-\eta^2\nu/3}, \qquad\mathbb{P}[Y \le(1-\eta)\nu] \le e^{-\eta^2\nu/2}. P [ Y ≥ ( 1 + η ) ν ] ≤ e − η 2 ν /3 , P [ Y ≤ ( 1 − η ) ν ] ≤ e − η 2 ν /2 . In particular, P [ Y ≥ 2 ν ] ≤ e − ν / 3 \mathbb{P}[Y \ge2\nu] \le e^{-\nu/3} P [ Y ≥ 2 ν ] ≤ e − ν /3 .
Fact 4.4 (Sampling without replacement). Draw a uniform sample without replacement from a population of M ≥ 2 M \ge2 M ≥ 2 items, a fraction p p p of which are marked, and let I a I_a I a indicate that position a a a of the sample holds a marked item. Each I a I_a I a has mean p p p , and the indicators are pairwise negatively correlated: for two distinct positions a ≠ b a \ne b a = b ,
E [ I a I b ] = p ⋅ p M − 1 M − 1 ≤ p 2 , Cov ( I a , I b ) = − p ( 1 − p ) M − 1 ≤ 0. \mathbb{E}[I_a I_b] = p \cdot\frac{pM-1}{M-1} \le p^2, \qquad\operatorname{Cov}(I_a,I_b) = -\frac{p(1-p)}{M-1} \le0. E [ I a I b ] = p ⋅ M − 1 pM − 1 ≤ p 2 , Cov ( I a , I b ) = − M − 1 p ( 1 − p ) ≤ 0. Hence a sum of h h h of them has mean h p hp h p and variance at most h p hp h p .
The phase encoding for Hidden Matching
Definition 4.5 (Hidden Matching problem). Let N N N be even. In the Hidden Matching problem H M N \mathrm{HM}_N HM N , Alice receives a bit string x ∈ { 0 , 1 } N x \in\{0,1\}^{N} x ∈ { 0 , 1 } N that can be viewed as Boolean labels on the vertices of an N N N -vertex graph. Bob receives a perfect matching M M M on [ N ] [N] [ N ] . After receiving a message from Alice, Bob must output an edge { u , v } ∈ M \{u,v\} \in M { u , v } ∈ M and its parity x u ⊕ x v x_u \oplus x_v x u ⊕ x v .
Theorem 4.6 ([BJK08]). There exists a quantum one-way protocol solving H M N \mathrm{HM}_N HM N with O ( log N ) O(\log N) O ( log N ) qubits of communication, while any classical one-way communication protocol solving H M N \mathrm{HM}_N HM N requires Ω ( N ) \Omega(\sqrt{N}) Ω ( N ) bits of communication.
The quantum protocol uses the phase state. For even N N N and x ∈ { 0 , 1 } N x \in\{0,1\}^{N} x ∈ { 0 , 1 } N , let
∣ ψ x ⟩ = 1 N ∑ j = 1 N ( − 1 ) x j ∣ j ⟩ . |\psi_x\rangle= \frac{1}{\sqrt{N}} \sum_{j=1}^{N} (-1)^{x_j}|j\rangle. ∣ ψ x ⟩ = N 1 j = 1 ∑ N ( − 1 ) x j ∣ j ⟩ .
Alice sends ∣ ψ x ⟩ |\psi_x\rangle ∣ ψ x ⟩ . Given his perfect matching M M M , Bob measures it in the orthonormal basis
{ ∣ u ⟩ + ( − 1 ) b ∣ v ⟩ 2 : { u , v } ∈ M , b ∈ { 0 , 1 } } . \left\{ \frac{|u\rangle+ (-1)^b|v\rangle}{\sqrt{2}} : \{u,v\} \in M,\ b \in\{0,1\} \right\}. { 2 ∣ u ⟩ + ( − 1 ) b ∣ v ⟩ : { u , v } ∈ M , b ∈ { 0 , 1 } } .
The outcome ( { u , v } , b ) (\{u,v\},b) ({ u , v } , b ) has amplitude 1 2 N ( ( − 1 ) x u + ( − 1 ) b + x v ) \frac{1}{\sqrt{2N}}\left((-1)^{x_u} + (-1)^{b+x_v}\right) 2 N 1 ( ( − 1 ) x u + ( − 1 ) b + x v ) , which is 0 0 0 when b ≠ x u ⊕ x v b \ne x_u \oplus x_v b = x u ⊕ x v . So each edge of M M M is returned with probability 2 / N 2/N 2/ N , together with its correct parity: an exact one-request protocol with ⌈ log N ⌉ \lceil\log N\rceil ⌈ log N ⌉ qubits [BJK08].
Boolean Hidden Matching
Definition 4.7 (Boolean Hidden Matching). Let n n n be even. In the Boolean Hidden Matching problem B H M n \mathrm{BHM}_n BHM n , Alice receives a bit string x ∈ { 0 , 1 } n x \in\{0,1\}^{n} x ∈ { 0 , 1 } n , and Bob receives a perfect matching M M M on [ n ] [n] [ n ] and a bit z u v ∈ { 0 , 1 } z_{uv} \in\{0,1\} z uv ∈ { 0 , 1 } for each edge { u , v } ∈ M \{u,v\} \in M { u , v } ∈ M . It is promised that either z u v = x u ⊕ x v z_{uv} = x_u \oplus x_v z uv = x u ⊕ x v for every edge of M M M , or z u v ≠ x u ⊕ x v z_{uv} \ne x_u \oplus x_v z uv = x u ⊕ x v for every edge of M M M . After receiving one message from Alice, Bob must say which case holds. In the streaming version, the stream consists of one bit item ( v , x v ) (v,x_v) ( v , x v ) for each v ∈ [ n ] v \in[n] v ∈ [ n ] and one edge item ( u , v , z u v ) (u,v,z_{uv}) ( u , v , z uv ) for each edge of M M M , and the answer is output after the pass.
One-way classical protocols for B H M n \mathrm{BHM}_n BHM n need Ω ( n ) \Omega(\sqrt{n}) Ω ( n ) bits [16 ] , while the phase state of § 4.5 solves it with O ( log n ) O(\log n) O ( log n ) qubits. In a stream whose bit items all come first, this gives the same separation between classical and quantum space [16 PKV25] . Boolean Hidden Matching is the problem behind the single-pass quantum advantages for graph and constraint problems (§ 1 ). In random order it is easy. This is folklore, and we record the argument in section F.
Atomized Replenishable Hidden Matching
In this section we introduce Atomized Replenishable Hidden Matching (ARHM) and prove the three-way separation of theorem 5.4. § 5.5 then shows consumability and replenishment in natural settings: a Hidden Matching answer read as a regression sample (remark 5.18), and replenishment in a natural algorithm (§ 5.5.1 ).
Definition 5.1 (Atomized Replenishable Hidden Matching). Let N N N be even, and let F = { F 1 , … , F N − 1 } \mathcal{F} = \{F_1,\ldots,F_{N-1}\} F = { F 1 , … , F N − 1 } be a fixed public one-factorization of the complete graph K N K_N K N : each factor F k F_k F k is a perfect matching on [ N ] [N] [ N ] , and each unordered pair of elements of [ N ] [N] [ N ] belongs to exactly one factor.
Let 2 ≤ m ≤ N 2 \le m \le\sqrt{N} 2 ≤ m ≤ N be the number of requests, and let L = ( 100 m ) 2 L=(100m)^2 L = ( 100 m ) 2 be the number of copies of each coordinate. For x ∈ { 0 , 1 } N x \in\{0,1\}^N x ∈ { 0 , 1 } N and a request list ( M 1 , … , M m ) ∈ F m (M_1,\ldots,M_m) \in\mathcal{F}^m ( M 1 , … , M m ) ∈ F m , the stream A R H M N , m \mathrm{ARHM}_{N,m} ARHM N , m consists of the N L NL N L labeled updates ( j , x j , ℓ ) (j,x_j,\ell) ( j , x j , ℓ ) , one for each j ∈ [ N ] j \in[N] j ∈ [ N ] and ℓ ∈ [ L ] \ell\in[L] ℓ ∈ [ L ] , and the m m m labeled requests ( t , k t ) (t,k_t) ( t , k t ) , one for each t ∈ [ m ] t \in[m] t ∈ [ m ] . The request ( t , k t ) (t,k_t) ( t , k t ) names the factor M t = F k t M_t=F_{k_t} M t = F k t only by its index k t ∈ [ N − 1 ] k_t \in[N-1] k t ∈ [ N − 1 ] . When the request ( t , k t ) (t,k_t) ( t , k t ) arrives, the algorithm must output, before the next stream item, an edge e t = { u t , v t } ∈ M t e_t=\{u_t,v_t\}\in M_t e t = { u t , v t } ∈ M t and a bit b t b_t b t , and the answer is correct if b t = x u t ⊕ x v t b_t=x_{u_t}\oplus x_{v_t} b t = x u t ⊕ x v t . Success means that all m m m answers are correct.
Answers go to the write-only output (§ 4.2 ) and need not be stored. The value of L L L matters only for the quantum upper bound, which fixes the constant 100 (§ 5.1 ).
Remark 5.2 (Why answers are due on arrival). If a request could be held open while updates keep arriving, a classical algorithm could pick a uniform pair of the requested matching and wait for both of its coordinates, with O ( log N ) O(\log N) O ( log N ) bits per open request. So the rule that each request is answered before the next stream item is essential.
Orders. The stream has N L + m NL+m N L + m items, and the labels ℓ \ell ℓ and t t t make them distinct. In random order they arrive in a uniformly random permutation (§ 4.1 ). Two features of ARHM make this order unusual. The data is repeated: the L L L copies of each coordinate are spread over the whole stream, so updates of every coordinate keep arriving until its end. And the requests arrive during the stream, at uniformly random positions among the updates, and each must be answered where it appears. An algorithm has error at most 1 / 3 1/3 1/3 in random order if, for every x x x and every request list, all its answers are correct with probability at least 2 / 3 2/3 2/3 over the permutation, its randomness and its measurements. The algorithms in this section never read the labels ℓ \ell ℓ and t t t .
The other order we consider is the following.
Definition 5.3 (Data-first order). All N L NL N L updates precede all m m m requests, which are then revealed and answered one at a time. Success is required for every input, request list, and order of the updates.
Theorem 5.4 (Three-way separation). For every even N N N and every 2 ≤ m ≤ N 2 \le m \le\sqrt{N} 2 ≤ m ≤ N , the stream A R H M N , m \mathrm{ARHM}_{N,m} ARHM N , m , of length N L + m = Θ ( N m 2 ) NL+m=\Theta(Nm^2) N L + m = Θ ( N m 2 ) , satisfies
S r a n d , 1 / 3 Q ( A R H M N , m ) = O ( log N log m ) , S^{\mathrm{Q}}_{\mathrm{rand},1/3}(\mathrm{ARHM}_{N,m})=O(\log N\log m), S rand , 1/3 Q ( ARHM N , m ) = O ( log N log m ) , S r a n d , 1 / 3 C ( A R H M N , m ) = Ω ( N ) , S^{\mathrm{C}}_{\mathrm{rand},1/3}(\mathrm{ARHM}_{N,m})=\Omega(\sqrt{N}), S rand , 1/3 C ( ARHM N , m ) = Ω ( N ) , S d a t a - f i r s t , 1 / 3 Q ( A R H M N , m ) = Ω ( m ) . S^{\mathrm{Q}}_{\mathrm{data\text{-}first},1/3}(\mathrm{ARHM}_{N,m})=\Omega(m). S data - first , 1/3 Q ( ARHM N , m ) = Ω ( m ) .
The two lower bounds do not use the value of L L L : they hold for every number L ≥ 1 L \ge1 L ≥ 1 of copies of each coordinate. Only the upper bound needs L L L to be a large constant times m 2 m^2 m 2 .
Proof outline. We prove the three bounds separately. For the upper bound (§ 5.1 ), a quantum algorithm uses the repeated updates to keep rebuilding the phase states that the requests consume. Both lower bounds go through one-way communication: the stream is cut into two parts, and the memory at the cut becomes Alice’s message (lemma 5.10). For the classical bound (§ 5.3 ), the cut is just before the first request, and Bob must solve one instance of Hidden Matching, which needs Ω ( N ) \Omega(\sqrt{N}) Ω ( N ) classical bits. For the data-first bound (§ 5.4 ), the cut is after the last update, and Bob must answer m m m fresh requests one at a time, which needs Ω ( m ) \Omega(m) Ω ( m ) qubits by the sequential consumability bound (corollary 6.13).
Random-order quantum upper bound: rebuilding from later data
Recall from § 4 the phase state ∣ ψ x ⟩ = N − 1 / 2 ∑ j ( − 1 ) x j ∣ j ⟩ |\psi_x\rangle= N^{-1/2}\sum_j(-1)^{x_j}|j\rangle ∣ ψ x ⟩ = N − 1/2 ∑ j ( − 1 ) x j ∣ j ⟩ , which answers one matching request exactly (§ 4.5 ).
Our new algorithm keeps approximate copies of ∣ ψ x ⟩ |\psi_x\rangle ∣ ψ x ⟩ ready for the requests, in two banks of registers: one answers requests while the other is built from the current batch of updates, and the two exchange roles when the batch ends.
Let μ = 100 m \mu=100m μ = 100 m , so that L = μ 2 L=\mu^2 L = μ 2 . Partition the N L = μ 2 N NL=\mu^2N N L = μ 2 N updates, in arrival order, into μ \mu μ batches of μ N \mu N μ N updates each. Requests do not count toward a batch. So μ \mu μ is the expected number of copies of each coordinate in one batch. Starting from the uniform state, each update adds a small phase:
∣ + N ⟩ = 1 N ∑ j = 1 N ∣ j ⟩ , V j , x j = exp ( i π x j μ ∣ j ⟩ ⟨ j ∣ ) . |+_N\rangle=\frac{1}{\sqrt{N}}\sum_{j=1}^{N}|j\rangle,\qquad V_{j,x_j}=\exp\left(\frac{i\pi x_j}{\mu}|j\rangle\langle j|\right). ∣ + N ⟩ = N 1 j = 1 ∑ N ∣ j ⟩ , V j , x j = exp ( μ iπ x j ∣ j ⟩ ⟨ j ∣ ) .
Note that V j , 0 = I V_{j,0}=I V j , 0 = I : only coordinates with x j = 1 x_j=1 x j = 1 change the state.
Algorithm. Our algorithm will maintain a READY bank and a BUILD bank, each holding at most P = ⌈ 20 log m ⌉ P=\lceil20\log m\rceil P = ⌈ 20 log m ⌉ registers of dimension N N N , and an update counter h h h .
Initialize. Leave READY empty, prepare P P P copies of ∣ + N ⟩ |+_N\rangle ∣ + N ⟩ in BUILD, and set h = 0 h=0 h = 0 .
Update ( j , x j , ℓ ) (j,x_j,\ell) ( j , x j , ℓ ) . Apply V j , x j V_{j,x_j} V j , x j to each BUILD register and increment h h h . When h = μ N h=\mu N h = μ N , discard the old READY bank, make BUILD the new READY bank, prepare a fresh BUILD bank, and reset h = 0 h=0 h = 0 .
Request ( t , k t ) (t,k_t) ( t , k t ) . If READY has no unused register, declare failure. Otherwise measure one unused register in the basis
{ ∣ u ⟩ + ( − 1 ) b ∣ v ⟩ 2 : { u , v } ∈ M t = F k t , b ∈ { 0 , 1 } } , \left\{\frac{|u\rangle+(-1)^b|v\rangle}{\sqrt{2}}:\{u,v\}\in M_t=F_{k_t},\ b\in\{0,1\}\right\}, { 2 ∣ u ⟩ + ( − 1 ) b ∣ v ⟩ : { u , v } ∈ M t = F k t , b ∈ { 0 , 1 } } ,
and output the observed edge and bit. BUILD and h h h are unchanged.
Preparing and discarding registers. Discarding a register and preparing ∣ + N ⟩ |+_N\rangle ∣ + N ⟩ in its place erases the register, so it cannot be unitary, but one measurement suffices. Measure the register in the Fourier basis of C N \mathbb{C}^N C N , which contains ∣ + N ⟩ |+_N\rangle ∣ + N ⟩ . Every vector of this basis differs from ∣ + N ⟩ |+_N\rangle ∣ + N ⟩ only by phases on the standard basis states, so a diagonal unitary, chosen by the outcome, maps the observed vector to ∣ + N ⟩ |+_N\rangle ∣ + N ⟩ . The outcome takes ⌈ log N ⌉ \lceil\log N\rceil ⌈ log N ⌉ classical bits and is forgotten right away. Initialization prepares registers in the same way, and the old READY bank, partly measured by requests, is reset register by register and becomes the new BUILD bank, so the algorithm never holds more than 2 P 2P 2 P registers.
The state of a ready bank. For a batch, let κ j \kappa_j κ j be the number of its updates to coordinate j j j , and κ = ( κ 1 , … , κ N ) \kappa=(\kappa_1,\ldots,\kappa_N) κ = ( κ 1 , … , κ N ) . The phase updates commute, so every register built from the batch ends in
∣ ϕ κ ( x ) ⟩ = 1 N ∑ j = 1 N e i π κ j x j / μ ∣ j ⟩ . |\phi_\kappa(x)\rangle=\frac{1}{\sqrt{N}}\sum_{j=1}^{N}e^{i\pi\kappa_jx_j/\mu}|j\rangle. ∣ ϕ κ ( x )⟩ = N 1 j = 1 ∑ N e iπ κ j x j / μ ∣ j ⟩ .
If κ j = μ \kappa_j=\mu κ j = μ for all j j j , this is ∣ ψ x ⟩ |\psi_x\rangle ∣ ψ x ⟩ exactly. Conditional on κ \kappa κ , a ready bank is in the product state ∣ ϕ κ ( x ) ⟩ ⊗ P |\phi_\kappa(x)\rangle^{\otimes P} ∣ ϕ κ ( x ) ⟩ ⊗ P , so a register that serves a request is in ∣ ϕ κ ( x ) ⟩ |\phi_\kappa(x)\rangle ∣ ϕ κ ( x )⟩ however many registers of its bank were measured before. Without the conditioning, the registers of one bank are correlated, since they share κ \kappa κ , so their errors are not independent, but the analysis below never needs them to be. Thus it suffices to analyze one register.
Lemma 5.5 (Rebuild accuracy). Fix x ∈ { 0 , 1 } N x \in\{0,1\}^{N} x ∈ { 0 , 1 } N , a perfect matching M M M , and a set of μ N \mu N μ N positions in the uniformly random order of the N L NL N L updates. Let perr ( κ ) \operatorname{perr}(\kappa) perr ( κ ) be the probability that measuring ∣ ϕ κ ( x ) ⟩ |\phi_{\kappa}(x)\rangle ∣ ϕ κ ( x )⟩ in the basis of M M M returns a wrong parity, where κ \kappa κ counts the updates at those positions. Then E [ perr ( κ ) ] ≤ π 2 / μ \mathbb{E}[\operatorname{perr}(\kappa)] \le\pi^{2}/\mu E [ perr ( κ )] ≤ π 2 / μ , over the random order.
Proof. Write π κ j x j / μ = π x j + δ j \pi\kappa_jx_j/\mu=\pi x_j+\delta_j π κ j x j / μ = π x j + δ j , where δ j = π x j ( κ j − μ ) / μ \delta_j=\pi x_j(\kappa_j-\mu)/\mu δ j = π x j ( κ j − μ ) / μ . The outcome ( ∣ u ⟩ + ( − 1 ) b ∣ v ⟩ ) / 2 (|u\rangle+(-1)^b|v\rangle)/\sqrt{2} ( ∣ u ⟩ + ( − 1 ) b ∣ v ⟩) / 2 has probability
1 2 N ∣ e i ( π x u + δ u ) + ( − 1 ) b e i ( π x v + δ v ) ∣ 2 = 1 + ( − 1 ) b cos ( π ( x u − x v ) + δ u − δ v ) N = 1 + ( − 1 ) b ⊕ x u ⊕ x v cos ( δ u − δ v ) N . \frac{1}{2N}\left|e^{i(\pi x_u+\delta_u)}+(-1)^b e^{i(\pi x_v+\delta_v)}\right|^2
=\frac{1+(-1)^b\cos(\pi(x_u-x_v)+\delta_u-\delta_v)}{N}
=\frac{1+(-1)^{b\oplus x_u\oplus x_v}\cos(\delta_u-\delta_v)}{N}. 2 N 1 e i ( π x u + δ u ) + ( − 1 ) b e i ( π x v + δ v ) 2 = N 1 + ( − 1 ) b cos ( π ( x u − x v ) + δ u − δ v ) = N 1 + ( − 1 ) b ⊕ x u ⊕ x v cos ( δ u − δ v ) .
So the wrong bit b = 1 ⊕ x u ⊕ x v b=1\oplus x_u\oplus x_v b = 1 ⊕ x u ⊕ x v has probability ( 1 − cos ( δ u − δ v ) ) / N (1-\cos(\delta_u-\delta_v))/N ( 1 − cos ( δ u − δ v )) / N , and
perr ( κ ) = 1 N ∑ { u , v } ∈ M ( 1 − cos ( δ u − δ v ) ) (1) \operatorname{perr}(\kappa)=\frac{1}{N}\sum_{\{u,v\}\in M}(1-\cos(\delta_u-\delta_v)) \tag*{(1)} perr ( κ ) = N 1 { u , v } ∈ M ∑ ( 1 − cos ( δ u − δ v )) (1)
≤ 1 N ∑ { u , v } ∈ M ( δ u 2 + δ v 2 ) (2) \le\frac{1}{N}\sum_{\{u,v\}\in M}(\delta_u^2+\delta_v^2) \tag*{(2)} ≤ N 1 { u , v } ∈ M ∑ ( δ u 2 + δ v 2 ) (2)
= 1 N ∑ j = 1 N δ j 2 ≤ π 2 N μ 2 ∑ j = 1 N ( κ j − μ ) 2 , (3) \begin{aligned}
=\frac{1}{N}\sum_{j=1}^{N}\delta_j^2 \\
&\le\frac{\pi^2}{N\mu^2}\sum_{j=1}^{N}(\kappa_j-\mu)^2, \tag*{(3)}
\end{aligned} = N 1 j = 1 ∑ N δ j 2 ≤ N μ 2 π 2 j = 1 ∑ N ( κ j − μ ) 2 , (3)
using (i) 1 − cos z ≤ z 2 / 2 1-\cos z\le z^2/2 1 − cos z ≤ z 2 /2 and ( z − z ′ ) 2 ≤ 2 z 2 + 2 z ′ 2 (z-z')^2\le2z^2+2z'^2 ( z − z ′ ) 2 ≤ 2 z 2 + 2 z ′2 , (ii) every vertex lies in exactly one edge of M M M , and (iii) x j 2 ≤ 1 x_j^2\le1 x j 2 ≤ 1 . Now κ j \kappa_j κ j is a sum of μ N \mu N μ N indicators, one per position, that the position holds coordinate j j j . Each has mean L / ( N L ) = 1 / N L/(NL)=1/N L / ( N L ) = 1/ N , and two distinct positions both hold j j j with probability L ( L − 1 ) / ( N L ( N L − 1 ) ) ≤ 1 / N 2 L(L-1)/(NL(NL-1))\le1/N^2 L ( L − 1 ) / ( N L ( N L − 1 )) ≤ 1/ N 2 , so the indicators are pairwise negatively correlated (fact 4.4). Hence E [ κ j ] = μ \mathbb{E}[\kappa_j]=\mu E [ κ j ] = μ and E [ ( κ j − μ ) 2 ] = Var ( κ j ) ≤ μ \mathbb{E}[(\kappa_j-\mu)^2]=\operatorname{Var}(\kappa_j)\le\mu E [( κ j − μ ) 2 ] = Var ( κ j ) ≤ μ , where the expectation is over the uniformly random order of the updates, the only randomness in κ \kappa κ . Taking this expectation in the bound on perr ( κ ) \operatorname{perr}(\kappa) perr ( κ ) and summing over j j j gives E [ perr ( κ ) ] ≤ π 2 N μ / ( N μ 2 ) = π 2 / μ \mathbb{E}[\operatorname{perr}(\kappa)]\le\pi^2N\mu/(N\mu^2)=\pi^2/\mu E [ perr ( κ )] ≤ π 2 N μ / ( N μ 2 ) = π 2 / μ .
Random interleaving limits requests between rebuilds
The random order can be generated by three independent choices: the order of the labeled updates, the order of the labeled requests, and a uniform interleaving of N L NL N L update symbols with m m m request symbols. The first choice determines the states prepared by the algorithm. The other two, which we call the schedule , determine which bank serves each request and which matching it asks for.
For 0 ≤ j ≤ N L 0\le j\le NL 0 ≤ j ≤ N L , let G j G_j G j be the number of requests that arrive after exactly j j j updates (gap j j j ). An interleaving is the same as the sequence ( G 0 , … , G N L ) (G_0,\ldots,G_{NL}) ( G 0 , … , G N L ) of these counts, which is any sequence of N L + 1 NL+1 N L + 1 nonnegative integers (zeros allowed) with sum m m m . Such a sequence is called a weak composition of m m m into N L + 1 NL+1 N L + 1 parts. A uniform interleaving is therefore a uniform weak composition. Bank β \beta β , the bank built by batch β \beta β , is ready after it and serves the following gaps:
gaps 0 , … , μ N − 1 0,\ldots,\mu N-1 0 , … , μ N − 1 : no bank is ready (the initial interval),
gaps β μ N , … , ( β + 1 ) μ N − 1 \beta\mu N,\ldots,(\beta+1)\mu N-1 β μ N , … , ( β + 1 ) μ N − 1 : bank β \beta β , for 1 ≤ β < μ 1\le\beta<\mu 1 ≤ β < μ ,
gap N L NL N L : bank μ \mu μ .
Every bank serves at most μ N \mu N μ N gaps. We write a k = a ( a + 1 ) ⋯ ( a + k − 1 ) a^k=a(a+1)\cdots(a+k-1) a k = a ( a + 1 ) ⋯ ( a + k − 1 ) for the rising factorial, with a 0 = 1 a^0=1 a 0 = 1 .
Lemma 5.6 (Requests in a set of gaps). Let Y Y Y be the number of requests in a fixed set J J J of at most μ N \mu N μ N gaps.
For 1 ≤ k ≤ m 1 \le k \le m 1 ≤ k ≤ m ,
P [ Y ≥ k ] ≤ ( m k ) ( μ N ) k ‾ ( N L + 1 ) k ‾ ≤ ( e 50 k ) k . \mathbb{P}[Y \ge k] \le\binom{m}{k}\frac{(\mu N)^{\overline{k}}}{(NL+1)^{\overline{k}}} \le\left(\frac{e}{50k}\right)^k. P [ Y ≥ k ] ≤ ( k m ) ( N L + 1 ) k ( μ N ) k ≤ ( 50 k e ) k . Proof. Adding gaps to J J J can only increase Y Y Y , so it suffices to prove the bound when ∣ J ∣ = μ N |J|=\mu N ∣ J ∣ = μ N . Note that Y ≥ k Y \ge k Y ≥ k if and only if ( Y k ) ≥ 1 \binom{Y}{k} \ge1 ( k Y ) ≥ 1 , so by Markov’s inequality
P [ Y ≥ k ] = P [ ( Y k ) ≥ 1 ] ≤ E [ ( Y k ) ] . \mathbb{P}[Y \ge k] = \mathbb{P}\left[\binom{Y}{k} \ge1\right] \le\mathbb{E}\left[\binom{Y}{k}\right]. P [ Y ≥ k ] = P [ ( k Y ) ≥ 1 ] ≤ E [ ( k Y ) ] . Let A A A be the set of requests whose gap lies in J J J , so Y = ∣ A ∣ Y=|A| Y = ∣ A ∣ . The requests are distinct, since they are labeled, and ( Y k ) \binom{Y}{k} ( k Y ) is the number of k k k -element subsets of A A A . So for every outcome
( Y k ) = ∑ T 1 [ T ⊆ A ] , \binom{Y}{k}=\sum_T 1[T\subseteq A], ( k Y ) = T ∑ 1 [ T ⊆ A ] , where T T T runs over the ( m k ) \binom{m}{k} ( k m ) sets of k k k requests. Thus
E [ ( Y k ) ] = ∑ T P [ every request in T has its gap in J ] . \mathbb{E}\left[\binom{Y}{k}\right]=\sum_T\mathbb{P}[\text{every request in }T\text{ has its gap in }J]. E [ ( k Y ) ] = T ∑ P [ every request in T has its gap in J ] . Fix T T T . The gap of a request is the number of updates before it, so it does not depend on the other requests. Hence the gaps of the requests in T T T are determined by the relative order of the N L NL N L updates and the k k k requests of T T T .
There are ( k + N L k ) \binom{k+NL}{k} ( k k + N L ) weak compositions of k k k into N L + 1 NL+1 N L + 1 parts. Those with G j = 0 G_j=0 G j = 0 for every j ∉ J j\notin J j ∈ / J are the weak compositions of k k k into the ∣ J ∣ = μ N |J|=\mu N ∣ J ∣ = μ N parts in J J J , and there are ( k + μ N − 1 k ) \binom{k+\mu N-1}{k} ( k k + μ N − 1 ) of them. So
P [ every request in T has its gap in J ] = ( k + μ N − 1 k ) ( k + N L k ) = ( μ N ) k ‾ ( N L + 1 ) k ‾ . \mathbb{P}[\text{every request in }T\text{ has its gap in }J]=\frac{\binom{k+\mu N-1}{k}}{\binom{k+NL}{k}}=\frac{(\mu N)^{\overline{k}}}{(NL+1)^{\overline{k}}}. P [ every request in T has its gap in J ] = ( k k + N L ) ( k k + μ N − 1 ) = ( N L + 1 ) k ( μ N ) k . This is the same for every T T T , and there are ( m k ) \binom{m}{k} ( k m ) sets T T T , which gives the first bound.
For the second bound, as k ≤ m ≤ μ N k\le m\le\mu N k ≤ m ≤ μ N , every factor of ( μ N ) k ‾ (\mu N)^{\overline{k}} ( μ N ) k is at most μ N + k ≤ 2 μ N \mu N+k\le2\mu N μ N + k ≤ 2 μ N , so ( μ N ) k ‾ ≤ ( 2 μ N ) k (\mu N)^{\overline{k}}\le(2\mu N)^k ( μ N ) k ≤ ( 2 μ N ) k . Every factor of ( N L + 1 ) k ‾ (NL+1)^{\overline{k}} ( N L + 1 ) k is at least N L NL N L , so ( N L + 1 ) k ‾ ≥ ( N L ) k (NL+1)^{\overline{k}}\ge(NL)^k ( N L + 1 ) k ≥ ( N L ) k . Also ( m k ) ≤ m k / k ! ≤ ( e m / k ) k \binom{m}{k}\le m^k/k!\le(em/k)^k ( k m ) ≤ m k / k ! ≤ ( e m / k ) k , since k ! ≥ ( k / e ) k k!\ge(k/e)^k k ! ≥ ( k / e ) k . Finally N L = μ 2 N NL=\mu^2N N L = μ 2 N , so μ N / ( N L ) = 1 / μ = 1 / ( 100 m ) \mu N/(NL)=1/\mu=1/(100m) μ N / ( N L ) = 1/ μ = 1/ ( 100 m ) . Together,
( m k ) ( μ N ) k ‾ ( N L + 1 ) k ‾ ≤ ( e m k ) k ( 2 μ N N L ) k = ( e m k ⋅ 2 100 m ) k = ( e 50 k ) k . \binom{m}{k}\frac{(\mu N)^{\overline{k}}}{(NL+1)^{\overline{k}}}
\le\left(\frac{em}{k}\right)^k\left(\frac{2\mu N}{NL}\right)^k
=\left(\frac{em}{k}\cdot\frac{2}{100m}\right)^k
=\left(\frac{e}{50k}\right)^k. ( k m ) ( N L + 1 ) k ( μ N ) k ≤ ( k e m ) k ( N L 2 μ N ) k = ( k e m ⋅ 100 m 2 ) k = ( 50 k e ) k .
Call a schedule good if no request arrives in the initial interval and no bank must serve more than P P P requests.
Lemma 5.7 (Good schedules). For m ≥ 2 m\ge2 m ≥ 2 , the schedule is not good with probability less than 3 / 100 3/100 3/100 .
Proof. If P ≥ m P\ge m P ≥ m , no bank can be exhausted, since a bank is exhausted when it serves more than P P P requests, which is impossible if the number of requests m m m is at most P P P .
Otherwise P + 1 ≤ m P+1\le m P + 1 ≤ m , and lemma 5.6 with k = P + 1 k=P+1 k = P + 1 bounds the probability that a given bank serves more than P P P requests by
( e 50 ( P + 1 ) ) P + 1 ≤ e − ( P + 1 ) ≤ e − 20 log m ≤ m − 20 , \left(\frac{e}{50(P+1)}\right)^{P+1}\le e^{-(P+1)}\le e^{-20\log m}\le m^{-20}, ( 50 ( P + 1 ) e ) P + 1 ≤ e − ( P + 1 ) ≤ e − 20 l o g m ≤ m − 20 ,
using e / 50 ≤ 1 / e e/50 \le1/e e /50 ≤ 1/ e and log m ≥ ln m \log m \ge\ln m log m ≥ ln m .
We need to bound the probability that some bank serves more than P P P requests. A union bound over the μ = 100 m \mu= 100m μ = 100 m banks gives at most 100 m ⋅ m − 20 = 100 m − 19 ≤ 100 ⋅ 2 − 19 100m \cdot m^{-20} = 100m^{-19} \le100 \cdot2^{-19} 100 m ⋅ m − 20 = 100 m − 19 ≤ 100 ⋅ 2 − 19 , as m ≥ 2 m \ge2 m ≥ 2 . Together with the initial interval, the schedule is bad with probability at most 1 / 100 + 100 ⋅ 2 − 19 < 3 / 100 1/100 + 100 \cdot2^{-19} < 3/100 1/100 + 100 ⋅ 2 − 19 < 3/100 .
Proposition 5.8 (Quantum random-order upper bound). For every even N N N and 2 ≤ m ≤ N 2 \le m \le\sqrt{N} 2 ≤ m ≤ N , S r a n d , 1 / 3 Q ( A R H M N , m ) = O ( log N log m ) S^{Q}_{\mathrm{rand},1/3}(\mathrm{ARHM}_{N,m}) = O(\log N \log m) S rand , 1/3 Q ( ARHM N , m ) = O ( log N log m ) .
Proof. Correctness. The schedule is independent of the order of the updates. Fix a good schedule. Then each request is served by an unused register of some ready bank β \beta β , and the update order is still uniform, so batch β \beta β is a fixed set of μ N \mu N μ N positions in a uniform order. Conditional on the counts κ \kappa κ of batch β \beta β , the register is in ∣ ϕ κ ( x ) ⟩ \lvert\phi_{\kappa}(x)\rangle ∣ ϕ κ ( x )⟩ , and by lemma 5.5 it gives a wrong parity with probability at most π 2 / μ \pi^2/\mu π 2 / μ , averaged over the update order and the measurement. A union bound over the m m m requests bounds the decoding failure by m π 2 / μ = π 2 / 100 < 1 / 10 m\pi^2/\mu= \pi^2/100 < 1/10 m π 2 / μ = π 2 /100 < 1/10 . This needs no independence between the errors of different requests or banks. By lemma 5.7, the schedule is bad with probability less than 3 / 100 3/100 3/100 . The total failure probability is below 3 / 100 + 1 / 10 < 1 / 3 3/100 + 1/10 < 1/3 3/100 + 1/10 < 1/3 .
Space complexity. At most 2 P = 2 ⌈ 20 log m ⌉ = O ( log m ) 2P = 2\lceil20\log m\rceil= O(\log m) 2 P = 2 ⌈ 20 log m ⌉ = O ( log m ) registers are live, each of ⌈ log N ⌉ \lceil\log N\rceil ⌈ log N ⌉ qubits. Counters and classical control use O ( log N ) O(\log N) O ( log N ) bits, since μ N \mu N μ N and N L NL N L are polynomial in N N N . So the total used memory is O ( log N log m ) O(\log N\log m) O ( log N log m ) .
From streams to messages, and the classical lower bound
We first state when the requests after a cut give an instance of the communication problem that we bound.
Definition 5.9 (Admissible cut). Fix a streaming algorithm, a distribution for the input X X X , and a way of generating the stream. A cut followed by s s s requests is admissible if the stream up to the cut, and the position of the cut, are determined by X X X and by randomness (possibly partly public) independent of the s s s requests after the cut, and these s s s items are requests whose factor indices are independent of X X X and of the prefix. Nothing is conditioned on the prefix, for example on earlier answers being correct.
The next lemma is the standard way to turn a streaming algorithm into a communication protocol, and it is routine for readers of streaming lower bounds. We include it for completeness, since our stream is unusual and the conditions on the cut must be checked.
Lemma 5.10 (A cut gives a message). If the algorithm has at most q q q qubits of memory, classical bits included, at an admissible cut, then there is a one-way protocol without prior entanglement in which Alice, given X X X , sends q q q qubits (q q q bits if the algorithm is classical), and Bob, given the s s s factor indices one at a time, answers each before seeing the next. Jointly with X X X and the indices, Bob’s answers have the same distribution as the algorithm’s answers to the s s s requests after the cut.
Proof. Alice knows X X X and the randomness that generated the prefix. She runs the algorithm on the prefix and sends its memory at the cut: at most q q q qubits, classical bits included. Bob continues the algorithm from this state on his s s s requests, one at a time. The requests are Bob’s input, and by admissibility they are independent of X X X and of the prefix, as a one-way protocol needs. Nothing is conditioned on the prefix, so the joint distribution of X X X , the indices and the answers is the algorithm’s.
For the classical bound we need Hidden Matching with Bob’s matching taken from the public one-factorization: Alice receives x x x , and Bob receives a factor index k k k and must return an edge of $F_k. with its parity, after receiving a message from Alice. In this variation, Alice knows the factorization for free, and the argument below shows that this does not help her: it closely follows the standard classical lower bound for Hidden Matching [SWY15, Appendix A.2], with Bob’s random matching replaced by a random factor of the fixed factorization.
In the next lemma, f f f is the indicator of Alice’s sending a given message, so E [ f ( X ) ] \mathbb{E}[f(X)] E [ f ( X )] is the probability that she sends it, and β u v \beta_{uv} β uv is the advantage Bob gets on the parity of { u , v } \{u,v\} { u , v } . We bound these biases using the Kahn–Kalai–Linial (KKL) inequality.
Claim 5.11. Let f : { 0 , 1 } N → { 0 , 1 } f:\{0,1\}^{N}\to\{0,1\} f : { 0 , 1 } N → { 0 , 1 } be not identically zero, let X X X be uniform, and let f ^ ( S ) = E [ f ( X ) ( − 1 ) ∑ j ∈ S X j ] \widehat{f}(S)=\mathbb{E}\left[f(X)(-1)^{\sum_{j\in S}X_j}\right] f ( S ) = E [ f ( X ) ( − 1 ) ∑ j ∈ S X j ] . For a pair { u , v } \{u,v\} { u , v } let β u v = E [ ( − 1 ) X u + X v ∣ f ( X ) = 1 ] \beta_{uv}=\mathbb{E}\left[(-1)^{X_u+X_v}\mid f(X)=1\right] β uv = E [ ( − 1 ) X u + X v ∣ f ( X ) = 1 ] , so that f ^ ( { u , v } ) = E [ f ( X ) ] β u v \widehat{f}(\{u,v\})=\mathbb{E}[f(X)]\beta_{uv} f ({ u , v }) = E [ f ( X )] β uv . Then
∑ u < v β u v 2 ≤ 4 ( 1 − log E [ f ( X ) ] ) 2 . \sum_{u<v}\beta_{uv}^{2}\le4\left(1-\log\mathbb{E}[f(X)]\right)^{2}. u < v ∑ β uv 2 ≤ 4 ( 1 − log E [ f ( X )] ) 2 .
Proof. The KKL inequality [12 Corollary 4.2] says that for 0 < λ ≤ 1 0<\lambda\le1 0 < λ ≤ 1 , ∑ S λ ∣ S ∣ f ^ ( S ) 2 ≤ E [ f ( X ) ] 2 / ( 1 + λ ) \sum_{S}\lambda^{|S|}\widehat{f}(S)^{2}\le\mathbb{E}[f(X)]^{2/(1+\lambda)} ∑ S λ ∣ S ∣ f ( S ) 2 ≤ E [ f ( X ) ] 2/ ( 1 + λ ) . Keep only the terms with ∣ S ∣ = 2 |S|=2 ∣ S ∣ = 2 , which are the pairs { u , v } \{u,v\} { u , v } with u < v u<v u < v . The others are nonnegative. Writing f ^ ( { u , v } ) \widehat{f}(\{u,v\}) f ({ u , v }) as E [ f ( X ) ] β u v \mathbb{E}[f(X)]\beta_{uv} E [ f ( X )] β uv and dividing by λ 2 E [ f ( X ) ] 2 \lambda^{2}\mathbb{E}[f(X)]^{2} λ 2 E [ f ( X ) ] 2 gives
∑ u < v β u v 2 ≤ E [ f ( X ) ] − 2 λ / ( 1 + λ ) λ 2 ≤ E [ f ( X ) ] − 2 λ λ 2 = 2 2 λ log ( 1 / E [ f ( X ) ] ) λ 2 , \sum_{u<v}\beta_{uv}^{2}\le\frac{\mathbb{E}[f(X)]^{-2\lambda/(1+\lambda)}}{\lambda^{2}}\le\frac{\mathbb{E}[f(X)]^{-2\lambda}}{\lambda^{2}}=\frac{2^{2\lambda\log(1/\mathbb{E}[f(X)])}}{\lambda^{2}}, u < v ∑ β uv 2 ≤ λ 2 E [ f ( X ) ] − 2 λ / ( 1 + λ ) ≤ λ 2 E [ f ( X ) ] − 2 λ = λ 2 2 2 λ l o g ( 1/ E [ f ( X )]) ,
where the exponent is 2 − 2 / ( 1 + λ ) = 2 λ / ( 1 + λ ) ≤ 2 λ 2-2/(1+\lambda)=2\lambda/(1+\lambda)\le2\lambda 2 − 2/ ( 1 + λ ) = 2 λ / ( 1 + λ ) ≤ 2 λ and E [ f ( X ) ] ≤ 1 \mathbb{E}[f(X)]\le1 E [ f ( X )] ≤ 1 . Now take λ = 1 / ( 1 − log E [ f ( X ) ] ) \lambda=1/(1-\log\mathbb{E}[f(X)]) λ = 1/ ( 1 − log E [ f ( X )]) . Then λ log ( 1 / E [ f ( X ) ] ) ≤ 1 \lambda\log(1/\mathbb{E}[f(X)])\le1 λ log ( 1/ E [ f ( X )]) ≤ 1 , so the power of two is at most 4 4 4 , and 1 / λ 2 = ( 1 − log E [ f ( X ) ] ) 2 1/\lambda^{2}=(1-\log\mathbb{E}[f(X)])^{2} 1/ λ 2 = ( 1 − log E [ f ( X )] ) 2 . This is the claim. This consequence for squared parity biases is stated in [12 Section 4.2] .
Lemma 5.12 (Classical factorized Hidden Matching). Let F \mathcal{F} F be any one-factorization of K N K_N K N , and let X ∈ { 0 , 1 } N X\in\{0,1\}^{N} X ∈ { 0 , 1 } N and K ∈ [ N − 1 ] K\in[N-1] K ∈ [ N − 1 ] be independent and uniform. A public-coin classical one-way protocol of c c c bits that succeeds with probability p p p satisfies
p − 1 2 ≤ 1 + c N − 1 . p-\frac{1}{2}\le\frac{1+c}{\sqrt{N-1}}. p − 2 1 ≤ N − 1 1 + c . In particular, success p > 1 / 2 p>1/2 p > 1/2 requires c = Ω p ( N ) c=\Omega_p(\sqrt{N}) c = Ω p ( N ) bits.
Proof. Fix the public coins so that the success probability is at least p p p . The protocol is then deterministic. Let T T T be Alice’s message, a random variable with H ( T ) ≤ c H(T)\le c H ( T ) ≤ c . For each message ω \omega ω , let f ω : { 0 , 1 } N → { 0 , 1 } f_\omega:\{0,1\}^{N}\to\{0,1\} f ω : { 0 , 1 } N → { 0 , 1 } be the indicator that Alice sends ω \omega ω , so that E [ f ω ( X ) ] = P [ T = ω ] \mathbb{E}[f_\omega(X)]=\mathbb{P}[T=\omega] E [ f ω ( X )] = P [ T = ω ] , and let β u v ( ω ) \beta_{uv}(\omega) β uv ( ω ) be its parity biases, for messages sent on some input. Given ω \omega ω and K K K , Bob’s best choice is the edge of F K F_K F K with the largest ∣ β u v ( ω ) ∣ |\beta_{uv}(\omega)| ∣ β uv ( ω ) ∣ and the bit matching its sign, so his success probability is 1 2 + 1 2 max { u , v } ∈ F K ∣ β u v ( ω ) ∣ \frac{1}{2}+\frac{1}{2}\max_{\{u,v\}\in F_K}|\beta_{uv}(\omega)| 2 1 + 2 1 max { u , v } ∈ F K ∣ β uv ( ω ) ∣ . Then
E K [ max { u , v } ∈ F K ∣ β u v ( ω ) ∣ ] ≤ ( E K [ ∑ { u , v } ∈ F K β u v ( ω ) 2 ] ) 1 / 2 (max ≤ ℓ 2 norm, Jensen) = ( 1 N − 1 ∑ u < v β u v ( ω ) 2 ) 1 / 2 (each pair lies in one factor, K uniform) ≤ 2 ( 1 − log P [ T = ω ] ) N − 1 (xref‘claim 5.11‘). \begin{aligned}
\mathbb{E}_{K}\left[\max_{\{u,v\}\in F_K}|\beta_{uv}(\omega)|\right]
\le\left(\mathbb{E}_{K}\left[\sum_{\{u,v\}\in F_K}\beta_{uv}(\omega)^2\right]\right)^{1/2}
\qquad\text{(max }\le\ell_2\text{ norm, Jensen)} \\
&=\left(\frac{1}{N-1}\sum_{u<v}\beta_{uv}(\omega)^2\right)^{1/2}
\qquad\text{(each pair lies in one factor, }K\text{ uniform)} \\
&\le\frac{2\left(1-\log\mathbb{P}[T=\omega]\right)}{\sqrt{N-1}}
\qquad\text{({xref}`claim 5.11`).}
\end{aligned} E K [ { u , v } ∈ F K max ∣ β uv ( ω ) ∣ ] ≤ E K { u , v } ∈ F K ∑ β uv ( ω ) 2 1/2 (max ≤ ℓ 2 norm, Jensen) = ( N − 1 1 u < v ∑ β uv ( ω ) 2 ) 1/2 (each pair lies in one factor, K uniform) ≤ N − 1 2 ( 1 − log P [ T = ω ] ) ( xref ‘claim 5.11‘).
Averaging over ω \omega ω ,
p − 1 2 ≤ 1 N − 1 ∑ ω P [ T = ω ] ( 1 − log P [ T = ω ] ) = 1 + H ( T ) N − 1 ≤ 1 + c N − 1 . p-\frac{1}{2}\leq\frac{1}{\sqrt{N-1}}\sum_{\omega}\mathbb{P}[T=\omega](1-\log\mathbb{P}[T=\omega])=\frac{1+H(T)}{\sqrt{N-1}}\leq\frac{1+c}{\sqrt{N-1}}. p − 2 1 ≤ N − 1 1 ω ∑ P [ T = ω ] ( 1 − log P [ T = ω ]) = N − 1 1 + H ( T ) ≤ N − 1 1 + c .
Proposition 5.13 (Classical random-order lower bound). For every m m m and every number L ≥ 1 L \geq1 L ≥ 1 of copies , S r a n d , 1 / 3 C ( A R H M N , m ) = Ω ( N ) S^{\mathrm{C}}_{\mathrm{rand},1/3}(\mathrm{ARHM}_{N,m})=\Omega(\sqrt{N}) S rand , 1/3 C ( ARHM N , m ) = Ω ( N ) .
Proof. Let a c c c -bit algorithm succeed with probability at least 2 / 3 2/3 2/3 for every input and request list. Given ( x , k ) (x,k) ( x , k ) , consider the instance whose m m m requests all ask for F k F_k F k , and generate its random order from public randomness: a uniform order of the updates, a uniform order of the request tags, and a uniform interleaving. The order of the tags is needed because the algorithm may read them, and without it the stream would not be exactly in random order.
Put the cut just before the first request, with s = 1 s=1 s = 1 . It is admissible for uniform independent ( X , K ) (X,K) ( X , K ) : the prefix consists of updates whose number and order are given by public randomness and whose content is given by X X X , and the next item is the first request, whose index K K K is independent of all of this. Correctness of all answers implies correctness of the first, so by lemma 5.10 there is a c c c -bit protocol with success at least 2 / 3 2/3 2/3 under uniform ( X , K ) (X,K) ( X , K ) . Lemma 5.12 gives c ≥ N − 1 / 6 − 1 c\geq\sqrt{N-1}/6-1 c ≥ N − 1 /6 − 1 .
When later data is unavailable
We now switch to the quantum lower bound. The classical bound above cuts the stream before the first request. Here we cut after the last update, so that the suffix consists only of requests, and bound the memory of any algorithm that answers them by the consumability bounds of § 6 . The target bound is sequential because each request must be answered before the next item arrives.
Proposition 5.14 (Lower bound after the last replenishment). Let N ≥ 2 N\geq2 N ≥ 2 be even, 1 ≤ s ≤ N 1\leq s\leq\sqrt{N} 1 ≤ s ≤ N , and X X X uniform, with the algorithm and the one-factorization fixed independently of X X X . Consider an admissible cut (definition 5.9) whose suffix consists of s s s requests and no updates. The requests ask for independent uniform factors and are revealed and answered one at a time. If an algorithm with q q q qubits of memory answers all s s s requests correctly with probability at least p p p in this experiment, then
q ≥ p s − 1 − s 3 6 N . q\geq ps-1-\frac{s^3}{6N}. q ≥ p s − 1 − 6 N s 3 .
If p ≥ 2 / 3 p\geq2/3 p ≥ 2/3 , then q ≥ s / 2 − 1 q\geq s/2-1 q ≥ s /2 − 1 and thus q = Ω ( s ) q=\Omega(s) q = Ω ( s ) .
Proof. By lemma 5.10 there is a q q q -qubit protocol for SeqHM N , s ( U ( F ) ) \operatorname{SeqHM}_{N,s}(U(\mathcal{F})) SeqHM N , s ( U ( F )) (definition 6.9) with the same joint success. Uniform factors are balanced, so corollary 6.13 with s s s in place of m m m gives both bounds.
Remark 5.15 (The two meanings of m m m ). In the current section, m m m is the number of requests in the whole stream. In § 6 , m m m is the number of requests that one message must answer. They agree when the cut comes before every request, as in the data-first order (corollary 5.16). In proposition 5.14 only the s ≤ m s\leq m s ≤ m requests after the cut are answered from the message, so the consumability bound is applied with s s s in place of m m m .
Corollary 5.16 (Data-first lower bound). For every even N N N , every 2 ≤ m ≤ N 2\leq m\leq\sqrt{N} 2 ≤ m ≤ N and every number L ≥ 1 L\geq1 L ≥ 1 of copies, S d a t a − f i r s t , 1 / 3 Q ( A R H M N , m ) ≥ m / 2 − 1 S^{\mathrm{Q}}_{\mathrm{data-first},1/3}(\mathrm{ARHM}_{N,m})\geq m/2-1 S data − first , 1/3 Q ( ARHM N , m ) ≥ m /2 − 1 , and S d a t a − f i r s t , 1 / 3 Q ( A R H M N , m ) = Ω ( m ) S^{\mathrm{Q}}_{\mathrm{data-first},1/3}(\mathrm{ARHM}_{N,m})=\Omega(m) S data − first , 1/3 Q ( ARHM N , m ) = Ω ( m ) .
Proof. Run the algorithm on uniform X X X and independent uniform factor indices, with any fixed order of the updates. Its success is at least 2 / 3 2/3 2/3 . The cut after the last update is admissible: the prefix is a function of X X X , and the m m m requests follow with indices independent of everything before. Apply proposition 5.14 with s = m s=m s = m .
Proof of theorem 5.4. The upper bound is proposition 5.8, the classical bound is proposition 5.13, and the data-first bound is corollary 5.16. The stream length is N L + m = 10 4 N m 2 + m NL + m = 10^{4}Nm^{2} + m N L + m = 1 0 4 N m 2 + m .
This completes the proof of the main theorem.
The rest of this subsection complements the data-first lower bound with matching upper bounds. At m = N m = \sqrt{N} m = N the quantum lower bound Ω ( m ) = Ω ( N ) \Omega(m) = \Omega(\sqrt{N}) Ω ( m ) = Ω ( N ) is matched, up to logarithmic factors, by a classical upper bound of O ~ ( N ) \widetilde{O}(\sqrt{N}) O ( N ) bits (proposition 5.17), so there is no separation between quantum and classical memory in the data-first order for this m m m .
Proposition 5.17 (When all data comes first). In data-first order, for every even N N N and 2 ≤ m ≤ N 2 \le m \le\sqrt{N} 2 ≤ m ≤ N :
a quantum algorithm with O ( m log N ) O(m \log N) O ( m log N ) qubits answers every request exactly,
a classical algorithm with O ( N log m log N ) O(\sqrt{N}\log m \log N) O ( N log m log N ) bits answers all m m m requests correctly with probability at least 2 / 3 2/3 2/3 , and
every classical algorithm with success probability 2 / 3 2/3 2/3 needs Ω ( N ) \Omega(\sqrt{N}) Ω ( N ) bits, already for m = 1 m = 1 m = 1 .
Together with corollary 5.16, the data-first quantum space is Θ ~ ( m ) \widetilde{\Theta}(m) Θ ( m ) and the classical space is Θ ~ ( N ) \widetilde{\Theta}(\sqrt{N}) Θ ( N ) . At m = N m = \sqrt{N} m = N both are N \sqrt{N} N up to logarithmic factors.
Proof. Item 1. Keep m m m registers in ∣ + N ⟩ |+_{N}\rangle ∣ + N ⟩ . On every update ( j , x j , ℓ ) (j, x_j, \ell) ( j , x j , ℓ ) , apply the phase e i π x j / L e^{i\pi x_j/L} e iπ x j / L to ∣ j ⟩ |j\rangle ∣ j ⟩ in every register. After the last update, ∣ j ⟩ |j\rangle ∣ j ⟩ has received L L L such phases, so every register is ∣ ψ x ⟩ |\psi_x\rangle ∣ ψ x ⟩ , and each request measures an unused one in the basis of its matching (§ 4.5 ).
Item 2. If d : = ⌈ 3 N ln m ⌉ ≥ N d := \lceil3\sqrt{N}\ln m\rceil\ge N d := ⌈ 3 N ln m ⌉ ≥ N , store x x x . Otherwise, before the stream, choose a uniform set S ⊆ [ N ] S \subseteq[N] S ⊆ [ N ] of size d d d and store it, and during the updates store x j x_j x j for each j ∈ S j \in S j ∈ S . On a request ( t , k t ) (t, k_t) ( t , k t ) , output a pair of M t = F k t M_t = F_{k_t} M t = F k t inside S S S , with its parity. Such a pair exists with high probability, for the following reason. Fix a matching and draw the elements of S S S one at a time. If the first a a a elements contain no pair of the matching, their a a a partners lie outside them, and the next element avoids those partners with probability 1 − a / ( N − a ) ≤ e − a / N 1 - a/(N-a) \le e^{-a/N} 1 − a / ( N − a ) ≤ e − a / N . So no pair of the matching lies inside S S S with probability at most e − d ( d − 1 ) / ( 2 N ) ≤ 1 / ( 3 m ) e^{-d(d-1)/(2N)} \le1/(3m) e − d ( d − 1 ) / ( 2 N ) ≤ 1/ ( 3 m ) , since d ( d − 1 ) ≥ 2 N ln ( 3 m ) d(d-1) \ge2N\ln(3m) d ( d − 1 ) ≥ 2 N ln ( 3 m ) when d ≥ 3 N ln m d \ge3\sqrt{N}\ln m d ≥ 3 N ln m , m ≥ 2 m \ge2 m ≥ 2 and m 2 ≤ N m^{2} \le N m 2 ≤ N . The request list does not depend on S S S , and a union bound over the m m m requests finishes the proof.
Item 3. Cut the stream just before the first request. The cut is admissible as in the proof of proposition 5.13, and lemma 5.12 applies.
Consumability and replenishment in the wild
ARHM is an artificial problem, built to show the separation: a hidden string, matchings from a fixed one-factorization, and parity answers. The separation alone does not show that consumability or replenishment occurs in natural settings. We give two examples. The first is regression sampling, where answering a Hidden Matching request is exactly drawing a regression sample for a perfectly conditioned, very sparse design matrix (remark 5.18). The second is Kallaugher’s quantum streaming algorithm for triangle counting, whose quantum part, a pair sketch, is destroyed by every successful query, and where replenishment could save qubits when edges repeat. Neither example gives a separation for a general natural problem, but both show that the two effects appear outside ARHM.
Remark 5.18 (Hidden Matching as regression sampling). Gilboa, Jain, and McClean [15 Section 5.2] study repeated linear regression sampling: Alice holds a response vector y ∈ R N y \in\mathbb{R}^{N} y ∈ R N , Bob holds design matrices B 1 , … , B m B_1,\ldots,B_m B 1 , … , B m , and Bob outputs one sample from each length-square distribution p B , y ( J ) = ∣ ( B + y ) J ∣ 2 / ∥ B + y ∥ 2 p_{B,y}(J) = \lvert(B^{+}y)_J\rvert^{2}/\lVert B^{+}y\rVert^{2} p B , y ( J ) = ∣( B + y ) J ∣ 2 / ∥ B + y ∥ 2 of the least-squares solution. Hidden Matching is a special case. Let y j = ( − 1 ) x j / N y_j = (-1)^{x_j}/\sqrt{N} y j = ( − 1 ) x j / N , and for a perfect matching M M M let U M ∈ R N × N U_M \in\mathbb{R}^{N \times N} U M ∈ R N × N map y y y to ( y u ± y v ) / 2 (y_u \pm y_v)/\sqrt{2} ( y u ± y v ) / 2 over the pairs { u , v } ∈ M \{u,v\} \in M { u , v } ∈ M . Then B M = U M T B_M = U_M^{\mathsf{T}} B M = U M T is orthogonal, with two nonzero entries ± 1 / 2 \pm1/\sqrt{2} ± 1/ 2 in every row and column, B M + y = U M y B_M^{+}y = U_My B M + y = U M y , and p B M , y p_{B_M,y} p B M , y is uniform over the pairs of M M M , each with its correct parity. So answering a request of ARHM is exactly drawing a regression sample for a perfectly conditioned, very sparse design matrix. A sampler whose outputs are within total variation distance 1 / 3 1/3 1/3 of these distributions answers all requests correctly with probability at least 2 / 3 2/3 2/3 , so the lower bounds of theorem 5.4 hold for repeated regression sampling in a stream. The upper bound uses flat response vectors and this one family of matrices, so it gives no separation for regression sampling in general (§ 8 ).
Replenishment beyond ARHM
Kallaugher’s triangle-counting algorithm [Kal21] gave the first single-pass quantum streaming space advantage for a natural problem, a polynomial one. Its quantum part is a pair sketch [PKV25], the same kind of state as the phase state of Hidden Matching: a uniform superposition over the directed edges seen so far, which later edges query, and which a successful query destroys. So every observation of the estimator needs its own sketch, and to bring the variance down the algorithm keeps many sketches in parallel from the start of the stream. The space is dominated by the number of these copies, not by their size. Consumability is therefore one of the obstacles between the pair sketch and a larger advantage for triangle counting, and replenishment is a possible way around it.
Consumability: why replenishment is necessary
The Hidden Matching protocol uses a fresh phase state for each matching request. Could a different encoding answer many requests with less communication? We show that the message length must grow linearly with the number of requests in the ranges below, even when Alice’s encoding is arbitrary. This strengthens the Multiple Hidden Matching lower bound of Gilboa, Jain, and McClean [15 ] and gives the quantum lower bounds for ARHM when no further updates are available.
We consider two ways of revealing the requests. In the simultaneous model, Bob receives all m m m matchings before decoding and may choose his output edges jointly. There we prove a linear lower bound for m ≤ N 1 / 2 − δ m \le N^{1/2-\delta} m ≤ N 1/2 − δ , for every fixed δ ∈ ( 0 , 1 / 2 ) \delta\in(0,1/2) δ ∈ ( 0 , 1/2 ) . In the sequential model, Bob answers each of m m m matching requests before seeing the next, and the linear bound extends up to m = N m = \sqrt{N} m = N .
Both proofs use the forest-information argument of Gilboa, Jain, and McClean: correct parities on the edges of a forest are independent constraints on Alice’s string. So it suffices to show that Bob’s output edges contain a large forest, and to account for incorrect answers. For simultaneous requests we show this for every choice of one edge per matching. For sequential requests we follow how the forest grows as each new matching arrives.
Repeated requests and Multiple Hidden Matching
Consider a relation R ⊆ X × Y × Z \mathcal{R} \subseteq\mathcal{X} \times\mathcal{Y} \times\mathcal{Z} R ⊆ X × Y × Z . Such a relation R \mathcal{R} R defines a corresponding one-way communication problem that gives Alice x ∈ X x \in\mathcal{X} x ∈ X and Bob y ∈ Y y \in\mathcal{Y} y ∈ Y , and asks Bob to output z z z with ( x , y , z ) ∈ R (x,y,z) \in\mathcal{R} ( x , y , z ) ∈ R after one message from Alice.
To study reuse of the message, keep Alice’s input fixed and give Bob several requests: in the communication problem for R ( m ) \mathcal{R}^{(m)} R ( m ) , Bob receives y 1 , … , y m y_1,\ldots,y_m y 1 , … , y m and must output z 1 , … , z m z_1,\ldots,z_m z 1 , … , z m with ( x , y t , z t ) ∈ R (x,y_t,z_t) \in\mathcal{R} ( x , y t , z t ) ∈ R for every t t t . Following [15 ] , the data is consumable when the communication must grow polynomially in m m m . Our target is a linear lower bound on the quantum one-way communication complexity, Q → ( R ( m ) ) = Ω ( m ) Q^{\rightarrow}(\mathcal{R}^{(m)}) = \Omega(m) Q → ( R ( m ) ) = Ω ( m ) (§ 4.3 ). A classical message can be copied and thus reused, while a measurement may consume the information in a quantum one.
Recall Hidden Matching H M N \mathrm{HM}_N HM N (definition 4.5), which has a quantum advantage in one-way communication (theorem 4.6).
The phase state ∣ ψ x ⟩ \lvert\psi_x\rangle ∣ ψ x ⟩ (§ 4.5 ) gives an exact protocol with ⌈ log N ⌉ \lceil\log N\rceil ⌈ log N ⌉ qubits [BJK08].
Definition 6.1 (Multiple Hidden Matching). In the Multiple Hidden Matching problem M H M N , m = H M N ( m ) \mathrm{MHM}_{N,m} = \mathrm{HM}^{(m)}_N MHM N , m = HM N ( m ) , Alice receives x ∈ { 0 , 1 } N x \in\{0,1\}^N x ∈ { 0 , 1 } N and Bob receives m m m perfect matchings M 1 , … , M m M_1,\ldots,M_m M 1 , … , M m on [ N ] [N] [ N ] . After receiving one message from Alice, Bob must output, for each matching M t M_t M t , an edge e t = { u t , v t } ∈ M t e_t = \{u_t,v_t\} \in M_t e t = { u t , v t } ∈ M t and the bit b t = x u t ⊕ x v t b_t = x_{u_t} \oplus x_{v_t} b t = x u t ⊕ x v t . Success requires every answer to be correct.
Sending m m m copies of the phase state uses O ( m log N ) O(m \log N) O ( m log N ) qubits. Gilboa, Jain, and McClean [15 ] proved that Q → ( M H M N , m ) = Ω ( m ) Q^{\rightarrow}(\mathrm{MHM}_{N,m}) = \Omega(\sqrt{m}) Q → ( MHM N , m ) = Ω ( m ) for m ≤ N / 2 m \le N/2 m ≤ N /2 .
Forests as independent parity information
In the rest of this section, N ≥ 2 N \ge2 N ≥ 2 is even, m ≥ 1 m \ge1 m ≥ 1 is the number of requests, X X X is uniform on { 0 , 1 } N \{0,1\}^N { 0 , 1 } N , and Alice’s message has q q q qubits, counting any transmitted classical information. The list of matchings is a random variable M = ( M 1 , … , M m ) M = (M_1,\ldots,M_m) M = ( M 1 , … , M m ) where each matching is drawn independently from some distribution D \mathcal{D} D over perfect matchings, and σ \sigma σ denotes a fixed value of it. The list M M M is independent of X X X . Bob’s output is O = ( ( e 1 , b 1 ) , … , ( e m , b m ) ) O = ((e_1,b_1),\ldots,(e_m,b_m)) O = (( e 1 , b 1 ) , … , ( e m , b m )) , and G ∈ { 0 , 1 } G \in\{0,1\} G ∈ { 0 , 1 } indicates that all m m m answers are correct: e j = { u j , v j } ∈ M j e_j = \{u_j,v_j\} \in M_j e j = { u j , v j } ∈ M j and b j = X u j ⊕ X v j b_j = X_{u_j} \oplus X_{v_j} b j = X u j ⊕ X v j for all j ∈ [ m ] j \in[m] j ∈ [ m ] . All of our bounds use only the following property of D \mathcal{D} D .
Definition 6.3 (Balanced matching distribution). A distribution D \mathcal{D} D on perfect matchings of [ N ] [N] [ N ] is balanced if P M ∼ D [ e ∈ M ] = 1 / ( N − 1 ) \mathbb{P}_{M \sim\mathcal{D}}[e \in M] = 1/(N-1) P M ∼ D [ e ∈ M ] = 1/ ( N − 1 ) for every pair e e e . Examples are a uniform perfect matching and a uniform factor (denoted by D = U ( F ) \mathcal{D} = \mathcal{U}(\mathcal{F}) D = U ( F ) ) of a one-factorization F \mathcal{F} F of K N K_N K N into perfect matchings.
For an edge set F F F , let V ( F ) V(F) V ( F ) be the set of endpoints of F F F , and c ( F ) c(F) c ( F ) be the number of connected components of the graph ( V ( F ) , F ) (V(F),F) ( V ( F ) , F ) .
Definition 6.4 (Forest size). The forest size fs ( F ) \operatorname{fs}(F) fs ( F ) is the number of edges of a spanning forest of ( V ( F ) , F ) (V(F),F) ( V ( F ) , F ) , that is, fs ( F ) = ∣ V ( F ) ∣ − c ( F ) \operatorname{fs}(F) = |V(F)| - c(F) fs ( F ) = ∣ V ( F ) ∣ − c ( F ) .
Fixing the parities on the edges of a forest with k k k edges leaves one free bit per tree and per vertex outside the forest, so exactly 2 N − k 2^{N-k} 2 N − k strings in { 0 , 1 } N \{0,1\}^N { 0 , 1 } N are consistent with them. An edge inside an existing component adds no constraint, and does not increase fs \operatorname{fs} fs .
The information budget. Let R R R be the public randomness of the protocol, independent of ( X , M ) (X,M) ( X , M ) , let Q Q Q be Alice’s q q q -qubit message, which depends on ( X , R ) (X,R) ( X , R ) and private randomness but not on M M M , and let O O O be Bob’s classical output. Then
I ( X : O ∣ M ) ≤ I ( X : Q , R ∣ M ) = I ( X : R ∣ M ) + I ( X : Q ∣ R , M ) ≤ q . (4) I(X:O\mid M)\le I(X:Q,R\mid M)=I(X:R\mid M)+I(X:Q\mid R,M)\le q. \tag*{(4)} I ( X : O ∣ M ) ≤ I ( X : Q , R ∣ M ) = I ( X : R ∣ M ) + I ( X : Q ∣ R , M ) ≤ q . (4)
The first step is data processing for each fixed value of M M M (fact 4.1). The first term vanishes because R R R is independent of ( X , M ) (X,M) ( X , M ) . The second loses M M M because M M M is independent of ( X , Q , R ) (X,Q,R) ( X , Q , R ) . The last step is the dimension bound.
Lemma 6.5 (Forest information with side information). Consider an instance of M H M N N , m \mathrm{MHMN}_{N,m} MHMN N , m and an arbitrary communication protocol of complexity q q q . Let O O O be Bob’s classical output, Λ \Lambda Λ be any random variable on the same probability space, and let E Λ ⊆ { e 1 , … , e m } E_{\Lambda}\subseteq\{e_1,\ldots,e_m\} E Λ ⊆ { e 1 , … , e m } be a set of output edges such that E Λ E_{\Lambda} E Λ and the true parities X u ⊕ X v X_u\oplus X_v X u ⊕ X v of its edges are determined by ( O , M , Λ ) (O,M,\Lambda) ( O , M , Λ ) . Then
q ≥ I ( X : O ∣ M ) ≥ E [ fs ( E Λ ) ] − H ( Λ ∣ O , M ) . q\ge I(X:O\mid M)\ge\mathbb{E}[\operatorname{fs}(E_{\Lambda})]-H(\Lambda\mid O,M). q ≥ I ( X : O ∣ M ) ≥ E [ fs ( E Λ )] − H ( Λ ∣ O , M ) .
Below, we use this lemma with a side variable Λ \Lambda Λ telling which output parities are true.
Proof. Fix ( O , M , Λ ) = ( o , σ , λ ) (O,M,\Lambda)=(o,\sigma,\lambda) ( O , M , Λ ) = ( o , σ , λ ) . Then the true parities on a spanning forest of E λ E_{\lambda} E λ are determined. Thus X X X is supported on at most 2 N − fs ( E λ ) 2^{N-\operatorname{fs}(E_{\lambda})} 2 N − fs ( E λ ) strings, and
H ( X ∣ O = o , M = σ , Λ = λ ) ≤ N − fs ( E λ ) . H(X\mid O=o,M=\sigma,\Lambda=\lambda)\le N-\operatorname{fs}(E_{\lambda}). H ( X ∣ O = o , M = σ , Λ = λ ) ≤ N − fs ( E λ ) .
Averaging over all possible ( o , σ , λ ) (o,\sigma,\lambda) ( o , σ , λ ) , we get
H ( X ∣ O , M ) ≤ H ( Λ ∣ O , M ) + H ( X ∣ O , M , Λ ) ≤ H ( Λ ∣ O , M ) + N − E [ fs ( E Λ ) ] . H(X\mid O,M)\le H(\Lambda\mid O,M)+H(X\mid O,M,\Lambda)\le H(\Lambda\mid O,M)+N-\mathbb{E}[\operatorname{fs}(E_{\Lambda})]. H ( X ∣ O , M ) ≤ H ( Λ ∣ O , M ) + H ( X ∣ O , M , Λ ) ≤ H ( Λ ∣ O , M ) + N − E [ fs ( E Λ )] .
Then
q ≥ I ( X : O ∣ M ) = H ( X ∣ M ) − H ( X ∣ O , M ) ≥ N − ( H ( Λ ∣ O , M ) + N − E [ fs ( E Λ ) ] ) = E [ fs ( E Λ ) ] − H ( Λ ∣ O , M ) . \begin{aligned}
q&\ge I(X:O\mid M)\\
&=H(X\mid M)-H(X\mid O,M)\\
&\ge N-\left(H(\Lambda\mid O,M)+N-\mathbb{E}[\operatorname{fs}(E_{\Lambda})]\right)\\
&=\mathbb{E}[\operatorname{fs}(E_{\Lambda})]-H(\Lambda\mid O,M).
\end{aligned} q ≥ I ( X : O ∣ M ) = H ( X ∣ M ) − H ( X ∣ O , M ) ≥ N − ( H ( Λ ∣ O , M ) + N − E [ fs ( E Λ )] ) = E [ fs ( E Λ )] − H ( Λ ∣ O , M ) .
□ \square □
Let G G G be the indicator that all of the parities in Bob’s output are correct.
Lemma 6.6 (Forest-information bound). Let { e 1 , … , e m } \{e_1,\ldots,e_m\} { e 1 , … , e m } be the set of edges in Bob’s output O O O , and let p = P [ G = 1 ] p=\mathbb{P}[G=1] p = P [ G = 1 ] . Then
q ≥ I ( X : O ∣ M ) ≥ E [ G fs ( { e 1 , … , e m } ) ] − h 2 ( p ) . q\ge I(X:O\mid M)\ge\mathbb{E}[G\operatorname{fs}(\{e_1,\ldots,e_m\})]-h_2(p). q ≥ I ( X : O ∣ M ) ≥ E [ G fs ({ e 1 , … , e m })] − h 2 ( p ) . Proof. Let Λ = G \Lambda=G Λ = G , and
E G = { { e 1 , … , e m } , if G = 1 , ∅ , otherwise . E_G=
\begin{cases}
\{e_1,\ldots,e_m\}, & \text{if }G=1,\\
\varnothing, & \text{otherwise}.
\end{cases} E G = { { e 1 , … , e m } , ∅ , if G = 1 , otherwise . When G = 1 G=1 G = 1 the true parities are the reported bits. Then E [ fs ( E G ) ] = E [ G fs ( { e 1 , … , e m } ) ] \mathbb{E}[\operatorname{fs}(E_G)]=\mathbb{E}[G\operatorname{fs}(\{e_1,\ldots,e_m\})] E [ fs ( E G )] = E [ G fs ({ e 1 , … , e m })] and H ( G ∣ O , M ) ≤ H ( G ) = h 2 ( p ) H(G\mid O,M)\le H(G)=h_2(p) H ( G ∣ O , M ) ≤ H ( G ) = h 2 ( p ) . Applying lemma 6.5, we get
q ≥ I ( X : O ∣ M ) ≥ E [ fs ( E Λ ) ] − H ( Λ ∣ O , M ) ≥ E [ G fs ( { e 1 , … , e m } ) ] − h 2 ( p ) . q\ge I(X:O\mid M)\ge\mathbb{E}[\operatorname{fs}(E_{\Lambda})]-H(\Lambda\mid O,M)\ge\mathbb{E}[G\operatorname{fs}(\{e_1,\ldots,e_m\})]-h_2(p). q ≥ I ( X : O ∣ M ) ≥ E [ fs ( E Λ )] − H ( Λ ∣ O , M ) ≥ E [ G fs ({ e 1 , … , e m })] − h 2 ( p ) . □ \square □
The forest Bob selects may depend on whether he succeeds, which is why the bound contains the product G fs ( { e 1 , … , e m } ) G\operatorname{fs}(\{e_1,\ldots,e_m\}) G fs ({ e 1 , … , e m }) and not p E [ fs ( { e 1 , … , e m } ) ] p\mathbb{E}[\operatorname{fs}(\{e_1,\ldots,e_m\})] p E [ fs ({ e 1 , … , e m })] .
Simultaneous requests
The main result of this section proves the conjecture of Gilboa, Jain, and McClean [15 ] for m ≤ N 1 / 2 − δ m \le N^{1/2-\delta} m ≤ N 1/2 − δ :
Theorem 6.7 (Linear Multiple Hidden Matching lower bound). Fix constants δ ∈ ( 0 , 1 / 2 ) \delta\in(0,1/2) δ ∈ ( 0 , 1/2 ) , ε ∈ ( 0 , 1 / 2 ) \varepsilon\in(0,1/2) ε ∈ ( 0 , 1/2 ) , and a balanced distribution D \mathcal{D} D on perfect matchings of [ N ] [N] [ N ] (definition 6.3). For m ≤ N 1 / 2 − δ m \le N^{1/2-\delta} m ≤ N 1/2 − δ , every one-way protocol for M H M N , m \mathrm{MHM}_{N,m} MHM N , m that answers all m ∗ r e q u e s t s c o r r e c t l y w i t h p r o b a b i l i t y a t l e a s t ∗ $ 1 − ε m *requests correctly with probability at least* \$1-\varepsilon m ∗ r e q u es t scor r ec tl y w i t h p r o babi l i t y a tl e a s t ∗ $1 − ε , when X X X is uniform and M 1 , … , M m M_1,\ldots,M_m M 1 , … , M m are independent draws from D \mathcal{D} D , requires Ω δ ( m ) \Omega_\delta(m) Ω δ ( m ) qubits. In particular, so does every protocol with worst-case joint error at most ε \varepsilon ε .
Proof idea. By the forest-information lemma, it is enough to show that, for independent balanced matchings M 1 , … , M m M_1,\ldots,M_m M 1 , … , M m with m ≤ N 1 / 2 − δ m \le N^{1/2-\delta} m ≤ N 1/2 − δ , every choice of one edge from each matching spans a forest with Ω ( m ) \Omega(m) Ω ( m ) edges, except with probability small enough to absorb the failure probability. A set of pairs whose spanning forest has at most s s s edges covers at most 2 s 2s 2 s vertices. So such a choice with a small forest forces every M t M_t M t to have an edge inside one small vertex set, and for a fixed set this is unlikely for each M t M_t M t , independently. A union bound over the vertex sets gives a tail bound of N − δ m N^{-\delta m} N − δ m for forests with at most c δ m c_\delta m c δ m edges, and the forest-information lemma turns this into the bound on q q q . The full proof is in section A.
Sequential requests
When each answer is due before the next matching is known, fresh requests force the forest to grow even if Bob chooses each edge adaptively. This extends the linear lower bound to the square-root scale.
Definition 6.9 (Sequential Hidden Matching). Fix a distribution D \mathcal{D} D on perfect matchings on [ N ] [N] [ N ] . In S e q H M N , m ( D ) \mathrm{SeqHM}_{N,m}(\mathcal{D}) SeqHM N , m ( D ) , Alice receives X ∈ { 0 , 1 } N X \in\{0,1\}^N X ∈ { 0 , 1 } N and sends one quantum message. Bob receives the message from Alice, and then matchings M 1 , … , M m ∼ D M_1,\ldots,M_m \sim\mathcal{D} M 1 , … , M m ∼ D , independent of each other, one at a time. After receiving M t M_t M t and before receiving M t + 1 M_{t+1} M t + 1 , he outputs e t = { u t , v t } ∈ M t e_t=\{u_t,v_t\}\in M_t e t = { u t , v t } ∈ M t and a bit b t b_t b t , which is correct if b t = X u t ⊕ X v t b_t=X_{u_t}\oplus X_{v_t} b t = X u t ⊕ X v t . He may keep arbitrary quantum memory and act adaptively. The requests are fresh :
(F) M t M_t M t is independent of everything that exists before round t t t : X X X , the message, Bob’s quantum memory, the public coins, and the earlier matchings and outputs. In particular, no public coin reveals a future matching.
Throughout the sequential part, X X X is uniform and the requests are fresh. Let { e 1 , … , e m } \{e_1,\ldots,e_m\} { e 1 , … , e m } be the set of edges in Bob’s output for S e q H M N , m ( D ) \mathrm{SeqHM}_{N,m}(\mathcal{D}) SeqHM N , m ( D ) : e t ∈ M t e_t \in M_t e t ∈ M t . Let E t = { e 1 , … , e t } E_t=\{e_1,\ldots,e_t\} E t = { e 1 , … , e t } and Φ t = fs ( E t ) \Phi_t=\operatorname{fs}(E_t) Φ t = fs ( E t ) , with Φ 0 = 0 \Phi_0=0 Φ 0 = 0 , and let the history H t − 1 \mathcal{H}_{t-1} H t − 1 be the classical record before round t t t : the public coins, M 1 , … , M t − 1 M_1,\ldots,M_{t-1} M 1 , … , M t − 1 , and the outputs of rounds 1 , … , t − 1 1,\ldots,t-1 1 , … , t − 1 .
Lemma 6.10 (Online forest growth). If D \mathcal{D} D is balanced, then for every t t t and every value of H t − 1 \mathcal{H}_{t-1} H t − 1 with positive probability,
P [ Φ t = Φ t − 1 ∣ H t − 1 ] ≤ ( t 2 ) N − 1 . \mathbb{P}\left[\Phi_t=\Phi_{t-1}\mid\mathcal{H}_{t-1}\right]\le\frac{\binom{t}{2}}{N-1}. P [ Φ t = Φ t − 1 ∣ H t − 1 ] ≤ N − 1 ( 2 t ) . Consequently, if m ≤ N m\le\sqrt{N} m ≤ N , then E [ Φ m ] ≥ m − m 3 / ( 6 N ) \mathbb{E}[\Phi_m]\ge m-m^3/(6N) E [ Φ m ] ≥ m − m 3 / ( 6 N ) .
Proof. Fix t t t . Consider the components of E t − 1 E_{t-1} E t − 1 . If the new matching M t M_t M t has no edge fully inside a component of E t − 1 E_{t-1} E t − 1 , then every edge of M t M_t M t joins two components, or reaches a new vertex, and so increases the forest size, whatever edge Bob picks.
Let Π \Pi Π be the set of pairs of vertices connected in E t − 1 E_{t-1} E t − 1 : ( u , v ) ∈ Π (u,v) \in\Pi ( u , v ) ∈ Π if and only if they belong to the same connected component in E t − 1 E_{t-1} E t − 1 . Number the components of E t − 1 E_{t-1} E t − 1 arbitrarily. Let a j a_j a j be the number of edges of E t − 1 E_{t-1} E t − 1 in component j j j counted with repetition, so ∑ j a j = t − 1 \sum_j a_j=t-1 ∑ j a j = t − 1 . A connected graph with a j a_j a j edges has at most a j + 1 a_j+1 a j + 1 vertices, so
∣ Π ∣ ≤ ∑ j ( a j + 1 2 ) ≤ ( ( ∑ j a j ) + 1 2 ) = ( t 2 ) . |\Pi| \le\sum_j \binom{a_j+1}{2} \le\binom{\left(\sum_j a_j\right)+1}{2} = \binom{t}{2}. ∣Π∣ ≤ j ∑ ( 2 a j + 1 ) ≤ ( 2 ( ∑ j a j ) + 1 ) = ( 2 t ) .
where the last step holds because ( a + b + 1 2 ) = ( a + 1 2 ) + ( b + 1 2 ) + a b ≥ ( a + 1 2 ) + ( b + 1 2 ) \binom{a+b+1}{2}=\binom{a+1}{2}+\binom{b+1}{2}+ab \ge\binom{a+1}{2}+\binom{b+1}{2} ( 2 a + b + 1 ) = ( 2 a + 1 ) + ( 2 b + 1 ) + ab ≥ ( 2 a + 1 ) + ( 2 b + 1 ) for nonnegative a , b a,b a , b . By (F), M t M_t M t is independent of the history and of Bob’s quantum memory, so balancedness and a union bound over Π \Pi Π give
P [ Φ t = Φ t − 1 ] ≤ P [ M t has an edge in Π ∣ H t − 1 ] ≤ ∣ Π ∣ N − 1 . \mathbb{P}[\Phi_t=\Phi_{t-1}] \le\mathbb{P}[M_t\text{ has an edge in }\Pi\mid\mathcal{H}_{t-1}] \le\frac{|\Pi|}{N-1}. P [ Φ t = Φ t − 1 ] ≤ P [ M t has an edge in Π ∣ H t − 1 ] ≤ N − 1 ∣Π∣ .
Finally, Φ t − Φ t − 1 ∈ { 0 , 1 } \Phi_t-\Phi_{t-1}\in\{0,1\} Φ t − Φ t − 1 ∈ { 0 , 1 } , so
E [ Φ m ] = ∑ t = 1 m P [ Φ t > Φ t − 1 ] = m − ∑ t = 1 m P [ Φ t = Φ t − 1 ] ≥ m − 1 N − 1 ∑ t = 1 m ( t 2 ) = m − ( m + 1 3 ) N − 1 = m − m ( m 2 − 1 ) 6 ( N − 1 ) ≥ m − m 3 6 N , \begin{aligned}
\mathbb{E}[\Phi_m] &= \sum_{t=1}^{m}\mathbb{P}[\Phi_t>\Phi_{t-1}]\\
&=m-\sum_{t=1}^{m}\mathbb{P}[\Phi_t=\Phi_{t-1}]\\
&\ge m-\frac{1}{N-1}\sum_{t=1}^{m}\binom{t}{2}\\
&=m-\frac{\binom{m+1}{3}}{N-1}=m-\frac{m(m^2-1)}{6(N-1)}\\
&\ge m-\frac{m^3}{6N},
\end{aligned} E [ Φ m ] = t = 1 ∑ m P [ Φ t > Φ t − 1 ] = m − t = 1 ∑ m P [ Φ t = Φ t − 1 ] ≥ m − N − 1 1 t = 1 ∑ m ( 2 t ) = m − N − 1 ( 3 m + 1 ) = m − 6 ( N − 1 ) m ( m 2 − 1 ) ≥ m − 6 N m 3 ,
where the last step holds when m ≤ N m\le\sqrt{N} m ≤ N , since then ( m 2 − 1 ) N ≤ m 2 ( N − 1 ) (m^2-1)N\le m^2(N-1) ( m 2 − 1 ) N ≤ m 2 ( N − 1 ) .
Sequential forest information
Define the error vector Z = ( Z 1 , … , Z m ) Z=(Z_1,\ldots,Z_m) Z = ( Z 1 , … , Z m ) by Z t = b t ⊕ X u t ⊕ X v t Z_t=b_t\oplus X_{u_t}\oplus X_{v_t} Z t = b t ⊕ X u t ⊕ X v t . Knowing Z Z Z repairs every reported parity, so we can use the whole forest and pay for describing the errors.
Lemma 6.11 (Sequential forest information). Every q q q -qubit protocol for SeqHMN , m ( D ) _{N,m}(\mathcal{D}) N , m ( D ) satisfies
q ≥ E [ Φ m ] − H ( Z ∣ O , M ) ≥ E [ Φ m ] − H ( Z ) . q\ge\mathbb{E}[\Phi_m]-H(Z\mid O,M)\ge\mathbb{E}[\Phi_m]-H(Z). q ≥ E [ Φ m ] − H ( Z ∣ O , M ) ≥ E [ Φ m ] − H ( Z ) .
Proof. Apply lemma 6.5 with Λ = Z \Lambda=Z Λ = Z and E Z = E m E_Z=E_m E Z = E m , since the true parity of e t e_t e t is b t ⊕ Z t b_t\oplus Z_t b t ⊕ Z t :
q ≥ I ( X : O ∣ M ) ≥ E [ f S ( E Z ) ] − H ( Z ∣ O , M ) = E [ Φ m ] − H ( Z ∣ O , M ) ≥ E [ Φ m ] − H ( Z ) . q\ge I(X:O\mid M)\ge\mathbb{E}[f_S(E_Z)]-H(Z\mid O,M)=\mathbb{E}[\Phi_m]-H(Z\mid O,M)\ge\mathbb{E}[\Phi_m]-H(Z). q ≥ I ( X : O ∣ M ) ≥ E [ f S ( E Z )] − H ( Z ∣ O , M ) = E [ Φ m ] − H ( Z ∣ O , M ) ≥ E [ Φ m ] − H ( Z ) .
Note that the information budget (4) applies to the sequential decoder of Bob too: for each fixed list σ \sigma σ , Bob’s adaptive decoder is a single channel from ( Q , R ) (Q,R) ( Q , R ) to O O O .
Theorem 6.12 (Sequential error-entropy bound). For balanced D \mathcal{D} D , uniform X X X , fresh requests and m ≤ N m \le\sqrt{N} m ≤ N , every q q q -qubit protocol for SeqHMN , m ( D ) _{N,m}(\mathcal{D}) N , m ( D ) satisfies
q ≥ m − m 3 6 N − H ( Z ∣ O , M ) ≥ m − m 3 6 N − H ( Z ) . q \ge m-\frac{m^3}{6N}-\mathrm{H}(Z\mid O,M)\ge m-\frac{m^3}{6N}-\mathrm{H}(Z). q ≥ m − 6 N m 3 − H ( Z ∣ O , M ) ≥ m − 6 N m 3 − H ( Z ) . Proof. By lemma 6.10,
E [ Φ m ] ≥ m − m 3 / ( 6 N ) . \mathbb{E}[\Phi_m]\ge m-m^3/(6N). E [ Φ m ] ≥ m − m 3 / ( 6 N ) . Combining with lemma 6.11, we get
q ≥ E [ Φ m ] − H ( Z ∣ O , M ) ≥ m − m 3 / ( 6 N ) − H ( Z ∣ O , M ) ≥ m − m 3 6 N − H ( Z ) . q\ge\mathbb{E}[\Phi_m]-\mathrm{H}(Z\mid O,M)\ge m-m^3/(6N)-\mathrm{H}(Z\mid O,M)\ge m-\frac{m^3}{6N}-\mathrm{H}(Z). q ≥ E [ Φ m ] − H ( Z ∣ O , M ) ≥ m − m 3 / ( 6 N ) − H ( Z ∣ O , M ) ≥ m − 6 N m 3 − H ( Z ) .
Corollary 6.13 (Sequential joint success). Let m ≤ N m\le\sqrt{N} m ≤ N . If all m m m answers are correct with probability at least p ∈ [ 0 , 1 ] p\in[0,1] p ∈ [ 0 , 1 ] , then
q ≥ p m − 1 − m 3 6 N . q\ge pm-1-\frac{m^3}{6N}. q ≥ p m − 1 − 6 N m 3 . If p ≥ 2 / 3 p\ge2/3 p ≥ 2/3 , this gives q ≥ m / 2 − 1 q\ge m/2-1 q ≥ m /2 − 1 , and so q = Ω ( m ) q=\Omega(m) q = Ω ( m ) . Proof. Let G = 1 [ Z = 0 m ] G=\mathbf{1}[Z=0^m] G = 1 [ Z = 0 m ] , and note that P [ G = 0 ] ≤ 1 − p \mathbb{P}[G=0]\le1-p P [ G = 0 ] ≤ 1 − p . Given G = 1 G=1 G = 1 , Z Z Z is determined, and given G = 0 G=0 G = 0 , it takes at most 2 m 2^m 2 m values, so H ( Z ) = H ( G ) + H ( Z ∣ G ) = H ( G ) + P [ G = 1 ] H ( Z ∣ G = 1 ) + P [ G = 0 ] H ( Z ∣ G = 0 ) ≤ 1 + ( 1 − p ) m \mathrm{H}(Z)=\mathrm{H}(G)+\mathrm{H}(Z\mid G)=\mathrm{H}(G)+\mathbb{P}[G=1]\mathrm{H}(Z\mid G=1)+\mathbb{P}[G=0]\mathrm{H}(Z\mid G=0)\le1+(1-p)m H ( Z ) = H ( G ) + H ( Z ∣ G ) = H ( G ) + P [ G = 1 ] H ( Z ∣ G = 1 ) + P [ G = 0 ] H ( Z ∣ G = 0 ) ≤ 1 + ( 1 − p ) m .
Then by theorem 6.12,
q ≥ m − m 3 6 N − H ( Z ) ≥ p m − 1 − m 3 6 N . q\ge m-\frac{m^3}{6N}-\mathrm{H}(Z)\ge pm-1-\frac{m^3}{6N}. q ≥ m − 6 N m 3 − H ( Z ) ≥ p m − 1 − 6 N m 3 . The last term is at most m / 6 m/6 m /6 , since m 2 ≤ N m^2\le N m 2 ≤ N . So p ≥ 2 / 3 p\ge2/3 p ≥ 2/3 gives q ≥ m / 2 − 1 q\ge m/2-1 q ≥ m /2 − 1 , and q = Ω ( m ) q=\Omega(m) q = Ω ( m ) .
Since the bound holds for every m ≤ N m\le\sqrt{N} m ≤ N , taking m = N m=\sqrt{N} m = N gives q = Ω ( N ) q=\Omega(\sqrt{N}) q = Ω ( N ) . So for sequential requests the bound stays linear up to m = N m=\sqrt{N} m = N , while theorem 6.7 for simultaneous requests is proved only for m ≤ N 1 / 2 − δ m\le N^{1/2-\delta} m ≤ N 1/2 − δ .
Noisy Gap Cycle
In this section, we prove a linear quantum space lower bound for Noisy Gap Cycle (NGC) in random-order streams. So for long cycles, neither random order nor quantum memory helps, and neither do the two together (Figure 1 ). § 7.4 then shows where random order starts to help, and quantum memory still does not. We follow the robust communication approach (definition 7.1) of Assadi and Sundaresan [2 ] and use their graph construction and reductions.
The new part is a lower bound with quantum messages for the last problem of their chain, Distributional Hidden XOR. We prove it in two steps. First we reduce it to Block Hidden XOR (definition 7.5), a simpler problem that is implicit in the argument of Assadi and Sundaresan, and this reduction reuses parts of their classical lower bound. Then we prove the bound for Block Hidden XOR by a direct application of the matrix hypercontractive inequality of Ben-Aroya, Regev, and de Wolf [6 ] , as in the bound of Shi, Wu, and Yu [SWY15] for Boolean Hidden Hypermatching.
We prove the lower bound for Block Hidden XOR here, and give the graph reductions in section C.
Noisy Gap Cycle and its streaming consequences
Call a pair of integers ( n , k ) (n,k) ( n , k ) admissible if k ≥ 3 k \ge3 k ≥ 3 and 4 k ∣ n 4k \mid n 4 k ∣ n .
Definition 7.1 (Noisy Gap Cycle). Let ( n , k ) (n,k) ( n , k ) be admissible. In the N G C n , k \mathrm{NGC}_{n,k} NGC n , k problem, the input is an n n n -vertex graph that is exactly one of:
the disjoint union of n / ( 2 k ) n/(2k) n / ( 2 k ) cycles of length k k k and n / ( 2 k ) n/(2k) n / ( 2 k ) paths of length k − 1 k-1 k − 1 , or
the disjoint union of n / ( 4 k ) n/(4k) n / ( 4 k ) cycles of length 2 k 2k 2 k and n / ( 2 k ) n/(2k) n / ( 2 k ) paths of length k − 1 k-1 k − 1 .
In the robust one-way communication problem, each edge is assigned to Alice or Bob independently with probability 1 / 2 1/2 1/2 . Each player receives only its edges, Alice sends one message (a quantum state, in the quantum model), and Bob must say which case holds.
Robust means that the error guarantee holds for every fixed promise graph, averaged over the fair edge-ownership coins and the protocol’s randomness. In the random-order streaming problem N G C n , k \mathrm{NGC}_{n,k} NGC n , k , every edge appears once, in a uniformly random order, and the algorithm outputs its decision after the pass (§ 4.1 ).
Assadi and Sundaresan [2 ] prove the following two statements for classical protocols and classical streaming algorithms. Ours are the analogous statements for quantum ones.
Theorem 7.2 (Quantum robust Noisy Gap Cycle). For all sufficiently large admissible ( n , k ) (n,k) ( n , k ) with k ≥ 1600 log n k \ge1600 \log n k ≥ 1600 log n , every robust one-way quantum protocol for N G C n , k \mathrm{NGC}_{n,k} NGC n , k with error at most 1 / 3 1/3 1/3 sends Ω ( n ) \Omega(n) Ω ( n ) qubits.
Theorem 7.3 (Quantum random-order Noisy Gap Cycle). Under the same conditions, every one-pass quantum streaming algorithm solving N G C n , k \mathrm{NGC}_{n,k} NGC n , k with error at most 1 / 3 1/3 1/3 in uniformly random edge order uses Ω ( n ) \Omega(n) Ω ( n ) space.
Proof. This follows from theorem 7.2 by the usual simulation, as in Assadi and Sundaresan [2 Proposition 2.5] : Alice runs the algorithm on a uniform order of her edges and sends its memory, Bob continues on a uniform order of his, and the concatenation of the two orders is a uniform order of all edges.
Assadi and Sundaresan [2 Section 5] reduce several graph problems to N G C \mathrm{NGC} NGC . Each reduction is classical, runs the streaming algorithm once and reads its classical output after the pass, so it applies unchanged to algorithms with quantum memory. With theorem 7.3 in place of their classical bound, the reductions give the following. All algorithms below make one pass over a uniformly random edge order, produce their output at the end, and succeed with probability at least 2 / 3 2/3 2/3 on every input.
Corollary 7.4 (Quantum random-order graph consequences).
Connected components. No algorithm estimates, for every ε > 0 \varepsilon> 0 ε > 0 , the number of connected components to additive error ε n \varepsilon n ε n in 2 O ( 1 / ε ) n o ( 1 ) 2^{O(1/\varepsilon)}n^{o(1)} 2 O ( 1/ ε ) n o ( 1 ) qubits of space.
Maximum matching and independent set. The same holds for the maximum matching size and for the maximum independent set size, to additive error ε n \varepsilon n ε n , even on planar graphs of maximum degree two.
Minimum spanning tree. For connected graphs with integer edge weights in [ W ] [W] [ W ] , W ≥ 2 W \ge2 W ≥ 2 , no algorithm gives, for every ε > 0 \varepsilon> 0 ε > 0 , a ( 1 + ε ) (1+\varepsilon) ( 1 + ε ) -approximation of the MST weight in 2 O ( W / ε ) n o ( 1 ) 2^{O(W/\varepsilon)}n^{o(1)} 2 O ( W / ε ) n o ( 1 ) qubits of space.
4. Random walks. Suppose the algorithm outputs classical walks after its pass, with joint distribution within total variation distance 1 / 10 1/10 1/10 of independent samples, each from a uniform start vertex and, given its start, pointwise within a factor 1 ± 1 / 10 1 \pm1/10 1 ± 1/10 of the length-ℓ \ell ℓ walk distribution. For sufficiently large absolute constants c 1 , c 2 c_1,c_2 c 1 , c 2 , generating c 1 c_1 c 1 such walks needs 2 Ω ( ℓ ) 2^{\Omega(\sqrt{\ell})} 2 Ω ( ℓ ) qubits of space when ℓ = Θ ( log 2 n ) \ell= \Theta(\log^2 n) ℓ = Θ ( log 2 n ) , and generating c 2 4 ℓ c_2 4^\ell c 2 4 ℓ walks needs 2 Ω ( ℓ ) 2^{\Omega(\ell)} 2 Ω ( ℓ ) qubits of space when ℓ = Θ ( log n ) \ell= \Theta(\log n) ℓ = Θ ( log n ) .
Each item rules out a single algorithm that works for every ε \varepsilon ε and every graph size. The proofs of Assadi and Sundaresan let 1 / ε = Θ ( log n ) 1/\varepsilon= \Theta(\log n) 1/ ε = Θ ( log n ) (and W / ε = Θ ( log n ) W/\varepsilon= \Theta(\log n) W / ε = Θ ( log n ) for MST) grow with n n n , so they do not give a linear lower bound for any fixed accuracy.
The problems are formally defined in section B.
From robust NGC to Block Hidden XOR
Our proof of theorem 7.2 goes through the following communication problem, which is implicit in the argument of Assadi and Sundaresan.
Definition 7.5 (Block Hidden XOR). Let w w w and r r r be positive integers. In BHXw , r _{w,r} w , r , Alice receives independent uniform strings X i ∈ { 0 , 1 } w X^i \in\{0,1\}^w X i ∈ { 0 , 1 } w , i ∈ [ r ] i \in[r] i ∈ [ r ] , and Bob receives independent uniform indices J i ∈ [ w ] J_i \in[w] J i ∈ [ w ] , i ∈ [ r ] i \in[r] i ∈ [ r ] , independent of Alice’s strings. Alice sends one message, and Bob must output
Z J ( X ) : = ⨁ i = 1 r X J i i . Z_J(X) := \bigoplus_{i=1}^{r} X^i_{J_i}. Z J ( X ) := i = 1 ⨁ r X J i i .
In words, Alice has independent bit strings, Bob has one uniformly random index into each string, and Bob must predict the XOR of the selected bits.
From Block Hidden XOR to cycles. The graph construction of Assadi and Sundaresan turns this XOR into the length of a cycle (Figure 3 ). Each block i i i is a few layers of vertices, with a pair of vertices for each coordinate. Between the middle layers, the two edges at coordinate j j j are parallel if X j i = 0 X^i_j = 0 X j i = 0 and crossed if X j i = 1 X^i_j = 1 X j i = 1 , and these edges are Alice’s. Around them, Bob’s edges route one fixed pair of paths through coordinate J i J_i J i . So this pair of paths is crossed in block i i i exactly when X J i i = 1 X^i_{J_i} = 1 X J i i = 1 , and after all r r r blocks it is crossed exactly when Z J ( X ) = 1 Z_J(X) = 1 Z J ( X ) = 1 . Joining the two ends of the pair closes it into two cycles of length k k k when Z J ( X ) = 0 Z_J(X) = 0 Z J ( X ) = 0 , and into one cycle of length 2 k 2k 2 k when Z J ( X ) = 1 Z_J(X) = 1 Z J ( X ) = 1 . The actual hard instances of NGC contain many such pairs with the same parity, plus noise paths, and edges are split at random between Alice and Bob. Getting back to one pair, with Alice holding the bits and Bob only the index J i J_i J i into each block, is what the reductions below do. The details are in section C.
The reduction from robust NGC to Block Hidden XOR goes through a few intermediate problems. Almost all of the steps are reductions of Assadi and Sundaresan, and they are classical: each player transforms its own share of the input locally, using public randomness, and Alice sends one message as before. For quantum messages, the only change is to use the trace distance in their hybrid argument. The last step, from their intermediate problem to Block Hidden XOR, is the first half of our new lower bound for that problem, and it reuses parts of their classical lower bound for it. Block Hidden XOR is implicit in their argument, but they never define it: they lower-bound the intermediate problem directly. For a quantum lower bound it is much more convenient to make Block Hidden XOR an explicit problem, so we add this last reduction and prove it in section C.2.
Lemma 7.6 (From robust NGC to Block Hidden XOR). Let ( n , k ) (n,k) ( n , k ) be admissible with k ≡ 1 ( m o d 3 ) k \equiv1 \pmod{3} k ≡ 1 ( mod 3 ) and k ≥ 1600 log n k \ge1600 \log n k ≥ 1600 log n , and let w = ⌊ n / ( 400 k ) ⌋ w = \lfloor n/(400k) \rfloor w = ⌊ n / ( 400 k )⌋ be large enough. A q q q -qubit robust one-way protocol for N G C n , k \mathrm{NGC}_{n,k} NGC n , k with error at most 1 / 3 1/3 1/3 gives a q q q -qubit protocol for B H X w , r \mathrm{BHX}_{w,r} BHX w , r with r ≥ k / 1600 r \ge k/1600 r ≥ k /1600 and success at least 1 2 + 1 1000 w \frac{1}{2}+\frac{1}{1000w} 2 1 + 1000 w 1 .
The proof is in section C. The small advantage 1 / ( 1000 w ) 1/(1000w) 1/ ( 1000 w ) is the price of the reductions, and it is why the lower bound for Block Hidden XOR in the next subsection has to hold for small advantage.
A quantum lower bound for Block Hidden XOR
We show that a short quantum message gives Bob little advantage, that is, success probability only slightly above 1 / 2 1/2 1/2 . The classical lower bound of Assadi and Sundaresan conditions the input distribution on Alice’s message and bounds the Fourier coefficients of the conditional distribution. Let Alice’s message have q q q qubits, so that it lives in dimension 2 q 2^q 2 q (padding the message space if necessary). For an input X X X , let ρ X \rho_X ρ X be the density matrix of Alice’s message, averaged over her private randomness (the public coins are fixed in the proofs below). Instead of conditioning, we analyze the Fourier coefficients of the matrix-valued function X ↦ ρ X X \mapsto\rho_X X ↦ ρ X , which are 2 q × 2 q 2^q \times2^q 2 q × 2 q matrices.
Put
I = [ r ] × [ w ] , χ S ( X ) = ( − 1 ) ∑ ( i , j ) ∈ S X j i , ρ ^ ( S ) = E X [ χ S ( X ) ρ X ] ( S ⊆ I ) . \mathcal{I}=[r]\times[w],\qquad\chi_S(X)=(-1)^{\sum_{(i,j)\in S}X^i_j},\qquad\widehat{\rho}(S)=\mathbb{E}_X[\chi_S(X)\rho_X]\quad(S\subseteq\mathcal{I}). I = [ r ] × [ w ] , χ S ( X ) = ( − 1 ) ∑ ( i , j ) ∈ S X j i , ρ ( S ) = E X [ χ S ( X ) ρ X ] ( S ⊆ I ) .
We write ∥ A ∥ t r = Tr ∣ A ∣ \lVert A\rVert_{\mathrm{tr}}=\operatorname{Tr}|A| ∥ A ∥ tr = Tr ∣ A ∣ for the trace norm.
We will use the following density-matrix form of hypercontractivity due to Ben-Aroya, Regev, and de Wolf [6 ] . Shi, Wu, and Yu use it for their quantum Boolean Hidden Hypermatching lower bound [SWY15, Corollary 2.3].
Lemma 7.7 (Trace-norm matrix hypercontractivity [6 Lemma 6] ). For every q q q -qubit encoding and every 0 ≤ λ ≤ 1 0 \le\lambda\le1 0 ≤ λ ≤ 1 ,
∑ S ⊆ I λ ∣ S ∣ ∥ ρ ^ ( S ) ∥ t r 2 ≤ 2 2 λ q . (5) \sum_{S\subseteq\mathcal{I}}\lambda^{|S|}\lVert\widehat{\rho}(S)\rVert_{\mathrm{tr}}^2\le2^{2\lambda q}. \tag*{(5)} S ⊆ I ∑ λ ∣ S ∣ ∥ ρ ( S ) ∥ tr 2 ≤ 2 2 λ q . (5)
For Bob’s tuple J = ( J 1 , … , J r ) J=(J_1,\ldots,J_r) J = ( J 1 , … , J r ) , the set S J = { ( 1 , J 1 ) , … , ( r , J r ) } S_J=\{(1,J_1),\ldots,(r,J_r)\} S J = {( 1 , J 1 ) , … , ( r , J r )} has one coordinate in each block, and χ S J ( X ) = ( − 1 ) Z J ( X ) = ( − 1 ) ⨁ i = 1 r X J i i \chi_{S_J}(X)=(-1)^{Z_J(X)}=(-1)^{\bigoplus_{i=1}^r X^i_{J_i}} χ S J ( X ) = ( − 1 ) Z J ( X ) = ( − 1 ) ⨁ i = 1 r X J i i . Its Fourier coefficient is exactly what Bob can use:
Lemma 7.8 (Parity-conditioned states). For fixed J J J and b ∈ { 0 , 1 } b\in\{0,1\} b ∈ { 0 , 1 } , let ρ J , b : = E X [ ρ X ∣ Z J ( X ) = b ] \rho_{J,b}:=\mathbb{E}_X[\rho_X\mid Z_J(X)=b] ρ J , b := E X [ ρ X ∣ Z J ( X ) = b ] be the average message state over a uniform input X X X with Z J ( X ) = b Z_J(X)=b Z J ( X ) = b . Then ρ J , 0 − ρ J , 1 = 2 ρ ^ ( S J ) \rho_{J,0}-\rho_{J,1}=2\widehat{\rho}(S_J) ρ J , 0 − ρ J , 1 = 2 ρ ( S J ) , and the optimal probability of predicting Z J ( X ) Z_J(X) Z J ( X ) from the message is 1 2 + 1 2 ∥ ρ ^ ( S J ) ∥ t r \frac{1}{2}+\frac{1}{2}\lVert\widehat{\rho}(S_J)\rVert_{\mathrm{tr}} 2 1 + 2 1 ∥ ρ ( S J ) ∥ tr .
Proof. The parity is balanced, so ρ J , 0 − ρ J , 1 = E X [ ρ X ∣ Z J ( X ) = 0 ] − E X [ ρ X ∣ Z J ( X ) = 1 ] = 2 E X [ ( − 1 ) Z J ( X ) ρ X ] = 2 ρ ^ ( S J ) \rho_{J,0}-\rho_{J,1}=\mathbb{E}_X[\rho_X\mid Z_J(X)=0]-\mathbb{E}_X[\rho_X\mid Z_J(X)=1]=2\mathbb{E}_X[(-1)^{Z_J(X)}\rho_X]=2\widehat{\rho}(S_J) ρ J , 0 − ρ J , 1 = E X [ ρ X ∣ Z J ( X ) = 0 ] − E X [ ρ X ∣ Z J ( X ) = 1 ] = 2 E X [( − 1 ) Z J ( X ) ρ X ] = 2 ρ ( S J ) , and by fact 4.2 the optimal success probability is
1 2 + 1 4 ∥ ρ J , 0 − ρ J , 1 ∥ t r = 1 2 + 1 2 ∥ ρ ^ ( S J ) ∥ t r . \frac{1}{2}+\frac{1}{4}\lVert\rho_{J,0}-\rho_{J,1}\rVert_{\mathrm{tr}}=\frac{1}{2}+\frac{1}{2}\lVert\widehat{\rho}(S_J)\rVert_{\mathrm{tr}}. 2 1 + 4 1 ∥ ρ J , 0 − ρ J , 1 ∥ tr = 2 1 + 2 1 ∥ ρ ( S J ) ∥ tr .
:::
Thus success forces the coefficients ρ ^ ( S J ) \hat{\rho}(S_J) ρ ^ ( S J ) , all on sets of size r r r , to be large in trace norm, while lemma 7.7 bounds their total weight in terms of the message length.
Theorem 7.9 (Quantum Block Hidden XOR). Let w w w and r r r be positive integers and 0 ≤ γ ≤ 1 / 2 0 \le\gamma\le1/2 0 ≤ γ ≤ 1/2 . Suppose a one-way protocol in which Alice sends a state of dimension at most 2 q 2^q 2 q succeeds with probability at least 1 2 + γ \frac{1}{2}+\gamma 2 1 + γ on B H X w , r \mathrm{BHX}_{w,r} BHX w , r , averaged over the input distribution of definition 7.5 and all protocol randomness. Let A : = w ( 2 γ ) 2 / r A := w(2\gamma)^{2/r} A := w ( 2 γ ) 2/ r , the width discounted by the advantage. For every 0 < λ ≤ 1 0 < \lambda\le1 0 < λ ≤ 1 with A λ > 1 A\lambda> 1 A λ > 1 , q ≥ r 2 λ log ( A λ ) q \ge\frac{r}{2\lambda}\log(A\lambda) q ≥ 2 λ r log ( A λ ) . In particular, if A ≥ 2 A \ge2 A ≥ 2 , then q ≥ r A / 4 = r w 4 ( 2 γ ) 2 / r q \ge rA/4 = \frac{rw}{4}(2\gamma)^{2/r} q ≥ r A /4 = 4 r w ( 2 γ ) 2/ r .
Proof. Fix the public coins to a value with at least the average success. The input distribution is unchanged. Include private encoding randomness in ρ X \rho_X ρ X . By lemma 7.8, success 1 2 + γ \frac{1}{2}+\gamma 2 1 + γ gives E J [ ∥ ρ ^ ( S J ) ∥ t r ] ≥ 2 γ \mathbb{E}_J[\|\hat{\rho}(S_J)\|_{\mathrm{tr}}] \ge2\gamma E J [ ∥ ρ ^ ( S J ) ∥ tr ] ≥ 2 γ . There are w r w^r w r equally likely tuples J J J , so by Jensen’s inequality,
∑ J ∥ ρ ^ ( S J ) ∥ t r 2 = w r E J [ ∥ ρ ^ ( S J ) ∥ t r 2 ] ≥ 4 γ 2 w r . (6) \sum_J \|\hat{\rho}(S_J)\|_{\mathrm{tr}}^2 = w^r \mathbb{E}_J[\|\hat{\rho}(S_J)\|_{\mathrm{tr}}^2] \ge4\gamma^2w^r. \tag*{(6)} J ∑ ∥ ρ ^ ( S J ) ∥ tr 2 = w r E J [ ∥ ρ ^ ( S J ) ∥ tr 2 ] ≥ 4 γ 2 w r . (6)
The sets S J S_J S J are distinct for distinct J J J , and all have size r r r . So for 0 < λ ≤ 1 0 < \lambda\le1 0 < λ ≤ 1 , by lemma 7.7,
( A λ ) r = 4 γ 2 w r λ r ≤ ∑ S λ ∣ S ∣ ∥ ρ ^ ( S ) ∥ t r 2 ≤ 2 2 λ q . (7) (A\lambda)^r = 4\gamma^2w^r\lambda^r \le\sum_S \lambda^{|S|}\|\hat{\rho}(S)\|_{\mathrm{tr}}^2 \le2^{2\lambda q}. \tag*{(7)} ( A λ ) r = 4 γ 2 w r λ r ≤ S ∑ λ ∣ S ∣ ∥ ρ ^ ( S ) ∥ tr 2 ≤ 2 2 λ q . (7)
If γ = 0 \gamma= 0 γ = 0 , then A = 0 A = 0 A = 0 and nothing is claimed. Otherwise, taking base-two logarithms when A λ > 1 A\lambda> 1 A λ > 1 gives the first bound. If A ≥ 2 A \ge2 A ≥ 2 , take λ = 2 / A ≤ 1 \lambda= 2/A \le1 λ = 2/ A ≤ 1 : then log ( A λ ) = 1 \log(A\lambda) = 1 log ( A λ ) = 1 , and q ≥ r / ( 2 λ ) = r A / 4 q \ge r/(2\lambda) = rA/4 q ≥ r / ( 2 λ ) = r A /4 .
In the application (lemma C.4 in section C.2), there are at least log w \log w log w blocks and the advantage is only Θ ( 1 / w ) \Theta(1/w) Θ ( 1/ w ) . In the bound of theorem 7.9, the advantage γ \gamma γ appears only in the factor ( 2 γ ) 2 / r (2\gamma)^{2/r} ( 2 γ ) 2/ r . For γ = Θ ( 1 / w ) \gamma= \Theta(1/w) γ = Θ ( 1/ w ) and r ≥ log w r \ge\log w r ≥ log w this factor is at least a constant, so even this small advantage forces Ω ( w r ) \Omega(wr) Ω ( w r ) qubits:
Theorem 7.10 (Quantum Block Hidden XOR with small advantage). Let w ≥ 2000 w \ge2000 w ≥ 2000 and r ≥ log w r \ge\log w r ≥ log w be integers. Every one-way quantum protocol for B H X w , r \mathrm{BHX}_{w,r} BHX w , r with success at least 1 2 + 1 1000 w \frac{1}{2}+\frac{1}{1000w} 2 1 + 1000 w 1 communicates at least r w / 64 rw/64 r w /64 qubits.
Proof. Apply theorem 7.9 with γ = 1 / ( 1000 w ) \gamma= 1/(1000w) γ = 1/ ( 1000 w ) , so 2 γ = 1 / ( 500 w ) 2\gamma= 1/(500w) 2 γ = 1/ ( 500 w ) . As r ≥ log w r \ge\log w r ≥ log w and log ( 500 w ) ≤ 9 + log w ≤ 2 log w \log(500w) \le9+\log w \le2\log w log ( 500 w ) ≤ 9 + log w ≤ 2 log w for w ≥ 512 w \ge512 w ≥ 512 ,
( 500 w ) − 2 / r = 2 − 2 log ( 500 w ) / r ≥ 2 − 2 ⋅ 2 log w / log w = 2 − 4 . (500w)^{-2/r} = 2^{-2\log(500w)/r} \ge2^{-2\cdot2\log w/\log w} = 2^{-4}. ( 500 w ) − 2/ r = 2 − 2 l o g ( 500 w ) / r ≥ 2 − 2 ⋅ 2 l o g w / l o g w = 2 − 4 .
So A = w ( 2 γ ) 2 / r ≥ w / 16 ≥ 2 A = w(2\gamma)^{2/r} \ge w/16 \ge2 A = w ( 2 γ ) 2/ r ≥ w /16 ≥ 2 , with A A A as in theorem 7.9, and the second bound of theorem 7.9 gives q ≥ r A / 4 ≥ r w / 64 q \ge rA/4 \ge rw/64 q ≥ r A /4 ≥ r w /64 .
Proof of theorem 7.2. Other cycle lengths reduce to k ≡ 1 ( m o d 3 ) k \equiv1 \pmod{3} k ≡ 1 ( mod 3 ) by the padding in the proof of Theorem 1 of [2 Theorem 1] , which adds public edges and does not touch the message, so let k ≡ 1 ( m o d 3 ) k \equiv1 \pmod{3} k ≡ 1 ( mod 3 ) , and let w = ⌊ n / ( 400 k ) ⌋ w = \lfloor n/(400k)\rfloor w = ⌊ n / ( 400 k )⌋ . If w w w is large enough, lemma 7.6 gives a q q q -qubit protocol for B H X w , r \mathrm{BHX}_{w,r} BHX w , r with r ≥ k / 1600 r \ge k/1600 r ≥ k /1600 and success at least 1 2 + 1 1000 w \frac{1}{2}+\frac{1}{1000w} 2 1 + 1000 w 1 . As r ≥ k / 1600 ≥ log n ≥ log w r \ge k/1600 \ge\log n \ge\log w r ≥ k /1600 ≥ log n ≥ log w , theorem 7.10 gives q ≥ r w / 64 ≥ k 1600 ⋅ n 800 k ⋅ 1 64 = Ω ( n ) q \ge rw/64 \ge\frac{k}{1600}\cdot\frac{n}{800k}\cdot\frac{1}{64} = \Omega(n) q ≥ r w /64 ≥ 1600 k ⋅ 800 k n ⋅ 64 1 = Ω ( n ) , using w ≥ n / ( 800 k ) w \ge n/(800k) w ≥ n / ( 800 k ) . If w w w is bounded, that is, k = Θ ( n ) k = \Theta(n) k = Θ ( n ) , then lemma C.6 in section C.2 gives q = Ω ( n ) q = \Omega(n) q = Ω ( n ) .
Where random order starts to help
Theorem 7.3 concerns long cycles and single arrivals. When cycles are short or edges repeat, random order does help, but in every case that we know of, the gain is classical.
Repeated edges. In an R R R -repeated NGC stream, each edge has R R R labeled copies, and the algorithm sees only the edge. In uniformly random order all copies of all edges are permuted uniformly, and in uniformly clustered order the R R R copies of each edge are consecutive and the clusters are permuted uniformly (definition D.1). The two orders arrange the same multiset.
Theorem 7.11 (Order gap for repeated NGC). Let ( n , k ) (n,k) ( n , k ) be admissible.
If R ≥ 2 k R \ge2k R ≥ 2 k , a classical algorithm with O ( log n ) O(\log n) O ( log n ) bits solves N G C n , k \mathrm{NGC}_{n,k} NGC n , k on R R R -repeated streams in uniformly random order with one-sided error below 1 / 4 1/4 1/4 .
If a quantum algorithm with space S S S solves N G C n , k \mathrm{NGC}_{n,k} NGC n , k on R R R -repeated streams in uniformly clustered order with error 1 / 3 1/3 1/3 , then S + O ( log n + log R ) S + O(\log n + \log R) S + O ( log n + log R ) is at least the single-arrival random-order space of N G C n , k \mathrm{NGC}_{n,k} NGC n , k . If k ≥ 1600 log n k \ge1600\log n k ≥ 1600 log n , this is Ω ( n ) \Omega(n) Ω ( n ) by theorem 7.3.
So for k = Θ ( log n ) k = \Theta(\log n) k = Θ ( log n ) with k ≥ 1600 log n k \ge1600\log n k ≥ 1600 log n and R = 2 k R = 2k R = 2 k , the same multiset of Θ ( n log n ) \Theta(n\log n) Θ ( n log n ) items needs O ( log n ) O(\log n) O ( log n ) classical bits in random order and Ω ( n ) \Omega(n) Ω ( n ) quantum space in clustered order.
Proof sketch. For Part 1, the algorithm follows cycles one edge at a time. A walker is a small classical streaming algorithm that does this for one start vertex. It remembers its start vertex, its current vertex and the vertex it came from, and moves along the next arriving edge at its current vertex that does not lead back. In a graph of maximum degree two it goes around its cycle in one direction, so it returns to its start after exactly k k k steps on a k k k -cycle, and never after k k k steps on a 2 k 2k 2 k -cycle or a path. With single arrivals it would need up to k k k passes, since the next edge it needs has often already passed. Random repetitions fix this: each step waits about a 1 / R 1/R 1/ R fraction of the stream for a copy of the next edge, so with R ≥ 2 k R \ge2k R ≥ 2 k copies a walker closes a k k k -cycle with constant probability. A few walkers from random starts, each with O ( log n ) O(\log n) O ( log n ) bits, make the error small. For Part 2, an algorithm that sees each edge once can pass it R R R times in a row to the clustered algorithm, which turns a uniform single-arrival order into a uniformly clustered one. The full proof is in section D.3.
Short cycles. For constant k k k , random order helps classical algorithms even with single arrivals, while quantum memory helps at most polynomially in adversarial order.
Proposition 7.12 (Constant k k k in random order, [11 ] ). For every admissible ( n , k ) (n,k) ( n , k ) , a classical algorithm solves N G C n , k \mathrm{NGC}_{n,k} NGC n , k on single-arrival random-order streams with error 1 / 3 1/3 1/3 using k O ( k ) polylog n k^{O(k)}\operatorname{polylog} n k O ( k ) polylog n bits.
Proof. In the k k k -cycle case the graph has n / ( 2 k ) + n / ( 2 k ) = n / k n/(2k) + n/(2k) = n/k n / ( 2 k ) + n / ( 2 k ) = n / k components, and in the 2 k 2k 2 k -cycle case n / ( 4 k ) + n / ( 2 k ) = 3 n / ( 4 k ) n/(4k) + n/(2k) = 3n/(4k) n / ( 4 k ) + n / ( 2 k ) = 3 n / ( 4 k ) . Chiplunkar, Kallaugher, Kapralov, and Price [11 ] estimate the number of connected components of a random-order graph stream to additive error ε n \varepsilon n ε n in ( 1 / ε ) O ( 1 / ε ) polylog n (1/\varepsilon)^{O(1/\varepsilon)}\operatorname{polylog} n ( 1/ ε ) O ( 1/ ε ) polylog n space, and we take ε = 1 / ( 10 k ) \varepsilon= 1/(10k) ε = 1/ ( 10 k ) .
Theorem 7.13 (Constant k k k in adversarial order). Fix k ≥ 4 k \ge4 k ≥ 4 , let d = ⌊ k / 2 ⌋ d = \lfloor k/2\rfloor d = ⌊ k /2 ⌋ , and let n n n range over the multiples of 4 k 4k 4 k . In adversarial order, classical algorithms for N G C n , k \mathrm{NGC}_{n,k} NGC n , k need Ω k ( n 1 − 1 / d ) \Omega_k\left(n^{1-1/d}\right) Ω k ( n 1 − 1/ d ) bits when 8 k ∣ n 8k \mid n 8 k ∣ n , and quantum algorithms need Ω k ( n 1 − 2 / d ) \Omega_k\left(n^{1-2/d}\right) Ω k ( n 1 − 2/ d ) space for d ≥ 3 d \ge3 d ≥ 3 .
The proof is in section E: it is the reduction of Verbin and Yu [VY11, Lemma 2.1] from Boolean Hidden Hypermatching to cycle counting. For fixed k ≥ 6 k \ge6 k ≥ 6 this is a single-arrival separation between random and adversarial order for a natural graph problem, with polylog n \operatorname{polylog} n polylog n against Ω k ( n 1 − 2 / d ) \Omega_k\left(n^{1-2/d}\right) Ω k ( n 1 − 2/ d ) , and the lower bound holds for quantum algorithms. Here random order alone does what quantum memory cannot.
Open questions
Quantum memory against random order, for worst-case inputs. To the best of our knowledge, the only problems on which quantum memory in adversarial order is exponentially stronger than classical memory in random order come from the concurrent work of Bouland, Ding, and Jain [3 ] , whose inputs are random and whose quantum guarantee is averaged over the input. Is there such a separation for worst-case inputs? The single-pass advantages that rest on Boolean Hidden Matching cannot give one (observation F.1), and neither can ARHM.
Both resources, with a solvable adversarial version. ARHM shows that quantum memory in random order can be exponentially stronger than classical memory in random order and than quantum memory when the data comes first. Its fully adversarial version, however, is unsolvable, because answers are due on arrival. Relaxing the deadlines to the end of the stream does not help, since it makes the problem easy for classical algorithms in random order (remark 5.2). Short cycles, on the other hand, separate quantum memory in random order from quantum memory in adversarial order only through classical algorithms. Is there a problem that is solvable in adversarial order, on which quantum memory in random order is exponentially stronger than both models with one resource?
The range of the consumability bound. For simultaneous requests, our linear lower bound holds for m ≤ N 1 / 2 − δ m \le N^{1/2-\delta} m ≤ N 1/2 − δ . Can it reach m = N m = \sqrt{N} m = N , as the sequential bound does? Even where our bound is linear, separate phase states use O ( m log N ) O(m \log N) O ( m log N ) qubits, and Gilboa, Jain, and McClean [15 ] ask whether Ω ( m log N ) \Omega(m \log N) Ω ( m log N ) holds for m ≪ N m \ll\sqrt{N} m ≪ N .
A natural problem that needs replenishment. ARHM is built to make consumability and replenishment provable at once. Both appear in natural settings, in regression sampling (remark 5.18) and in Kallaugher’s triangle estimator (remark 5.19), but neither gives a separation: our upper bound for regression sampling covers only one family of inputs, and repeated edges help classical triangle counting too. Is there a natural problem on which replenishment gives a separation?
AI Disclosure
All the problems and key ideas were developed by the author. AI tools (GPT-6 Astra, Claude Fable 5.1) were used to prototype the proofs, search for the right parameter regimes, or shorter/cleaner proofs, create some of the figures, as well as to get a better understanding of [2 ] and [15 ] needed for the proof. All the results in this paper were either developed without AI tools or manually verified by the author. The author is responsible for the correctness of all results in the paper.
Acknowledgments
This research was supported in part by the French PEPR integrated projects EPIQ (ANR-22-PETQ-0007) and HQI (ANR-22-PNCQ-0002).
Proof of the simultaneous bound
This appendix proves theorem 6.7, following the outline in § 6.3 .
A transversal of perfect matchings M 1 , … , M m M_1,\ldots,M_m M 1 , … , M m is a choice of one edge e t ∈ M t e_t \in M_t e t ∈ M t from each of them. Its edges don’t need to be distinct, since a matching may appear more than once in the list, and they may share vertices. By remark 6.2, Bob’s output edges always form a transversal even when the answers are incorrect, so the smallest forest over all transversals bounds the forest of any output:
Definition A.1 (Transversal forest size). For perfect matchings M 1 , … , M m M_1,\ldots,M_m M 1 , … , M m of [ N ] [N] [ N ] , the transversal forest size is the minimum forest size over all transversals:
τ f s ( M 1 , … , M m ) = min e 1 ∈ M 1 , … , e m ∈ M m f s ( { e 1 , … , e m } ) . \tau_{\mathrm{fs}}(M_1,\ldots,M_m)=\min_{e_1\in M_1,\ldots,e_m\in M_m}\mathrm{fs}(\{e_1,\ldots,e_m\}). τ fs ( M 1 , … , M m ) = e 1 ∈ M 1 , … , e m ∈ M m min fs ({ e 1 , … , e m }) .
Lemma A.2 (Small forests have small support). For every nonempty edge set F F F , ∣ V ( F ) ∣ ≤ 2 f s ( F ) |V(F)| \le2\mathrm{fs}(F) ∣ V ( F ) ∣ ≤ 2 fs ( F ) . Consequently, if τ f s ( M 1 , … , M m ) ≤ s \tau_{\mathrm{fs}}(M_1,\ldots,M_m) \le s τ fs ( M 1 , … , M m ) ≤ s , some set W W W of at most 2 s 2s 2 s vertices contains an edge of every M t M_t M t .
Proof. Remember that c ( F ) c(F) c ( F ) denotes the number of connected components created by edges in F F F . Each component with v v v vertices contributes v − 1 ≥ v / 2 v-1 \ge v/2 v − 1 ≥ v /2 to f s ( F ) = ∣ V ( F ) ∣ − c ( F ) \mathrm{fs}(F)=|V(F)|-c(F) fs ( F ) = ∣ V ( F ) ∣ − c ( F ) . Thus ∣ V ( F ) ∣ ≤ 2 f s ( F ) |V(F)| \le2\mathrm{fs}(F) ∣ V ( F ) ∣ ≤ 2 fs ( F ) . To get the second claim, take W = V ( F ) W=V(F) W = V ( F ) for a transversal F F F with f s ( F ) ≤ s \mathrm{fs}(F)\le s fs ( F ) ≤ s .
Proposition A.3 (Transversal-forest tail). For independent draws M 1 , … , M m M_1,\ldots,M_m M 1 , … , M m from a balanced distribution and every integer 1 ≤ s ≤ N / 2 1 \le s \le N/2 1 ≤ s ≤ N /2 ,
P [ τ f s ( M 1 , … , M m ) ≤ s ] ≤ ( N 2 s ) ( ( 2 s 2 ) N − 1 ) m . \mathbb{P}[\tau_{\mathrm{fs}}(M_1,\ldots,M_m)\le s]\le\binom{N}{2s}\left(\frac{\binom{2s}{2}}{N-1}\right)^m. P [ τ fs ( M 1 , … , M m ) ≤ s ] ≤ ( 2 s N ) ( N − 1 ( 2 2 s ) ) m .
Proof. By lemma A.2, if τ f s ≤ s \tau_{\mathrm{fs}}\le s τ fs ≤ s then some vertex set W W W with ∣ W ∣ = 2 s |W|=2s ∣ W ∣ = 2 s contains an edge of every M t M_t M t (enlarge the support to exactly 2 s 2s 2 s vertices, which is possible as 2 s ≤ N 2s\le N 2 s ≤ N ). For a fixed W W W ,
P [ every M t has an edge inside W ] ≤ ( ( 2 s 2 ) N − 1 ) m , \mathbb{P}[\text{every }M_t\text{ has an edge inside }W]\le\left(\frac{\binom{2s}{2}}{N-1}\right)^m, P [ every M t has an edge inside W ] ≤ ( N − 1 ( 2 2 s ) ) m ,
since for each t t t a union bound over the ( 2 s 2 ) \binom{2s}{2} ( 2 2 s ) pairs inside W W W and balancedness give one factor, and the M t M_t M t are independent. A union bound over the ( N 2 s ) \binom{N}{2s} ( 2 s N ) sets W W W finishes the proof.
Theorem A.4 (Quantitative simultaneous bound). Let M 1 , … , M m M_1,\ldots,M_m M 1 , … , M m be independent draws from a balanced distribution, independent of X X X and of the encoding randomness. Alice sends any q q q -qubit message, and Bob receives all matchings and gives the output for all of them jointly. Let G ∈ { 0 , 1 } G \in\{0,1\} G ∈ { 0 , 1 } indicate whether all answers are correct.
Let p = P [ G = 1 ] p = \mathbb{P}[G = 1] p = P [ G = 1 ] , over X X X , the matchings and all randomness of the protocol. Then for every integer s ≥ 1 s \ge1 s ≥ 1 ,
q ≥ s [ p − P [ τ f s ( M 1 , … , M m ) < s ] ] − h 2 ( p ) . q \ge s\left[p-\mathbb{P}[\tau_{\mathrm{fs}}(M_1,\ldots,M_m)<s]\right]-h_2(p). q ≥ s [ p − P [ τ fs ( M 1 , … , M m ) < s ] ] − h 2 ( p ) .
Proof. When τ f s ≥ s \tau_{\mathrm{fs}} \ge s τ fs ≥ s , every legal output has fs ( { e 1 , … , e m } ) ≥ s \operatorname{fs}(\{e_1,\ldots,e_m\}) \ge s fs ({ e 1 , … , e m }) ≥ s . Thus
q ≥ E [ G fs ( { e 1 , … , e m } ) ] − h 2 ( p ) q \ge\mathbb{E}[G\operatorname{fs}(\{e_1,\ldots,e_m\})]-h_2(p) q ≥ E [ G fs ({ e 1 , … , e m })] − h 2 ( p )
(by lemma 6.6)
≥ s P [ G = 1 , τ f s ≥ s ] − h 2 ( p ) ≥ s [ p − P [ τ f s < s ] ] − h 2 ( p ) . \begin{aligned}
\ge s\mathbb{P}[G=1,\ \tau_{\mathrm{fs}}\ge s]-h_2(p) \\
&\ge s\left[p-\mathbb{P}[\tau_{\mathrm{fs}}<s]\right]-h_2(p).
\end{aligned} ≥ s P [ G = 1 , τ fs ≥ s ] − h 2 ( p ) ≥ s [ p − P [ τ fs < s ] ] − h 2 ( p ) .
Corollary A.5 (Linear transversal forests). Fix a constant δ ∈ ( 0 , 1 / 2 ) \delta\in(0,1/2) δ ∈ ( 0 , 1/2 ) and let c δ = δ / 16 c_\delta=\delta/16 c δ = δ /16 . For every even N ≥ 2 N \ge2 N ≥ 2 and every 1 ≤ m ≤ N 1 / 2 − δ 1 \le m \le N^{1/2-\delta} 1 ≤ m ≤ N 1/2 − δ , independent balanced matchings satisfy
P [ τ f s ( M 1 , … , M m ) ≤ c δ m ] ≤ N − δ m . \mathbb{P}[\tau_{\mathrm{fs}}(M_1,\ldots,M_m)\le c_\delta m]\le N^{-\delta m}. P [ τ fs ( M 1 , … , M m ) ≤ c δ m ] ≤ N − δ m .
Proof. Write c = c δ c=c_\delta c = c δ and a = ⌊ c m ⌋ a=\lfloor cm\rfloor a = ⌊ c m ⌋ . Since τ f s \tau_{\mathrm{fs}} τ fs is an integer, { τ f s ≤ c m } = { τ f s ≤ a } \{\tau_{\mathrm{fs}}\le cm\}=\{\tau_{\mathrm{fs}}\le a\} { τ fs ≤ c m } = { τ fs ≤ a } . If a = 0 a=0 a = 0 this event is empty, because every transversal has at least one edge. Otherwise 1 ≤ a ≤ m ≤ N ≤ N / 2 1\le a\le m\le\sqrt{N}\le N/2 1 ≤ a ≤ m ≤ N ≤ N /2 , and by proposition A.3,
P [ τ f s ≤ a ] ≤ ( N 2 a ) ( ( 2 a 2 ) N − 1 ) m . \mathbb{P}[\tau_{\mathrm{fs}}\le a]\le\binom{N}{2a}\left(\frac{\binom{2a}{2}}{N-1}\right)^m. P [ τ fs ≤ a ] ≤ ( 2 a N ) ( N − 1 ( 2 2 a ) ) m .
The logarithm of this bound satisfies
ln [ ( N 2 a ) ( ( 2 a 2 ) N − 1 ) m ] ≤ 2 a ln e N 2 a + m ln 2 a 2 N − 1 \ln\left[\binom{N}{2a}\left(\frac{\binom{2a}{2}}{N-1}\right)^m\right]
\le2a\ln\frac{eN}{2a}+m\ln\frac{2a^2}{N-1} ln [ ( 2 a N ) ( N − 1 ( 2 2 a ) ) m ] ≤ 2 a ln 2 a e N + m ln N − 1 2 a 2
≤ 2 c m ln ( e N ) + m ln 4 c 2 m 2 N ≤ [ 2 c ( 1 + 1 ln N ) − 2 δ ] m ln N + m ln ( 4 c 2 ) ≤ − δ m ln N . \begin{aligned}
\le2cm\ln(eN)+m\ln\frac{4c^2m^2}{N} \\
&\le\left[2c\left(1+\frac{1}{\ln N}\right)-2\delta\right]m\ln N+m\ln(4c^2) \\
&\le-\delta m\ln N.
\end{aligned} ≤ 2 c m ln ( e N ) + m ln N 4 c 2 m 2 ≤ [ 2 c ( 1 + ln N 1 ) − 2 δ ] m ln N + m ln ( 4 c 2 ) ≤ − δ m ln N .
Thus P [ τ f s ≤ a ] ≤ N − δ m \mathbb{P}[\tau_{\mathrm{fs}}\le a]\le N^{-\delta m} P [ τ fs ≤ a ] ≤ N − δ m .
Now we can prove the linear lower bound for Multiple Hidden Matching.
Theorem 6.7 (Linear Multiple Hidden Matching lower bound). Fix constants δ ∈ ( 0 , 1 / 2 ) \delta\in(0,1/2) δ ∈ ( 0 , 1/2 ) , ε ∈ ( 0 , 1 / 2 ) \varepsilon\in(0,1/2) ε ∈ ( 0 , 1/2 ) , and a balanced distribution D \mathcal{D} D on perfect matchings of [ N ] [N] [ N ] (definition 6.3). For m ≤ N 1 / 2 − δ m\le N^{1/2-\delta} m ≤ N 1/2 − δ , every one-way protocol for M H M N , m \mathrm{MHM}_{N,m} MHM N , m that answers all m m m requests correctly with probability at least 1 − ε 1-\varepsilon 1 − ε , when X X X is uniform and M 1 , … , M m M_1,\ldots,M_m M 1 , … , M m are independent draws from D \mathcal{D} D , requires Ω δ ( m ) \Omega_\delta(m) Ω δ ( m ) qubits. In particular, so does every protocol with worst-case joint error at most ε \varepsilon ε .
Proof of theorem 6.7. Fix some protocol, and run it on uniform X X X and independent draws from D \mathcal{D} D . By assumption, its joint success probability is p ≥ 1 − ε > 1 / 2 p\ge1-\varepsilon>1/2 p ≥ 1 − ε > 1/2 . Let c = c δ c=c_\delta c = c δ . If c m < 8 cm<8 c m < 8 , one qubit already suffices for the claim: with no message, Bob’s first edge and bit are independent of X X X , so joint success is at most 1 / 2 < 1 − ε 1/2<1-\varepsilon 1/2 < 1 − ε , and hence q ≥ 1 > c m / 8 q\ge1>cm/8 q ≥ 1 > c m /8 .
Otherwise c m ≥ 8 cm\ge8 c m ≥ 8 , so δ m = 16 c m ≥ 128 \delta m=16cm\ge128 δ m = 16 c m ≥ 128 . Let s = ⌊ c m ⌋ + 1 s=\lfloor cm\rfloor+1 s = ⌊ c m ⌋ + 1 , so that s > c m s>cm s > c m . By corollary A.5,
P [ τ f s < s ] = P [ τ f s ≤ c m ] ≤ N − δ m ≤ 2 − 128 ≤ 1 4 . \mathbb{P}[\tau_{\mathrm{fs}}<s]=\mathbb{P}[\tau_{\mathrm{fs}}\le cm]\le N^{-\delta m}\le2^{-128}\le\frac14. P [ τ fs < s ] = P [ τ fs ≤ c m ] ≤ N − δ m ≤ 2 − 128 ≤ 4 1 .
and theorem A.4 with h 2 ( p ) ≤ 1 h_2(p) \le1 h 2 ( p ) ≤ 1 gives
q ≥ s ( 1 2 − 1 4 ) − 1 ≥ c m 4 − 1 ≥ c m 8 . q \ge s\left(\frac{1}{2}-\frac{1}{4}\right)-1 \ge\frac{cm}{4}-1 \ge\frac{cm}{8}. q ≥ s ( 2 1 − 4 1 ) − 1 ≥ 4 c m − 1 ≥ 8 c m .
In both cases q ≥ c m / 8 = δ m / 128 q \ge cm/8 = \delta m/128 q ≥ c m /8 = δ m /128 .
The graph problems of the Noisy Gap Cycle applications
These are the problems of corollary 7.4, as defined by Assadi and Sundaresan [2 Section 5] . In each, the input is a graph G = ( V , E ) G=(V,E) G = ( V , E ) with n n n vertices, given as a stream of its edges in uniformly random order, together with an accuracy ε > 0 \varepsilon> 0 ε > 0 , and the algorithm must succeed with probability at least 2 / 3 2/3 2/3 .
Definition B.1 (Connected components). Output a number c ~ \widetilde{c} c with ∣ c ~ − c ( G ) ∣ ≤ ε n |\widetilde{c}-c(G)| \le\varepsilon n ∣ c − c ( G ) ∣ ≤ ε n , where c ( G ) c(G) c ( G ) is the number of connected components of G G G .
Definition B.2 (Maximum matching size). Output a number ν ~ \widetilde{\nu} ν with ∣ ν ~ − ν ( G ) ∣ ≤ ε n |\widetilde{\nu}-\nu(G)| \le\varepsilon n ∣ ν − ν ( G ) ∣ ≤ ε n , where ν ( G ) \nu(G) ν ( G ) is the size of a maximum matching of G G G .
Definition B.3 (Maximum independent set size). Output a number α ~ \widetilde{\alpha} α with ∣ α ~ − α ( G ) ∣ ≤ ε n |\widetilde{\alpha}-\alpha(G)| \le\varepsilon n ∣ α − α ( G ) ∣ ≤ ε n , where α ( G ) \alpha(G) α ( G ) is the size of a maximum independent set of G G G .
Definition B.4 (Minimum spanning tree weight). Let W ≥ 2 W \ge2 W ≥ 2 be an integer. The graph G G G is connected, and its edges have weights in [ W ] [W] [ W ] , which arrive with the edges. Output a number M ~ \widetilde{M} M with M ( G ) / ( 1 + ε ) ≤ M ~ ≤ ( 1 + ε ) M ( G ) M(G)/(1+\varepsilon) \le\widetilde{M} \le(1+\varepsilon)M(G) M ( G ) / ( 1 + ε ) ≤ M ≤ ( 1 + ε ) M ( G ) , where M ( G ) M(G) M ( G ) is the weight of a minimum spanning tree of G G G .
Definition B.5 (Random walks). A distribution p p p is pointwise ε \varepsilon ε -close to a distribution p ′ p' p ′ on the same finite set Ω \Omega Ω if ( 1 − ε ) p ′ ( s ) ≤ p ( s ) ≤ ( 1 + ε ) p ′ ( s ) (1-\varepsilon)p'(s) \le p(s) \le(1+\varepsilon)p'(s) ( 1 − ε ) p ′ ( s ) ≤ p ( s ) ≤ ( 1 + ε ) p ′ ( s ) for every s ∈ Ω s \in\Omega s ∈ Ω . For a vertex u ∈ V u \in V u ∈ V and a length ℓ ≥ 1 \ell\ge1 ℓ ≥ 1 , a random sequence ( X 0 , … , X ℓ ) (X_0,\ldots,X_\ell) ( X 0 , … , X ℓ ) of vertices is an ε \varepsilon ε -approximate sample of the ℓ \ell ℓ -step random walk from u u u if its distribution is pointwise ε \varepsilon ε -close to that of the ℓ \ell ℓ -step random walk on G G G started at u u u . In the ( ℓ , b , ε , δ ) (\ell,b,\varepsilon,\delta) ( ℓ , b , ε , δ ) -random walk problem, for a length ℓ \ell ℓ , a number b b b of walks and ε , δ ∈ ( 0 , 1 ) \varepsilon,\delta\in(0,1) ε , δ ∈ ( 0 , 1 ) , the algorithm must output b b b sequences of vertices whose joint distribution is within total variation distance δ \delta δ of b b b independent ε \varepsilon ε -approximate samples of the ℓ \ell ℓ -step random walk, each started at an independent uniform vertex of V V V .
The reduction from Noisy Gap Cycle to Block Hidden XOR
We prove lemma 7.6. The reduction has two parts (figure 4). The first takes robust NGC to an intermediate problem of Assadi and Sundaresan [2 ] , Distributional Hidden XOR (definition C.1 below). It is their reduction, and we only point out the one change needed for quantum messages (lemma C.2). The second part takes Distributional Hidden XOR to Block Hidden XOR, which Assadi and Sundaresan do not define. We prove it in section C.2. Their conditioning in this part [2 Claim 4.9] keeps only ln w \ln w ln w active blocks, which would give Ω ( w log w ) \Omega(w \log w) Ω ( w log w ) instead of Ω ( w t ) \Omega(wt) Ω ( w t ) , and its union bound needs t < w t < w t < w , so we condition slightly differently.
Table 4. From random-order NGC to Block Hidden XOR. The first three reductions are those of Assadi and Sundaresan, and we only check that they work for quantum messages. The last two rows are new, and together they give the quantum lower bound for DHX. The fourth reuses parts of the classical lower bound of Assadi and Sundaresan for DHX, with a slightly different conditioning, and the fifth is the quantum lower bound for Block Hidden XOR. The advantage of a protocol is its success probability minus 1 / 2 1/2 1/2 . The hard graphs have t t t blocks and m m m pairs of paths. Each pair is kept parallel or crossed, and whether it ends up crossed is its path parity . The two cases of NGC differ in all m m m path parities, a hybrid sets the first h h h of them to one value and the rest to the other, and neighboring hybrids differ in one (section C.1). Then w = m + 1 w=m+1 w = m + 1 is the width of the resulting instance of Distributional Hidden XOR (DHX, definition C.1). A coordinate of a block is clean if the random edge split gives Alice the edges that encode its bit and Bob the edges of the permutation around it, and a block is usable if at least w / 100 w/100 w /100 of its coordinates are clean, including the one Bob needs. Then r r r is the number of usable blocks (section C.2). The cycle length is k = 3 t + 1 k=3t+1 k = 3 t + 1 and n = 4 k m n=4km n = 4 k m , so n = Θ ( w t ) n=\Theta(wt) n = Θ ( w t ) , and r w ′ = Ω ( n ) rw'=\Omega(n) r w ′ = Ω ( n ) because r ≥ t / 512 r\ge t/512 r ≥ t /512 and w ′ ≥ w / 125 w'\ge w/125 w ′ ≥ w /125 . Lemma 7.6 calls the final width w ′ w' w ′ simply w w w .
The construction and the reduction to DHX
For a string x ∈ { 0 , 1 } w x \in\{0,1\}^{w} x ∈ { 0 , 1 } w and a permutation σ \sigma σ of [ w ] [w] [ w ] , the graph Block( x , σ ) (x,\sigma) ( x , σ ) has four layers of 2 w 2w 2 w vertices, each split into w w w groups of two vertices a j ℓ , b j ℓ a_j^\ell,b_j^\ell a j ℓ , b j ℓ . Between layers 1 and 2 it sends the two vertices of group j j j to group σ ( j ) \sigma(j) σ ( j ) , between layers 2 and 3 it keeps the two edges of group j j j parallel if x j = 0 x_j=0 x j = 0 and crosses them if x j = 1 x_j=1 x j = 1 , and between layers 3 and 4 it applies σ − 1 \sigma^{-1} σ − 1 .
The Multi-Block graph Multi-Block( X , Σ ) (X,\Sigma) ( X , Σ ) chains Block( x 1 , σ 1 ) , … , Block ( x t , σ t ) (x^1,\sigma^1),\ldots,\text{Block}(x^t,\sigma^t) ( x 1 , σ 1 ) , … , Block ( x t , σ t ) into 3 t + 1 3t+1 3 t + 1 layers [2 Definitions 3.1–3.9] . The two paths that start at group j j j of the first layer end at group j j j of the last layer, crossed exactly when the hidden parity z G ( j ) : = ⨁ i = 1 t x σ i ( j ) i z_G(j):=\bigoplus_{i=1}^{t}x^i_{\sigma^i(j)} z G ( j ) := ⨁ i = 1 t x σ i ( j ) i is 1 [2 Observation 3.10] .
In the chain of figure 4, one problem sits between robust NGC and Block Hidden XOR: Distributional Hidden XOR, which is defined on Multi-Block( X , Σ ) (X,\Sigma) ( X , Σ ) as follows.
Definition C.1 (Distributional Hidden XOR). Let w w w and t t t be positive integers. In DHXw , t _{w,t} w , t , sample independent uniform X = ( x 1 , … , x t ) X=(x^1,\ldots,x^t) X = ( x 1 , … , x t ) with x i ∈ { 0 , 1 } w x^i\in\{0,1\}^{w} x i ∈ { 0 , 1 } w and Σ = ( σ 1 , … , σ t ) \Sigma=(\sigma^1,\ldots,\sigma^t) Σ = ( σ 1 , … , σ t ) with σ i \sigma^i σ i a permutation of [ w ] [w] [ w ] , and let G = Multi-Block ( X , Σ ) G=\operatorname{Multi\text{-}Block}(X,\Sigma) G = Multi - Block ( X , Σ ) . Each edge of G G G is assigned to Alice or Bob independently with probability 1 / 2 1/2 1/2 . The vertex names are public, and each player receives its edges as pairs of vertex names. Alice sends one message, and Bob must output z G ( 1 ) = ⨁ i = 1 t x σ i ( 1 ) i z_G(1)=\bigoplus_{i=1}^{t}x^i_{\sigma^i(1)} z G ( 1 ) = ⨁ i = 1 t x σ i ( 1 ) i . Success probability is over ( X , Σ ) (X,\Sigma) ( X , Σ ) , the edge partition and the protocol’s randomness.
So z G ( 1 ) z_G(1) z G ( 1 ) says whether the two paths from group 1 end up crossed. In block i i i they pass through group σ i ( 1 ) \sigma^{i}(1) σ i ( 1 ) in the middle and cross there exactly when x σ i ( 1 ) i = 1 x^{i}_{\sigma^{i}(1)} = 1 x σ i ( 1 ) i = 1 .
In other words, D H X w , t \mathrm{DHX}_{w,t} DHX w , t is B H X w , t \mathrm{BHX}_{w,t} BHX w , t with two changes: Bob’s index into block i i i is σ i ( 1 ) \sigma^{i}(1) σ i ( 1 ) for a uniform permutation σ i \sigma^{i} σ i , and the players do not receive the strings and permutations directly, but only their random shares of the graph that encodes them.
Lemma C.2 (From NGC to DHX [2 Lemma 3.12] ). Let k = 3 t + 1 k = 3t + 1 k = 3 t + 1 , n = 4 k m n = 4km n = 4 k m and w = m + 1 w = m + 1 w = m + 1 . A q q q -qubit protocol for N G C n , k \mathrm{NGC}_{n,k} NGC n , k that succeeds with probability at least 2 / 3 2/3 2/3 on the hard distribution of [2 Section 3.2] gives a q q q -qubit protocol for D H X w , t \mathrm{DHX}_{w,t} DHX w , t with success at least 1 2 + 1 6 w \frac{1}{2} + \frac{1}{6w} 2 1 + 6 w 1 .
The proof of [2 Lemma 3.12] applies to quantum protocols with one change: its hybrid argument [2 Lemma 3.13] uses the statistical distance between Bob’s views, and for a quantum message we use the trace distance between Bob’s classical-quantum states instead, with fact 4.2. The rest of the proof only relabels each player’s own edges and adds public edges, so Alice still sends one message.
From DHX to Block Hidden XOR
As in [2 Section 4.1] , the edge partition of a block is given by three independent uniform functions f L , f M , f R : [ 2 w ] → { A , B } f_L, f_M, f_R : [2w] \to\{\mathrm{A}, \mathrm{B}\} f L , f M , f R : [ 2 w ] → { A , B } , which say who owns the edge from layer 1 into a vertex of layer 2, from a vertex of layer 2 into layer 3, and from a vertex of layer 3 into layer 4.
Definition C.3 (Clean coordinate [2 Definition 4.3] ). A coordinate j ∈ [ w ] j \in[w] j ∈ [ w ] is clean in a block if f L ( a j 2 ) = f L ( b j 2 ) = B f_L(a_j^2) = f_L(b_j^2) = \mathrm{B} f L ( a j 2 ) = f L ( b j 2 ) = B , f M ( a j 2 ) = f M ( b j 2 ) = A f_M(a_j^2) = f_M(b_j^2) = \mathrm{A} f M ( a j 2 ) = f M ( b j 2 ) = A and f R ( a j 3 ) = f R ( b j 3 ) = B f_R(a_j^3) = f_R(b_j^3) = \mathrm{B} f R ( a j 3 ) = f R ( b j 3 ) = B . Write C i C_i C i for the clean set of block i i i , and call block i i i usable if ∣ C i ∣ ≥ w / 100 |C_i| \ge w/100 ∣ C i ∣ ≥ w /100 and σ i ( 1 ) ∈ C i \sigma^{i}(1) \in C_i σ i ( 1 ) ∈ C i .
So at a clean coordinate Alice owns the edges that encode the bit, and Bob owns the permutation edges around it (Figure 5 ).
Figure 5. One block Block ( x , σ ) \operatorname{Block}(x,\sigma) Block ( x , σ ) with w = 4 w = 4 w = 4 , σ = ( 3 , 1 , 4 , 2 ) \sigma= (3,1,4,2) σ = ( 3 , 1 , 4 , 2 ) and x = ( 0 , 1 , 1 , 0 ) x = (0,1,1,0) x = ( 0 , 1 , 1 , 0 ) . The two paths from group 1 go through coordinate σ ( 1 ) = 3 \sigma(1) = 3 σ ( 1 ) = 3 in the middle and cross there because x 3 = 1 x_3 = 1 x 3 = 1 . If coordinate 3 is clean, Alice owns the middle edges (solid), which encode the bit, and Bob owns the permutation edges around it (dashed), which say that this is the coordinate on the path from group 1. Fixing everything outside the clean coordinates leaves Alice with the bits and Bob with the index σ ( 1 ) \sigma(1) σ ( 1 ) , as in Block Hidden XOR.
A coordinate is clean with probability 2 − 6 2^{-6} 2 − 6 , independently, so P [ ∣ C i ∣ ≥ w / 100 ] ≥ 1 − w − 4 \mathbb{P}[|C_i| \ge w/100] \ge1 - w^{-4} P [ ∣ C i ∣ ≥ w /100 ] ≥ 1 − w − 4 for large w w w [2 Lemma 4.4] . As σ i \sigma^{i} σ i is uniform and independent of C i C_i C i , P [ σ i ( 1 ) ∈ C i ] = 1 / 64 \mathbb{P}[\sigma^{i}(1) \in C_i] = 1/64 P [ σ i ( 1 ) ∈ C i ] = 1/64 , so block i i i is usable with probability at least 1 / 128 1/128 1/128 for large w w w , independently across blocks. By fact 4.3, at least t / 512 t/512 t /512 blocks are usable except with probability exp ( − 9 t / 4096 ) ≤ w − 9 / 8 \exp(-9t/4096) \le w^{-9/8} exp ( − 9 t /4096 ) ≤ w − 9/8 when t ≥ 512 log w t \ge512\log w t ≥ 512 log w . Call this event E E E .
Lemma C.4 (The residual problem). Let w w w be large enough, w ′ ≤ w / 100 w' \le w/100 w ′ ≤ w /100 a positive integer, and t ≥ 512 log w t \ge512\log w t ≥ 512 log w . A q q q -qubit protocol for DHXw , t _{w,t} w , t with success at least 1 2 + 1 6 w \frac{1}{2}+\frac{1}{6w} 2 1 + 6 w 1 gives a q q q -qubit protocol for BHXw ′ , r _{w',r} w ′ , r with r ≥ t / 512 r \ge t/512 r ≥ t /512 and success at least 1 2 + 1 8 w \frac{1}{2}+\frac{1}{8w} 2 1 + 8 w 1 .
Proof. Fix the public coins by averaging. Given E E E , the success is at least 1 2 + 1 6 w − w − 9 / 8 ≥ 1 2 + 1 8 w \frac{1}{2}+\frac{1}{6w}-w^{-9/8} \ge\frac{1}{2}+\frac{1}{8w} 2 1 + 6 w 1 − w − 9/8 ≥ 2 1 + 8 w 1 for large w w w . In each usable block i i i , choose with fresh randomness a uniform set K i ⊆ C i K_i \subseteq C_i K i ⊆ C i of exactly w ′ w' w ′ coordinates that contains σ i ( 1 ) \sigma^i(1) σ i ( 1 ) . Since σ i ( 1 ) \sigma^i(1) σ i ( 1 ) is uniform on C i C_i C i [AS23, Lemma 4.6], the pair ( σ i ( 1 ) , K i ) (\sigma^i(1),K_i) ( σ i ( 1 ) , K i ) is uniform over the pairs with σ i ( 1 ) ∈ K i \sigma^i(1) \in K_i σ i ( 1 ) ∈ K i , so given K i K_i K i , σ i ( 1 ) \sigma^i(1) σ i ( 1 ) is uniform on K i K_i K i . Now fix, by averaging over their values given E E E , the partition functions of every block, the set I I I of usable blocks, the sets K i K_i K i , every block not in I I I completely, and in each usable block i i i the bits x j i x^i_j x j i and the preimages ( σ i ) − 1 ( j ) (\sigma^i)^{-1}(j) ( σ i ) − 1 ( j ) for j ∉ K i j \notin K_i j ∈ / K i . These are classical input variables, together with randomness independent of the protocol, so fixing them leaves Alice’s message in the same q q q -qubit register. Since x i x^i x i and σ i \sigma^i σ i are uniform and independent of each other and of the partition, what remains in a usable block i i i is a uniform string on the w ′ w' w ′ coordinates of K i K_i K i and an independent uniform bijection onto K i K_i K i from the remaining domain points, which contain 1 1 1 . So σ i ( 1 ) \sigma^i(1) σ i ( 1 ) is uniform on K i K_i K i , and given it, the rest of the bijection is uniform. The blocks not in I I I add a known offset to z G ( 1 ) z_G(1) z G ( 1 ) .
Relabel each K i K_i K i as [ w ′ ] [w'] [ w ′ ] . The coordinates in K i K_i K i are clean, so Alice’s remaining edges are determined by the bits on K i K_i K i , and Bob’s by the bijections. Given σ i ( 1 ) \sigma^i(1) σ i ( 1 ) , Bob can sample the rest of the bijection himself. So a protocol for the fixed branch of DHX gives one for BHXw ′ , r _{w',r} w ′ , r with r = ∣ I ∣ r=|I| r = ∣ I ∣ , Alice’s input the bits on the sets K i K_i K i and Bob’s input the indices σ i ( 1 ) \sigma^i(1) σ i ( 1 ) , with the same message and success at least 1 2 + 1 8 w \frac{1}{2}+\frac{1}{8w} 2 1 + 8 w 1 . □
Theorem C.5 (Quantum Distributional Hidden XOR). For sufficiently large w w w and t ≥ 512 log w t \ge512\log w t ≥ 512 log w , every one-way quantum protocol for DHXw , t _{w,t} w , t with success at least 1 2 + 1 6 w \frac{1}{2}+\frac{1}{6w} 2 1 + 6 w 1 communicates Ω ( w t ) \Omega(wt) Ω ( w t ) qubits.
Proof. Apply lemma C.4 with w ′ = ⌊ w / 100 ⌋ w'=\lfloor w/100\rfloor w ′ = ⌊ w /100 ⌋ . Here r ≥ t / 512 ≥ log w ≥ log w ′ r \ge t/512 \ge\log w \ge\log w' r ≥ t /512 ≥ log w ≥ log w ′ and 1 8 w ≥ 1 1000 w ′ \frac{1}{8w} \ge\frac{1}{1000w'} 8 w 1 ≥ 1000 w ′ 1 for large w w w , so theorem 7.10 gives q ≥ r w ′ / 64 = Ω ( w t ) q \ge rw'/64=\Omega(wt) q ≥ r w ′ /64 = Ω ( w t ) . □
Proof of lemma 7.6. Let t = ( k − 1 ) / 3 t=(k-1)/3 t = ( k − 1 ) /3 and m = n / ( 4 k ) m=n/(4k) m = n / ( 4 k ) . The instances of Distributional Hidden XOR built from NGCn , k _{n,k} n , k have width m + 1 m+1 m + 1 , and w = ⌊ n / ( 400 k ) ⌋ = ⌊ m / 100 ⌋ w=\lfloor n/(400k)\rfloor=\lfloor m/100\rfloor w = ⌊ n / ( 400 k )⌋ = ⌊ m /100 ⌋ . Since k ≥ 1600 log n k \ge1600\log n k ≥ 1600 log n and m + 1 ≤ n m+1 \le n m + 1 ≤ n , we have t ≥ 512 log ( m + 1 ) t \ge512\log(m+1) t ≥ 512 log ( m + 1 ) . By lemma C.2, the protocol gives one for DHXm + 1 , t _{m+1,t} m + 1 , t with success at least 1 2 + 1 6 ( m + 1 ) \frac{1}{2}+\frac{1}{6(m+1)} 2 1 + 6 ( m + 1 ) 1 . As w ≤ ( m + 1 ) / 100 w \le(m+1)/100 w ≤ ( m + 1 ) /100 , lemma C.4, with m + 1 m+1 m + 1 in place of w w w and w w w in place of w ′ w' w ′ , turns it into one for BHXw , r _{w,r} w , r with r ≥ t / 512 r \ge t/512 r ≥ t /512 and success at least 1 2 + 1 8 ( m + 1 ) \frac{1}{2}+\frac{1}{8(m+1)} 2 1 + 8 ( m + 1 ) 1 . Both steps keep the message. Finally, r ≥ t / 512 = ( k − 1 ) / 1536 ≥ k / 1600 r \ge t/512=(k-1)/1536 \ge k/1600 r ≥ t /512 = ( k − 1 ) /1536 ≥ k /1600 , as k ≥ 25 k \ge25 k ≥ 25 , and 1 8 ( m + 1 ) ≥ 1 1000 w \frac{1}{8(m+1)} \ge\frac{1}{1000w} 8 ( m + 1 ) 1 ≥ 1000 w 1 , since w ≥ m / 100 − 1 ≥ ( m + 1 ) / 125 w \ge m/100-1 \ge(m+1)/125 w ≥ m /100 − 1 ≥ ( m + 1 ) /125 once m ≥ 504 m \ge504 m ≥ 504 . □
When n / k n/k n / k is bounded, the width of the instance is a constant, and the conditioning can ask for all coordinates of a block to be clean.
Lemma C.6 (Bounded width). Let ( n , k ) (n,k) ( n , k ) be admissible with k ≡ 1 ( m o d 3 ) k \equiv1 \pmod3 k ≡ 1 ( mod 3 ) , and suppose that ⌊ n / ( 400 k ) ⌋ ≤ C \lfloor n/(400k)\rfloor\le C ⌊ n / ( 400 k )⌋ ≤ C for a constant C C C . Every q q q -qubit robust one-way protocol for NGCn , k _{n,k} n , k with error at most 1 / 3 1/3 1/3 has q = Ω C ( n ) q=\Omega_C(n) q = Ω C ( n ) .
Proof. Write k = 3 t + 1 k=3t+1 k = 3 t + 1 and m = n / ( 4 k ) m=n/(4k) m = n / ( 4 k ) , which is bounded since ⌊ n / ( 400 k ) ⌋ ≤ C \lfloor n/(400k)\rfloor\le C ⌊ n / ( 400 k )⌋ ≤ C , so t = Θ ( n ) t=\Theta(n) t = Θ ( n ) . By lemma C.2, the protocol gives one for DHXm + 1 , t _{m+1,t} m + 1 , t with constant advantage. Keep only the blocks in which all m + 1 m+1 m + 1 coordinates are clean. This happens in each block with probability 2 − 6 ( m + 1 ) 2^{-6(m+1)} 2 − 6 ( m + 1 ) , a constant, so with high probability Ω ( t ) \Omega(t) Ω ( t ) of them remain, and the conditioning in the proof of lemma C.4 gives BHXm + 1 , r _{m+1,r} m + 1 , r with r = Ω ( t ) r=\Omega(t) r = Ω ( t ) and constant advantage. The first bound of theorem 7.9 with λ = 1 \lambda=1 λ = 1 then gives q = Ω ( t ) = Ω ( n ) q=\Omega(t)=\Omega(n) q = Ω ( t ) = Ω ( n ) . □】【。
Noisy Gap Cycle with repeated edges
This appendix proves the repeated-edge results of § 7.4 .
Repeated-edge streams
Let ( n , k ) (n,k) ( n , k ) be admissible and let G = ( V , E ) G=(V,E) G = ( V , E ) be an instance of N G C n , k \mathrm{NGC}_{n,k} NGC n , k . In both cases ∣ E ∣ = n / 2 + n 2 k ( k − 1 ) = n − n 2 k |E|=n/2+\frac{n}{2k}(k-1)=n-\frac{n}{2k} ∣ E ∣ = n /2 + 2 k n ( k − 1 ) = n − 2 k n , so the number of edges does not reveal the case.
Definition D.1 (R R R -repeated NGC stream). Fix an integer R ≥ 1 R \ge1 R ≥ 1 . For each e ∈ E e \in E e ∈ E , create R R R labeled copies ( e , 1 ) , … , ( e , R ) (e,1),\ldots,(e,R) ( e , 1 ) , … , ( e , R ) . The algorithm sees only the edge e e e . We consider two orders of these R ∣ E ∣ R|E| R ∣ E ∣ copies:
(a) uniformly random order : a uniform permutation of the R ∣ E ∣ R|E| R ∣ E ∣ copies,
(b) uniformly clustered order : the R R R copies of each edge are consecutive, and the ∣ E ∣ |E| ∣ E ∣ clusters appear in a uniformly random order.
The decision is output after the pass. An algorithm has error at most η \eta η if for every instance its error, averaged over the order and its own randomness, is at most η \eta η , as in § 7.1 .
The two orders arrange the same multiset of R ∣ E ∣ R|E| R ∣ E ∣ items. The vertex universe [ n ] [n] [ n ] and the parameters n , k n,k n , k are known to the algorithm, but R R R need not be.
Path following
A walker is the following classical streaming algorithm. It stores a start vertex s s s , a current vertex c c c , a previous vertex p ∈ [ n ] ∪ { ⊥ } p \in[n] \cup\{\bot\} p ∈ [ n ] ∪ { ⊥ } , a step counter ℓ \ell ℓ and a flag. It starts with c = s c=s c = s , p = ⊥ p=\bot p = ⊥ , ℓ = 0 \ell=0 ℓ = 0 , and processes each arriving edge { x , y } \{x,y\} { x , y } as follows:
if c = x c=x c = x and y ≠ p y \ne p y = p , set p ← x p \leftarrow x p ← x , c ← y c \leftarrow y c ← y , ℓ ← ℓ + 1 \ell\leftarrow\ell+1 ℓ ← ℓ + 1 , and symmetrically if c = y c=y c = y and x ≠ p x \ne p x = p ,
if it has just moved and now c = s c=s c = s , it closes with length ℓ \ell ℓ and ignores the rest of the stream.
Lemma D.2 (What a walker can report). In any graph of maximum degree two, a walker started on a cycle of length L ≥ 3 L \ge3 L ≥ 3 moves along that cycle in one direction, and if it closes, it closes with ℓ = L \ell=L ℓ = L . A walker started on a path never closes.
Proof. Let s = v 0 s=v_0 s = v 0 . The walker’s first move goes along the first arriving edge at s s s , to some neighbor v 1 v_1 v 1 . Suppose the walker is at v i v_i v i , i ≥ 1 i \ge1 i ≥ 1 , having come from v i − 1 v_{i-1} v i − 1 . Since v i v_i v i has degree at most two, the only edges at v i v_i v i are { v i − 1 , v i } \{v_{i-1},v_i\} { v i − 1 , v i } , which it ignores, and at most one other edge { v i , v i + 1 } \{v_i,v_{i+1}\} { v i , v i + 1 } , along which it moves next. So the walker visits v 0 , v 1 , v 2 , … v_0,v_1,v_2,\ldots v 0 , v 1 , v 2 , … along its component, without turning back. On a cycle of length L ≥ 3 L \ge3 L ≥ 3 these vertices are distinct up to v L = s v_L=s v L = s , so the first return to s s s is after exactly L L L moves. On a path the visited vertices are all distinct, and the walker stops at an endpoint, which has no edge other than the one it came from.
Lemma D.3 (A walker on a cycle completes). Let s s s lie on a cycle of length L ≥ 3 L \ge3 L ≥ 3 of an NGC instance, and let the R R R -repeated stream be in uniformly random order. Then the walker from s s s closes with probability at least P [ Pois ( R ) ≥ L ] \mathbb{P}[\operatorname{Pois}(R) \ge L] P [ Pois ( R ) ≥ L ] .
Proof. Continuous times. Give every copy an independent uniform time in [ 0 , 1 ] [0,1] [ 0 , 1 ] and order the copies by time. This is a uniform permutation, and all times are distinct almost surely. The walker’s i i i th move happens at a time T i T_i T i , with T i = ∞ T_i=\infty T i = ∞ if it never happens, and T 0 = 0 T_0=0 T 0 = 0 . The walker closes if and only if $T_L \le 1.
The edges in walking order. Let a , b a,b a , b be the two edges of the cycle at s s s . The first move uses e 1 ∈ { a , b } e_1 \in\{a,b\} e 1 ∈ { a , b } , the edge with the earliest copy, so T 1 T_1 T 1 is the minimum of the 2 R 2R 2 R copy times of a a a and b b b . Then the walker uses the cycle edges e 1 , e 2 , … , e L e_1,e_2,\ldots,e_L e 1 , e 2 , … , e L in order, where e L e_L e L is the other edge at s s s , and by lemma D.2 the ( i + 1 ) (i+1) ( i + 1 ) st move happens at the first copy of e i + 1 e_{i+1} e i + 1 after T i T_i T i .
Each gap is at most exponential. We claim that, on { T i ≤ 1 } \{T_i \le1\} { T i ≤ 1 } , for every 0 ≤ x ≤ 1 − T i 0 \le x \le1-T_i 0 ≤ x ≤ 1 − T i ,
P [ T i + 1 − T i > x ∣ T 1 , … , T i ] ≤ ( 1 − x ) R ≤ e − R x . (8) \mathbb{P}[T_{i+1}-T_i>x\mid T_1,\ldots,T_i]\le(1-x)^R\le e^{-Rx}. \tag*{(8)} P [ T i + 1 − T i > x ∣ T 1 , … , T i ] ≤ ( 1 − x ) R ≤ e − R x . (8)
We prove the bound given also which edge is e 1 e_1 e 1 and all copy times of e 1 , … , e i e_1,\ldots,e_i e 1 , … , e i . The bound does not depend on them, so it also holds given T 1 , … , T i T_1,\ldots,T_i T 1 , … , T i alone. For i = 0 i=0 i = 0 , P [ T 1 > x ] = ( 1 − x ) 2 R \mathbb{P}[T_1>x]=(1-x)^{2R} P [ T 1 > x ] = ( 1 − x ) 2 R . For 1 ≤ i ≤ L − 2 1\le i\le L-2 1 ≤ i ≤ L − 2 , the edge e i + 1 e_{i+1} e i + 1 is neither a a a nor b b b , so its copies are independent of this information, and T i + 1 − T i > x T_{i+1}-T_i>x T i + 1 − T i > x means that none of its R R R copies falls in ( T i , T i + x ] (T_i,T_i+x] ( T i , T i + x ] , which has probability ( 1 − x ) R (1-x)^R ( 1 − x ) R . For i = L − 1 i=L-1 i = L − 1 , the edge e L e_L e L is the one not chosen at the start, and the only information about its copies is that all of them are later than T 1 T_1 T 1 , so they are independent and uniform on ( T 1 , 1 ] (T_1,1] ( T 1 , 1 ] , and none falls in ( T L − 1 , T L − 1 + x ] (T_{L-1},T_{L-1}+x] ( T L − 1 , T L − 1 + x ] with probability ( 1 − x / ( 1 − T 1 ) ) R ≤ ( 1 − x ) R (1-x/(1-T_1))^R\le(1-x)^R ( 1 − x / ( 1 − T 1 ) ) R ≤ ( 1 − x ) R .
Comparison with a Poisson process. Let Y 1 , Y 2 , … Y_1,Y_2,\ldots Y 1 , Y 2 , … be independent exponential variables with rate R R R , and for j ≥ 0 j\ge0 j ≥ 0 and t ∈ [ 0 , 1 ] t\in[0,1] t ∈ [ 0 , 1 ] let φ j ( t ) = P [ Y 1 + ⋯ + Y j ≤ 1 − t ] \varphi_j(t)=\mathbb{P}[Y_1+\cdots+Y_j\le1-t] φ j ( t ) = P [ Y 1 + ⋯ + Y j ≤ 1 − t ] , with φ j ( t ) = 0 \varphi_j(t)=0 φ j ( t ) = 0 for t > 1 t>1 t > 1 (including t = ∞ t=\infty t = ∞ ). Each φ j \varphi_j φ j is nonincreasing. We show by backward induction that P [ T L ≤ 1 ∣ T 1 , … , T i ] ≥ φ L − i ( T i ) \mathbb{P}[T_L\le1\mid T_1,\ldots,T_i]\ge\varphi_{L-i}(T_i) P [ T L ≤ 1 ∣ T 1 , … , T i ] ≥ φ L − i ( T i ) . For i = L i=L i = L this is an equality. Given T 1 , … , T i T_1,\ldots,T_i T 1 , … , T i with T i = t ≤ 1 T_i=t\le1 T i = t ≤ 1 , the function x ↦ φ L − i − 1 ( t + x ) x\mapsto\varphi_{L-i-1}(t+x) x ↦ φ L − i − 1 ( t + x ) is nonincreasing and vanishes for x > 1 − t x>1-t x > 1 − t , and (8) says that T i + 1 − T i T_{i+1}-T_i T i + 1 − T i is stochastically smaller than Y 1 Y_1 Y 1 on [ 0 , 1 − t ] [0,1-t] [ 0 , 1 − t ] . Hence
E [ φ L − i − 1 ( T i + 1 ) ∣ T 1 , … , T i ] ≥ E [ φ L − i − 1 ( t + Y 1 ) ] = φ L − i ( t ) , \mathbb{E}[\varphi_{L-i-1}(T_{i+1})\mid T_1,\ldots,T_i]\ge\mathbb{E}[\varphi_{L-i-1}(t+Y_1)]=\varphi_{L-i}(t), E [ φ L − i − 1 ( T i + 1 ) ∣ T 1 , … , T i ] ≥ E [ φ L − i − 1 ( t + Y 1 )] = φ L − i ( t ) ,
and the induction step follows from the hypothesis for i + 1 i+1 i + 1 . At i = 0 i=0 i = 0 ,
P [ T L ≤ 1 ] ≥ φ L ( 0 ) = P [ Y 1 + ⋯ + Y L ≤ 1 ] = P [ Pois ( R ) ≥ L ] , \mathbb{P}[T_L\le1]\ge\varphi_L(0)=\mathbb{P}[Y_1+\cdots+Y_L\le1]=\mathbb{P}[\operatorname{Pois}(R)\ge L], P [ T L ≤ 1 ] ≥ φ L ( 0 ) = P [ Y 1 + ⋯ + Y L ≤ 1 ] = P [ Pois ( R ) ≥ L ] ,
since the sum of L L L exponentials is at most 1 exactly when a rate-R R R Poisson process has at least L L L points in [ 0 , 1 ] [0,1] [ 0 , 1 ] .
Proof of theorem 7.11
Proof. Part 1. The algorithm runs h h h walkers (section D.2) from independent uniform starts, and answers “k k k -cycles” if some walker closes with ℓ = k \ell=k ℓ = k . It uses O ( h log n ) O(h\log n) O ( h log n ) bits.
A walker on a 2 k 2k 2 k -cycle or a path never closes with ℓ = k \ell=k ℓ = k (lemma D.2), so the 2 k 2k 2 k -cycle case is never misreported. In the k k k -cycle case, consider the first walker whose start lies on a cycle. Which walker this is depends only on the starts, not on the stream. Some walker starts on a cycle with probability 1 − 2 − h 1-2^{-h} 1 − 2 − h , since half of the vertices lie on cycles, and that walker fails with probability at most P [ Pois ( R ) < k ] \mathbb{P}[\operatorname{Pois}(R)<k] P [ Pois ( R ) < k ] by lemma D.3. So the error is at most 2 − h + P [ Pois ( R ) < k ] 2^{-h}+\mathbb{P}[\operatorname{Pois}(R)<k] 2 − h + P [ Pois ( R ) < k ] . The second term does not increase with R R R , so for R ≥ 2 k R\ge2k R ≥ 2 k it suffices to take R = 2 k R=2k R = 2 k . Markov’s inequality applied to 2 − X 2^{-X} 2 − X with X ∼ Pois ( 2 k ) X\sim\operatorname{Pois}(2k) X ∼ Pois ( 2 k ) gives P [ X < k ] ≤ 2 k − 1 E [ 2 − X ] = 1 2 ( 2 / e ) k \mathbb{P}[X<k]\le2^{k-1}\mathbb{E}[2^{-X}]=\frac{1}{2}(2/e)^k P [ X < k ] ≤ 2 k − 1 E [ 2 − X ] = 2 1 ( 2/ e ) k . With k ≥ 3 k\ge3 k ≥ 3 and h = 5 h=5 h = 5 the total error is at most 1 32 + 1 2 ( 2 / e ) 3 < 1 4 \frac{1}{32}+\frac{1}{2}(2/e)^3<\frac{1}{4} 32 1 + 2 1 ( 2/ e ) 3 < 4 1 .
Part 2. On each single-arrival edge, call the clustered algorithm’s update R R R times, keeping the edge’s endpoints and a repetition counter, which cost O ( log n + log R ) O(\log n+\log R) O ( log n + log R ) bits. If the single-arrival order is uniform, the simulated stream is exactly a uniformly clustered R R R -repeated stream.
Short cycles in adversarial order
The reduction is that of Verbin and Yu [VY11, Lemma 2.1] from Boolean Hidden Hypermatching to cycle counting, with two small changes so that it produces instances of NGC. We do not reprove their reduction and only describe the changes.
Boolean Hidden Hypermatching. For integers d ≥ 2 d \ge2 d ≥ 2 and N N N with 2 d ∣ N 2d \mid N 2 d ∣ N , in the half-covering problem B H H N , d \mathrm{BHH}_{N,d} BHH N , d Alice gets x ∈ { 0 , 1 } N x \in\{0,1\}^{N} x ∈ { 0 , 1 } N , and Bob gets N / ( 2 d ) N/(2d) N / ( 2 d ) disjoint hyperedges g = ( i 1 , … , i d ) g=(i_1,\ldots,i_d) g = ( i 1 , … , i d ) of size d d d , which cover half of [ N ] [N] [ N ] , and bits w g w_g w g , with the promise that the parities ⨁ j = 1 d x i j ⊕ w g \bigoplus_{j=1}^{d} x_{i_j} \oplus w_g ⨁ j = 1 d x i j ⊕ w g are all 0 or all 1. Bob must say which. This is the ( d , 1 2 ) (d,\frac{1}{2}) ( d , 2 1 ) -Partial Matching problem of Shi, Wu, and Yu with N / d N/d N / d in place of their n n n , and quantum one-way protocols for it need Ω d ( N 1 − 2 / d ) \Omega_d\left(N^{1-2/d}\right) Ω d ( N 1 − 2/ d ) qubits [SWY15, Theorem 4.1].
Classical one-way protocols need Ω d ( N 1 − 1 / d ) \Omega_d\left(N^{1-1/d}\right) Ω d ( N 1 − 1/ d ) bits when 4 d ∣ N 4d \mid N 4 d ∣ N . Verbin and Yu prove the bound Ω ( N ′ 1 − 1 / d ) \Omega\left(N'^{1-1/d}\right) Ω ( N ′ 1 − 1/ d ) for hyperedges that cover all of [ N ′ ] [N'] [ N ′ ] , when 2 d ∣ N ′ 2d \mid N' 2 d ∣ N ′ [VY11, Theorem 2.1], and that version on N ′ = N / 2 N'=N/2 N ′ = N /2 bits reduces to ours on N N N bits: Alice appends N / 2 N/2 N /2 zeros to her string, and Bob keeps his hyperedges, which now cover half.
Theorem 7.13 (Constant k k k in adversarial order). Fix k ≥ 4 k \ge4 k ≥ 4 , let d = ⌊ k / 2 ⌋ d=\lfloor k/2\rfloor d = ⌊ k /2 ⌋ , and let n n n range over the multiples of 4 k 4k 4 k . In adversarial order, classical algorithms for N G C n , k \mathrm{NGC}_{n,k} NGC n , k need Ω k ( n 1 − 1 / d ) \Omega_k\left(n^{1-1/d}\right) Ω k ( n 1 − 1/ d ) bits when 8 k ∣ n 8k \mid n 8 k ∣ n , and quantum algorithms need Ω k ( n 1 − 2 / d ) \Omega_k\left(n^{1-2/d}\right) Ω k ( n 1 − 2/ d ) space for d ≥ 3 d \ge3 d ≥ 3 .
Proof. Let d = ⌊ k / 2 ⌋ d=\lfloor k/2\rfloor d = ⌊ k /2 ⌋ and N = d n / ( 2 k ) N=dn/(2k) N = d n / ( 2 k ) , so that 2 d ∣ N 2d \mid N 2 d ∣ N . We use the reduction of Verbin and Yu [VY11, Lemma 2.1] from B H H N , d \mathrm{BHH}_{N,d} BHH N , d to cycle counting. Alice turns each bit x i x_i x i into a parallel or crossed pair of edges, Bob joins the pairs of each hyperedge g g g into a ring and closes it with a twist given by w g w_g w g , and each ring becomes two cycles of length 2 d 2d 2 d or one cycle of length 4 d 4d 4 d , according to the parity of the hyperedge. The reduction is classical: Alice’s edges depend only on x x x and Bob’s only on his input, so streaming Alice’s edges first turns an algorithm with space S S S into a protocol with an S S S -qubit message. We change two things.
The hyperedges cover only half of [ N ] [N] [ N ] . Bob groups the uncovered coordinates into N / ( 2 d ) N/(2d) N / ( 2 d ) groups of size d d d and joins each group like a hyperedge, but does not close it. Each group then gives two paths with 2 d 2d 2 d vertices, which are the noise paths of NGC.
For odd k = 2 d + 1 k=2d+1 k = 2 d + 1 , Bob subdivides every closing edge, and extends every noise path, by one vertex of his own. The rings then have length k k k or 2 k 2k 2 k and the paths have k k k vertices.
Each of the N / d N/d N / d hyperedges and groups uses 2 k 2k 2 k vertices, so there are n n n vertices, N / d = n / ( 2 k ) N/d=n/(2k) N / d = n / ( 2 k ) paths, and either n / ( 2 k ) n/(2k) n / ( 2 k ) cycles of length k k k or n / ( 4 k ) n/(4k) n / ( 4 k ) cycles of length 2 k 2k 2 k , as in definition 7.1. Since N = Θ k ( n ) N=\Theta_k(n) N = Θ k ( n ) , the bounds for B H H N , d \mathrm{BHH}_{N,d} BHH N , d give Ω k ( n 1 − 2 / d ) \Omega_k\left(n^{1-2/d}\right) Ω k ( n 1 − 2/ d ) qubits for d ≥ 3 d \ge3 d ≥ 3 , and Ω k ( n 1 − 1 / d ) \Omega_k\left(n^{1-1/d}\right) Ω k ( n 1 − 1/ d ) bits when 4 d ∣ N 4d \mid N 4 d ∣ N , that is, when 8 k ∣ n 8k \mid n 8 k ∣ n .
Boolean Hidden Matching in random order
This appendix records the folklore observation that Boolean Hidden Matching (definition 4.7) is easy in random order.
Observation F.1 (Boolean Hidden Matching in random order). In uniformly random order, the streaming version of B H M n \mathrm{BHM}_n BHM n can be solved with error at most 4 / n 4/n 4/ n in O ( log n ) O(\log n) O ( log n ) classical space.
Proof. Remember the first edge item ( u , v , z ) (u,v,z) ( u , v , z ) . If both x u x_u x u and x v x_v x v arrive later, record them and output whether z = x u ⊕ x v z=x_u\oplus x_v z = x u ⊕ x v . The algorithm fails only if a bit item of u u u or v v v arrives before the first edge item. Given which edge comes first, the set of bit items preceding it is a uniformly random subset of the bit items, of expected size at most n / ( n / 2 + 1 ) < 2 n/(n/2+1)<2 n / ( n /2 + 1 ) < 2 . So each fixed bit item precedes the first edge item with probability at most 2 / n 2/n 2/ n , and a union bound over the two endpoints gives 4 / n 4/n 4/ n .