Manuscript Offprint
arXiv:2610.03645Exponential quantum space advantage in random data streams
Abstract
We show two unconditional quantum space advantages in the random-order streaming model. First, we show the Yamakawa–Zhandry Code Intersection problem admits exponential quantum advantage in the streaming model when its inputs are streamed in random order. This means quantum computers exhibit exponential space advantage even when simply receiving pairs for a uniformly random function in a uniformly random order. Our lower bound is shown using density-restoring partitions as in the work of Göös, Gur, Jain, and Li (STOC 2025) combined with a convex potential, similar to the work of Raz (J.ACM 2018) on parity learning and its generalization by Garg, Raz, and Tal (STOC 2018).
Second, we use our framework to show quantum space advantage for the Optimal Polynomial Intersection (OPI) problem in certain regimes via a streaming version of the Decoded Quantum Interferometry algorithm (Nature 2025; arXiv:2510.10967). In particular, we show that for degree and evaluation points, attaining fraction of satisfied OPI constraints via streaming requires classical bits of memory but only qubits. This yields provable quantum advantage in a “low-rate” regime when the number of evaluation points is much larger than the degree, with a space advantage that can be as large as exponential in certain parameter settings.
1 Introduction
Quantum computation offers numerous forms of computational advantage, reducing the time [Sho97, HHL09], space [Wat99, TS13, KGD 26], or communication [Raz99, BYJK08] needed to solve problems. The streaming model—where one accesses the input one component at a time, and the goal is to solve the problem using far less space than the input length—is a natural testing ground for quantum advantage for processing classical data. In streaming algorithms, a well-studied model is the random-order model, where the input is revealed in a uniformly random order through the data stream [MP80, KKS14, KKS15, AB21, CKKP22, HWK24, ADH 26].
While several prior works have studied quantum advantage in streaming algorithms, e.g., [LG06, GKK 09, Mon16, KPV24, WY26, FXL 26], so far any exponential quantum space advantage has only been proven with more structured or worst-case streaming models. For example, Kallaugher, Parekh, and Voronova showed that quantum algorithms can have exponential space advantage for the maximum directed cut problem when the stream is adversarially ordered [KPV24], however this advantage no longer holds when the stream is randomly ordered [SSSV23]. Recently, Zhao et al. introduced a correlated data stream model which admits exponential quantum space advantage for many natural machine learning tasks [ZZN 26], but where the data stream is not i.i.d or uniformly ordered . There have also been a number of works lifting quantum communication advantages to streaming advantages, starting with work of Le Gall [LG06]; in general any communication lower bound can be turned into a streaming lower bound if Alice's input is streamed before Bob's, leading to quantum space separations, e.g., [GKK 09]. Recently Göös, Gur, Jain, and Li [GGJL25] studied a variant of the Code Intersection problem of Yamakawa and Zhandry [YZ24] and showed that it admits an exponential quantum advantage in communication complexity, which can likewise be lifted to a form of streaming advantage in a worst-case ordering. There have also been works demonstrating polynomial space improvements for quantum streaming e.g. [Kal22].
In summary, prior works showing exponential space advantage have addressed structured data streams. This leads to the natural question, which to the best of our knowledge remains open:
Can quantum algorithms achieve exponential advantage for space complexity in the streaming model when the inputs are presented in a uniformly random order?
Random-order streaming can be thought of as relaxing the standard “doubly worst-case” streaming model (worst-case input and order). Proving lower bounds for random ordering reveals average-case complexity and gives stronger evidence for a problem’s hardness compared to a worst-case ordering [CJP08, GM09, CCM16].
Theorem 1 (informal version of Theorems 18 and 28). Consider the streaming Code Intersection problem where the random oracle is streamed one entry at a time in a uniformly random order. While the Yamakawa–Zhandry algorithm solves this with qubits of space, any classical streaming algorithm must use at least bits of space.
For example, their classical lower bound lifted from query separations is proven when the inputs are sampled randomly in blocks with a particular structure.
In particular, this means that quantum computers have exponential advantage even when processing completely unstructured streams, i.e., when streaming entries of a uniformly random function one at a time through pairs in a uniformly random order. Thus our result can be interpreted as showing “quantum advantage without structure” in the streaming model in terms of both the input values as well as the stream ordering.
We then extend our techniques to the Optimal Polynomial Intersection (OPI) problem, introduced in the study of the DQI algorithm [JSW 25]. Here the goal is to find a low-degree polynomial over a finite field intersecting as many specified sets as possible. Fascinatingly, the DQI algorithm has produced better approximation ratios than the best known classical algorithm in certain parameter regimes, raising the possibility of quantum advantage for this optimization problem [KSG 25].
We show the OPI problem unconditionally yields quantum space advantage in the streaming model when the inputs are randomly ordered, but only in certain parameter regimes. In particular, the OPI problem is parameterized by the degree upper bound d of the polynomial, the number of evaluation points n of the polynomial, and the distribution over sets to be intersected at each point. We show that the DQI algorithm exhibits a space advantage for OPI of the following form:
Theorem 2 (informal version of Theorems 27 and 29). Consider the streaming OPI problem where the inputs appear in a uniformly random order. While the DQI algorithm achieves a value of for this problem using qubits of space, any classical streaming algorithm achieving this value must use classical bits of space.
Thus DQI achieves a streaming advantage when the number of evaluations points is much more than the degree . This advantage can be exponential in certain asymptotic regimes: for example, if , our theorem results in a quantum versus classical space advantage, though we note this parameter setting is non-standard in prior DQI optimization works. Our theorem also gives large polynomial advantages in other regimes, e.g., when . Interestingly, the “low-rate” setting where is one setting where there is empirical evidence for quantum advantage with DQI in the optimization setting [KSG25]. As streaming can be seen as a simplified “testbed” for demonstrating quantum advantage similar to query or communication complexity, our result can be interpreted as indirect evidence that DQI might offer advantage for optimization. However, we emphasize that our lower bounds only apply to streaming models, and not to the original OPI problem.
1.2 Proof sketch
Quantum streaming algorithms. To show quantum advantage for these problems, we first need to show that they admit space-efficient quantum streaming algorithms. Our algorithms rely on the fact that both the Yamakawa–Zhandry algorithm and the DQI algorithm are completely nonadaptive, i.e., they can be implemented in two phases where the first phase depends on the input and the second phase is independent of the input. In this case, the first phase requires only input-dependent commuting gates, which can be implemented while the data is streaming with a single pass . We particularly use a more space-efficient version of DQI [KSG 25]. We give simple proofs of the correctness of the streaming algorithms in Section A.
We note that the full theorem statement requires and to achieve the stated bounds.
For example, one finite-sized instance considered in [KSG 25] sets , .
Note that one can also use the quantum oracle sketching algorithm of Zhao et al. [ZZN 26], but this machinery is not required here as a much simpler streaming algorithm suffices.
Prior classical lower bounds do not suffice. The main challenge is now to show classical lower bounds for these streaming problems. This does not follow from prior works lower bounding the communication complexity of these problems, essentially because the random ordering of the stream breaks up the communication structure of the problem. For example, the lower bound of [GGJL25] for the communication complexity of Code Intersection only works when the input is ordered in a certain way, namely when one first sees the constraints on the first half of the codeword, and then sees the constraints on the second half of the codeword. More generally there is a barrier for using communication complexity for our lower bound, because there is actually a zero-communication protocol for Code Intersection in random order . Another approach is to use general lower bounds for Read-Once Branching Programs (ROBPs) which imply streaming space lower bounds. Here, there is a line of work [Raz18, Raz17, GRT18, MM18] giving generic lower bounds, but these techniques are specialized for problems with a unique planted solution. Both YZ and OPI are search problems with exponentially many valid solutions, so their technique does not work as a black-box for us.
Our approach: To achieve our lower bound, we combine the techniques from the recent communication lower bound for Code Intersection [GGJL25] with the technique for proving ROBP lower bounds for space-bounded learning problems [Raz18, Raz17, GRT18, MM18]. This fusion of two important tools for studying communication and space complexity may be of independent interest.
Density-restoring partitions. At a high level, our lower bound is obtained by showing that the output of the Yamakawa–Zhandry problem meaningfully depends on a large fraction of the input. We formalize this in our lower bound by quantifying the uncertainty in a marginal distribution of inputs conditioned on the current state of the classical algorithm via its min-entropy. An important tool here is density-restoring partitions from query-to-communication lifting literature [GPW20, CFK 21, GGJL25]. This is a tool to ‘concentrate’ the certainty in a given input onto a small marginal distribution which is fixed, leaving all the other marginal distributions with near-maximal uncertainty. This makes the analysis closer to proving query lower bounds. The work of [GGJL25] decomposes the distribution after conditioning on the transcript of the communication protocol into ‘subcube-like’ parts, which is a generalization of query algorithms. They then show that one can show a lower bound for subcube-like protocols using an argument similar to the query lower bound of [YZ24].
However, we cannot reduce to subcubes in our setting. This is because their proof relies on the property that ‘if Alice is the first player to fix 80% of her input, Bob has less than 80% of his input fixed.’ This relies on the input being split coordinate-wise, which is no longer true once we stream the oracle in a random order.
Read-once branching programs. To fix this problem, we instead directly lower bound the width of ROBPs for solving the search problem. Given these pre-processed distributions, which are either ‘fixed’ (have no uncertainty) or ‘dense’ (have near-maximal uncertainty), we use a simple potential function to measure the progress made by a classical algorithm modeled as an ROBP. This is similar to the approach of [GRT18], who also use a convex potential function to track progress, whose results were further inspired by [Raz17, Raz18, MM18]. The details of our analysis differ significantly and are specialized to the setting of Code Intersection. Recall that in the Code Intersection problem we want to find a codeword which is mapped to by a random hash function, which is the input. Intuitively, our potential function is just the conditional probability that a codeword is mapped to , summed over all the codewords which have already crossed a fixed threshold of mapped coordinates.
This is because even if one has only seen half of the input stream, with high probability there exists a valid codeword whose coordinates all map to 1 within the inputs observed so far.
Formally, this requires a couple of technical changes as described in Section 3. We crucially use the list-recoverability properties of the folded Reed-Solomon code to prove the lower bound, similar to the previous lower bounds for the Code Intersection problem [YZ24, GGJL25, BHV26].
Fine-grained analysis for OPI. Extending these results to OPI requires more careful examination. For OPI, we have a constraint satisfaction problem (CSP) and we want to say that the classical algorithm cannot achieve a high value with small space. To handle this, we modify our potential function to account for this allowed approximation. This is actually a simple modification of our threshold potential function, and it fits our framework for proving lower bounds for Code Intersection. The second place where our lower bound for OPI differs is that we forego the use of density-restoring partitions to bound the entropy in marginal distributions, and explicitly use the fact that two distinct polynomials of degree less than d can agree on at most points. This additional technical work leads to a more fine-grained lower bound for the corresponding ROBPs, see Section 4 for details.
AI disclosure
The authors proposed the central questions of this work and identified the barriers to using existing proof techniques. ChatGPT 6 Astra provided the first proof sketch of the classical streaming lower bound, which the authors then formalized, simplified, and verified. The authors contributed all writing and exposition, while ChatGPT and Claude assisted with proofreading and minor suggestions. The authors take responsibility for the originality and correctness of all proofs.
Acknowledgments
We thank Avishay Tal for helpful discussions, and Stephen Jordan and Haimeng Zhao for their suggestions on the manuscript. A.B. was partially supported by the National Science Foundation under award No. 2016245 and 2440805, by the Air Force Office of Scientific Research under grant agreement FA9550-21-1-0392 and FA9550-24-1-0089, and by the DOE Office of Science under grant agreement DE-SC0025934. M.D. was supported in part by the National Science Foundation Graduate Research Fellowship Program under Grant No. DGE-2146755. S.J. was supported by the Amazon AI fellowship.
2 Preliminaries
[n] denotes the set . For finite sets , we denote as the collection of all functions . For a string , let denote the Hamming weight of . For a function and a subset of the domain , we write to denote the restriction of onto the subset , and write if for all . Vectors are denoted . log denotes base-2 logarithm and denotes the natural logarithm. Let for . We use the convention for binomial coefficients that for any .
2.1 Probability
Random variables X are denoted in bold. Let denote the support of a random variable X. We use to denote the indicator random variable for the event E.
Proposition 3 (Hoeffding's inequality). If are independent random variables where and , then for ,
2.2 Streaming model and problem definition
Let denote an alphabet and denote the block length of a code. Define the address set , and set . A hidden input is sampled from a predefined distribution, where and , and the input stream is then given as
We will often treat as separate functions and use the notation for convenience.
Now we formally define the CODE INTERSECTION and OPTIMAL POLYNOMIAL INTERSECTION problems in the streaming model :
Problem 1 (CODE INTERSECTION (CI)). Let be an error-correcting code. Sample a uniformly random oracle . The stream consists of the elements from set
in some ordering . Given a single pass over the stream, the goal is to output a codeword satisfying
Problem 2 (OPTIMAL POLYNOMIAL INTERSECTION (OPI)). Let be a power of two, , and . Fix distinct evaluation points , and write . Sample each target set independently by including each element of using an i.i.d Bernoulli with probability . The stream consists of the elements from set
in some ordering . Given a single pass over the stream and a fixed value , the goal is to output a polynomial such that
Both of these problems can be unified via a search problem of a generalized Code Intersection relation in the streaming model:
Definition 4 (Generalized search problem). Fix some code . Given a uniformly random sampled function , define the generalized Code Intersection relation as
The stream consists of the elements from set .
We define our problems for any arbitrary stream ordering. Our algorithms succeed with high probability given any fixed worst-case stream ordering, while our lower bounds are with high probability over a uniformly random ordering. Note that the random-order lower bound is a stronger statement compared to a worst-case lower bound.
- Problem 1: Set . The goal of CI is equivalent to outputting any codeword such that .
• Problem 2: Set . For polynomial , let denote its evaluation vector. We define as the Reed–Solomon code
We can equivalently define . The goal of OPI is equivalent to outputting any codeword such that and .
For the remainder of the paper we will primarily use the codeword search problem interpretation for OPTIMAL POLYNOMIAL INTERSECTION, which is equivalent to Problem 2 up to an isomorphism.
2.3 Branching programs
We assume without loss of generality that our streaming algorithm is deterministic, as we can fix the randomness of any randomized streaming algorithm. We model computation of streaming algorithms using a branching program. Branching programs represent any possible unbounded computation using bounded memory and sample complexity. This model has been used successfully to prove memory-sample tradeoffs for a large class of learning problems [Raz18, MM17, GRT18].
Definition 5 (Branching program). A branching program with length and width is a layered directed graph with layers (which we sometimes refer to as time ) and vertices . Layer has a single vertex, called the start vertex. Layer contains only leaf vertices with out-degree , each corresponding to a specific output of the branching program. All other vertices in layers have out-degree with all edges pointing towards some vertex in layer . Each one of these edges is indexed by a unique element in the set . A fixed input stream defines a unique computation path which traverses exactly one vertex in each layer. The goal of the branching program is to compute some predefined relation which will be independent of the input order.
Analysis notation. We introduce additional notation for our branching program analysis. denotes the set of all addresses and denotes the set of all possible subsets of addresses which are revealed up to time step . Let denote the vertices in layer , and let denote the edges from layer to layer . For a vertex in , let denote the incoming edges into vertex and denote the outgoing edges from vertex .
All probabilities and expectations are implicitly over the uniform distribution of all random oracles and the uniform over all bijections , unless denoted otherwise. For fixed vertex in layer , edge incoming into layer , and size-t subset , we define the events
and similarly for , , and . We let be the vertex that is reached in and be the edge that is reached in . Let denote the addresses appearing in the first entries of the input stream.
For any fixed time , we use the following notation for distributions conditional on , , :
(10) and define likewise. For , we necessarily have , and we will use as shorthand for . For a vertex , let denote its associated output (we can assume without loss of generality that is a valid codeword in ).
Define which defines the set of all stream elements corresponding to codeword . Given a set of observed addresses , i.e., the addresses which have already appeared in the input stream at a given point in time, the set represents all observed addresses corresponding to codeword . Let denote the set of addresses which have yet to appear in the input stream. The set is then the set addresses corresponding to which have not yet appeared in the stream. Define which denote the number of the observed addresses corresponding to , with the dependence on implied.
Given a function and a subset , we define the value function:
The CODE INTERSECTION condition in (4) is equivalently given as , and the OPI condition in (6) is equivalently given as . When , we will sometimes omit the parameter and write instead.
2.4 List-recoverable codes
List recoverability is the main property we use with Code Intersection to bound the number of codewords which become “too structured”, i.e., having too many coordinates be observed along with high posterior probability of all of them mapping to 1. We define list-recoverable codes with respect to total list size (which is implied by list-recoverability with respect to individual list sizes):
Definition 6 (List recoverability). A code is called -list-recoverable if for any sets such that , we have
where .
Proposition 7 ([YZ24], Lemma 4.2). Fix any constants . There exists an explicit family of folded Reed–Solomon codes over field , where with block length , and folding parameter , such that
also satisfies the following properties:
-
(List-recoverability, used in classical lower bound Theorem 18) is -list-recoverable, where is a fixed constant, , and .
-
(Dual decoding, used in quantum algorithm Theorem 28) There exists an polynomial-time deterministic decoding algorithm Decode for the dual (over ) code satisfying
where is the distribution over which is with probability and uniform on all other symbols in .
2.5 Min-entropy and density-restoring partitions
The density-restoring partition is a technique from communication complexity based on the “structure versus randomness” paradigm. It represents a distribution with high min-entropy as a convex combination of distributions which are ‘fixed’ on some marginal (zero entropy) and have near-maximal min-entropy on every other marginal which does not intersect with the fixed part.
Definition 8 (Min-entropy). The min-entropy of a random variable , denoted , is defined as
We give a useful result on min-entropy applied to our branching program notation. It is the only result which depends directly on the width bound of the branching program.
Proposition 9 (Lemma 2.2 of [DORS08]). Fix and with . Except for vertices of total probability mass at most conditioned on , we have
Next, we formally introduce the density-restoring partition, originally due to [GPW20]:
Definition 10 (Density). Fix a set of coordinates and consider the random variable over . is called -dense if for all subsets ,
In other words has fraction of the maximum min-entropy achieved by any distribution over .
Lemma 11 (Density-restoring partition, Lemma 3.7 of [CFK 21]). Fix , coordinate set , and let be a random variable with support defined on . There exists a partition
where every is associated with a set and an assignment such that for all ,
-
The marginal distribution is fixed to .
-
The marginal distribution is -dense.
-
The marginal distribution has min-entropy
where .
Corollary 12. Fix , , set . Let be a random variable satisfying . Apply the density-restoring partition of Lemma 11: the collection from (18) can be partitioned into two groups with the following properties:
- Core group : Every in the group satisfies
- Excess group :
Proof. For each part in the density-restoring partition , any variable with support on a subset of has min-entropy at most . Combining this with property (3) of Lemma 11,
Let be the smallest index such that (if none exists, set : the excess group will be empty and the probability bound for it immediately follows). The core group is the union of for all . For each , and therefore
which implies
The excess group is the union of for all . Since , we have
by definition.
☐
3 Classical space lower bound for streaming Code Intersection
We prove our formal classical space lower bound for Code Intersection in a random-order stream in Theorem 18, which is the formal version of the lower bound in Theorem 1. A key observation of our model specifically for our analysis is that conditional on event , the posterior distribution of the next stream element is uniform over addresses in and an oracle label which is an independent, fair 0/1 bit. Additionally, conditioning on the next received stream element leaves the posterior distribution unchanged.
3.1 Potential method for Code Intersection space lower bound
Given a codeword , vertex and observed address set , the posterior probability that maps to can be split into two components: the probability of the observed addresses all mapping to 1, and the probability of the unobserved addresses all mapping to 1. Since oracle mappings on the unobserved addresses are independent of the branching program state, this gives
recalling that . The success probability of the branching program can be computed as
The maximum posterior probability over all codewords conditional on a memory state is generally difficult to analyze, because branching programs are able to forget information arbitrarily. We seek to construct a potential which upper bounds it while also being simpler to deal with. A natural choice would be the summation over all codewords
however this is equal to the expected number of codewords mapping to which is an extreme overestimate. This is where the structure versus randomness paradigm comes in: we want to construct our potential so that it only sums over codewords with potentially significant posterior probability (structured information) and ignore the codewords with very low posterior probability (random-like objects). To determine which codewords have the potential for structured information, we simply count the number of oracle points seen which agree with one of the coordinates of the codeword. We also only count probability which exceeds a small cutoff value in order to avoid over-counting many different candidates which we have low confidence in.
Definition 13 (Threshold crossing potential). Fix a parameter which we call the threshold. For , we define the potential at time as
We will omit parameters when they are clear from context. Eventually we will set and in Theorem 18, however we keep them as general parameters in the lemmas below.
Lemma 14 (Potential bounds CODE INTERSECTION success probability). For any threshold and fixed value ,
Proof. At , for all codewords , so the summation over codewords is empty and thus .
At , for all codewords , so the summation reduces to
Combining (27) and (31),
3.2 Applying the potential to Code Intersection
We begin by defining the intermediate edge-parameterized potential function:
The potential change from to can be split into two components:
-
, which corresponds to the potential gain incurred by starting from a vertex and going “onto” its outgoing edge: this corresponds to the information change from receiving a new stream input.
-
, which corresponds to the potential gain incurred by starting from an edge and moving to the vertex it points to: this corresponds to the information change from updating our memory state after receiving a new stream input.
We first show that contribution (2) is always non-positive, analogous to [GRT18, Claim 4.12]:
Lemma 15 (Convexity bound). Fix constants . We have
for all .
Proof. We partition set of edges according to the vertices in that they point to, allowing us to expand out the sum:
By law of total probability for with non-zero probability,
Since ReLU is a convex function, we can apply Jensen's inequality to get
Applying the summation to both sides of the inequality,
To bound contribution (1), we introduce a lemma which bounds the posterior probability of success for codewords which have both many observed coordinates as well as a sufficiently high probability of them all mapping to 1.
Lemma 16 (List-recovery implies low posterior probability for strong candidates). Let be a -list-recoverable code, and let be a random variable on , where . Fix , , . Suppose that
Then
Proof. To begin, we apply Lemma 11 and Corollary 12 to get the two groups and .
For each component in the core group ,
From condition (1) of Lemma 11, is fixed to . Fix a codeword where . For each core component index , if , then , and furthermore from condition (2) of Lemma 11, is -dense, so
Therefore
Now using the law of total probability on all core indices j plus the excess group,
(49)
The excess contribution is bounded by , and we split the core groups by their value of :
This implies
Now we sum over all codewords where :
where the final inequality is from list-recovery.
Lemma 16 allows us to bound contribution (1) of the potential growth:
Lemma 17 (Potential function evolution). Consider constants , and define , and let be a -list-recoverable code. If branching program has width , where
then for every ,
Proof. We partition set of edges , but this time according to the vertices in that they are outgoing from; the edges are indexed by elements .
Use to denote and to denote , which are both dependent on edge . Since the distribution over stream elements has non-zero support exactly on at time , is non-zero only if the edge is indexed by . We can rewrite the sum then as
Consider an edge e indexed by which arrives at time . We have
Since is a uniformly random element of conditioned on and independent of , we have
and therefore
Plugging into (57) and rearranging the order of summations,
Individual codeword analysis. Consider a fixed and . Additionally, fix a codeword and abbreviate and . We have two possibilities for :
• If , then , and therefore and the posterior probability on the observed addresses remains unchanged:
• If , then . Since by definition, . Additionally, the edge determines the original vertex , the address , and oracle label . Together , also uniquely determine , and thus as well. Therefore
since the event occurs if and only if both and .
For a fixed , where , and our chosen codeword , if then it does not appear in the summation over codewords for either and .
Now consider the case . If , then . There are a total of of these addresses, and for each of one and any , the conditional probability term is unchanged between and . The total contribution in (61) from any fixed codeword satisfying is
Now consider the addresses which are associated with . For each of these addresses the conditional probability term is unchanged between and when and is set to 0 otherwise. On the other hand, , so the value doubles. Since with probability , the two effects cancel. Therefore the total contribution in (61) from any codeword satisfying is
Thus the total contribution from codewords satisfying is equivalently
for both and . Thus we get
Notice that the change in potential is determined entirely by codewords which have observed coordinates for the first time!
Summing over codewords that cross the threshold. Since , is equal to
To bound this innermost sum, we utilize list-recoverability. For any , we condition on the event . From Proposition 9, for all vertices excluding a fraction whose total probability mass is at most conditioned on , we have . Call the vertices where this condition holds “good vertices” and the fraction of vertices where the condition does not hold the “bad vertices”. Set . For each good vertex , we apply Lemma 16 with and , whose precondition holds due to our assumption in (55). This gives us
which bounds the contribution of all good vertices in (68).
For the bad vertices, we can use the worst-case upper bound of
Since the probability mass of the bad vertices conditioned on A is at most ,
This gives an upper bound on the contribution from bad vertices in (68). Combining the contributions of both the good and bad vertices:
completing the proof.
Finally, we complete the proof of our lower bound using Lemmas 14, 15 and 17:
Theorem 18. Consider the CODE INTERSECTION streaming problem (Problem 1), where is a uniformly random ordering and is the folded Reed–Solomon code family in Proposition 7. There exist absolute constants such that for large enough , any classical streaming algorithm using at most bits of memory must have success probability at most over the randomness of the oracle and stream ordering.
Proof. From Lemma 14, and the success probability of any branching program is upper bounded by . We begin by bounding the potential difference at each time step :
(73) where the last inequality is due to Lemma 15.
Set , , and . Since
for small enough constants and large enough , we satisfy the conditions of Lemma 17. Applying the lemma and writing gives,
where we use , , and due to Proposition 7.
Remark 19. We can generalize the lower bound: for a general -list-recoverable code where and
any classical algorithm solving CODE INTERSECTION with memory has success probability at most .
4 Classical space lower bound for streaming Optimal Polynomial Intersection
In this section we extend the techniques introduced in Section 3 and use them to prove our classical space lower bound for OPI in a random-order stream in Theorem 27 (formal version of the lower bound in Theorem 2).
4.1 Extending the potential to constraint optimization
We show how to extend our potential function from Definition 13 to prove the more general setting where we allow codewords to have at least a certain number of their address mappings equal 1 instead of requiring all addresses to map to 1 as in CODE INTERSECTION.
Given a codeword , vertex and observed address set , the posterior probability that satisfies again splits into two components: the probability of at least out of observed addresses mapping to 1, and the probability of exactly out of unobserved addresses mapping to 1; we then sum over all possible . Since oracle mappings on the unobserved addresses are independent of the branching program state, we get
The unobserved contribution still retains the factor, but now contains an additional binomial coefficient compared to (26): the value counts the unobserved completion patterns with successes.
Definition 20 (Generalized threshold crossing potential). Fix constants , , and function satisfying
We define the generalized potential function at time t as
Remark 21. For all v, A, there are only a finite number of values j in the summation which give a non-zero contribution: from the binomial coefficient and since . We do not include these upper bounds for simplicity.
Remark 22. To recover Definition 13, set and fix to a constant function. The binomial coefficient ensures that for any non-zero contribution. The only term in the summation is , giving the expression of the original potential.
We again omit the parameters when they are clear from context. For convenience, we define shorthand notation for binomial weighting that gives unobserved probability contribution in (79):
where denotes the binomial random variable with m trials and probability p. For our potential we can now write
The generalized potential again begins at zero and bounds the final success probability.
Lemma 23 (Generalized potential bounds OPI success probability). For any and function satisfying (78), we have and
Proof. At , there are no observed addresses, so for every . Since , for all and codewords , implying .
At , since for every , the only non-zero binomial weight is when ; the weights are zero for all other values , so
The remainder of the proof now follows Lemma 14 with the event replacing :
4.2 Bounding the potential for Optimal Polynomial Intersection
Throughout this subsection, we consider the codeword search interpretation of OPI using Definition 4. Set and to the Reed–Solomon code . We now follow the same proof outline in Section 3 for proving Theorem 18: Lemmas 24 to 26 below are the OPI analogues of Lemmas 15 to 17.
We note two key differences in this new proof compared to the one presented in Section 3:
-
The threshold , besides being a function, now constrains the observed value of a codeword rather than just its number of observed coordinates . Previously the two were equivalent for any codeword contributing to the CODE INTERSECTION potential, but this is no longer the case for OPTIMAL POLYNOMIAL INTERSECTION.
-
Unlike Lemma 16, Lemma 25 does not rely on the density-restoring partition, and instead uses the fact that distinct polynomials agree on at most coordinates.
Similarly to Section 3, we define the edge-parameterized potential for all by
Lemma 24 (Convexity bound). Fix constant , , and function . Then
for all .
Proof. From an identical argument as Lemma 15, we get
For a fixed set of observed addresses , is specified for each codeword . Therefore completely defines the binomial weights and the range of which (88) sums over. We can again take the summation over , , and to both sides, as well as the summation over and binomial weight to both sides of (90), which gives the desired result.
The proof of Lemma 16 utilizes the density-restoring partition to show that the oracle is unlikely to map all unfixed coordinates of a codeword to 1. In the case of OPI, we forgo the density-restoring partition and instead directly use the fact that distinct polynomials of degree less than d have at most d - 1 common points. We use this to show that only few codewords can be above the value threshold with non-negligible probability.
Lemma 25 (Few high-value polynomials). Let be a code in which any two distinct codewords agree on at most coordinates. Fix , and let be a random variable on with . For , write and let be the event
Suppose and , and set . Then fewer than codewords satisfy . Consequently,
Proof. Fix integer . Then and .
We first show that any distinct codewords are unlikely to simultaneously have an observed Hamming weight surplus above their mean. Fix distinct , and for let . If all events occur, then
Since two distinct codewords agree on at most coordinates, . Hence, for uniform independent bits on , Hoeffding's inequality gives
The min-entropy bound gives for every . Therefore, under , .
Suppose now that at least codewords satisfy . Choose of them with . The expected number of occurring events among these codewords is at least . Since at most events can occur in total and , this expectation is impossible unless at least events occur with probability at least .
On the other hand, a union bound over the r-subsets gives
Indeed, , , and imply that the last expression is at most . This is a contradiction.
Thus fewer than codewords satisfy . All other terms inside the ReLU function vanish, while each remaining term is at most 1. Hence
as claimed.
Now we move to bound the potential growth at each time step using Lemma 25. We remark that the threshold in the following lemma is chosen analogously to Lemma 17: is the smallest integer that is at least the threshold in Lemma 25.
Lemma 26 (Generalized potential growth). For fixed , let be a code where any two distinct codewords agree on at most coordinates. Fix , and let
If the branching program B has width w = 2^S, where , then for every ,
Proof. Following the argument and notation from Lemma 17, we partition the summation over edges based on the vertex each edge originates from:
where e is the edge out of v that reads .
Individual codeword analysis. Fix and with , and consider a fixed codeword . Abbreviate , , and . Dividing by the common factor , the contribution of to is , and we compare it with the contributions of the pairs to (94). As in the proof of Lemma 17, conditioning on instead of leaves the distribution of unchanged and fixes , so equals if and if . We again have two cases for :
• If , then and , so the observed address probability does not change. The contribution from each of the pairs is therefore
• If , then and . We sum the and contributions to get a contribution from each of the pairs of
(96)
For , Pascal's identity gives
for every integer a, so
(98)
Since by (92), we treat the two cases separately:
• If , then times (96) has one less term than the right-hand side of (98), and therefore it is at most the left-hand side. In this case there is no positive contribution to the potential for this particular codeword.
• If , then times (96) has the extra term
compared to the right-hand side of (98).
Summing over all pairs and restoring the factor , the contribution of to is at most
if . Otherwise if , the contribution is always 0. The term in (100) is analogous to the contribution of codewords crossing the threshold in Lemma 17.
Summing over codewords that cross the value threshold. Summing (100) over all , and codewords with ,
(101)
Since
for any , we apply it to each term in our summation over :
Now we just need to show the remaining sum over and is upper bounded by . To do this, we can essentially follow the analogous proof in Lemma 17: we apply Proposition 9 to partition into good and bad vertices with , Lemma 25 gives a contribution of on the good vertices and the trivial upper bound gives a contribution of on the bad vertices, completing the proof.
Theorem 27 (OPTIMAL POLYNOMIAL INTERSECTION lower bound). Consider the OPI random-order streaming problem (Problem 2), where the degree satisfies and . Set target value . There exists a constant such that, for all sufficiently large , any classical streaming algorithm using at most bits of memory has success probability at most over the randomness of the oracle and stream ordering.
Proof. Recall , . Since two distinct polynomials of degree less than agree on at most evaluation points, two codewords of agree on at most coordinates. Let be a branching program of length and width where , for some constant . Define , so that .
Similarly to Theorem 18, we expand the start and end potential difference
(104) where the last inequality is due to Lemma 24.
From Lemma 23, and , so
We apply Lemma 26 with , which sets and ; from our assumption of , for all sufficiently large , we have and
for a small enough constant c. Therefore all the conditions of Lemma 26 are satisfied, and we have
Since for large enough , . For all , applying Hoeffding's inequality (Proposition 3) with and gives, for large enough ,
This implies
Plugging into (105) and using ,
With , we get
completing the proof.
□
References
[AB21] Sepehr Assadi and Soheil Behnezhad. Beating Two-Thirds For Random-Order Streaming Matching. In Nikhil Bansal, Emanuela Merelli, and James Worrell, editors, 48th International Colloquium on Automata, Languages, and Programming (ICALP 2021), volume 198 of Leibniz International Proceedings in Informatics (LIPIcs), pages 19:1–19:13, Dagstuhl, Germany, 2021. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.ICALP.2021.19.
[ADH 26] Cezar-Mihail Alexandru, Adithya Diddapur, Magnús M. Halldórsson, Christian Konrad, and Kheeran K. Naidu. Unit Interval Selection in Random Order Streams. In 43rd International Symposium on Theoretical Aspects of Computer Science (STACS 2026), volume 364 of Leibniz International Proceedings in Informatics (LIPIcs), pages 4:1–4:20, Dagstuhl, Germany, 2026. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.STACS.2026.4.
[BHV26] John Bostanci, Andrew Huang, and Vinod Vaikuntanathan. Separating quantum and classical advice with good codes, 2026. arXiv:2602.09385.
[BYJK08] Ziv Bar-Yossef, T. S. Jayram, and Iordanis Kerenidis. Exponential separation of quantum and classical one-way communication complexity. SIAM Journal on Computing, 38(1):366–384, 2008. doi:10.1137/060651835.
[CCM16] Amit Chakrabarti, Graham Cormode, and Andrew McGregor. Robust lower bounds for communication and stream computation. Theory of Computing, 12(10):1–35, 2016. doi:10.4086/toc.2016.v012a010.
[CFK 21] Arkadev Chattopadhyay, Yuval Filmus, Sajin Koroth, Or Meir, and Toniann Pitassi. Query-to-communication lifting using low-discrepancy gadgets. SIAM Journal on Computing, 50(1):171–210, 2021. doi:10.1137/19M1310153.
[CJP08] Amit Chakrabarti, T. S. Jayram, and Mihai Pătrașcu. Tight lower bounds for selection in randomly ordered streams. In Proceedings of the Nineteenth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA '08, page 720–729, USA, 2008. Society for Industrial and Applied Mathematics.
[CKKP22] Ashish Chiplunkar, John Kallaugher, Michael Kapralov, and Eric Price. Factorial lower bounds for (almost) random order streams. In 2022 IEEE 63rd Annual Symposium on Foundations of Computer Science (FOCS), pages 486–497, 2022. doi:10.1109/FOCS54457.2022.00053.
[DORS08] Yevgeniy Dodis, Rafail Ostrovsky, Leonid Reyzin, and Adam Smith. Fuzzy extractors: How to generate strong keys from biometrics and other noisy data. SIAM Journal on Computing, 38(1):97–139, 2008.
[FXL 26] Weijun Feng, Yongzhen Xu, Lvzhou Li, Gongde Guo, and Song Lin. Exponential quantum space advantage for shannon entropy estimation in data streams, 2026. arXiv:2604.18014.
[GGJL25] Mika Göös, Tom Gur, Siddhartha Jain, and Jiawei Li. Quantum Communication Advantage in TFNP. In Proceedings of the 57th Annual ACM Symposium on Theory of Computing, pages 1465–1475, 2025.
[GKK 09] Dmitry Gavinsky, Julia Kempe, Iordanis Kerenidis, Ran Raz, and Ronald de Wolf. Exponential separation for one-way quantum communication complexity, with applications to cryptography. SIAM Journal on Computing, 38(5):1695–1708, 2009. doi:10.1137/070706550.
[GM09] Sudipto Guha and Andrew McGregor. Stream order and order statistics: Quantile estimation in random-order streams. SIAM Journal on Computing, 38(5):2044–2059, 2009.
[GPW20] Mika Göös, Toniann Pitassi, and Thomas Watson. Query-to-communication lifting for BPP. SIAM Journal on Computing, 49(4):441–461, 2020. doi:10.1137/17M115339X.
[GRT18] Sumegha Garg, Ran Raz, and Avishay Tal. Extractor-based time-space lower bounds for learning. In STOC'18—Proceedings of the 50th Annual ACM SIGACT Symposium on Theory of Computing, pages 990–1002. ACM, New York, 2018.
[HHL09] Aram W. Harrow, Avinatan Hassidim, and Seth Lloyd. Quantum algorithm for linear systems of equations. Physical Review Letters, 103(15), 10 2009. doi:10.1103/physrevlett.103.150502.
[HWK24] Diba Hashemi and Weronika Wrzos-Kaminska. Weighted Matching in the Random-Order Streaming and Robust Communication Models. In Amit Kumar and Noga Ron-Zewi, editors, Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques (APPROX/RANDOM 2024), volume 317 of Leibniz International Proceedings in Informatics (LIPics), pages 16:1–16:26, Dagstuhl, Germany, 2024. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPics.APROX/RANDOM.2024.16.
[JSW 25] Stephen P Jordan, Noah Shutty, Mary Wootters, Adam Zalcman, Alexander Schmidhuber, Robbie King, Sergei V Isakov, Tanuj Khattar, and Ryan Babbush. Optimization by decoded quantum interferometry. Nature, 646(8086):831–836, 2025. doi:10.1038/s41586-025-09527-5.
[Kal22] John Kallaugher. A quantum advantage for a natural streaming problem. In 2021 IEEE 62nd Annual Symposium on Foundations of Computer Science (FOCS), pages 897–908. IEEE, 2022.
[KGD 26] William Kretschmer, Sabee Grewal, Matthew DeCross, Justin A. Gerber, Kevin Gilmore, Dan Gresh, Nicholas Hunter-Jones, Karl Mayer, Brian Neyenhuis, David Hayes, and Scott Aaronson. Demonstrating an unconditional separation between quantum and classical information resources, 2026. arXiv:2509.07255.
[KKS14] Michael Kapralov, Sanjeev Khanna, and Madhu Sudan. Approximating matching size from random streams. In Proceedings of the Twenty-Fifth Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 734–751. Society for Industrial and Applied Mathematics, 2014. doi:10.1137/1.9781611973402.55.
[KKS15] Michael Kapralov, Sanjeev Khanna, and Madhu Sudan. Streaming lower bounds for approximating max-cut. In Proceedings of the Twenty-Sixth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA '15, page 1263–1282. Society for Industrial and Applied Mathematics, 2015.
[KPV24] John Kallaugher, Ojas Parekh, and Nadezhda Voronova. Exponential quantum space advantage for approximating maximum directed cut in the streaming model. In Proceedings of the 56th Annual ACM Symposium on Theory of Computing, pages 1805–1815, 2024.
[KSG 25] Tanuj Khattar, Noah Shutty, Craig Gidney, Adam Zalcman, Noureldin Yosri, Dmitri Maslov, Ryan Babbush, and Stephen P. Jordan. Verifiable quantum advantage via optimized dqi circuits, 2025. arXiv:2510.10967.
[LG06] François Le Gall. Exponential separation of quantum and classical online space complexity. In Proceedings of the eighteenth annual ACM symposium on Parallelism in algorithms and architectures, pages 67–73, 2006.
[Liu23] Qipeng Liu. Non-uniformity and quantum advice in the quantum random oracle model. In Proceedings of the 42nd Conference on the Theory and Applications of Cryptographic Techniques (EUROCRYPT), volume 14004 of Lecture Notes in Computer Science, pages 117–143. Springer, 2023. doi:10.1007/978-3-031-30545-0_5.
[MM17] Dana Moshkovitz and Michal Moshkovitz. Mixing Implies Lower Bounds for Space Bounded Learning. In Satyen Kale and Ohad Shamir, editors, Proceedings of the 2017 Conference on Learning Theory, volume 65 of Proceedings of Machine Learning Research, pages 1516–1566. PMLR, 07–10 Jul 2017.
[MM18] Dana Moshkovitz and Michal Moshkovitz. Entropy samplers and strong generic lower bounds for space bounded learning. In 9th Innovations in Theoretical Computer Science, volume 94 of LIPIcs. Leibniz Int. Proc. Inform., pages Art. No. 28, 20. Schloss Dagstuhl. Leibniz-Zent. Inform., Wadern, 2018.
[Mon16] Ashley Montanaro. The quantum complexity of approximating the frequency moments. Quantum Information & Computation, 16(13&14):1169–1190, 2016.
[MP80] J Ian Munro and Mike S Paterson. Selection and sorting with limited storage. Theoretical computer science, 12(3):315–323, 1980.
[Raz99] Ran Raz. Exponential separation of quantum and classical communication complexity. In Proceedings of the Thirty-First Annual ACM Symposium on Theory of Computing, STOC '99, page 358–367, New York, NY, USA, 1999. Association for Computing Machinery. doi:10.1145/301250.301343.
[Raz17] Ran Raz. A time-space lower bound for a large class of learning problems. In 58th Annual IEEE Symposium on Foundations of Computer Science—FOCS 2017, pages 732–742. IEEE Computer Soc., Los Alamitos, CA, 2017. doi:10.1109/FOCS.2017.73.
[Raz18] Ran Raz. Fast learning requires good memory: A time-space lower bound for parity learning. Journal of the ACM (JACM), 66(1):1–18, 2018.
[Sho97] Peter W. Shor. Polynomial-time algorithms for prime factorization and discrete logarithms on a quantum computer. SIAM Journal on Computing, 26(5):1484–1509, 101997. doi:10.1137/s0097539795293172.
[SSSV23] Raghuvansh R Saxena, Noah Singer, Madhu Sudan, and Santhoshini Velusamy. Streaming complexity of CSPs with randomly ordered constraints. In Proceedings of the 2023 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 4083–4103. SIAM, 2023.
[TS13] Amnon Ta-Shma. Inverting well conditioned matrices in quantum logspace. In Proceedings of the forty-fifth annual ACM symposium on Theory of computing, pages 881–890, 2013.
[Wat99] John Watrous. Space-bounded quantum complexity. Journal of Computer and System Sciences, 59(2):281–326, 1999.
[WY26] Haoyu Wang and Guangxu Yang. Exponential quantum space advantage for approximating Max-kSAT in the streaming setting, 2026. arXiv:2606.05366.
[YZ24] Takashi Yamakawa and Mark Zhandry. Verifiable quantum advantage without structure. Journal of the ACM, 71(3):1–50, 2024. doi:10.1145/3658665.
[ZZN 26] Haimeng Zhao, Alexander Zlokapa, Hartmut Neven, Ryan Babbush, John Preskill, Jarrod R. McClean, and Hsin-Yuan Huang. Exponential quantum advantage in processing massive classical data, 2026. arXiv:2604.07639.
A Quantum streaming algorithms for Code Intersection and Optimal Polynomial Intersection
Both algorithms use the stream only to apply commuting input-controlled gates to a small state. After the pass, they perform post-processing which is independent of the input. This gives us our single-pass, low space quantum algorithm. We specify the details below.
Theorem 28 (Yamakawa–Zhandry streaming algorithm). Let be the code family specified in Proposition 7. There exists a quantum streaming algorithm solving Problem 1 using poly(n) memory with success probability over the randomness of the oracle, for all stream orderings.
Proof. Let and . The Yamakawa–Zhandry algorithm succeeds with probability from
using no further oracle access [YZ24, Liu23]. It therefore suffices to prepare in one pass.
Fix for a sufficiently large constant . For each , prepare copies of
When the stream item arrives, apply to every copy for coordinate , controlled on its first register being equal to . Since every pair appears exactly once, after the pass every copy for coordinate is
Measure the last qubit of every copy. Conditional on outcome 1, the first register is exactly . Let . Since each value is an independent fair bit, the number of with is concentrated around . Hence, except with probability , every . Conditioned on this event, the probability that all copies fail for some coordinate is at most
Thus, with probability we obtain one copy of for every , and hence exactly. We then run the Yamakawa–Zhandry postprocessing.
The algorithm stores qubits. It stores no oracle entry and works for every stream order.
Theorem 29 (DQI streaming algorithm). Suppose , , and set
There exists a one-pass quantum streaming algorithm for Problem 2 using memory with success probability over the randomness of the oracle, for all stream orderings.
Proof. We will use the space-optimized version of the DQI algorithm [JSW 25] due to Khattar et al. [KSG 25]. The idea is to store at most error locations, write all input-dependent phases during the pass, and decode only after the stream ends.
Set , , , and, for , let
Before the stream, prepare the state
storing as a sorted list. This state can be prepared within the same workspace: scan , keep the current support size, and use the conditional binomial probabilities to decide coherently whether to append to the list. At all times we store only the sparse list and additional work.
Write . When arrives, multiply by every branch whose sparse list contains and whose field register there equals . The gates commute. After one pass, each active location contains . No later step accesses .
Apply the Fourier transform over to each active field register. Write
where denotes the field trace. We next compute one flag that is 1 exactly when every active Fourier register is nonzero, and measure only this flag. We do not measure or the Fourier values. On failure the algorithm aborts. On success, the unnormalized successful branch is
Let be the corresponding sparse vector, so .
Let for . Compute the syndrome into field registers. It determines : if , then has weight at most , while every set of fewer than columns of the Vandermonde matrix is independent. We can therefore erase coherently from its syndrome. For a self-contained space bound, enumerate all canonical sparse errors of weight at most . For each candidate, compute into scratch space, compare it with the stored syndrome, and, on the unique match, XOR into the sparse error register. Then uncompute the scratch space. The candidate, its syndrome, and the loop counters use workspace. This may take exponential time, but our model only charges space.
Finally, inverse-Fourier-transform the syndrome and measure . For a fixed oracle , Fourier inversion gives
where
Since we leave the successful branch unnormalized, is the probability that the projection succeeds and the algorithm outputs . If the projection fails, the algorithm aborts and contributes zero. Therefore
For the success analysis, we compare with the ideal DQI amplitudes from ,
Following [JSW 25], average jointly over the random oracle and a uniform polynomial . Since , the weights define a probability distribution on this joint experiment. Under this distribution, the score is concentrated around , and the probability of score below is .
Our streaming state differs from this ideal state in two ways. First, we truncate to supports of size at most . The DQI analysis shows that this costs in squared norm. Second, the projection removes the zero Fourier frequency. Let . For and , and . Orthogonality across distinct subsets gives
Therefore
Combining this estimate with (114), and using , gives
The sparse error, syndrome, and reusable decoding workspace each use qubits. This proves the theorem.