Introduction
In the classical setting, Merkle puzzles are a key exchange protocol that gives a quadratic gap between the work of two honest classical parties and that of a classical eavesdropper [21 ] . In the random oracle setting, the honest parties make O ( N ) O(N) O ( N ) queries to a random oracle to compute a secret key, while a classical eavesdropper needs Ω ( N 2 ) \Omega(N^2) Ω ( N 2 ) queries to recover the key with constant probability. Here, N N N is the security parameter.
The quadratic gap is optimal against classical eavesdroppers. Impagliazzo and Rudich established the basic barrier to constructing classical key agreement from one-way functions by black-box methods [14 ] . Barak and Mahmoody later proved the optimal quantitative bound in the random oracle model [BM09]. If each honest party makes at most N N N queries and their agreement probability is ρ \rho ρ , then, for every fixed δ > 0 \delta> 0 δ > 0 , a classical eavesdropper can recover the key with probability at least ρ − δ \rho- \delta ρ − δ using O δ ( N 2 ) O_\delta(N^2) O δ ( N 2 ) queries. This bound applies to protocols with any number of communication rounds.
An eavesdropper that can query the oracle in superposition can use Grover’s search to recover the key in the original Merkle construction using only O ( N ) O(N) O ( N ) quantum queries [11 , 9 ] . Brassard and Salvail showed that a superlinear advantage can be restored if the honest parties can also use quantum computation [9 ] . Their protocol uses O ( N ) O(N) O ( N ) honest queries and requires Ω ( N 3 / 2 ) \Omega(N^{3/2}) Ω ( N 3/2 ) quantum queries for key recovery with constant probability. Brassard, Høyer, Kalach, Kaplan, Laplante, and Salvail then developed further Merkle-style protocols, including protocols with entirely classical honest parties and superlinear resistance to quantum attacks [4 , 5 ] . A central difficulty is proving security for the instances that the protocol actually produces. A worst-case query lower bound only guarantees that some inputs are hard. It does not show that an eavesdropper usually fails in a random execution. Belovs, Brassard, Høyer, Kaplan, Laplante, and Salvail addressed this issue using distributional adversary bounds and an average-case composition argument [2 ] . For every fixed ε > 0 \varepsilon> 0 ε > 0 , they obtained classical protocols with O ( N ) O(N) O ( N ) expected honest queries for which every quantum eavesdropper making O ( N 1.5 − ε ) O(N^{1.5-\varepsilon}) O ( N 1.5 − ε ) queries has vanishing key recovery probability. When honest parties can make quantum queries, their separation approaches the quadratic gap. Their analysis uses the k k k -SUM adversary construction of Belovs and Špalek [10 ] .
These results leave a quantitative question for classical honest parties. A quantum eavesdropper can always run the classical attack of Barak and Mahmoody, so the quadratic classical upper bound still applies. However, Grover’s attack on the original Merkle construction does not provide a faster attack on every classical protocol. Can classical parties obtain a nearly quadratic query advantage against a quantum eavesdropper, or does quantum access always allow a polynomial improvement over the general classical attack?
Our results
We answer this question tightly, up to logarithmic factors, in the quantum random oracle model. Alice and Bob make classical queries to a common random function and exchange classical messages. Eve sees the public transcript and can query the same function in quantum superposition. We construct protocols in which the honest parties make O ~ ( N ) \widetilde{O}(N) O ( N ) queries, while an adversary must make at least Ω ~ ( N 2 ) \widetilde{\Omega}(N^2) Ω ( N 2 ) quantum queries in order to recover the key1 with constant probability from the transcript. Here and in the rest of the paper, O ~ \widetilde{O} O and Ω ~ \widetilde{\Omega} Ω suppress polylogarithmic factors. More precisely, our main result can be stated as follows.
Theorem 1.1. There exists a two-message classical protocol using O ~ ( N ) \widetilde{O}(N) O ( N ) oracle queries that establishes a shared key with probability 1 − o ( 1 ) 1-o(1) 1 − o ( 1 ) , while any quantum adversary recovering the key with constant probability must make Ω ~ ( N 2 ) \widetilde{\Omega}(N^2) Ω ( N 2 ) oracle queries.
This construction has two messages and a small agreement error. We also give a protocol with perfect key agreement, following ideas from [20 ] , which can be stated as follows.
Theorem 1.2. There exists a three-message classical protocol using O ~ ( N ) \widetilde{O}(N) O ( N ) oracle queries that establishes a shared key with probability 1 1 1 , while any quantum adversary recovering the key with constant probability must make Ω ~ ( N 2 ) \widetilde{\Omega}(N^2) Ω ( N 2 ) oracle queries.
Our perfect agreement construction uses one more confirmation message, where on a rare failure event, Alice and Bob both output the fixed public value 0.
We also describe a choice of parameters and an implementation with near-linear honest computation and communication, at the cost of a smaller quantum-query lower bound.
Fix integers r , ℓ ≥ 2 r,\ell\ge2 r , ℓ ≥ 2 . Under explicit conditions, we construct a two-message protocol Π r , ℓ i m p \Pi^{\mathrm{imp}}_{r,\ell} Π r , ℓ imp and a three-message protocol Π r , ℓ p e r f \Pi^{\mathrm{perf}}_{r,\ell} Π r , ℓ perf . In both, the honest parties make at most O ( ( r + ℓ ) ℓ N log N ) O((r+\ell)\ell N\log N) O (( r + ℓ ) ℓ N log N ) classical queries to the oracle. The first has vanishing agreement error, while the second has perfect agreement. For every constant ν > 0 \nu> 0 ν > 0 , recovering Bob’s output with probability at least ν \nu ν requires at least T T T quantum queries, where
T = Ω ν ( L r , ℓ ( N ) ) , L r , ℓ ( N ) = N r / ( r + 1 ) + ℓ / ( ℓ + 1 ) r ℓ . (1) T = \Omega_\nu(\mathcal{L}_{r,\ell}(N)), \qquad\mathcal{L}_{r,\ell}(N) = \frac{N^{r/(r+1)+\ell/(\ell+1)}}{\sqrt{r\ell}}. \tag*{(1)} T = Ω ν ( L r , ℓ ( N )) , L r , ℓ ( N ) = r ℓ N r / ( r + 1 ) + ℓ / ( ℓ + 1 ) . (1)
The precise statements are Theorems 6.3 and 7.2.
The success probability is averaged over the actual protocol executions, including the random oracle, honest randomness, and Eve’s measurements. The query budget T T T is a worst-case bound over transcripts and measurement outcomes. In particular, any family of Eve algorithms using o ( L r , ℓ ( N ) ) o(\mathcal{L}_{r,\ell}(N)) o ( L r , ℓ ( N )) queries has recovery probability tending to zero.
Near-quadratic separation The bounds keep their dependence on both arities explicit. Taking r = ℓ = k r=\ell=k r = ℓ = k as a function of N N N gives honest query complexity O ~ ( N ) \widetilde{O}(N) O ( N ) and quantum key-recovery complexity Ω ~ ( N 2 ) \widetilde{\Omega}(N^2) Ω ( N 2 ) . The imperfect protocol’s agreement error and the perfect protocol’s probability of outputting 0 are both O ( N − 3 ) O(N^{-3}) O ( N − 3 ) . See Theorem 8.1 for the precise statement. For every fixed ε > 0 \varepsilon> 0 ε > 0 , a sufficiently large constant r = ℓ r=\ell r = ℓ instead gives Ω ε , ν ( N 2 − ε ) \Omega_{\varepsilon,\nu}(N^{2-\varepsilon}) Ω ε , ν ( N 2 − ε ) security with O ε ( N log N ) O_\varepsilon(N\log N) O ε ( N log N ) honest queries and polynomial honest running time. Note that the degree of that polynomial depends on ε \varepsilon ε .
When honest computation matters The near-quadratic query result is near optimal in the query complexity model, but requires expensive local searches. For a more realistic implementation, take r = ℓ = 2 r=\ell=2 r = ℓ = 2 and slightly modify the protocol, as explained in § 8.2 . Then both the imperfect and perfect versions have O ( N log N ) O(N\log N) O ( N log N ) queries and O ( N ( log 2 N ) ) O(N(\log^2 N)) O ( N ( log 2 N )) word operations, while any quantum attacker must make Ω ν ( N 4 / 3 ) \Omega_\nu(N^{4/3}) Ω ν ( N 4/3 ) queries to recover the key. This improves the N 7 / 6 N^{7/6} N 7/6 security exponent of the earlier classical construction with near-linear honest computations [2 , 5 ] .
Related work
Impossibility results in the quantum random-oracle model A related line of work allows the honest parties themselves to make quantum queries, while restricting their communication. Austrin, Chung, Chung, Fu, Lin, and Mahmoody proved a quadratic classical-query attack when one party is classical and agreement is perfect [ACC+22]. For two quantum parties exchanging classical messages, they obtained polynomial-query classical attacks under their polynomial compatibility conjecture (PCC). Bouaziz–Ermann, Grilo, Vergnaud, and Vu extended this approach to a final quantum message under the same conjecture and a restriction on the receiver’s subsequent oracle access [BEGV24]. More recently, Li, Li, Li, and Liu gave an unconditional O ( N 5 ) O(N^5) O ( N 5 ) classical-query attack on perfectly agreeing protocols with arbitrarily many classical messages and a Boolean-valued random oracle [LLL2b].
These attacks use classical oracle queries, even when they attack quantum honest parties. Li, Li, Li, and Liu developed quantum-query attacks using quantum Markov chains, first for restricted public-key encryption and then for general perfectly correct quantum public-key encryption with classical keys [16 , 17 , 18 ] . Kitagawa, Nishimaki, Villanyi, and Yamakawa also obtained attacks allowing imperfect agreement under restrictions on the honest parties’ oracle access and communication [15 ] . Thus several central impossibility arguments use classical queries, while other arguments do use quantum queries. These works study whether polynomial-query attacks exist, and do not establish a general quantum speedup over the quadratic classical attack on classical protocols. Our result concerns this quantitative question: no fixed polynomial improvement over the quadratic exponent is possible for all classical protocols in the query model.
Perfect agreement Perfect agreement requires the parties to output the same key in every execution, including those involving unlikely oracle collisions. For classical protocols with this property, Brakerski, Katz, Segev, and Yerukhimovich [6 ] give a classical eavesdropper that always recovers the key using O ( N 2 ) O(N^2) O ( N 2 ) oracle queries when each honest party makes at most N N N queries. Their analysis uses a simple consequence of perfect agreement: if a candidate execution consistent with the transcript gives the wrong key, scanning its queries reveals at least one previously unknown query made by the other party. This gives a shorter proof than the general quadratic attack of Barak and Mahmoody [BM09], which also applies to protocols with agreement errors.
Mazor [20 ] showed that the quadratic bound remains tight under perfect agreement, by constructing a two-message protocol with a quadratic query separation against classical eavesdroppers. The parties’ query sets are chosen to always have exactly one common input. Bob checks for additional collisions among their oracle answers. If the check fails, he informs Alice and both parties output the same fixed public key. These executions occur with small probability and are included in the security analysis. Thus perfect agreement does not require the key to remain hidden in every execution.
Mazor’s protocol uses two sequential messages: Bob’s response depends on Alice’s message. In comparison, the usual imperfect-agreement Merkle protocol admits a non-interactive implementation in which both parties send their messages simultaneously. Here, “non-interactive” refers to this simultaneous-message property, not to the absence of communication.
From a failed attack to a protocol Our starting point was an attempt to improve a classical attack using quantum search, as we believed that the bound of N 1.5 N^{1.5} N 1.5 was optimal. In attack of perfect protocols from [6 ] , Eve constructs a possible view of Alice that agrees with the public transcript and with the oracle answers she has already learned. If the key in this view is wrong, the argument forces a conflict with Bob’s actual view on a query that Eve has not yet learned. Querying all positions in the candidate view therefore makes progress, and this operation costs N N N queries. Repeating this step O ( N ) O(N) O ( N ) times leads to a quadratic query cost.
We attempted to replace this scan by a Grover search for an oracle position where the answer in the simulated view differs from the real oracle answer. The issue is that a candidate view can contain many such discrepancies at positions Bob never queried. When the candidate key in Eve’s simulation is wrong, the classical Eve is guaranteed to query at least one position that Bob queried, even though Eve cannot identify which one it is. A Grover search may instead return a discrepancy at a position that Bob never queried, which does not guarantee the progress used in the classical analysis. Thus the progress argument for the classical attack does not by itself give a quantum speedup.
This obstacle suggested a construction in which useful information is carried by a relation among several oracle values. Alice can create such a relation cheaply, because she can choose the positions. Bob can recover it by reading a whole block. Eve must also determine which blocks matter for the key. We use a planted sum inside each block to hide a bit, and another planted sum among the decoded labels to hide the key. The failed attack is what motivated the design of the protocol.
Discussion and open questions The construction separates two tasks that an eavesdropper must solve: learning information hidden inside blocks and identifying the combination of blocks that determines the key. Exact alignment of the planted-sum operators makes these two costs compose on the protocol’s actual distribution. The explicit dependence on the arities then brings the query separation within polylogarithmic factors of the classical quadratic upper bound.
Several questions remain. First, can the polylogarithmic loss be removed? Our growing-arity choice is limited by k 2 N − 1 / ( k + 1 ) ≤ 1 k^2N^{-1/(k+1)} \le1 k 2 N − 1/ ( k + 1 ) ≤ 1 , and optimizing this choice alone does not give a constant-factor quadratic lower bound. Second, can one build a protocol whose honest running time is also linear? Our protocol is computationally inefficient, as the honest parties must solve subset sum instances. This issue also existed in previous constructions [5 , 2 ] . Section 8.2 gives a near linear time implementation with a smaller security exponent.
Our construction for the imperfect case requires two messages (one from Alice and one from Bob) which is optimal2 ^2 2 , but we ask whether the protocol can be made non-interactive. For the perfect case, our protocol requires three messages, and we ask if the same security can be achieved with two messages.
Finally, our security statement concerns recovery of the entire subset key by a passive eavesdropper. It does not by itself establish an indistinguishability-based key-agreement definition. Obtaining such a statement requires a separate argument, for example with a privacy amplification step [22 ] .
AI disclosure
The authors first considered a general O ( N 3 / 2 ) O(N^{3/2}) O ( N 3/2 ) -query quantum attack on classical key agreement protocol, where the honest parties make O ( N ) O(N) O ( N ) oracle queries. The candidate attack was explained to ChatGPT, who identified a counterexample. We then explored explored different attack approaches, mainly based on Grover search and quantum walks. For each attack we described, ChatGPT identified a counterexample.
We then asked whether the obstacles encountered in these attempts could instead suggest a protocol achieving a quadratic query separation against quantum eavesdroppers. In response, ChatGPT proposed the construction developed and analyzed in this paper, which achieves a near-quadratic separation. ChatGPT also assisted with drafting. The author takes responsibility for the mathematical claims and proofs.
Acknowledgements We thank Alexandru Cojocaru and Quoc-Huy Vu for the helpful discussions.
Technical overview
In this technical overview, we will focus on the two-message imperfect-agreement protocol. Let N ∈ N N \in\mathbb{N} N ∈ N be the security parameter, and fix public parameters r , ℓ ∈ N r,\ell\in\mathbb{N} r , ℓ ∈ N , q = ⌈ ( ℓ + 3 ) log 2 N ⌉ q = \lceil(\ell+ 3)\log_2 N\rceil q = ⌈( ℓ + 3 ) log 2 N ⌉ , s = ⌈ ( r + 4 ) log 2 N ⌉ s = \lceil(r + 4)\log_2 N\rceil s = ⌈( r + 4 ) log 2 N ⌉ . We consider the random oracle model, where all the parties have oracle access to a uniformly random function
H : [ N ] × [ q ] × [ N ] ⟶ F 2 s H : [N] \times[q] \times[N] \longrightarrow\mathbb{F}_2^s H : [ N ] × [ q ] × [ N ] ⟶ F 2 s
Alice samples a 1 , … , a N ∈ F 2 q a_1,\ldots,a_N \in\mathbb{F}_2^q a 1 , … , a N ∈ F 2 q uniformly at random, which we call outer labels. She encodes each bit a i ( t ) a_i(t) a i ( t ) using a separate oracle block, consisting of the N N N values ( H ( i , t , 1 ) , … , H ( i , t , N ) ) (H(i,t,1),\ldots,H(i,t,N)) ( H ( i , t , 1 ) , … , H ( i , t , N )) . Thus each outer label uses q q q blocks, and there are N q Nq N q blocks in total. For simplicity, we omit dependence in ( i , t ) (i,t) ( i , t ) and write H ( j ) = H ( i , t , j ) H(j)=H(i,t,j) H ( j ) = H ( i , t , j ) .
Alice’s encoding
For one block, Alice publishes masks m 1 , … , m N m_1,\ldots,m_N m 1 , … , m N and Bob reads the masked values Y j = H ( j ) + m j Y_j = H(j)+m_j Y j = H ( j ) + m j . To encode zero, Alice chooses every mask uniformly at random and makes no oracle query. The masked block is then uniformly random. To encode one, she chooses a uniformly random subset S ∈ ( [ N ] r ) S \in\binom{[N]}{r} S ∈ ( r [ N ] ) , queries its r r r positions, and chooses the masks so that
∑ j ∈ S Y j = 0. \sum_{j \in S} Y_j = 0. j ∈ S ∑ Y j = 0.
For example, after choosing a pivot p ∈ S p \in S p ∈ S and every other mask uniformly, she sets
m p = H ( p ) + ∑ j ∈ S ∖ { p } ( H ( j ) + m j ) . m_p = H(p) + \sum_{j \in S\setminus\{p\}} (H(j)+m_j). m p = H ( p ) + j ∈ S ∖ { p } ∑ ( H ( j ) + m j ) .
The resulting block is uniform subject to this one equation. We call these two distributions the null distribution Q Q Q and the planted distribution P P P . In both cases the public mask is uniform and independent of the masked block. See Lemma 6.1 for a precise statement. Bob decodes by reading all N N N entries and testing whether any r r r distinct positions sum to zero. The test always returns one on a planted block. On a null block, a union bound gives
Pr [ the test returns one ] ≤ ( N r ) 2 − s ≤ N − 4 . \Pr[\text{the test returns one}] \le\binom{N}{r}2^{-s} \le N^{-4}. Pr [ the test returns one ] ≤ ( r N ) 2 − s ≤ N − 4 .
Thus Alice uses at most r r r queries to encode a bit, while Bob uses N N N queries to decode it. Note that Bob’s subsequent search uses only the values already read and requires no further oracle queries, but can be computationally inefficient.
Bob’s message and the shared key
After encoding all N q Nq N q bits, Alice sends the mask table to Bob. Bob chooses a uniformly random subset I ∈ ( [ N ] ℓ ) I \in\binom{[N]}{\ell} I ∈ ( ℓ [ N ] ) , reads the ℓ q \ell q ℓ q blocks needed to decode its labels, and obtains a ^ i \hat{a}_i a ^ i for i ∈ I i \in I i ∈ I . He sends Alice the message
z = ∑ i ∈ I a ^ i . z = \sum_{i\in I} \hat{a}_i. z = i ∈ I ∑ a ^ i .
Bob outputs I I I as his key. Alice already knows every original label, so she searches locally for the unique subset J J J of size ℓ \ell ℓ with
∑ j ∈ J a j = z . \sum_{j\in J} a_j = z. j ∈ J ∑ a j = z .
She outputs this subset when it exists and is unique. Otherwise, she aborts.
If Bob decoded correctly, then I I I is a solution. Without conditioning on this decoding event, the probability that another subset has the same sum as I I I in the original labels is at most ( N ℓ ) 2 − q ≤ N − 3 \binom{N}{\ell}2^{-q} \leq N^{-3} ( ℓ N ) 2 − q ≤ N − 3 . Outside these two bad events, Alice’s unique solution is I I I . Adding their probabilities bounds the total probability of failure to agree by
ℓ q N − 4 + N − 3 . \ell qN^{-4} + N^{-3}. ℓ q N − 4 + N − 3 .
Alice makes at most r N q rNq r N q queries, and Bob makes ℓ q N \ell qN ℓ q N . The two costs come from different tasks: Alice prepares many cheap encodings, whereas Bob fully reads a few of them.
Security argument
Two levels of hidden sums Consider an ideal experiment in which Bob sends z = ∑ i ∈ I a i z = \sum_{i\in I} a_i z = ∑ i ∈ I a i using the original labels. The real and ideal transcripts differ only if one of his decoded bits is wrong. The probability of this event is at most ℓ q N − 4 \ell qN^{-4} ℓ q N − 4 . For a fixed public z z z , the ideal label vector has exactly the planted ℓ \ell ℓ -SUM distribution: choose a hidden subset and sample labels conditioned on their sum being z z z .
If Eve could read a label directly, this outer problem would already be hard. Here its bits are themselves hidden in planted-sum encodings. The two relevant lower-bound scales are
N ℓ / ( ℓ + 1 ) ℓ and N r / ( r + 1 ) r . \frac{N^{\ell/(\ell+1)}}{\sqrt{\ell}}
\quad\text{and}\quad
\frac{N^{r/(r+1)}}{\sqrt{r}}. ℓ N ℓ / ( ℓ + 1 ) and r N r / ( r + 1 ) .
Their product is the scale in (1) . However, this multiplication needs a proof: Eve can query different blocks in superposition and does not necessarily decode labels one at a time.
Preserving the protocol’s distributions We use the average-case adversary method, which bounds the number of quantum queries needed to distinguish a planted distribution from a null distribution. The method associates an operator with these distributions and compares its size with the change that one query can cause. Our main technical step strengthens the norm analysis of the known planted k k k -SUM operator. Uniformly in the target sum, we prove
∥ Γ k , N ∥ = N k / ( k + 1 ) , ∥ Γ k , N ∘ Δ j ∥ ≤ 9 k . \lVert\Gamma_{k,N} \rVert= N^{k/(k+1)}, \qquad\lVert\Gamma_{k,N} \circ\Delta_j \rVert\leq9\sqrt{k}. ∥ Γ k , N ∥ = N k / ( k + 1 ) , ∥ Γ k , N ∘ Δ j ∥ ≤ 9 k .
whenever k 2 N − 1 / ( k + 1 ) ≤ 1 k^2N^{-1/(k+1)} \leq1 k 2 N − 1/ ( k + 1 ) ≤ 1 . Here the operation ∘ Δ j \circ\Delta_j ∘ Δ j keeps the matrix entries whose oracle answers at position j j j differ. Moreover, the normalized states whose amplitudes are the square roots of the planted and null probabilities satisfy
Γ ∣ δ Q ⟩ = ∥ Γ ∥ ∣ δ P ⟩ , Γ † ∣ δ P ⟩ = ∥ Γ ∥ ∣ δ Q ⟩ . \Gamma\lvert\delta_Q\rangle= \lVert\Gamma\rVert\lvert\delta_P\rangle, \qquad\Gamma^\dagger\lvert\delta_P\rangle= \lVert\Gamma\rVert\lvert\delta_Q\rangle. Γ ∣ δ Q ⟩ = ∥ Γ ∥ ∣ δ P ⟩ , Γ † ∣ δ P ⟩ = ∥ Γ ∥ ∣ δ Q ⟩ .
These exact identities let us apply standard adversary composition [13 , 7 ] while preserving the distributional quantity needed in the average-case bound. An approximate identity could lose a factor in each of the N q Nq N q encoded bits. Exact alignment avoids that accumulated loss. The composition norm theorem itself is a result from the literature. In this work, we verify the alignment and bounds needed for these planted distributions.
Perfect agreement upgrade. To construct a perfect protocol, we encode each bit using a pair of blocks:
zero: P ⊗ Q , one: Q ⊗ P . \text{zero:}\quad P \otimes Q,\qquad\text{one:}\quad Q \otimes P. zero: P ⊗ Q , one: Q ⊗ P .
At least one block contains a relation. If exactly one does, Bob learns the bit with certainty. If both do, he requests the fallback key 0. Alice’s final confirmation message, which is the third message of the protocol, confirms a unique outer solution or announces the same fallback key. Consequently the parties always agree. The fallback probability is at most ℓ q N − 4 + N − 3 \ell qN^{-4}+N^{-3} ℓ q N − 4 + N − 3 , and Eve knows the key on these executions. The paired construction changes the query costs only by constant factors and preserves the inner adversary ratio.
Organization of the paper. In § 4 we prove the exact norm and explicit query-filter bound, and in § 5 we apply these results to planted-sum distributions and to paired encodings. In § 6 we describe the two-message protocol and prove its correctness and security. In § 7 we describe the perfect three-message protocol, along with its security. Finally, in § 8 we derive the near-quadratic parameter choice and an efficient implementation.
Preliminaries
We use standard notation from quantum information. For background on quantum query algorithms and the adversary method, we refer to [12 Sections 1 and 5] . The distributional bound and planted-sum operator used in this section come from [2 ] , building on [10 ] . The matrix composition identities come from the adversary composition literature [13 , 7 ] . Our exact normalization and uniform bounds are proved in § 4 . We apply the composition identities to our chosen distributions in § 5 .
Notation and the query model
We write [ m ] = { 1 , … , m } [m]=\{1,\ldots,m\} [ m ] = { 1 , … , m } and ( [ m ] k ) \binom{[m]}{k} ( k [ m ] ) for the collection of k k k -element subsets of [ m ] [m] [ m ] . For a finite label set X \mathcal{X} X , let
H X = span { ∣ x ⟩ : x ∈ X } , ⟨ x ∣ y ⟩ = 1 [ x = y ] . \mathcal{H}_{\mathcal{X}}=\operatorname{span}\{|x\rangle:x\in\mathcal{X}\},\qquad\langle x\mid y\rangle=\mathbf{1}[x=y]. H X = span { ∣ x ⟩ : x ∈ X } , ⟨ x ∣ y ⟩ = 1 [ x = y ] .
All Hilbert spaces are finite-dimensional and complex. A matrix with rows indexed by X \mathcal{X} X and columns indexed by Y \mathcal{Y} Y is the linear operator
A : H Y ⟶ H X , A = ∑ x ∈ X , y ∈ Y ⟨ x ∣ A ∣ y ⟩ ∣ x ⟩ ⟨ y ∣ . A:\mathcal{H}_{\mathcal{Y}}\longrightarrow\mathcal{H}_{\mathcal{X}},\qquad A=\sum_{x\in\mathcal{X},\,y\in\mathcal{Y}}\langle x|A|y\rangle|x\rangle\langle y|. A : H Y ⟶ H X , A = x ∈ X , y ∈ Y ∑ ⟨ x ∣ A ∣ y ⟩ ∣ x ⟩ ⟨ y ∣.
It is not necessarily a square matrix, Hermitian, or unitary. We write A † A^\dagger A † for its adjoint and I X I_{\mathcal{X}} I X for the identity on H X \mathcal{H}_{\mathcal{X}} H X . We suppress the subscript when the space is clear. The operator norm is
∥ A ∥ = max ∥ ∣ v ⟩ ∥ = 1 ∥ A ∣ v ⟩ ∥ = max ∥ ∣ u ⟩ ∥ = ∥ ∣ v ⟩ ∥ = 1 ∣ ⟨ u ∣ A ∣ v ⟩ ∣ . \|A\|=\max_{\||v\rangle\|=1}\|A|v\rangle\|=\max_{\||u\rangle\|=\||v\rangle\|=1}|\langle u|A|v\rangle|. ∥ A ∥ = ∥∣ v ⟩ ∥ = 1 max ∥ A ∣ v ⟩ ∥ = ∥∣ u ⟩ ∥ = ∥∣ v ⟩ ∥ = 1 max ∣ ⟨ u ∣ A ∣ v ⟩ ∣.
Here ∥ ∣ v ⟩ ∥ = ⟨ v ∣ v ⟩ \||v\rangle\|=\sqrt{\langle v\mid v\rangle} ∥∣ v ⟩ ∥ = ⟨ v ∣ v ⟩ is the vector norm. The notation A ∘ B A\circ B A ∘ B denotes the entrywise product in the stated label bases:
⟨ x ∣ A ∘ B ∣ y ⟩ = ⟨ x ∣ A ∣ y ⟩ ⟨ x ∣ B ∣ y ⟩ . \langle x|A\circ B|y\rangle=\langle x|A|y\rangle\langle x|B|y\rangle. ⟨ x ∣ A ∘ B ∣ y ⟩ = ⟨ x ∣ A ∣ y ⟩ ⟨ x ∣ B ∣ y ⟩ .
It differs from operator multiplication A B AB A B and from the tensor product A ⊗ B A\otimes B A ⊗ B . We use ∥ A ⊗ B ∥ = ∥ A ∥ ∥ B ∥ \|A\otimes B\|=\|A\|\|B\| ∥ A ⊗ B ∥ = ∥ A ∥∥ B ∥ and the triangle inequality. An isometry V V V satisfies V † V = I V^\dagger V=I V † V = I . For a Hermitian operator K K K and any orthonormal basis { ∣ u ⟩ } \{|u\rangle\} { ∣ u ⟩} ,
∥ K ∥ ≤ max v ∑ u ∣ ⟨ u ∣ K ∣ v ⟩ ∣ . (2) \|K\|\leq\max_v\sum_u|\langle u|K|v\rangle|. \tag*{(2)} ∥ K ∥ ≤ v max u ∑ ∣ ⟨ u ∣ K ∣ v ⟩ ∣. (2)
Indeed, the spectral norm is at most the square root of the product of the maximum absolute row sum and the maximum absolute column sum. These two sums agree for a Hermitian matrix.
Unless a base is displayed, logarithms are natural. The notations O ~ \widetilde{O} O and Ω ~ \widetilde{\Omega} Ω suppress factors polynomial in log N \log N log N . A probability is vanishing if it tends to zero. It is negligible in N N N if it is smaller than N − c N^{-c} N − c for every fixed c > 0 c > 0 c > 0 , for all sufficiently large N N N . Constants in O k ( 1 ) O_k(1) O k ( 1 ) may depend on k k k , whereas a stated universal constant does not.
An oracle input is a string x = ( x 1 , … , x m ) x = (x_1,\ldots,x_m) x = ( x 1 , … , x m ) over a finite abelian group G G G . A quantum query acts as follows
O x ∣ j , b , w ⟩ = ∣ j , b + x j , w ⟩ . O_x\lvert j,b,w\rangle= \lvert j,b+x_j,w\rangle. O x ∣ j , b , w ⟩ = ∣ j , b + x j , w ⟩ .
The query index j j j may be in superposition. Local computation, memory, and classical communication are free. A T T T -query algorithm uses at most T T T queries on every branch. We allow a dummy index whose oracle value is always zero, so a shorter branch can be padded. We represent classical randomness and intermediate measurements using extra registers. We may then perform all measurements at the end, without changing the query count.
Our distributions are sometimes defined on labelled inputs . A label u u u specifies an oracle string x ( u ) x(u) x ( u ) , but different labels may specify the same string. An input label is an index used in the analysis and may contain auxiliary information. The algorithm receives access only to x ( u ) x(u) x ( u ) , not to the label. For row and column labels u , v u,v u , v , write
⟨ u ∣ Δ j ∣ v ⟩ = 1 [ x j ( u ) ≠ x j ( v ) ] . \langle u\lvert\Delta_j\lvert v\rangle= \mathbf{1}[x_j(u) \ne x_j(v)]. ⟨ u ∣ Δ j ∣ v ⟩ = 1 [ x j ( u ) = x j ( v )] .
Thus Γ ∘ Δ j \Gamma\circ\Delta_j Γ ∘ Δ j retains the comparisons on which a query at position j j j can detect a difference. We use the superscripts word and bit when both types of query position occur.
For a probability distribution P P P on labels, define its square-root state by
∣ δ P ⟩ = ∑ u ∈ supp ( P ) P [ u ] ∣ u ⟩ , ⟨ δ P ∣ δ P ⟩ = ∑ u P [ u ] = 1. \lvert\delta_P\rangle= \sum_{u\in\operatorname{supp}(P)} \sqrt{P[u]}\lvert u\rangle,\qquad\langle\delta_P\mid\delta_P\rangle= \sum_u P[u] = 1. ∣ δ P ⟩ = u ∈ supp ( P ) ∑ P [ u ] ∣ u ⟩ , ⟨ δ P ∣ δ P ⟩ = u ∑ P [ u ] = 1.
Thus ⟨ u ∣ δ P ⟩ = P [ u ] \langle u\mid\delta_P\rangle= \sqrt{P[u]} ⟨ u ∣ δ P ⟩ = P [ u ] . This is a pure state that is used only in the analysis. The algorithm is not given coherent access to this state or to its label register. Independent distributions give tensor products:
∣ δ P ⊗ Q ⟩ = ∣ δ P ⟩ ⊗ ∣ δ Q ⟩ . \lvert\delta_{P\otimes Q}\rangle= \lvert\delta_P\rangle\otimes\lvert\delta_Q\rangle. ∣ δ P ⊗ Q ⟩ = ∣ δ P ⟩ ⊗ ∣ δ Q ⟩ .
In the rest of the paper, we write N N N for the security parameter. In § 4 , we write m m m for the length of a single sum instance and k k k for the size of its planted sum. For the protocols in § 6 , we write n , ℓ n,\ell n , ℓ for the lengths and subset size for the outer instances, that is Bob’s planted instance, and M , r M,r M , r for the lengths and subset size of the inner blocks, that is Alice’s planted instances. We write q q q for the number of bits in an outer word and s s s for the number of bits in an inner oracle value. There are d = n q d = nq d = n q outer bits, indexed by p = ( i , t ) p = (i,t) p = ( i , t ) . In the protocols of § 6 , we take n = M = N n = M = N n = M = N .
The distributional adversary theorem
To prove a query lower bound, we choose an adversary operator. Its matrix elements assign weights to pairs of inputs. These weights define a progress measure for distinguishing the two distributions. The weights may be negative or complex. Following the register formulation of [12 Section 5.1] , we introduce a label register used only in the analysis. The algorithm cannot access it. If ∣ ψ u t ⟩ \lvert\psi_u^t\rangle ∣ ψ u t ⟩ is its state after t t t queries on label u u u , define, for R ∈ { P , Q } R \in\{P,Q\} R ∈ { P , Q } ,
∣ Ψ R t ⟩ = ∑ u ∈ supp ( R ) R [ u ] ∣ u ⟩ ⊗ ∣ ψ u t ⟩ . \lvert\Psi_R^t\rangle= \sum_{u\in\operatorname{supp}(R)} \sqrt{R[u]}\lvert u\rangle\otimes\lvert\psi_u^t\rangle. ∣ Ψ R t ⟩ = u ∈ supp ( R ) ∑ R [ u ] ∣ u ⟩ ⊗ ∣ ψ u t ⟩ .
The distributional method tracks the weighted overlap
W t = Re ⟨ Ψ P t ∣ Γ ⊗ I ∣ Ψ Q t ⟩ . W_t = \operatorname{Re}\langle\Psi_P^t\lvert\Gamma\otimes I\lvert\Psi_Q^t\rangle. W t = Re ⟨ Ψ P t ∣ Γ ⊗ I ∣ Ψ Q t ⟩ .
Initially the algorithm’s state is independent of u u u , so W 0 = Re ( ⟨ δ P ∣ Γ ∣ δ Q ⟩ ) W_0 = \operatorname{Re}(\langle\delta_P\lvert\Gamma\lvert\delta_Q\rangle) W 0 = Re (⟨ δ P ∣ Γ ∣ δ Q ⟩) . Unitaries that do not depend on the input leave this overlap unchanged. The theorem below bounds how much each query can change it. It also relates the final overlap to the two output distributions.
For acceptance probabilities s P , s Q ∈ [ 0 , 1 ] s_P,s_Q \in[0,1] s P , s Q ∈ [ 0 , 1 ] , define
τ ( s P , s Q ) = s P s Q + ( 1 − s P ) ( 1 − s Q ) . (3) \tau(s_P,s_Q) = \sqrt{s_Ps_Q} + \sqrt{(1-s_P)(1-s_Q)}. \tag*{(3)} τ ( s P , s Q ) = s P s Q + ( 1 − s P ) ( 1 − s Q ) . (3)
This is the inner product of the two normalized states s R ∣ 1 ⟩ + 1 − s R ∣ 0 ⟩ \sqrt{s_R}\lvert1\rangle+\sqrt{1-s_R}\lvert0\rangle s R ∣ 1 ⟩ + 1 − s R ∣ 0 ⟩ for R ∈ { P , Q } R\in\{P,Q\} R ∈ { P , Q } . In particular, 0 ≤ τ ≤ 1 0\le\tau\le1 0 ≤ τ ≤ 1 and
1 − τ = 1 2 ( s P − s Q ) 2 + 1 2 ( 1 − s P − 1 − s Q ) 2 . 1-\tau=\frac{1}{2}\left(\sqrt{s_P}-\sqrt{s_Q}\right)^2+\frac{1}{2}\left(\sqrt{1-s_P}-\sqrt{1-s_Q}\right)^2. 1 − τ = 2 1 ( s P − s Q ) 2 + 2 1 ( 1 − s P − 1 − s Q ) 2 .
Identical output distributions give τ = 1 \tau=1 τ = 1 , while perfect distinction gives τ = 0 \tau=0 τ = 0 .
Theorem 3.1. Let P , Q P,Q P , Q be distributions on labelled oracle inputs, and let Γ \Gamma Γ have rows indexed by supp ( P ) \operatorname{supp}(P) supp ( P ) and columns indexed by supp ( Q ) \operatorname{supp}(Q) supp ( Q ) . Set
D = max j ∥ Γ ∘ Δ j ∥ . D=\max_j\lVert\Gamma\circ\Delta_j\rVert. D = j max ∥ Γ ∘ Δ j ∥ . If an algorithm makes at most T T T quantum queries and accepts with average probabilities s P , s Q s_P,s_Q s P , s Q under P , Q P,Q P , Q , respectively, then
2 T D ≥ Re ( ⟨ δ P ∣ Γ ∣ δ Q ⟩ ) − τ ( s P , s Q ) ∥ Γ ∥ . (4) 2TD\ge\operatorname{Re}(\langle\delta_P\lvert\Gamma\lvert\delta_Q\rangle)-\tau(s_P,s_Q)\lVert\Gamma\rVert. \tag*{(4)} 2 T D ≥ Re (⟨ δ P ∣ Γ ∣ δ Q ⟩) − τ ( s P , s Q ) ∥ Γ ∥ . (4)
The precise bound above is the distributional adversary theorem of [2 full version, Theorem 4 and Claims 1–3] , where the explicit factor 2 comes from the one-query estimate in Claim 3. The cited theorem allows rectangular matrices by adding zero rows and columns, as explained immediately after its statement. Labels are treated as input indices, with oracle answers determined by their associated strings. Different labels may therefore give the same oracle.
The probabilities in this theorem are averaged over the input distributions. The query budget T T T is a worst-case budget over executions. These are different uses of “average case” and “worst case”. For our operators, the initial overlap equals the norm. The numerator then becomes ( 1 − τ ) ∥ Γ ∥ (1-\tau)\lVert\Gamma\rVert ( 1 − τ ) ∥ Γ ∥ . A constant distinguishing advantage therefore gives a lower bound proportional to the adversary ratio.
Planted sum distributions
Fix a finite abelian group G G G of size g g g , a target w ∈ G w\in G w ∈ G , and m ≥ k ≥ 2 m\ge k\ge2 m ≥ k ≥ 2 . Write
P S w = { x ∈ G m : ∑ i ∈ S x i = w } ( S ∈ ( [ m ] k ) ) . P^w_S=\left\{x\in G^m:\sum_{i\in S}x_i=w\right\}\qquad\left(S\in\binom{[m]}{k}\right). P S w = { x ∈ G m : i ∈ S ∑ x i = w } ( S ∈ ( k [ m ] ) ) .
The null and planted labelled sample spaces are
Q k , m = G m , P k , m w = { ( S , x ) : S ∈ ( [ m ] k ) , x ∈ P S w } . Q_{k,m}=G^m,\qquad P^w_{k,m}=\left\{(S,x):S\in\binom{[m]}{k},\ x\in P^w_S\right\}. Q k , m = G m , P k , m w = { ( S , x ) : S ∈ ( k [ m ] ) , x ∈ P S w } .
Let Q k , m Q_{k,m} Q k , m and P k , m w P^w_{k,m} P k , m w be the uniform distributions on these spaces. A planted sample is generated by choosing S S S uniformly and then choosing x x x uniformly subject to the equation on S S S . When only x x x is relevant, we write x ← P k , m w x\leftarrow P^w_{k,m} x ← P k , m w as a shorthand for sampling ( S , x ) ← P k , m w (S,x)\leftarrow P^w_{k,m} ( S , x ) ← P k , m w and retaining x x x . In the adversary analysis, we keep the full pair ( S , x ) (S,x) ( S , x ) as an input label. The algorithm has oracle access only to x x x and is not given S S S .
We call S S S a certificate: its k k k positions witness the relation ∑ i ∈ S x i = w \sum_{i\in S}x_i=w ∑ i ∈ S x i = w . Reading those positions is enough to verify that this particular relation holds. There are g m − 1 g^{m-1} g m − 1 such strings for each S S S : choose one position in S S S and assign all other coordinates freely; the sum equation determines the remaining coordinate. Thus
Q k , m [ x ] = g − m , P k , m w [ S , x ] = ( m k ) − 1 g − ( m − 1 ) . Q_{k,m}[x]=g^{-m},\qquad P^w_{k,m}[S,x]=\binom{m}{k}^{-1}g^{-(m-1)}. Q k , m [ x ] = g − m , P k , m w [ S , x ] = ( k m ) − 1 g − ( m − 1 ) .
A string with several solutions occurs under several planted labels. The resulting distribution on strings is weighted by the number of solutions; it is not the uniform distribution on strings having at least one solution. Also, a null sample is not conditioned to have no solution. For later use, a union bound gives
Pr x ← Q k , m [ ∃ S : ∑ i ∈ S x i = w ] ≤ ( m k ) / g . (5) \Pr_{x\leftarrow Q_{k,m}}\left[\exists S:\sum_{i\in S}x_i=w\right]\le\binom{m}{k}/g. \tag*{(5)} x ← Q k , m Pr [ ∃ S : i ∈ S ∑ x i = w ] ≤ ( k m ) / g . (5)
Indeed, for each fixed S S S , its sum is uniform in G G G , so its probability of being w w w is exactly 1 / g 1/g 1/ g .
Fourier description of the planted k k k -SUM matrix
We now define the adversary operator used to analyze the protocol. A character of G G G is a map χ : G → C \chi:G\to\mathbb{C} χ : G → C with ∣ χ ( x ) ∣ = 1 |\chi(x)|=1 ∣ χ ( x ) ∣ = 1 and χ ( x + y ) = χ ( x ) χ ( y ) \chi(x+y)=\chi(x)\chi(y) χ ( x + y ) = χ ( x ) χ ( y ) . The characters form a group G ^ \widehat{G} G of size g g g . We write its operation additively: χ a + b = χ a χ b \chi_{a+b}=\chi_a\chi_b χ a + b = χ a χ b , and 0 0 0 denotes the constant character. Character orthogonality says
1 g ∑ x ∈ G χ a ( x ) ‾ χ b ( x ) = 1 [ a = b ] . \frac{1}{g}\sum_{x\in G}\overline{\chi_a(x)}\chi_b(x)=1[a=b]. g 1 x ∈ G ∑ χ a ( x ) χ b ( x ) = 1 [ a = b ] .
On one coordinate, define
∣ e a ⟩ = 1 g ∑ x ∈ G χ a ( x ) ∣ x ⟩ ( a ∈ G ^ ) . |e_a\rangle=\frac{1}{\sqrt{g}}\sum_{x\in G}\chi_a(x)|x\rangle\qquad(a\in\widehat{G}). ∣ e a ⟩ = g 1 x ∈ G ∑ χ a ( x ) ∣ x ⟩ ( a ∈ G ) .
For v ∈ G ^ m v\in\widehat{G}^m v ∈ G m , the corresponding Fourier basis state is
∣ e v ⟩ = ⨂ i = 1 m ∣ e v i ⟩ = g − m / 2 ∑ x ∈ G m ( ∏ i = 1 m χ v i ( x i ) ) ∣ x ⟩ . |e_v\rangle=\bigotimes_{i=1}^{m}|e_{v_i}\rangle=g^{-m/2}\sum_{x\in G^m}\left(\prod_{i=1}^{m}\chi_{v_i}(x_i)\right)|x\rangle. ∣ e v ⟩ = i = 1 ⨂ m ∣ e v i ⟩ = g − m /2 x ∈ G m ∑ ( i = 1 ∏ m χ v i ( x i ) ) ∣ x ⟩ .
Character orthogonality makes these states an orthonormal basis. Write supp ( v ) = { i : v i ≠ 0 } \operatorname{supp}(v)=\{i:v_i\ne0\} supp ( v ) = { i : v i = 0 } and wt ( v ) = ∣ supp ( v ) ∣ \operatorname{wt}(v)=|\operatorname{supp}(v)| wt ( v ) = ∣ supp ( v ) ∣ . For G = F 2 s G=\mathbb{F}_2^s G = F 2 s , one may simply use χ a ( x ) = ( − 1 ) a ⋅ x \chi_a(x)=(-1)^{a\cdot x} χ a ( x ) = ( − 1 ) a ⋅ x .
On one coordinate, let
E 0 = ∣ e 0 ⟩ ⟨ e 0 ∣ , E 1 = I − E 0 . E_0=|e_0\rangle\langle e_0|,\qquad E_1=I-E_0. E 0 = ∣ e 0 ⟩ ⟨ e 0 ∣ , E 1 = I − E 0 .
The first projector has every matrix element equal to 1 / g 1/g 1/ g ; the second projects onto the nonconstant Fourier states. For U ⊆ [ m ] U\subseteq[m] U ⊆ [ m ] , let
E U = ⨂ i = 1 m E 1 [ i ∈ U ] , E U ∣ e v ⟩ = 1 [ supp ( v ) = U ] ∣ e v ⟩ . E_U=\bigotimes_{i=1}^{m}E_{1[i\in U]},\qquad E_U|e_v\rangle=1[\operatorname{supp}(v)=U]|e_v\rangle. E U = i = 1 ⨂ m E 1 [ i ∈ U ] , E U ∣ e v ⟩ = 1 [ supp ( v ) = U ] ∣ e v ⟩ .
To express restriction to the planted rows as an operator, define
R S w : H G m ⟶ H P S w , R S w = ∑ x ∈ P S w ∣ x ⟩ ⟨ x ∣ . R_S^w:\mathcal{H}_{G^m}\longrightarrow\mathcal{H}_{P_S^w},\qquad R_S^w=\sum_{x\in P_S^w}|x\rangle\langle x|. R S w : H G m ⟶ H P S w , R S w = x ∈ P S w ∑ ∣ x ⟩ ⟨ x ∣.
In this formula the ket belongs to the restricted output space and the bra to the full input space: R S w R_S^w R S w retains precisely the allowed computational-basis components. For a nonnegative coefficient sequence α \alpha α , set
G S ( α ) = g R S w ∑ U : S ⊈ U α ∣ U ∣ E U , G_S(\alpha)=\sqrt{g}R_S^w\sum_{U:S\nsubseteq U}\alpha_{|U|}E_U, G S ( α ) = g R S w U : S ⊈ U ∑ α ∣ U ∣ E U ,
Γ ( α ) = ∑ S ∈ ( [ m ] k ) ∣ S ⟩ ⊗ G S ( α ) . (6) \Gamma(\alpha)=\sum_{S\in\binom{[m]}{k}}|S\rangle\otimes G_S(\alpha). \tag*{(6)} Γ ( α ) = S ∈ ( k [ m ] ) ∑ ∣ S ⟩ ⊗ G S ( α ) . (6)
The output space is the orthogonal direct sum ⨁ S ( ∣ S ⟩ ⊗ H P S w ) \bigoplus_S(|S\rangle\otimes\mathcal{H}_{P_S^w}) ⨁ S ( ∣ S ⟩ ⊗ H P S w ) . Thus a row label is still ( S , x ) (S,x) ( S , x ) , and the last formula is exactly the vertical stack of the operators G S G_S G S . This is the construction of [2 full version, Section 5, equations (8)–(10)] , based on [10 ] . Restricting to g m − 1 g^{m-1} g m − 1 of the g m g^m g m rows gives each restricted Fourier state norm 1 / g 1/\sqrt{g} 1/ g . The factor g \sqrt{g} g makes these states have norm one.
For the rest of the paper, unless another sequence is specified, take
L = L k , m = m k / ( k + 1 ) , α a = ( m k ) − 1 / 2 ( L − a ) + , ( t ) + = max { t , 0 } , (7) L=L_{k,m}=m^{k/(k+1)},\qquad\alpha_a=\binom{m}{k}^{-1/2}(L-a)_+,\qquad(t)_+=\max\{t,0\}, \tag*{(7)} L = L k , m = m k / ( k + 1 ) , α a = ( k m ) − 1/2 ( L − a ) + , ( t ) + = max { t , 0 } , (7)
and write Γ k , m = Γ ( α ) \Gamma_{k,m}=\Gamma(\alpha) Γ k , m = Γ ( α ) . The target w w w and group G G G are omitted from this notation. The linear decrease in a a a will control both the full norm and the norm after one query.
We use the following identities from [2 full version, Section 5, equations (11)–(12) and Claim 6] , written in character notation. For a nonzero target, a common shift can introduce a phase; the absolute value in (9) accounts for it.
Lemma 3.2. Write ∣ ϕ S , v ⟩ = g R S w ∣ e v ⟩ |\phi_{S,v}\rangle=\sqrt{g}R^w_S|e_v\rangle ∣ ϕ S , v ⟩ = g R S w ∣ e v ⟩ . This is a unit vector, and
G S ( α ) ∣ e v ⟩ = { α wt ( v ) ∣ ϕ S , v ⟩ , S ⊈ supp ( v ) , 0 , S ⊆ supp ( v ) . (8) G_S(\alpha)|e_v\rangle=
\begin{cases}
\alpha^{\operatorname{wt}(v)}|\phi_{S,v}\rangle, & S\not\subseteq\operatorname{supp}(v),\\
0, & S\subseteq\operatorname{supp}(v).
\end{cases} \tag*{(8)} G S ( α ) ∣ e v ⟩ = { α wt ( v ) ∣ ϕ S , v ⟩ , 0 , S ⊆ supp ( v ) , S ⊆ supp ( v ) . (8) Two vectors ∣ ϕ S , u ⟩ , ∣ ϕ S , v ⟩ |\phi_{S,u}\rangle,|\phi_{S,v}\rangle ∣ ϕ S , u ⟩ , ∣ ϕ S , v ⟩ are orthogonal unless v v v is obtained from u u u by adding one common character index on every coordinate of S S S and leaving the other coordinates unchanged. In that case their inner product has modulus one. In particular,
∣ ⟨ e u ∣ G S † G S ∣ e v ⟩ ∣ = { α wt ( u ) α wt ( v ) , S ⊈ supp ( u ) , S ⊈ supp ( v ) , u , v differ by a common shift on S , 0 , otherwise . (9) \left|\langle e_u|G_S^\dagger G_S|e_v\rangle\right|=
\begin{cases}
\alpha^{\operatorname{wt}(u)}\alpha^{\operatorname{wt}(v)}, & S\not\subseteq\operatorname{supp}(u),\ S\not\subseteq\operatorname{supp}(v),\ u,v\text{ differ by a common shift on }S,\\
0, & \text{otherwise}.
\end{cases} \tag*{(9)} ⟨ e u ∣ G S † G S ∣ e v ⟩ = { α wt ( u ) α wt ( v ) , 0 , S ⊆ supp ( u ) , S ⊆ supp ( v ) , u , v differ by a common shift on S , otherwise . (9) For the coefficients in (7),
Γ k , m ∣ δ Q k , m ⟩ = L ∣ δ P k , m w ⟩ , ⟨ δ P k , m w ∣ Γ k , m ∣ δ Q k , m ⟩ = L . (10) \Gamma_{k,m}|\delta_{Q_{k,m}}\rangle=L|\delta_{P^w_{k,m}}\rangle,\qquad
\langle\delta_{P^w_{k,m}}|\Gamma_{k,m}|\delta_{Q_{k,m}}\rangle=L. \tag*{(10)} Γ k , m ∣ δ Q k , m ⟩ = L ∣ δ P k , m w ⟩ , ⟨ δ P k , m w ∣ Γ k , m ∣ δ Q k , m ⟩ = L . (10) For fixed k k k , [2 ] also prove
∥ Γ k , m ∥ ≤ ( 1 + O k ( m − 1 / ( k + 1 ) ) ) L , ∥ Γ k , m ∘ Δ i w o r d ∥ = O k ( 1 ) . (11) \|\Gamma_{k,m}\|\leq\left(1+O_k\left(m^{-1/(k+1)}\right)\right)L,\qquad
\|\Gamma_{k,m}\circ\Delta_i^{\mathrm{word}}\|=O_k(1). \tag*{(11)} ∥ Γ k , m ∥ ≤ ( 1 + O k ( m − 1/ ( k + 1 ) ) ) L , ∥ Γ k , m ∘ Δ i word ∥ = O k ( 1 ) . (11) These estimates are our starting point. Our proofs do not use the constants hidden in the asymptotic notation. We prove the exact norm L L L , the adjoint alignment, and the explicit bound 9 k 9\sqrt{k} 9 k in § 4 .
Matrix composition
Composition of adversary bounds is a standard result, see [12 Proposition 49] for its statement for Boolean functions. We use the matrix form below. The norm identity is proved in [13 Lemma 16] and [7 Lemma 21] . The query-filter bound is proved in [7 proof of Theorem 22, equation (8) and Claim 23] . We state both conclusions for rectangular operators and labelled oracle inputs.
Lemma 3.3. Let d ≥ 1 d\geq1 d ≥ 1 . For each p ∈ [ d ] p\in[d] p ∈ [ d ] , let D p : H p , 0 → H p , 1 D_p:\mathcal{H}_{p,0}\to\mathcal{H}_{p,1} D p : H p , 0 → H p , 1 and ρ p = ∥ D p ∥ \rho_p=\|D_p\| ρ p = ∥ D p ∥ . Complete it by setting
D p 1 , 0 = D p , D p 0 , 1 = D p † , D p b , b = ρ p I H p , b ( b ∈ { 0 , 1 } ) . D_p^{1,0}=D_p,\qquad D_p^{0,1}=D_p^\dagger,\qquad D_p^{b,b}=\rho_p I_{\mathcal{H}_{p,b}}\quad(b\in\{0,1\}). D p 1 , 0 = D p , D p 0 , 1 = D p † , D p b , b = ρ p I H p , b ( b ∈ { 0 , 1 }) . Let B : H Y → H X B:\mathcal{H}_Y\to\mathcal{H}_X B : H Y → H X , where each label x x x or y y y carries a bit string ( x 1 , … , x d ) (x_1,\ldots,x_d) ( x 1 , … , x d ) or ( y 1 , … , y d ) (y_1,\ldots,y_d) ( y 1 , … , y d ) . Different labels may carry the same string. Define
K = ∑ x ∈ X , y ∈ Y ⟨ x ∣ B ∣ y ⟩ ∣ x ⟩ ⟨ y ∣ ⊗ ⨂ p = 1 d D p x p , y p . K=\sum_{\substack{x\in\mathcal{X},\,y\in\mathcal{Y}}}\langle x|B|y\rangle|x\rangle\langle y|\otimes\bigotimes_{p=1}^{d}D_p^{x_p,y_p}. K = x ∈ X , y ∈ Y ∑ ⟨ x ∣ B ∣ y ⟩ ∣ x ⟩ ⟨ y ∣ ⊗ p = 1 ⨂ d D p x p , y p . This maps ⨁ y ( ∣ y ⟩ ⊗ ⨂ p H p , y p ) \bigoplus_y\left(|y\rangle\otimes\bigotimes_p\mathcal{H}_{p,y_p}\right) ⨁ y ( ∣ y ⟩ ⊗ ⨂ p H p , y p ) to ⨁ x ( ∣ x ⟩ ⊗ ⨂ p H p , x p ) \bigoplus_x\left(|x\rangle\otimes\bigotimes_p\mathcal{H}_{p,x_p}\right) ⨁ x ( ∣ x ⟩ ⊗ ⨂ p H p , x p ) . Equivalently, embed each H p , b \mathcal{H}_{p,b} H p , b in H p , 0 ⊕ H p , 1 \mathcal{H}_{p,0}\oplus\mathcal{H}_{p,1} H p , 0 ⊕ H p , 1 and extend every operator by zero. These embeddings do not change the operator norm. Then
∥ K ∥ = ∥ B ∥ ∏ p = 1 d ρ p . (12) \|K\|=\|B\|\prod_{p=1}^{d}\rho_p. \tag*{(12)} ∥ K ∥ = ∥ B ∥ p = 1 ∏ d ρ p . (12) Suppose also that each basis label u u u in H p , b \mathcal{H}_{p,b} H p , b specifies an oracle string, whose answer at position j j j is denoted by u ( j ) u(j) u ( j ) . Define the outer bit filter and the inner query filter by
⟨ x ∣ Δ p b i t ∣ y ⟩ = 1 [ x p ≠ y p ] , ⟨ u ∣ Δ p , j i n ∣ v ⟩ = 1 [ u ( j ) ≠ v ( j ) ] , \langle x|\Delta_p^{\mathrm{bit}}|y\rangle=\mathbf{1}[x_p\ne y_p],\qquad
\langle u|\Delta_{p,j}^{\mathrm{in}}|v\rangle=\mathbf{1}[u(j)\ne v(j)], ⟨ x ∣ Δ p bit ∣ y ⟩ = 1 [ x p = y p ] , ⟨ u ∣ Δ p , j in ∣ v ⟩ = 1 [ u ( j ) = v ( j )] , where the second filter has the row and column label sets of D p D_p D p . For tuples u = ( u 1 , … , u d ) u=(u_1,\ldots,u_d) u = ( u 1 , … , u d ) and v = ( v 1 , … , v d ) v=(v_1,\ldots,v_d) v = ( v 1 , … , v d ) , the physical query filter is
⟨ x , u ∣ Δ p , j ∣ y , v ⟩ = 1 [ u p ( j ) ≠ v p ( j ) ] . \langle x,u|\Delta_{p,j}|y,v\rangle=\mathbf{1}[u_p(j)\ne v_p(j)]. ⟨ x , u ∣ Δ p , j ∣ y , v ⟩ = 1 [ u p ( j ) = v p ( j )] . Then
∥ K ∘ Δ p , j ∥ ≤ ∥ B ∘ Δ p b i t ∥ ∥ D p ∘ Δ p , j i n ∥ ∏ r ∈ [ d ] r ≠ p ρ r . (13) \|K\circ\Delta_{p,j}\|\leq\|B\circ\Delta_p^{\mathrm{bit}}\|\,\|D_p\circ\Delta_{p,j}^{\mathrm{in}}\|\prod_{\substack{r\in[d]\\r\ne p}}\rho_r. \tag*{(13)} ∥ K ∘ Δ p , j ∥ ≤ ∥ B ∘ Δ p bit ∥ ∥ D p ∘ Δ p , j in ∥ r ∈ [ d ] r = p ∏ ρ r . (13) An empty product equals 1. Different labels may specify the same oracle string.
Proof. We use the norm identity for completed matrix composition from [13 Lemma 16] . Specifically, if Γ \Gamma Γ is a Hermitian adversary matrix indexed by distinct bit strings, and the inner Hermitian adversary matrices have off-diagonal blocks E 1 , … , E m E_1,\ldots,E_m E 1 , … , E m , then their completed composition satisfies
∥ Comp ( Γ ; E 1 , … , E m ) ∥ = ∥ Γ ∥ ∏ r = 1 m ∥ E r ∥ . (14) \lVert\operatorname{Comp}(\Gamma;E_1,\ldots,E_m)\rVert=\lVert\Gamma\rVert\prod_{r=1}^{m}\lVert E_r\rVert. \tag*{(14)} ∥ Comp ( Γ ; E 1 , … , E m )∥ = ∥ Γ ∥ r = 1 ∏ m ∥ E r ∥ . (14)
Here the completed blocks associated with E r E_r E r are
( ∥ E r ∥ I E r E r † ∥ E r ∥ I ) . \begin{pmatrix}
\lVert E_r\rVert I & E_r\\
E_r^\dagger& \lVert E_r\rVert I
\end{pmatrix}. ( ∥ E r ∥ I E r † E r ∥ E r ∥ I ) .
The result above allows complex Hermitian matrices and different inner matrices in different coordinates. See also [7 Lemma 21] for the real symmetric matrix formulation. We apply (14) twice, after verifying the required identifications.
For a rectangular operator W W W , define its Hermitian dilation by
D ( W ) = ( 0 W W † 0 ) . \mathcal{D}(W)=
\begin{pmatrix}
0 & W\\
W^\dagger& 0
\end{pmatrix}. D ( W ) = ( 0 W † W 0 ) .
Since
D ( W ) 2 = W W † ⊕ W † W , ∥ D ( W ) ∥ = ∥ W ∥ , \mathcal{D}(W)^2=WW^\dagger\oplus W^\dagger W,\qquad\lVert\mathcal{D}(W)\rVert=\lVert W\rVert, D ( W ) 2 = W W † ⊕ W † W , ∥ D ( W )∥ = ∥ W ∥ ,
passing to this dilation preserves the norm.
Choose an injective map c : X ⊔ Y → { 0 , 1 } a c:\mathcal{X}\sqcup\mathcal{Y}\to\{0,1\}^a c : X ⊔ Y → { 0 , 1 } a and represent each outer input label z z z by
ι ( z ) = ( z 1 , … , z d , c ( z ) ) . \iota(z)=(z_1,\ldots,z_d,c(z)). ι ( z ) = ( z 1 , … , z d , c ( z )) .
Index D ( B ) \mathcal{D}(B) D ( B ) by these distinct representations, and extend it by zero to all strings in { 0 , 1 } d + a \{0,1\}^{d+a} { 0 , 1 } d + a . Denote the resulting matrix by B ^ \widehat{B} B . It is a Hermitian adversary matrix for a Boolean function that is zero on ι ( X ) \iota(\mathcal{X}) ι ( X ) and one on ι ( Y ) \iota(\mathcal{Y}) ι ( Y ) ; the function can be defined arbitrarily on unused strings.
Compose B ^ \widehat{B} B with D 1 , … , D d D_1,\ldots,D_d D 1 , … , D d in the original coordinates and with [ 1 ] [1] [ 1 ] in each auxiliary coordinate. All four completed blocks associated with [ 1 ] [1] [ 1 ] equal [ 1 ] [1] [ 1 ] . Thus the auxiliary coordinates leave the entries unchanged, and, after reordering the basis, the composed operator is
K ^ = D ( K ) ⊕ 0. \widehat{K}=\mathcal{D}(K)\oplus0. K = D ( K ) ⊕ 0.
This identification follows directly from the definition of the completed composition.
We now apply the cited norm identity (14) to B ^ \widehat{B} B and these d + a d+a d + a inner matrices. It gives
∥ K ∥ = ∥ K ^ ∥ = ∥ B ^ ∥ ∏ r = 1 d ρ r = ∥ B ∥ ∏ r = 1 d ρ r , \lVert K\rVert=\lVert\widehat{K}\rVert=\lVert\widehat{B}\rVert\prod_{r=1}^{d}\rho_r=\lVert B\rVert\prod_{r=1}^{d}\rho_r, ∥ K ∥ = ∥ K ∥ = ∥ B ∥ r = 1 ∏ d ρ r = ∥ B ∥ r = 1 ∏ d ρ r ,
where ρ r = ∥ D r ∥ \rho_r=\lVert D_r\rVert ρ r = ∥ D r ∥ and the auxiliary factors have norm one. This proves the norm identity in the statement.
Fix a physical query ( p , j ) (p,j) ( p , j ) and write
B ′ = B ∘ Δ p b i t , F r = { D p ∘ Δ p , j i n , r = p , D r , r ≠ p . B'=B\circ\Delta_p^{\mathrm{bit}},\qquad
F_r=
\begin{cases}
D_p\circ\Delta_{p,j}^{\mathrm{in}}, & r=p,\\
D_r, & r\ne p.
\end{cases} B ′ = B ∘ Δ p bit , F r = { D p ∘ Δ p , j in , D r , r = p , r = p .
Complete the matrices F r F_r F r using ∥ F r ∥ I \lVert F_r\rVert I ∥ F r ∥ I for their equal-bit blocks. We claim that
K ∘ Δ p , j = ∑ x ∈ X , y ∈ Y ⟨ x ∣ B ′ ∣ y ⟩ ∣ x ⟩ ⟨ y ∣ ⊗ ⨂ r = 1 d F r x r , y r . (15) K\circ\Delta_{p,j}
=
\sum_{x\in\mathcal{X},\,y\in\mathcal{Y}}
\langle x|B'|y\rangle|x\rangle\langle y|
\otimes\bigotimes_{r=1}^{d}F_r^{x_r,y_r}. \tag*{(15)} K ∘ Δ p , j = x ∈ X , y ∈ Y ∑ ⟨ x ∣ B ′ ∣ y ⟩ ∣ x ⟩ ⟨ y ∣ ⊗ r = 1 ⨂ d F r x r , y r . (15)
This is an entrywise identity, which we verify directly. If x p = y p x_p=y_p x p = y p , the original local factor is ρ p I \rho_p I ρ p I . Its nonzero entries connect identical labels, whose oracle answers agree, so the physical query filter removes them.
The right-hand side also vanishes because ⟨ x ∣ B ′ ∣ y ⟩ = 0 \langle x|B'|y\rangle=0 ⟨ x ∣ B ′ ∣ y ⟩ = 0 . In particular, the changed equal-bit completion of F p F_p F p contributes nothing. If x p ≠ y p x_p\ne y_p x p = y p , the outer filter leaves the entry of B B B unchanged, and filtering the local factor gives F p F_p F p or F p ′ F'_p F p ′ . All other factors remain unchanged. This proves (15) .
Finally, apply the rectangular norm identity proved above to B ′ B' B ′ and F 1 , … , F d F_1,\ldots,F_d F 1 , … , F d . This gives
∥ K ∘ Δ p , j ∥ ≤ ∥ B ∘ Δ p b i t ∥ ∥ D p ∘ Δ p , j i n p ∥ ∏ r = 1 r ≠ p d ρ r . \lVert K\circ\Delta_{p,j}\rVert\le\lVert B\circ\Delta^{\mathrm{bit}}_p\rVert\lVert D_p\circ\Delta^{\mathrm{inp}}_{p,j}\rVert\prod_{\substack{r=1\\r\ne p}}^d\rho_r. ∥ K ∘ Δ p , j ∥ ≤ ∥ B ∘ Δ p bit ∥ ∥ D p ∘ Δ p , j inp ∥ r = 1 r = p ∏ d ρ r .
The entrywise verification only requires identical labels to have identical oracle answers. Distinct labels may therefore specify the same oracle string.
Exact normalization of the average-case k k k -SUM matrix
In this section, we prove the three properties needed for composition: the full norm is exactly L = m k / ( k + 1 ) L=m^{k/(k+1)} L = m k / ( k + 1 ) , the two distribution vectors are singular vectors with singular value L L L , and every query-filtered norm is at most 9 k 9\sqrt{k} 9 k . The first property prevents a loss at each encoded bit. The last makes the bound useful even when k k k grows with m m m .
The exact norm and distribution-vector alignment
Theorem 4.1 (Exact norm). Let m ≥ k ≥ 2 m\ge k\ge2 m ≥ k ≥ 2 and write L = m k / ( k + 1 ) L=m^{k/(k+1)} L = m k / ( k + 1 ) . If
k 2 L m ≤ 1 , \frac{k^2L}{m}\le1, m k 2 L ≤ 1 , then the planted k k k -SUM matrix Γ k , m \Gamma_{k,m} Γ k , m satisfies
∥ Γ k , m ∥ = L . \lVert\Gamma_{k,m}\rVert=L. ∥ Γ k , m ∥ = L . Also,
Γ k , m ∣ δ Q k , m ⟩ = L ∣ δ P k , m w ⟩ (16) \Gamma_{k,m}|\delta_{Q_{k,m}}\rangle=L|\delta_{P^w_{k,m}}\rangle \tag*{(16)} Γ k , m ∣ δ Q k , m ⟩ = L ∣ δ P k , m w ⟩ (16) Γ k , m † ∣ δ P k , m w ⟩ = L ∣ δ Q k , m ⟩ . (17) \Gamma_{k,m}^{\dagger}|\delta_{P^w_{k,m}}\rangle=L|\delta_{Q_{k,m}}\rangle. \tag*{(17)} Γ k , m † ∣ δ P k , m w ⟩ = L ∣ δ Q k , m ⟩ . (17)
Proof. In this proof, write
Γ = Γ k , m , P = P k , m w , Q = Q k , m . \Gamma=\Gamma_{k,m},\qquad P=P^w_{k,m},\qquad Q=Q_{k,m}. Γ = Γ k , m , P = P k , m w , Q = Q k , m .
The certificate registers are orthogonal. Therefore the Gram operator is
H = Γ † Γ = ∑ S ∈ ( [ m ] k ) G S † G S . H=\Gamma^\dagger\Gamma=\sum_{S\in\binom{[m]}{k}}G_S^\dagger G_S. H = Γ † Γ = S ∈ ( k [ m ] ) ∑ G S † G S .
We will bound every absolute column sum of H H H by L 2 L^2 L 2 in the Fourier basis. By (2), this will imply
∥ Γ ∥ 2 = ∥ H ∥ ≤ L 2 . \lVert\Gamma\rVert^2=\lVert H\rVert\le L^2. ∥ Γ ∥ 2 = ∥ H ∥ ≤ L 2 .
Fix a column indexed by ∣ e v ⟩ |e_v\rangle ∣ e v ⟩ and write j = wt ( v ) j=\operatorname{wt}(v) j = wt ( v ) .
Diagonal part. By Lemma 3.2,
⟨ e v ∣ H ∣ e v ⟩ = ∑ S ∈ ( [ m ] k ) ∥ G S ∣ e v ⟩ ∥ 2 ≤ ( m k ) α j 2 = ( L − j ) + 2 . (18) \langle e_v|H|e_v\rangle
=\sum_{S\in\binom{[m]}{k}}\lVert G_S|e_v\rangle\rVert^2
\le\binom{m}{k}\alpha_j^2=(L-j)_+^2. \tag*{(18)} ⟨ e v ∣ H ∣ e v ⟩ = S ∈ ( k [ m ] ) ∑ ∥ G S ∣ e v ⟩ ∥ 2 ≤ ( k m ) α j 2 = ( L − j ) + 2 . (18)
Off-diagonal part. For a fixed certificate S S S , a nonzero term requires a common shift between u u u and v v v on S S S . Write this shift as a ∈ G ^ a\in\widehat{G} a ∈ G :
u h = { v h − a , h ∈ S , v h , h ∉ S . (19) u_h=
\begin{cases}
v_h-a, & h\in S,\\
v_h, & h\notin S.
\end{cases} \tag*{(19)} u h = { v h − a , v h , h ∈ S , h ∈ / S . (19)
For an off-diagonal term, u ≠ v u \ne v u = v , so a ≠ 0 a \ne0 a = 0 . If S ∩ supp ( v ) = ∅ S \cap\operatorname{supp}(v) = \varnothing S ∩ supp ( v ) = ∅ , then
u h = − a ≠ 0 ( h ∈ S ) ⟹ S ⊆ supp ( u ) . u_h=-a\ne0\quad(h\in S)\quad\Longrightarrow\quad S\subseteq\operatorname{supp}(u). u h = − a = 0 ( h ∈ S ) ⟹ S ⊆ supp ( u ) .
This contradicts the condition S ⊈ supp ( u ) S\nsubseteq\operatorname{supp}(u) S ⊈ supp ( u ) in (9) . Thus we only need certificates that meet supp ( v ) \operatorname{supp}(v) supp ( v ) . Choosing one position in this intersection gives
# { S ∈ ( [ m ] k ) : S ∩ supp ( v ) ≠ ∅ } ≤ ∑ h ∈ supp ( v ) ( m − 1 k − 1 ) = j ( m − 1 k − 1 ) . \#\{S\in\binom{[m]}{k}:S\cap\operatorname{supp}(v)\ne\varnothing\}\le\sum_{h\in\operatorname{supp}(v)}\binom{m-1}{k-1}=j\binom{m-1}{k-1}. # { S ∈ ( k [ m ] ) : S ∩ supp ( v ) = ∅ } ≤ h ∈ supp ( v ) ∑ ( k − 1 m − 1 ) = j ( k − 1 m − 1 ) .
For each such S S S , the condition on u u u also gives
S ⊈ supp ( u ) ⟹ ∃ h ∈ S : u h = 0 ⟹ a ∈ { v h : h ∈ S } . S\nsubseteq\operatorname{supp}(u)\quad\Longrightarrow\quad\exists h\in S:u_h=0\quad\Longrightarrow\quad a\in\{v_h:h\in S\}. S ⊈ supp ( u ) ⟹ ∃ h ∈ S : u h = 0 ⟹ a ∈ { v h : h ∈ S } .
Thus there are at most k k k possible shifts. Each shift determines one u u u , and its contribution has absolute value at most α j α wt ( u ) ≤ α j α 0 \alpha_j\alpha_{\operatorname{wt}(u)}\le\alpha_j\alpha_0 α j α wt ( u ) ≤ α j α 0 . By the triangle inequality,
R j : = ∑ u ≠ v ∣ ⟨ e u ∣ H ∣ e v ⟩ ∣ ≤ k j ( m − 1 k − 1 ) α j α 0 = k j ( m − 1 k − 1 ) ( m k ) L ( L − j ) + = k 2 j m L ( L − j ) + , \begin{aligned}
R_j:=\sum_{u\ne v}\lvert\langle e_u\lvert H\lvert e_v\rangle\rvert
\le kj\binom{m-1}{k-1}\alpha_j\alpha_0 \\
&=kj\frac{\binom{m-1}{k-1}}{\binom{m}{k}}L(L-j)_+ \\
&=\frac{k^2j}{m}L(L-j)_+,
\end{aligned} R j := u = v ∑ ∣⟨ e u ∣ H ∣ e v ⟩∣ ≤ k j ( k − 1 m − 1 ) α j α 0 = k j ( k m ) ( k − 1 m − 1 ) L ( L − j ) + = m k 2 j L ( L − j ) + ,
where the last equality uses ( m − 1 k − 1 ) / ( m k ) = k / m \binom{m-1}{k-1}/\binom{m}{k}=k/m ( k − 1 m − 1 ) / ( k m ) = k / m .
Combining the two parts. If 0 ≤ j < L 0\le j<L 0 ≤ j < L , the assumption k 2 L / m ≤ 1 k^2L/m\le1 k 2 L / m ≤ 1 gives R j ≤ j ( L − j ) R_j\le j(L-j) R j ≤ j ( L − j ) . Together with (18), this gives
∑ u ∣ ⟨ e u ∣ H ∣ e v ⟩ ∣ = ⟨ e v ∣ H ∣ e v ⟩ + R j ≤ ( L − j ) 2 + j ( L − j ) = L ( L − j ) ≤ L 2 . \begin{aligned}
\sum_u\lvert\langle e_u\lvert H\lvert e_v\rangle\rvert
=\langle e_v\lvert H\lvert e_v\rangle+R_j \\
&\le(L-j)^2+j(L-j) \\
&=L(L-j)\le L^2.
\end{aligned} u ∑ ∣⟨ e u ∣ H ∣ e v ⟩∣ = ⟨ e v ∣ H ∣ e v ⟩ + R j ≤ ( L − j ) 2 + j ( L − j ) = L ( L − j ) ≤ L 2 .
If j ≥ L j\ge L j ≥ L , then α j = 0 \alpha_j=0 α j = 0 , and the block action gives
Γ ∣ e v ⟩ = 0 ⟹ H ∣ e v ⟩ = 0. \Gamma\lvert e_v\rangle=0\quad\Longrightarrow\quad H\lvert e_v\rangle=0. Γ ∣ e v ⟩ = 0 ⟹ H ∣ e v ⟩ = 0.
Thus every absolute column sum is at most L 2 L^2 L 2 , and
∥ Γ ∥ 2 = ∥ H ∥ ≤ L 2 . \lVert\Gamma\rVert^2=\lVert H\rVert\le L^2. ∥ Γ ∥ 2 = ∥ H ∥ ≤ L 2 .
For the lower bound, use (10) and the fact that the two distribution states have norm one:
L = ⟨ δ P ∣ Γ ∣ δ Q ⟩ ≤ ∥ Γ ∥ . L=\langle\delta_P\lvert\Gamma\lvert\delta_Q\rangle\le\lVert\Gamma\rVert. L = ⟨ δ P ∣ Γ ∣ δ Q ⟩ ≤ ∥ Γ ∥ .
This proves ∥ Γ ∥ = L \lVert\Gamma\rVert=L ∥ Γ ∥ = L .
Alignment. (10) already gives Γ ∣ δ Q ⟩ = L ∣ δ P ⟩ \Gamma\lvert\delta_Q\rangle=L\lvert\delta_P\rangle Γ ∣ δ Q ⟩ = L ∣ δ P ⟩ . For the adjoint relation, expand the squared distance:
∥ Γ † ∣ δ P ⟩ − L ∣ δ Q ⟩ ∥ 2 = ∥ Γ † ∣ δ P ⟩ ∥ 2 − 2 L Re ( ⟨ δ P ∣ Γ ∣ δ Q ⟩ ) + L 2 ≤ L 2 − 2 L 2 + L 2 = 0. \begin{aligned}
\lVert\Gamma^\dagger\lvert\delta_P\rangle-L\lvert\delta_Q\rangle\rVert^2 \\
&=\lVert\Gamma^\dagger\lvert\delta_P\rangle\rVert^2-2L\operatorname{Re}(\langle\delta_P\lvert\Gamma\lvert\delta_Q\rangle)+L^2 \\
&\le L^2-2L^2+L^2=0.
\end{aligned} ∥ Γ † ∣ δ P ⟩ − L ∣ δ Q ⟩ ∥ 2 = ∥ Γ † ∣ δ P ⟩ ∥ 2 − 2 L Re (⟨ δ P ∣ Γ ∣ δ Q ⟩) + L 2 ≤ L 2 − 2 L 2 + L 2 = 0.
The squared norm is nonnegative, so it is zero. Therefore Γ † ∣ δ P ⟩ = L ∣ δ Q ⟩ \Gamma^\dagger\lvert\delta_P\rangle=L\lvert\delta_Q\rangle Γ † ∣ δ P ⟩ = L ∣ δ Q ⟩ , as required by (17).
The effect of one query
We now bound the norm of the adversary operator after applying a query filter. We make the dependence on k k k explicit in the calculation of [10 ] . A bound of the form O k ( 1 ) O_k(1) O k ( 1 ) would not tell us how the constant grows with k k k . We first use a general nonincreasing coefficient sequence, then substitute the linear sequence from (7) .
Lemma 4.3. Let m ≥ 2 k m \ge2k m ≥ 2 k and let
Γ ( α ) = ∑ S ∈ ( [ m ] k ) ∣ S ⟩ ⊗ G S ( α ) \Gamma(\alpha) = \sum_{S \in\binom{[m]}{k}} |S\rangle\otimes G_S(\alpha) Γ ( α ) = S ∈ ( k [ m ] ) ∑ ∣ S ⟩ ⊗ G S ( α ) be the planted k k k -SUM matrix formed with a nonnegative nonincreasing sequence α = ( α a ) a ≥ 0 \alpha=(\alpha_a)_{a\ge0} α = ( α a ) a ≥ 0 , extended by zero past its support. For every input position i i i ,
∥ Γ ( α ) ∘ Δ i w o r d ∥ ≤ 2 ( X ( α ) + Y ( α ) ) , (20) \lVert\Gamma(\alpha) \circ\Delta_i^{\mathrm{word}} \rVert\le2\left(\sqrt{X(\alpha)}+\sqrt{Y(\alpha)}\right), \tag*{(20)} ∥ Γ ( α ) ∘ Δ i word ∥ ≤ 2 ( X ( α ) + Y ( α ) ) , (20) where
X ( α ) = max a ≥ 0 α a 2 ( a + k − 1 k − 1 ) , (21) X(\alpha)=\max_{a\ge0}\alpha_a^2\binom{a+k-1}{k-1}, \tag*{(21)} X ( α ) = a ≥ 0 max α a 2 ( k − 1 a + k − 1 ) , (21) Y ( α ) = 2 k ( m − 1 k ) max a ≥ 0 ∣ α a − α a + 1 ∣ 2 . (22) Y(\alpha)=2k\binom{m-1}{k}\max_{a\ge0}|\alpha_a-\alpha_{a+1}|^2. \tag*{(22)} Y ( α ) = 2 k ( k m − 1 ) a ≥ 0 max ∣ α a − α a + 1 ∣ 2 . (22)
Proof. Recall E 0 = ∣ e 0 ⟩ ⟨ e 0 ∣ E_0=|e_0\rangle\langle e_0| E 0 = ∣ e 0 ⟩ ⟨ e 0 ∣ and E 1 = I − E 0 E_1=I-E_0 E 1 = I − E 0 , and the block definition (6) . We first replace the operator by one with the same entries wherever the query mask is nonzero. We then separate the terms with coefficient α t \alpha_t α t from those with coefficient α t − α t + 1 \alpha_t-\alpha_{t+1} α t − α t + 1 .
Fix i i i . In every tensor in (6) , replace the factor at coordinate i i i according to
E 0 ⟼ E 0 , E 1 ⟼ − E 0 , (23) E_0 \longmapsto E_0,\qquad E_1 \longmapsto-E_0, \tag*{(23)} E 0 ⟼ E 0 , E 1 ⟼ − E 0 , (23)
and call the resulting operator Γ i ′ \Gamma'_i Γ i ′ . More explicitly,
G S , i ′ ( α ) = g R S w ∑ U : S ⊆ U ( − 1 ) 1 [ i ∈ U ] α ∣ U ∣ E U ∖ { i } , G'_{S,i}(\alpha)=\sqrt{g}R_S^w\sum_{U:S\subseteq U}(-1)^{1[i\in U]}\alpha_{|U|}E_{U\setminus\{i\}}, G S , i ′ ( α ) = g R S w U : S ⊆ U ∑ ( − 1 ) 1 [ i ∈ U ] α ∣ U ∣ E U ∖ { i } ,
Γ i ′ = ∑ S ∈ ( [ m ] k ) ∣ S ⟩ ⊗ G S , i ′ ( α ) . \Gamma'_i=\sum_{S\in\binom{[m]}{k}}|S\rangle\otimes G'_{S,i}(\alpha). Γ i ′ = S ∈ ( k [ m ] ) ∑ ∣ S ⟩ ⊗ G S , i ′ ( α ) .
For distinct oracle symbols a , b ∈ G a,b\in G a , b ∈ G ,
⟨ a ∣ E 1 ∣ b ⟩ = ⟨ a ∣ I − E 0 ∣ b ⟩ = − 1 g = − ⟨ a ∣ E 0 ∣ b ⟩ . \langle a|E_1|b\rangle=\langle a|I-E_0|b\rangle=-\frac{1}{g}=-\langle a|E_0|b\rangle. ⟨ a ∣ E 1 ∣ b ⟩ = ⟨ a ∣ I − E 0 ∣ b ⟩ = − g 1 = − ⟨ a ∣ E 0 ∣ b ⟩ .
Thus the original and replaced factors agree exactly on the entries retained by the query filter. That is,
Γ ( α ) ∘ Δ i w o r d = Γ i ′ ∘ Δ i w o r d . \Gamma(\alpha)\circ\Delta_i^{\mathrm{word}}=\Gamma'_i\circ\Delta_i^{\mathrm{word}}. Γ ( α ) ∘ Δ i word = Γ i ′ ∘ Δ i word .
For any operator W W W on these row and column label spaces, let P a P_a P a and Q a Q_a Q a project onto the labels whose answer at i i i is a a a :
P a = ∑ u : x i ( u ) = a ∣ u ⟩ ⟨ u ∣ , Q a = ∑ v : x i ( v ) = a ∣ v ⟩ ⟨ v ∣ . P_a=\sum_{u:x_i(u)=a}|u\rangle\langle u|,\qquad Q_a=\sum_{v:x_i(v)=a}|v\rangle\langle v|. P a = u : x i ( u ) = a ∑ ∣ u ⟩ ⟨ u ∣ , Q a = v : x i ( v ) = a ∑ ∣ v ⟩ ⟨ v ∣.
Write M = max a ∥ P a W Q a ∥ M = \max_a \lVert P_a W Q_a \rVert M = max a ∥ P a W Q a ∥ . Since the projectors P a P_a P a have orthogonal ranges, every input vector ∣ ψ ⟩ |\psi\rangle ∣ ψ ⟩ satisfies
∥ ∑ a P a W Q a ∣ ψ ⟩ ∥ 2 = ∑ a ∥ P a W Q a ∣ ψ ⟩ ∥ 2 ≤ M 2 ∑ a ∥ Q a ∣ ψ ⟩ ∥ 2 = M 2 ∥ ∣ ψ ⟩ ∥ 2 . \left\lVert\sum_a P_a W Q_a|\psi\rangle\right\rVert^2 = \sum_a \lVert P_a W Q_a|\psi\rangle\rVert^2 \le M^2 \sum_a \lVert Q_a|\psi\rangle\rVert^2 = M^2\lVert|\psi\rangle\rVert^2. a ∑ P a W Q a ∣ ψ ⟩ 2 = a ∑ ∥ P a W Q a ∣ ψ ⟩ ∥ 2 ≤ M 2 a ∑ ∥ Q a ∣ ψ ⟩ ∥ 2 = M 2 ∥ ∣ ψ ⟩ ∥ 2 .
Thus,
∥ ∑ a P a W Q a ∥ ≤ M ≤ ∥ W ∥ . \left\lVert\sum_a P_a W Q_a \right\rVert\le M \le\lVert W\rVert. a ∑ P a W Q a ≤ M ≤ ∥ W ∥ .
Subtracting this part gives
∥ W ∘ Δ i w o r d ∥ = ∥ W − ∑ a P a W Q a ∥ ≤ ∥ W ∥ + ∥ ∑ a P a W Q a ∥ ≤ 2 ∥ W ∥ . (24) \lVert W \circ\Delta_i^{\mathrm{word}}\rVert= \left\lVert W-\sum_a P_a W Q_a\right\rVert\le\lVert W\rVert+\left\lVert\sum_a P_a W Q_a\right\rVert\le2\lVert W\rVert. \tag*{(24)} ∥ W ∘ Δ i word ∥ = W − a ∑ P a W Q a ≤ ∥ W ∥ + a ∑ P a W Q a ≤ 2 ∥ W ∥ . (24)
We will now bound ∥ Γ i ′ ∥ \lVert\Gamma'_i\rVert ∥ Γ i ′ ∥ , by using Equation (2) in the Fourier basis. We must allow for different Fourier states becoming proportional after restriction to the planted equation. Write
β t = α t − α t + 1 , b = max t ≥ 0 ∣ β t ∣ . \beta_t=\alpha_t-\alpha_{t+1},\qquad b=\max_{t\ge0}|\beta_t|. β t = α t − α t + 1 , b = t ≥ 0 max ∣ β t ∣.
For v ∈ G ^ m v\in\widehat{G}^{m} v ∈ G m , let ∣ e v ⟩ |e_v\rangle ∣ e v ⟩ be the corresponding Fourier basis state, write T = supp ( v ) T=\operatorname{supp}(v) T = supp ( v ) and t = ∣ T ∣ t=|T| t = ∣ T ∣ , and for a certificate S S S write
∣ ϕ S , v ⟩ = g R S w ∣ e v ⟩ . |\phi_{S,v}\rangle=\sqrt{g}\,R_S^w|e_v\rangle. ∣ ϕ S , v ⟩ = g R S w ∣ e v ⟩ .
This is the unit vector from Lemma 3.2 . We will use the common-shift rule to decide when two such states are orthogonal. The replacement keeps only the constant Fourier state at coordinate i i i :
E 0 ∣ e v i ⟩ = 1 [ v i = 0 ] ∣ e 0 ⟩ . E_0|e_{v_i}\rangle=\mathbf{1}[v_i=0]|e_0\rangle. E 0 ∣ e v i ⟩ = 1 [ v i = 0 ] ∣ e 0 ⟩ .
Every term defining Γ i ′ \Gamma'_i Γ i ′ therefore vanishes on ∣ e v ⟩ |e_v\rangle ∣ e v ⟩ when v i ≠ 0 v_i\ne0 v i = 0 . Assume v i = 0 v_i=0 v i = 0 , so i ∉ T i\notin T i ∈ / T . Only the supports T T T and T ∪ { i } T\cup\{i\} T ∪ { i } can contribute after the replacement. Their coefficients are α t \alpha_t α t and − α t + 1 -\alpha_{t+1} − α t + 1 , respectively. Thus
Γ S , i ′ ∣ e v ⟩ = ( α t 1 [ S ⊈ T ] − α t + 1 1 [ S ⊈ T ∪ { i } ] ) ∣ ϕ S , v ⟩ . \Gamma'_{S,i}|e_v\rangle=\left(\alpha_t\mathbf{1}[S\not\subseteq T]-\alpha_{t+1}\mathbf{1}[S\not\subseteq T\cup\{i\}]\right)|\phi_{S,v}\rangle. Γ S , i ′ ∣ e v ⟩ = ( α t 1 [ S ⊆ T ] − α t + 1 1 [ S ⊆ T ∪ { i }] ) ∣ ϕ S , v ⟩ .
Using β t = α t − α t + 1 \beta_t=\alpha_t-\alpha_{t+1} β t = α t − α t + 1 gives the four cases
Γ S , i ′ ∣ e v ⟩ = { α t ∣ ϕ S , v ⟩ , i ∈ S , S ∖ { i } ⊆ T , β t ∣ ϕ S , v ⟩ , i ∈ S , S ∖ { i } ⊈ T , β t ∣ ϕ S , v ⟩ , i ∉ S , S ⊈ T , 0 , i ∉ S , S ⊆ T . (25) \Gamma'_{S,i}|e_v\rangle=
\begin{cases}
\alpha_t|\phi_{S,v}\rangle, & i\in S,\ S\setminus\{i\}\subseteq T,\\
\beta_t|\phi_{S,v}\rangle, & i\in S,\ S\setminus\{i\}\not\subseteq T,\\
\beta_t|\phi_{S,v}\rangle, & i\notin S,\ S\not\subseteq T,\\
0, & i\notin S,\ S\subseteq T.
\end{cases} \tag*{(25)} Γ S , i ′ ∣ e v ⟩ = ⎩ ⎨ ⎧ α t ∣ ϕ S , v ⟩ , β t ∣ ϕ S , v ⟩ , β t ∣ ϕ S , v ⟩ , 0 , i ∈ S , S ∖ { i } ⊆ T , i ∈ S , S ∖ { i } ⊆ T , i ∈ / S , S ⊆ T , i ∈ / S , S ⊆ T . (25)
Let U i U_i U i contain the first case and V i V_i V i the two cases with coefficient β t \beta_t β t . Then Γ i ′ = U i + V i \Gamma'_i=U_i+V_i Γ i ′ = U i + V i . We will prove ∥ U i ∥ 2 ≤ X ( α ) \lVert U_i\rVert^2\le X(\alpha) ∥ U i ∥ 2 ≤ X ( α ) and ∥ V i ∥ 2 ≤ Y ( α ) \lVert V_i\rVert^2\le Y(\alpha) ∥ V i ∥ 2 ≤ Y ( α ) .
We first bound U i U_i U i . Fix S ∋ i S\ni i S ∋ i . If ∣ ϕ S , u ⟩ |\phi_{S,u}\rangle ∣ ϕ S , u ⟩ and ∣ ϕ S , v ⟩ |\phi_{S,v}\rangle ∣ ϕ S , v ⟩ have a nonzero inner product, their labels differ by a common shift a a a as in (19) . We only need to consider u i = v i = 0 u_i=v_i=0 u i = v i = 0 , since U i U_i U i annihilates every other Fourier state. Thus that shift must be zero, and u = v u=v u = v . Thus U i † U i U_i^\dagger U_i U i † U i is diagonal in the character basis. A certificate contributes to U i ∣ e v ⟩ U_i|e_v\rangle U i ∣ e v ⟩ exactly when
i ∈ S , S ∖ { i } ⊆ T , ∣ S ∣ = k . i\in S,\qquad S\setminus\{i\}\subseteq T,\qquad|S|=k. i ∈ S , S ∖ { i } ⊆ T , ∣ S ∣ = k .
Since v i = 0 v_i=0 v i = 0 , we have i ∉ T i\notin T i ∈ / T . Thus these certificates are precisely S = { i } ∪ R S=\{i\}\cup R S = { i } ∪ R with R ⊆ T R\subseteq T R ⊆ T and ∣ R ∣ = k − 1 |R|=k-1 ∣ R ∣ = k − 1 . There are ( t k − 1 ) \binom{t}{k-1} ( k − 1 t ) choices, and each contributes α t 2 \alpha_t^2 α t 2 . For v i = 0 v_i=0 v i = 0 , this gives
⟨ e v ∣ U i † U i ∣ e v ⟩ = α t 2 ( t k − 1 ) , \langle e_v|U_i^\dagger U_i|e_v\rangle=\alpha_t^2\binom{t}{k-1}, ⟨ e v ∣ U i † U i ∣ e v ⟩ = α t 2 ( k − 1 t ) ,
where the binomial coefficient is zero when t < k − 1 t < k - 1 t < k − 1 . For v i ≠ 0 v_i \ne0 v i = 0 , the diagonal entry is zero. Therefore
∥ U i ∥ 2 ≤ max t ≥ 0 α t 2 ( t k − 1 ) ≤ max a ≥ 0 α a 2 ( a + k − 1 k − 1 ) = X ( α ) . (26) \lVert U_i\rVert^2 \le\max_{t \ge0} \alpha_t^2 \binom{t}{k-1} \le\max_{a \ge0} \alpha_a^2 \binom{a+k-1}{k-1} = X(\alpha). \tag*{(26)} ∥ U i ∥ 2 ≤ t ≥ 0 max α t 2 ( k − 1 t ) ≤ a ≥ 0 max α a 2 ( k − 1 a + k − 1 ) = X ( α ) . (26)
Split the row blocks of V i V_i V i into V i i n V_i^{\mathrm{in}} V i in for i ∈ S i \in S i ∈ S and V i o u t V_i^{\mathrm{out}} V i out for i ∉ S i \notin S i ∈ / S . When i ∈ S i \in S i ∈ S , both input Fourier vectors still have coordinate zero at i i i . A common shift must therefore be zero, exactly as for U i U_i U i . Thus ( V i i n ) † V i i n (V_i^{\mathrm{in}})^\dagger V_i^{\mathrm{in}} ( V i in ) † V i in is diagonal. There are at most ( m − 1 k − 1 ) \binom{m-1}{k-1} ( k − 1 m − 1 ) certificates containing i i i , each contributing at most b 2 b^2 b 2 , so
∥ V i i n ∥ 2 ≤ ( m − 1 k − 1 ) b 2 . (27) \lVert V_i^{\mathrm{in}}\rVert^2 \le\binom{m-1}{k-1} b^2. \tag*{(27)} ∥ V i in ∥ 2 ≤ ( k − 1 m − 1 ) b 2 . (27)
When i ∉ S i \notin S i ∈ / S , the equation u i = v i = 0 u_i=v_i=0 u i = v i = 0 does not restrict the shift on S S S . Different output states may then have nonzero inner product. We count how many such states are possible. Write H = ( V i o u t ) † V i o u t H=(V_i^{\mathrm{out}})^\dagger V_i^{\mathrm{out}} H = ( V i out ) † V i out . Fix a character column ∣ e v ⟩ \lvert e_v\rangle ∣ e v ⟩ . For one certificate S ∌ i S \not\ni i S ∋ i , a character ∣ e u ⟩ \lvert e_u\rangle ∣ e u ⟩ can contribute to the same column of H H H only if u u u agrees with v v v outside S S S and is obtained from v v v by a common shift on S S S . Also S ⊈ supp ( u ) S \not\subseteq\operatorname{supp}(u) S ⊆ supp ( u ) , so some coordinate of u u u on S S S is zero. This determines the common shift from one of the at most k k k character values of v v v on S S S . Thus each S S S contributes to at most k k k entries of the column, each of absolute value at most b 2 b^2 b 2 . Summing over the ( m − 1 k ) \binom{m-1}{k} ( k m − 1 ) possible certificates gives
max v ∑ u ∣ ⟨ e u ∣ H ∣ e v ⟩ ∣ ≤ ∑ S ∈ ( [ m ] k ) i ∉ S k b 2 = k ( m − 1 k ) b 2 . \max_v \sum_u \lvert\langle e_u \lvert H \rvert e_v\rangle\rvert\le\sum_{\substack{S \in\binom{[m]}{k}\\i\notin S}} kb^2 = k\binom{m-1}{k}b^2. v max u ∑ ∣⟨ e u ∣ H ∣ e v ⟩∣ ≤ S ∈ ( k [ m ] ) i ∈ / S ∑ k b 2 = k ( k m − 1 ) b 2 .
By (2) ,
∥ V i o u t ∥ 2 = ∥ H ∥ ≤ k ( m − 1 k ) b 2 . (28) \lVert V_i^{\mathrm{out}}\rVert^2 = \lVert H\rVert\le k\binom{m-1}{k}b^2. \tag*{(28)} ∥ V i out ∥ 2 = ∥ H ∥ ≤ k ( k m − 1 ) b 2 . (28)
The two certificate classes occupy disjoint row blocks, so
V i † V i = ( V i i n ) † V i i n + ( V i o u t ) † V i o u t . V_i^\dagger V_i=(V_i^{\mathrm{in}})^\dagger V_i^{\mathrm{in}}+(V_i^{\mathrm{out}})^\dagger V_i^{\mathrm{out}}. V i † V i = ( V i in ) † V i in + ( V i out ) † V i out .
Also, ( m − 1 k − 1 ) / ( m − 1 k ) = k / ( m − k ) ≤ 1 \binom{m-1}{k-1}/\binom{m-1}{k}=k/(m-k)\le1 ( k − 1 m − 1 ) / ( k m − 1 ) = k / ( m − k ) ≤ 1 because m ≥ 2 k m\ge2k m ≥ 2 k . Taking norms, and then using k + 1 ≤ 2 k k+1\le2k k + 1 ≤ 2 k , gives
∥ V i ∥ 2 ≤ ∥ V i i n ∥ 2 + ∥ V i o u t ∥ 2 \lVert V_i\rVert^2 \le\lVert V_i^{\mathrm{in}}\rVert^2+\lVert V_i^{\mathrm{out}}\rVert^2 ∥ V i ∥ 2 ≤ ∥ V i in ∥ 2 + ∥ V i out ∥ 2
≤ 2 k ( m − 1 k ) b 2 = Y ( α ) . (29) \le2k\binom{m-1}{k}b^2=Y(\alpha). \tag*{(29)} ≤ 2 k ( k m − 1 ) b 2 = Y ( α ) . (29)
This gives an explicit count for the two certificate classes in [10 Lemma 10] . The count is needed because the restricted Fourier states are not necessarily orthogonal. Therefore
∥ Γ i ∥ ≤ ∥ U i ∥ + ∥ V i ∥ ≤ X ( α ) + Y ( α ) . \lVert\Gamma_i\Vert\le\lVert U_i\rVert+\lVert V_i\rVert\le\sqrt{X(\alpha)}+\sqrt{Y(\alpha)}. ∥ Γ i ∥ ≤ ∥ U i ∥ + ∥ V i ∥ ≤ X ( α ) + Y ( α ) .
Combining this with (24) proves (20) .
We now evaluate these bounds for the linear coefficients.
Lemma 4.4. Let m ≥ k ≥ 2 m\ge k\ge2 m ≥ k ≥ 2 , write L = m k / ( k + 1 ) L=m^{k/(k+1)} L = m k / ( k + 1 ) , and suppose
k 2 L ≤ 1 2 , k 2 m ≤ 1 2 . \frac{k^2}{L}\le\frac{1}{2}, \qquad\frac{k^2}{m}\le\frac{1}{2}. L k 2 ≤ 2 1 , m k 2 ≤ 2 1 . Then the planted k k k -SUM matrix satisfies, for every input position i i i ,
∥ Γ k , m ∘ Δ i w o r d ∥ ≤ 9 k . \lVert\Gamma_{k,m}\circ\Delta_i^{\mathrm{word}}\rVert\le9\sqrt{k}. ∥ Γ k , m ∘ Δ i word ∥ ≤ 9 k . In particular, the conclusion holds whenever the assumption k 2 m − 1 / ( k + 1 ) ≤ 1 k^2m^{-1/(k+1)}\le1 k 2 m − 1/ ( k + 1 ) ≤ 1 of Theorem 4.1 holds.
Proof. The assumption k 2 / m ≤ 1 / 2 k^2/m \le1/2 k 2 / m ≤ 1/2 gives m ≥ 2 k 2 ≥ 2 k m \ge2k^2 \ge2k m ≥ 2 k 2 ≥ 2 k . Applying Lemma 4.3 to the coefficients in (7) gives
∥ Γ k , m ∘ Δ i w o r d ∥ ≤ 2 ( X + Y ) , (30) \lVert\Gamma_{k,m} \circ\Delta_i^{\mathrm{word}} \rVert\le2(\sqrt{X}+\sqrt{Y}), \tag*{(30)} ∥ Γ k , m ∘ Δ i word ∥ ≤ 2 ( X + Y ) , (30)
where
X = max a ≥ 0 α a 2 ( a + k − 1 k − 1 ) , X=\max_{a\ge0}\alpha_a^2\binom{a+k-1}{k-1}, X = a ≥ 0 max α a 2 ( k − 1 a + k − 1 ) ,
Y = 2 k ( m − 1 k ) max a ≥ 0 ∣ α a − α a + 1 ∣ 2 , Y=2k\binom{m-1}{k}\max_{a\ge0}|\alpha_a-\alpha_{a+1}|^2, Y = 2 k ( k m − 1 ) a ≥ 0 max ∣ α a − α a + 1 ∣ 2 ,
and
α a = ( m k ) − 1 / 2 ( L − a ) + . \alpha_a=\binom{m}{k}^{-1/2}(L-a)_+. α a = ( k m ) − 1/2 ( L − a ) + .
Since ∣ α a − α a + 1 ∣ ≤ ( m k ) − 1 / 2 |\alpha_a-\alpha_{a+1}|\le\binom{m}{k}^{-1/2} ∣ α a − α a + 1 ∣ ≤ ( k m ) − 1/2 ,
Y ≤ 2 k ( m − 1 k ) ( m k ) = 2 k m − k m ≤ 2 k . (31) Y\le2k\frac{\binom{m-1}{k}}{\binom{m}{k}}=2k\frac{m-k}{m}\le2k. \tag*{(31)} Y ≤ 2 k ( k m ) ( k m − 1 ) = 2 k m m − k ≤ 2 k . (31)
It remains to bound X X X . Only integers 0 ≤ a < L 0\le a<L 0 ≤ a < L contribute. Using
( a + k − 1 k − 1 ) ≤ ( a + k − 1 ) k − 1 ( k − 1 ) ! , ( m k ) ≥ ( m − k + 1 ) k k ! , \binom{a+k-1}{k-1}\le\frac{(a+k-1)^{k-1}}{(k-1)!},\qquad
\binom{m}{k}\ge\frac{(m-k+1)^k}{k!}, ( k − 1 a + k − 1 ) ≤ ( k − 1 )! ( a + k − 1 ) k − 1 , ( k m ) ≥ k ! ( m − k + 1 ) k ,
we get
X ≤ k max 0 ≤ a < L ( L − a ) 2 ( a + k − 1 ) k − 1 ( m − k + 1 ) k . (32) X\le k\max_{0\le a<L}\frac{(L-a)^2(a+k-1)^{k-1}}{(m-k+1)^k}. \tag*{(32)} X ≤ k 0 ≤ a < L max ( m − k + 1 ) k ( L − a ) 2 ( a + k − 1 ) k − 1 . (32)
Set R = L + k − 1 R=L+k-1 R = L + k − 1 and u = a + k − 1 u=a+k-1 u = a + k − 1 . Enlarging the range of u u u to [ 0 , R ] [0,R] [ 0 , R ] can only increase the maximum. For 0 < u < R 0<u<R 0 < u < R , the derivative of f ( u ) = ( R − u ) 2 u k − 1 f(u)=(R-u)^2u^{k-1} f ( u ) = ( R − u ) 2 u k − 1 is
f ′ ( u ) = ( R − u ) u k − 2 ( ( k − 1 ) R − ( k + 1 ) u ) . f'(u)=(R-u)u^{k-2}((k-1)R-(k+1)u). f ′ ( u ) = ( R − u ) u k − 2 (( k − 1 ) R − ( k + 1 ) u ) .
It is positive before u = ( k − 1 ) R / ( k + 1 ) u=(k-1)R/(k+1) u = ( k − 1 ) R / ( k + 1 ) and negative afterward. The endpoint values are f ( 0 ) = f ( R ) = 0 f(0)=f(R)=0 f ( 0 ) = f ( R ) = 0 . Therefore
max 0 ≤ u ≤ R f ( u ) = f ( ( k − 1 ) R k + 1 ) = R k + 1 4 ( k − 1 ) k − 1 ( k + 1 ) k + 1 . \max_{0\le u\le R}f(u)=f\left(\frac{(k-1)R}{k+1}\right)=R^{k+1}\frac{4(k-1)^{k-1}}{(k+1)^{k+1}}. 0 ≤ u ≤ R max f ( u ) = f ( k + 1 ( k − 1 ) R ) = R k + 1 ( k + 1 ) k + 1 4 ( k − 1 ) k − 1 .
Since L k + 1 = m k L^{k+1}=m^k L k + 1 = m k , (32) therefore implies
X ≤ 4 k ( k − 1 ) k − 1 ( k + 1 ) k + 1 ( L + k − 1 ) k + 1 ( m − k + 1 ) k (33) X\le4k\frac{(k-1)^{k-1}}{(k+1)^{k+1}}\frac{(L+k-1)^{k+1}}{(m-k+1)^k} \tag*{(33)} X ≤ 4 k ( k + 1 ) k + 1 ( k − 1 ) k − 1 ( m − k + 1 ) k ( L + k − 1 ) k + 1 (33)
= 4 k ( k − 1 ) k − 1 ( k + 1 ) k + 1 ( 1 + k − 1 L ) k + 1 ( 1 − k − 1 m ) − k . (34) =4k\frac{(k-1)^{k-1}}{(k+1)^{k+1}}\left(1+\frac{k-1}{L}\right)^{k+1}\left(1-\frac{k-1}{m}\right)^{-k}. \tag*{(34)} = 4 k ( k + 1 ) k + 1 ( k − 1 ) k − 1 ( 1 + L k − 1 ) k + 1 ( 1 − m k − 1 ) − k . (34)
We bound the two correction factors separately. Since log ( 1 + x ) ≤ x \log(1+x)\le x log ( 1 + x ) ≤ x for x ≥ 0 x\ge0 x ≥ 0 ,
log ( 1 + k − 1 L ) k + 1 ≤ k 2 − 1 L ≤ 1 2 ≤ 1. \log\left(1+\frac{k-1}{L}\right)^{k+1}\le\frac{k^2-1}{L}\le\frac{1}{2}\le1. log ( 1 + L k − 1 ) k + 1 ≤ L k 2 − 1 ≤ 2 1 ≤ 1.
Thus the first correction factor is at most e e e . For the second, write x = ( k − 1 ) / m ≤ 1 / 2 x=(k-1)/m\le1/2 x = ( k − 1 ) / m ≤ 1/2 and use − log ( 1 − x ) ≤ 2 x -\log(1-x)\le2x − log ( 1 − x ) ≤ 2 x :
log ( 1 − k − 1 m ) − k ≤ 2 k ( k − 1 ) m ≤ 1. \log\left(1-\frac{k-1}{m}\right)^{-k}\le\frac{2k(k-1)}{m}\le1. log ( 1 − m k − 1 ) − k ≤ m 2 k ( k − 1 ) ≤ 1.
It is also at most e e e . Finally,
k ( k − 1 ) k − 1 ( k + 1 ) k + 1 = k ( k + 1 ) 2 ( k − 1 k + 1 ) k − 1 ≤ k ( k + 1 ) 2 ≤ 1 k . k\frac{(k-1)^{k-1}}{(k+1)^{k+1}}=\frac{k}{(k+1)^2}\left(\frac{k-1}{k+1}\right)^{k-1}\le\frac{k}{(k+1)^2}\le\frac{1}{k}. k ( k + 1 ) k + 1 ( k − 1 ) k − 1 = ( k + 1 ) 2 k ( k + 1 k − 1 ) k − 1 ≤ ( k + 1 ) 2 k ≤ k 1 .
Substitution into (34) gives
X ≤ 4 e 2 k . (35) X \le\frac{4e^2}{k}. \tag*{(35)} X ≤ k 4 e 2 . (35)
Combining (30), (31), and (35),
∥ Γ k , m ∘ Δ i w o r d ∥ ≤ 4 e k + 2 2 k ≤ 9 k . \lVert\Gamma_{k,m} \circ\Delta_i^{\mathrm{word}} \rVert\le\frac{4e}{\sqrt{k}} + 2\sqrt{2k} \le9\sqrt{k}. ∥ Γ k , m ∘ Δ i word ∥ ≤ k 4 e + 2 2 k ≤ 9 k .
For the last inequality, factor by k \sqrt{k} k and use 4 e / k + 2 2 ≤ 2 e + 2 2 < 9 4e/k + 2\sqrt{2} \le2e + 2\sqrt{2} < 9 4 e / k + 2 2 ≤ 2 e + 2 2 < 9 , since k ≥ 2 k \ge2 k ≥ 2 . For the final statement, k 2 m − 1 / ( k + 1 ) ≤ 1 k^2m^{-1/(k+1)} \le1 k 2 m − 1/ ( k + 1 ) ≤ 1 implies m ≥ k 2 ( k + 1 ) m \ge k^{2(k+1)} m ≥ k 2 ( k + 1 ) . Thus
k 2 L ≤ k 2 − 2 k ≤ 1 4 , k 2 m ≤ k − 2 k ≤ 1 16 , \frac{k^2}{L} \le k^{2-2k} \le\frac{1}{4}, \qquad\frac{k^2}{m} \le k^{-2k} \le\frac{1}{16}, L k 2 ≤ k 2 − 2 k ≤ 4 1 , m k 2 ≤ k − 2 k ≤ 16 1 ,
so the assumptions of the lemma hold.
From word filters to bit filters
The outer labels will be elements of F 2 q \mathbb{F}_2^q F 2 q , while each bit is encoded separately. We therefore need the same bound for a bit filter. Different bits imply different words. However, this observation alone does not prove the norm inequality: setting some entries of a signed matrix to zero can increase its norm. We use the following phase-operator identity.
Lemma 4.5. Let Γ \Gamma Γ be any rectangular matrix whose row and column labels contain words x i , y i ∈ F 2 q x_i,y_i \in\mathbb{F}_2^q x i , y i ∈ F 2 q . Then, for every bit position t t t ,
∥ Γ ∘ Δ i , t b i t ∥ ≤ ∥ Γ ∘ Δ i w o r d ∥ . \lVert\Gamma\circ\Delta_{i,t}^{\mathrm{bit}} \rVert\le\lVert\Gamma\circ\Delta_i^{\mathrm{word}} \rVert. ∥ Γ ∘ Δ i , t bit ∥ ≤ ∥ Γ ∘ Δ i word ∥ .
Proof. Let A = Γ ∘ Δ i w o r d A = \Gamma\circ\Delta_i^{\mathrm{word}} A = Γ ∘ Δ i word . Define the diagonal phase operators on the row and column registers by
R = ∑ x ( − 1 ) x i ( t ) ∣ x ⟩ ⟨ x ∣ , S = ∑ y ( − 1 ) y i ( t ) ∣ y ⟩ ⟨ y ∣ . R = \sum_x (-1)^{x_i(t)} \lvert x\rangle\langle x\rvert, \qquad S = \sum_y (-1)^{y_i(t)} \lvert y\rangle\langle y\rvert. R = x ∑ ( − 1 ) x i ( t ) ∣ x ⟩ ⟨ x ∣ , S = y ∑ ( − 1 ) y i ( t ) ∣ y ⟩ ⟨ y ∣ .
Their action gives
⟨ x ∣ R A S ∣ y ⟩ = ( − 1 ) x i ( t ) + y i ( t ) ⟨ x ∣ A ∣ y ⟩ . \langle x \rvert RAS \lvert y\rangle= (-1)^{x_i(t)+y_i(t)}\langle x \rvert A \lvert y\rangle. ⟨ x ∣ R A S ∣ y ⟩ = ( − 1 ) x i ( t ) + y i ( t ) ⟨ x ∣ A ∣ y ⟩ .
Therefore,
⟨ x ∣ 1 2 ( A − R A S ) ∣ y ⟩ = 1 − ( − 1 ) x i ( t ) + y i ( t ) 2 ⟨ x ∣ A ∣ y ⟩ = 1 [ x i ( t ) ≠ y i ( t ) ] ⟨ x ∣ A ∣ y ⟩ = ⟨ x ∣ Γ ∘ Δ i , t b i t ∣ y ⟩ . \begin{aligned}
\left\langle x\left\lvert\frac{1}{2}(A-RAS)\right\rvert y\right\rangle
&= \frac{1-(-1)^{x_i(t)+y_i(t)}}{2}\langle x \rvert A \lvert y\rangle\\
&= \mathbf{1}[x_i(t) \ne y_i(t)]\langle x \rvert A \lvert y\rangle\\
&= \langle x \rvert\Gamma\circ\Delta_{i,t}^{\mathrm{bit}} \lvert y\rangle.
\end{aligned} ⟨ x 2 1 ( A − R A S ) y ⟩ = 2 1 − ( − 1 ) x i ( t ) + y i ( t ) ⟨ x ∣ A ∣ y ⟩ = 1 [ x i ( t ) = y i ( t )] ⟨ x ∣ A ∣ y ⟩ = ⟨ x ∣ Γ ∘ Δ i , t bit ∣ y ⟩ .
The last equality uses the fact that different bits imply different words, so the word filter has already retained those entries. Thus
Γ ∘ Δ i , t b i t = 1 2 ( A − R A S ) . \Gamma\circ\Delta_{i,t}^{\mathrm{bit}} = \frac{1}{2}(A-RAS). Γ ∘ Δ i , t bit = 2 1 ( A − R A S ) .
The matrices R R R , S S S are unitary, so
∥ Γ ∘ Δ i , t b i t ∥ ≤ 1 2 ( ∥ A ∥ + ∥ R A S ∥ ) = ∥ A ∥ . \lVert\Gamma\circ\Delta_{i,t}^{\mathrm{bit}} \rVert\le\frac{1}{2}(\lVert A\rVert+ \lVert RAS\rVert) = \lVert A\rVert. ∥ Γ ∘ Δ i , t bit ∥ ≤ 2 1 (∥ A ∥ + ∥ R A S ∥) = ∥ A ∥ .
Composition for the planted distributions
We use the matrix composition from Lemma 3.3. The remaining step is to check that the construction preserves the overlap for our chosen distributions. The planted and null distributions can assign positive probability to the same oracle string. Thus the encoded bit does not need to be a function of the string seen by the algorithm, and the function-composition statement alone does not give the required distributional bound. The alignment equations from Theorem 4.1 give the overlap calculation below. We then apply it to the two planted-sum problems.
The encoded distributions and their operator
Let μ 0 , μ 1 \mu_0,\mu_1 μ 0 , μ 1 be distributions on labelled inner oracle inputs. Set
H b = H supp ( μ b ) , ∣ δ b ⟩ = ∣ δ μ b ⟩ ( b ∈ { 0 , 1 } ) . \mathcal{H}_b=\mathcal{H}_{\operatorname{supp}(\mu_b)},\qquad|\delta_b\rangle=|\delta_{\mu_b}\rangle\quad(b\in\{0,1\}). H b = H supp ( μ b ) , ∣ δ b ⟩ = ∣ δ μ b ⟩ ( b ∈ { 0 , 1 }) .
Let A : H 0 → H 1 A:\mathcal{H}_0\to\mathcal{H}_1 A : H 0 → H 1 satisfy
∥ A ∥ = σ , A ∣ δ 0 ⟩ = σ ∣ δ 1 ⟩ , A † ∣ δ 1 ⟩ = σ ∣ δ 0 ⟩ . (36) \lVert A\rVert=\sigma,\qquad A|\delta_0\rangle=\sigma|\delta_1\rangle,\qquad A^\dagger|\delta_1\rangle=\sigma|\delta_0\rangle. \tag*{(36)} ∥ A ∥ = σ , A ∣ δ 0 ⟩ = σ ∣ δ 1 ⟩ , A † ∣ δ 1 ⟩ = σ ∣ δ 0 ⟩ . (36)
For all pairs of outer bits, use the completed operators
A 1 , 0 = A , A 0 , 1 = A † , A b , b = σ I H b ( b ∈ { 0 , 1 } ) . A^{1,0}=A,\qquad A^{0,1}=A^\dagger,\qquad A^{b,b}=\sigma I_{\mathcal{H}_b}\quad(b\in\{0,1\}). A 1 , 0 = A , A 0 , 1 = A † , A b , b = σ I H b ( b ∈ { 0 , 1 }) .
Thus A b , c : H c → H b A^{b,c}:\mathcal{H}_c\to\mathcal{H}_b A b , c : H c → H b . The identity operators define adversary weights for equal outer bits. They do not mean that two independently sampled inner inputs are equal.
Let P F , Q F P_F,Q_F P F , Q F be distributions on outer input labels, and let B : H supp ( Q F ) → H supp ( P F ) B:\mathcal{H}_{\operatorname{supp}(Q_F)}\to\mathcal{H}_{\operatorname{supp}(P_F)} B : H supp ( Q F ) → H supp ( P F ) . Each label x x x carries a bit string ( x 1 , … , x d ) (x_1,\ldots,x_d) ( x 1 , … , x d ) ; the label may contain additional information. To sample P ~ \widetilde{P} P , first sample x ← P F x\leftarrow P_F x ← P F and then independently sample u p ← μ x p u_p\leftarrow\mu_{x_p} u p ← μ x p for p ∈ [ d ] p\in[d] p ∈ [ d ] . Thus
P ~ [ x , u 1 , … , u d ] = P F [ x ] ∏ p = 1 d μ x p [ u p ] . \widetilde{P}[x,u_1,\ldots,u_d]=P_F[x]\prod_{p=1}^{d}\mu_{x_p}[u_p]. P [ x , u 1 , … , u d ] = P F [ x ] p = 1 ∏ d μ x p [ u p ] .
Define Q ~ \widetilde{Q} Q similarly from Q F Q_F Q F . We keep all labels in the analysis. The algorithm sees only the inner oracle strings. A physical query ( p , j ) (p,j) ( p , j ) reads position j j j in inner block p p p , and may be in superposition over both indices.
Using the label registers of Lemma 3.3 , define
C = ∑ x , y ⟨ x ∣ B ∣ y ⟩ ∣ x ⟩ ⟨ y ∣ ⊗ ⨂ p = 1 d A x p , y p . (37) C=\sum_{x,y}\langle x|B|y\rangle|x\rangle\langle y|\otimes\bigotimes_{p=1}^{d}A^{x_p,y_p}. \tag*{(37)} C = x , y ∑ ⟨ x ∣ B ∣ y ⟩ ∣ x ⟩ ⟨ y ∣ ⊗ p = 1 ⨂ d A x p , y p . (37)
Here and below, x x x ranges over supp ( P F ) \operatorname{supp}(P_F) supp ( P F ) and y y y over supp ( Q F ) \operatorname{supp}(Q_F) supp ( Q F ) . The factor ∣ x ⟩ ⟨ y ∣ |x\rangle\langle y| ∣ x ⟩ ⟨ y ∣ acts on the outer-label register; the other factors act on the inner registers. To use fixed register spaces, embed H 0 \mathcal{H}_0 H 0 and H 1 \mathcal{H}_1 H 1 as orthogonal subspaces of H 0 ⊕ H 1 \mathcal{H}_0\oplus\mathcal{H}_1 H 0 ⊕ H 1 and extend all operators by zero. The operator C C C is zero outside the valid encoded-label spaces.
The outer bit filter and the physical query filter compare different data:
⟨ x ∣ Δ p b i t ∣ y ⟩ = 1 [ x p ≠ y p ] , ⟨ x , u ∣ Δ p , j ∣ y , v ⟩ = 1 [ u p ( j ) ≠ v p ( j ) ] , \langle x|\Delta^{\mathrm{bit}}_p|y\rangle=1[x_p\ne y_p],\qquad
\langle x,u|\Delta_{p,j}|y,v\rangle=1[u_p(j)\ne v_p(j)], ⟨ x ∣ Δ p bit ∣ y ⟩ = 1 [ x p = y p ] , ⟨ x , u ∣ Δ p , j ∣ y , v ⟩ = 1 [ u p ( j ) = v p ( j )] ,
where u = ( u 1 , … , u d ) u=(u_1,\ldots,u_d) u = ( u 1 , … , u d ) and u p ( j ) u_p(j) u p ( j ) denotes the oracle answer specified by the inner label u p u_p u p at position j j j .
Lemma 5.1. The operator in (37) satisfies
∥ C ∥ = ∥ B ∥ σ d , (38) \lVert C\rVert=\lVert B\rVert\sigma^d, \tag*{(38)} ∥ C ∥ = ∥ B ∥ σ d , (38) ⟨ δ P ~ ∣ C ∣ δ Q ~ ⟩ = ⟨ δ P F ∣ B ∣ δ Q F ⟩ σ d . (39) \langle\delta_{\widetilde{P}}|C|\delta_{\widetilde{Q}}\rangle
=\langle\delta_{P_F}|B|\delta_{Q_F}\rangle\sigma^d. \tag*{(39)} ⟨ δ P ∣ C ∣ δ Q ⟩ = ⟨ δ P F ∣ B ∣ δ Q F ⟩ σ d . (39) For every physical query ( p , j ) (p,j) ( p , j ) ,
∥ C ∘ Δ p , j ∥ ≤ ∥ B ∘ Δ p b i t ∥ σ d − 1 ∥ A ∘ Δ j ∥ . (40) \lVert C\circ\Delta_{p,j}\rVert\le\lVert B\circ\Delta^{\mathrm{bit}}_p\rVert\sigma^{d-1}\lVert A\circ\Delta_j\rVert. \tag*{(40)} ∥ C ∘ Δ p , j ∥ ≤ ∥ B ∘ Δ p bit ∥ σ d − 1 ∥ A ∘ Δ j ∥ . (40)
Proof. The norm identity (38) and the query-filter bound (40) follow from Lemma 3.3 with D p = A D_p=A D p = A and ρ p = σ \rho_p=\sigma ρ p = σ for every p p p . The inner filter Δ p , j i n \Delta^{\mathrm{in}}_{p,j} Δ p , j in in that lemma is Δ j \Delta_j Δ j here. We only need to calculate the distributional overlap.
The alignment assumptions, including the identity cases, give
A b , c ∣ δ c ⟩ = σ ∣ δ b ⟩ for every b , c ∈ { 0 , 1 } . (41) A^{b,c}|\delta_c\rangle=\sigma|\delta_b\rangle\quad\text{for every }b,c\in\{0,1\}. \tag*{(41)} A b , c ∣ δ c ⟩ = σ ∣ δ b ⟩ for every b , c ∈ { 0 , 1 } . (41)
For each outer input label x x x , write
∣ η x ⟩ = ⨂ p = 1 d ∣ δ x p ⟩ . |\eta_x\rangle= \bigotimes_{p=1}^{d} |\delta_{x_p}\rangle. ∣ η x ⟩ = p = 1 ⨂ d ∣ δ x p ⟩ .
The square-root states of the encoded distributions are
∣ δ P ℓ , n ⟩ = ∑ x P F [ x ] ∣ x ⟩ ⊗ ∣ η x ⟩ , ∣ δ Q ℓ , n ⟩ = ∑ y Q F [ y ] ∣ y ⟩ ⊗ ∣ η y ⟩ . |\delta_{P}^{\ell,n}\rangle= \sum_x \sqrt{P_F[x]}|x\rangle\otimes|\eta_x\rangle,\qquad|\delta_{Q}^{\ell,n}\rangle= \sum_y \sqrt{Q_F[y]}|y\rangle\otimes|\eta_y\rangle. ∣ δ P ℓ , n ⟩ = x ∑ P F [ x ] ∣ x ⟩ ⊗ ∣ η x ⟩ , ∣ δ Q ℓ , n ⟩ = y ∑ Q F [ y ] ∣ y ⟩ ⊗ ∣ η y ⟩ .
Since each ∣ δ b ⟩ |\delta_b\rangle ∣ δ b ⟩ is normalized, (41) implies ⟨ δ b ∣ A b , c ∣ δ c ⟩ = σ \langle\delta_b|A^{b,c}|\delta_c\rangle=\sigma ⟨ δ b ∣ A b , c ∣ δ c ⟩ = σ . Expanding the overlap therefore gives
⟨ δ P ℓ , n ∣ C ∣ δ Q ℓ , n ⟩ = ∑ x , y P F [ x ] Q F [ y ] ⟨ x ∣ B ∣ y ⟩ ∏ p = 1 d ⟨ δ x p ∣ A x p , y p ∣ δ y p ⟩ = σ d ∑ x , y P F [ x ] Q F [ y ] ⟨ x ∣ B ∣ y ⟩ = σ d ⟨ δ P F ∣ B ∣ δ Q F ⟩ . \begin{aligned}
\langle\delta_{P}^{\ell,n}|C|\delta_{Q}^{\ell,n}\rangle\\
&= \sum_{x,y}\sqrt{P_F[x]Q_F[y]}\langle x|B|y\rangle\prod_{p=1}^{d}\langle\delta_{x_p}|A^{x_p,y_p}|\delta_{y_p}\rangle\\
&= \sigma^d\sum_{x,y}\sqrt{P_F[x]Q_F[y]}\langle x|B|y\rangle\\
&= \sigma^d\langle\delta_{P_F}|B|\delta_{Q_F}\rangle.
\end{aligned} ⟨ δ P ℓ , n ∣ C ∣ δ Q ℓ , n ⟩ = x , y ∑ P F [ x ] Q F [ y ] ⟨ x ∣ B ∣ y ⟩ p = 1 ∏ d ⟨ δ x p ∣ A x p , y p ∣ δ y p ⟩ = σ d x , y ∑ P F [ x ] Q F [ y ] ⟨ x ∣ B ∣ y ⟩ = σ d ⟨ δ P F ∣ B ∣ δ Q F ⟩ .
This proves (39) .
Applying composition to two planted sum problems
We first use the direct encoding: a uniform block represents zero and a planted block represents one. The next theorem gives a query lower bound for distinguishing the two encoded distributions.
Theorem 5.2. Let M ≥ r ≥ 2 M \ge r \ge2 M ≥ r ≥ 2 and n ≥ ℓ ≥ 2 n \ge\ell\ge2 n ≥ ℓ ≥ 2 satisfy
r 2 M − 1 / ( r + 1 ) ≤ 1 , ℓ 2 n − 1 / ( ℓ + 1 ) ≤ 1. (42) r^2M^{-1/(r+1)} \le1,\qquad\ell^2n^{-1/(\ell+1)} \le1. \tag*{(42)} r 2 M − 1/ ( r + 1 ) ≤ 1 , ℓ 2 n − 1/ ( ℓ + 1 ) ≤ 1. (42) Fix s , q ≥ 1 s,q\ge1 s , q ≥ 1 and z ∈ F 2 q z\in\mathbb{F}_2^q z ∈ F 2 q . The inner distributions are
μ 0 = Q r , M , μ 1 = P r , M 0 \mu_0=Q_{r,M},\qquad\mu_1=P^0_{r,M} μ 0 = Q r , M , μ 1 = P r , M 0 on length-M M M strings over F 2 \mathbb{F}_2 F 2 , with hidden labels in the planted case. The outer distributions are P ℓ , n z P^\mathit{z}_{\ell,n} P ℓ , n z and Q ℓ , n Q_{\ell,n} Q ℓ , n on length-n n n strings over F 2 q \mathbb{F}_2^q F 2 q . Write each outer word as q q q bits, and independently replace each bit b b b by an inner sample from μ b \mu_b μ b . If a quantum algorithm accepts the encoded planted and null distributions with average probabilities s P , s Q s_P,s_Q s P , s Q , its worst-case query count is at least
Ω ( ( 1 − τ ( s P , s Q ) ) n ℓ / ( ℓ + 1 ) M r / ( r + 1 ) r ℓ ) . \Omega\left(\left(1-\tau(s_P,s_Q)\right)\frac{n^{\ell/(\ell+1)}M^{r/(r+1)}}{\sqrt{r\ell}}\right). Ω ( ( 1 − τ ( s P , s Q ) ) r ℓ n ℓ / ( ℓ + 1 ) M r / ( r + 1 ) ) .
Proof. There are d = n q d=nq d = n q inner blocks, indexed by outer bit positions p = ( i , t ) p=(i,t) p = ( i , t ) . Take A = Γ r , M A=\Gamma_{r,M} A = Γ r , M with rows distributed as μ 1 \mu_1 μ 1 and columns as μ 0 \mu_0 μ 0 , and take B = Γ ℓ , n B=\Gamma_{\ell,n} B = Γ ℓ , n for the outer target z z z . Write
σ = M r / ( r + 1 ) , λ = n ℓ / ( ℓ + 1 ) . \sigma=M^{r/(r+1)},\qquad\lambda=n^{\ell/(\ell+1)}. σ = M r / ( r + 1 ) , λ = n ℓ / ( ℓ + 1 ) .
By Theorem 4.1 ,
∥ A ∥ = σ , A ∣ δ 0 ⟩ = σ ∣ δ 1 ⟩ , A † ∣ δ 1 ⟩ = σ ∣ δ 0 ⟩ , \|A\|=\sigma,\qquad A|\delta_0\rangle=\sigma|\delta_1\rangle,\qquad A^\dagger|\delta_1\rangle=\sigma|\delta_0\rangle, ∥ A ∥ = σ , A ∣ δ 0 ⟩ = σ ∣ δ 1 ⟩ , A † ∣ δ 1 ⟩ = σ ∣ δ 0 ⟩ ,
and
∥ B ∥ = λ , ⟨ δ P ℓ , n z ∣ B ∣ δ Q ℓ , n ⟩ = λ . \|B\|=\lambda,\qquad\langle\delta_{P^\mathit{z}_{\ell,n}}|B|\delta_{Q_{\ell,n}}\rangle=\lambda. ∥ B ∥ = λ , ⟨ δ P ℓ , n z ∣ B ∣ δ Q ℓ , n ⟩ = λ .
By Lemmas 4.4 and 4.5 , for every relevant coordinate,
∥ A ∘ Δ j ∥ ≤ 9 r , ∥ B ∘ Δ p b i t ∥ ≤ 9 ℓ . \|A\circ\Delta_j\|\le9\sqrt{r},\qquad\|B\circ\Delta_p^{\mathrm{bit}}\|\le9\sqrt{\ell}. ∥ A ∘ Δ j ∥ ≤ 9 r , ∥ B ∘ Δ p bit ∥ ≤ 9 ℓ .
Lemma 5.1 therefore gives
∥ C ∥ = λ σ d , ⟨ δ P ~ σ ∣ C ∣ δ Q ~ σ ⟩ = λ σ d , max p , j ∥ C ∘ Δ p , j ∥ ≤ ( 9 ℓ ) ( 9 r ) σ d − 1 = 81 r ℓ σ d − 1 . \lVert C\rVert= \lambda\sigma^d,
\qquad
\langle\delta_{\widetilde{P}}^\sigma\lvert C\lvert\delta_{\widetilde{Q}}^\sigma\rangle= \lambda\sigma^d,
\qquad
\max_{p,j}\lVert C\circ\Delta_{p,j}\rVert\le(9\sqrt{\ell})(9\sqrt{r})\sigma^{d-1}=81\sqrt{r\ell}\,\sigma^{d-1}. ∥ C ∥ = λ σ d , ⟨ δ P σ ∣ C ∣ δ Q σ ⟩ = λ σ d , p , j max ∥ C ∘ Δ p , j ∥ ≤ ( 9 ℓ ) ( 9 r ) σ d − 1 = 81 r ℓ σ d − 1 .
If s P = s Q s_P=s_Q s P = s Q , the stated lower bound is zero and the result follows directly. Otherwise Theorem 3.1 yields
T ≥ λ σ d − τ ( s P , s Q ) λ σ d 162 r ℓ σ d − 1 = 1 − τ ( s P , s Q ) 162 λ σ r ℓ . T\ge\frac{\lambda\sigma^d-\tau(s_P,s_Q)\lambda\sigma^d}{162\sqrt{r\ell}\,\sigma^{d-1}}
=\frac{1-\tau(s_P,s_Q)}{162}\frac{\lambda\sigma}{\sqrt{r\ell}}. T ≥ 162 r ℓ σ d − 1 λ σ d − τ ( s P , s Q ) λ σ d = 162 1 − τ ( s P , s Q ) r ℓ λσ .
Substituting λ \lambda λ and σ \sigma σ proves the theorem.
The product of the two query scales comes from the cancellation
λ σ d r ℓ σ d − 1 = λ σ r ℓ . \frac{\lambda\sigma^d}{\sqrt{r\ell}\,\sigma^{d-1}}=\frac{\lambda\sigma}{\sqrt{r\ell}}. r ℓ σ d − 1 λ σ d = r ℓ λσ .
One physical query acts on one inner block. The other d − 1 d-1 d − 1 blocks each contribute a factor σ \sigma σ to the filtered-norm bound. These factors cancel, leaving one inner factor and one outer factor. The number d = n q d=nq d = n q therefore disappears from the final ratio. The proof allows arbitrary superpositions of queries across all blocks.
The paired encoding for perfect agreement
For the perfect-agreement protocol we will use two blocks for each bit. The following calculation shows that this change preserves the inner adversary ratio.
Lemma 5.3. Assume (36), and define
μ ^ 0 = μ 1 ⊗ μ 0 , μ ^ 1 = μ 0 ⊗ μ 1 , A ^ = A † ⊗ A . \widehat{\mu}_0=\mu_1\otimes\mu_0,\qquad
\widehat{\mu}_1=\mu_0\otimes\mu_1,\qquad
\widehat{A}=A^\dagger\otimes A. μ 0 = μ 1 ⊗ μ 0 , μ 1 = μ 0 ⊗ μ 1 , A = A † ⊗ A . Then A ^ \widehat{A} A has rows indexed by μ ^ 1 \widehat{\mu}_1 μ 1 and columns by μ ^ 0 \widehat{\mu}_0 μ 0 , and
∥ A ^ ∥ = σ 2 (43) \lVert\widehat{A}\rVert=\sigma^2 \tag*{(43)} ∥ A ∥ = σ 2 (43) A ^ ∣ δ μ ^ 0 ⟩ = σ 2 ∣ δ μ ^ 1 ⟩ , A ^ † ∣ δ μ ^ 1 ⟩ = σ 2 ∣ δ μ ^ 0 ⟩ . (44) \widehat{A}\lvert\delta_{\widehat{\mu}_0}\rangle=\sigma^2\lvert\delta_{\widehat{\mu}_1}\rangle,\qquad
\widehat{A}^{\dagger}\lvert\delta_{\widehat{\mu}_1}\rangle=\sigma^2\lvert\delta_{\widehat{\mu}_0}\rangle. \tag*{(44)} A ∣ δ μ 0 ⟩ = σ 2 ∣ δ μ 1 ⟩ , A † ∣ δ μ 1 ⟩ = σ 2 ∣ δ μ 0 ⟩ . (44) Let Δ h , j \Delta_{h,j} Δ h , j be the filter for a query to entry j j j in half h ∈ { 1 , 2 } h\in\{1,2\} h ∈ { 1 , 2 } of the pair. Then
∥ A ^ ∘ Δ h , j ∥ ≤ σ ∥ A ∘ Δ j ∥ . (45) \lVert\widehat{A}\circ\Delta_{h,j}\rVert\le\sigma\lVert A\circ\Delta_j\rVert. \tag*{(45)} ∥ A ∘ Δ h , j ∥ ≤ σ ∥ A ∘ Δ j ∥ . (45) Proof. The tensor-product norm identity gives ∥ A ^ ∥ = ∥ A † ∥ ∥ A ∥ = σ 2 \lVert\widehat{A}\rVert=\lVert A^\dagger\rVert\lVert A\rVert=\sigma^2 ∥ A ∥ = ∥ A † ∥ ∥ A ∥ = σ 2 . The alignment follows from
A ^ ∣ δ μ ^ 0 ⟩ = ( A † ⊗ A ) ( ∣ δ 1 ⟩ ⊗ ∣ δ 0 ⟩ ) = ( A † ∣ δ 1 ⟩ ) ⊗ ( A ∣ δ 0 ⟩ ) = ( σ ∣ δ 0 ⟩ ) ⊗ ( σ ∣ δ 1 ⟩ ) = σ 2 ∣ δ μ ^ 1 ⟩ . \begin{aligned}
\widehat{A}\lvert\delta_{\widehat{\mu}_0}\rangle
&=(A^\dagger\otimes A)(\lvert\delta_1\rangle\otimes\lvert\delta_0\rangle)\\
&=(A^\dagger\lvert\delta_1\rangle)\otimes(A\lvert\delta_0\rangle)\\
&=(\sigma\lvert\delta_0\rangle)\otimes(\sigma\lvert\delta_1\rangle)
=\sigma^2\lvert\delta_{\widehat{\mu}_1}\rangle.
\end{aligned} A ∣ δ μ 0 ⟩ = ( A † ⊗ A ) (∣ δ 1 ⟩ ⊗ ∣ δ 0 ⟩) = ( A † ∣ δ 1 ⟩) ⊗ ( A ∣ δ 0 ⟩) = ( σ ∣ δ 0 ⟩) ⊗ ( σ ∣ δ 1 ⟩) = σ 2 ∣ δ μ 1 ⟩ . The adjoint relation follows in the same way:
A ^ † ∣ δ μ ^ 1 ⟩ = ( A ⊗ A † ) ( ∣ δ 0 ⟩ ⊗ ∣ δ 1 ⟩ ) = ( A ∣ δ 0 ⟩ ) ⊗ ( A † ∣ δ 1 ⟩ ) = σ 2 ∣ δ μ ^ 0 ⟩ . \begin{aligned}
\widehat{A}^{\dagger}\lvert\delta_{\widehat{\mu}_1}\rangle
&=(A\otimes A^\dagger)(\lvert\delta_0\rangle\otimes\lvert\delta_1\rangle)\\
&=(A\lvert\delta_0\rangle)\otimes(A^\dagger\lvert\delta_1\rangle)\\
&=\sigma^2\lvert\delta_{\widehat{\mu}_0}\rangle.
\end{aligned} A † ∣ δ μ 1 ⟩ = ( A ⊗ A † ) (∣ δ 0 ⟩ ⊗ ∣ δ 1 ⟩) = ( A ∣ δ 0 ⟩) ⊗ ( A † ∣ δ 1 ⟩) = σ 2 ∣ δ μ 0 ⟩ .
For the two possible query positions, the filtered operators are
A ^ ∘ Δ 1 , j = ( A ∘ Δ j ) † ⊗ A , \widehat{A} \mathbin{\circ} \Delta_{1,j} = (A \mathbin{\circ} \Delta_j)^\dagger\otimes A, A ∘ Δ 1 , j = ( A ∘ Δ j ) † ⊗ A ,
A ^ ∘ Δ 2 , j = A † ⊗ ( A ∘ Δ j ) . \widehat{A} \mathbin{\circ} \Delta_{2,j} = A^\dagger\otimes(A \mathbin{\circ} \Delta_j). A ∘ Δ 2 , j = A † ⊗ ( A ∘ Δ j ) .
The first equality uses ( A ∘ Δ j ) † = A † ∘ Δ j T (A \mathbin{\circ} \Delta_j)^\dagger= A^\dagger\mathbin{\circ} \Delta_j^{\mathsf{T}} ( A ∘ Δ j ) † = A † ∘ Δ j T , since the difference mask is real. Using the tensor-product norm identity gives, for both h = 1 h = 1 h = 1 and h = 2 h = 2 h = 2 ,
∥ A ^ ∘ Δ h , j ∥ = ∥ A ∥ ∥ A ∘ Δ j ∥ = σ ∥ A ∘ Δ j ∥ . \lVert\widehat{A} \mathbin{\circ} \Delta_{h,j} \rVert= \lVert A \rVert\lVert A \mathbin{\circ} \Delta_j \rVert= \sigma\lVert A \mathbin{\circ} \Delta_j \rVert. ∥ A ∘ Δ h , j ∥ = ∥ A ∥ ∥ A ∘ Δ j ∥ = σ ∥ A ∘ Δ j ∥ .
Theorem 5.4 (Paired planted-sum composition). Under the parameter assumptions of Theorem 5.2 , replace the inner encoding by
μ ^ 0 = P r , M 0 ⊗ Q r , M , μ ^ 1 = Q r , M ⊗ P r , M 0 . \widehat{\mu}_0 = P_{r,M}^{0} \otimes Q_{r,M}, \qquad\widehat{\mu}_1 = Q_{r,M} \otimes P_{r,M}^{0}. μ 0 = P r , M 0 ⊗ Q r , M , μ 1 = Q r , M ⊗ P r , M 0 . The outer distributions are again P ℓ , n z P_{\ell,n}^{z} P ℓ , n z and Q ℓ , n Q_{\ell,n} Q ℓ , n , with independent paired blocks for their d = n q d = nq d = n q bits. Every quantum algorithm with average acceptance probabilities s P , s Q s_P, s_Q s P , s Q makes at least
Ω ( ( 1 − τ ( s P , s Q ) ) n ℓ / ( ℓ + 1 ) M r / ( r + 1 ) r ℓ ) \Omega\left((1-\tau(s_P,s_Q))\frac{n^{\ell/(\ell+1)}M^{r/(r+1)}}{\sqrt{r\ell}}\right) Ω ( ( 1 − τ ( s P , s Q )) r ℓ n ℓ / ( ℓ + 1 ) M r / ( r + 1 ) ) queries in the worst case. A physical query reads one entry of one half of one pair.
Proof. Use A A A , B B B , σ \sigma σ , λ \lambda λ from the single-block proof. Lemma 5.3 gives exact alignment for A ^ \widehat{A} A with σ ^ = σ 2 \widehat{\sigma} = \sigma^2 σ = σ 2 , and its local filtered norm is at most 9 r σ 9\sqrt{r}\sigma 9 r σ . The outer bit-filtered norm is at most 9 ℓ 9\sqrt{\ell} 9 ℓ . Applying Lemma 5.1 to B B B and A ^ \widehat{A} A gives the following bounds, where ( p , h , j ) (p,h,j) ( p , h , j ) denotes entry j j j in half h h h of the pair for outer bit p p p :
∥ C ∥ = ⟨ δ P d ∣ C ∣ δ Q d ⟩ = λ σ ^ d , max p , h , j ∥ C ∘ Δ p , h , j ∥ ≤ 81 r ℓ σ ^ d − 1 σ . \lVert C \rVert= \langle\delta_P^d \mathbin{|} C \mathbin{|} \delta_Q^d \rangle= \lambda\widehat{\sigma}^{d}, \qquad\max_{p,h,j} \lVert C \mathbin{\circ} \Delta_{p,h,j} \rVert\le81\sqrt{r\ell}\widehat{\sigma}^{d-1}\sigma. ∥ C ∥ = ⟨ δ P d ∣ C ∣ δ Q d ⟩ = λ σ d , p , h , j max ∥ C ∘ Δ p , h , j ∥ ≤ 81 r ℓ σ d − 1 σ .
For s P ≠ s Q s_P \ne s_Q s P = s Q , Theorem 3.1 yields
T ≥ ( 1 − τ ( s P , s Q ) ) λ σ ^ d 162 r ℓ σ ^ d − 1 σ = 1 − τ ( s P , s Q ) 162 λ r ℓ σ 2 σ = 1 − τ ( s P , s Q ) 162 λ σ r ℓ . \begin{aligned}
T \ge\frac{(1-\tau(s_P,s_Q))\lambda\widehat{\sigma}^{d}}{162\sqrt{r\ell}\widehat{\sigma}^{d-1}\sigma} \\
&= \frac{1-\tau(s_P,s_Q)}{162}\frac{\lambda}{\sqrt{r\ell}}\frac{\sigma^2}{\sigma} = \frac{1-\tau(s_P,s_Q)}{162}\frac{\lambda\sigma}{\sqrt{r\ell}}.
\end{aligned} T ≥ 162 r ℓ σ d − 1 σ ( 1 − τ ( s P , s Q )) λ σ d = 162 1 − τ ( s P , s Q ) r ℓ λ σ σ 2 = 162 1 − τ ( s P , s Q ) r ℓ λσ .
This is the same bound as for one block. The case s P = s Q s_P = s_Q s P = s Q is again immediate.
The key agreement protocol
We first use the single-block composition to define a classical random-oracle protocol. Fix integers r , ℓ ≥ 2 r,\ell\ge2 r , ℓ ≥ 2 and N ≥ max { r , ℓ } N \ge\max\{r,\ell\} N ≥ max { r , ℓ } . Set
q = ⌈ ( ℓ + 3 ) log 2 N ⌉ , s = ⌈ ( r + 4 ) log 2 N ⌉ . q = \lceil(\ell+ 3)\log_2 N\rceil, \qquad s = \lceil(r + 4)\log_2 N\rceil. q = ⌈( ℓ + 3 ) log 2 N ⌉ , s = ⌈( r + 4 ) log 2 N ⌉ .
The parties have oracle access to a uniformly random function
H : [ N ] × [ q ] × [ N ] ⟶ F 2 s . H : [N] \times[q] \times[N] \longrightarrow\mathbb{F}_2^s. H : [ N ] × [ q ] × [ N ] ⟶ F 2 s .
For each ( i , t ) ∈ [ N ] × [ q ] (i,t) \in[N] \times[q] ( i , t ) ∈ [ N ] × [ q ] , define the oracle block
H i , t : = ( H ( i , t , 1 ) , … , H ( i , t , N ) ) ∈ ( F 2 s ) N . H_{i,t} := (H(i,t,1),\ldots,H(i,t,N)) \in(\mathbb{F}_2^s)^N. H i , t := ( H ( i , t , 1 ) , … , H ( i , t , N )) ∈ ( F 2 s ) N .
The index i i i identifies an outer label, t t t identifies a bit of that label, and j ∈ [ N ] j \in[N] j ∈ [ N ] identifies an entry within the block. This way, the oracle consists of N q Nq N q different blocks, each with N N N entries. Because H H H is a random function, its values in these blocks are independent. Here N N N plays both length roles from the composition theorem: n = M = N n = M = N n = M = N . In the following, Alice chooses N N N random q q q -bit strings, which we call outer labels. Alice will encode the N q Nq N q bits of her N N N labels each in one block.
A query at ( i , t , j ) (i,t,j) ( i , t , j ) returns the s s s -bit value H ( i , t , j ) H(i,t,j) H ( i , t , j ) . A full classical read of the block ( i , t ) (i,t) ( i , t ) consists of N N N queries, for all possible values of j ∈ [ N ] j \in[N] j ∈ [ N ] . Quantum queries can be made in superposition over all three indices.
Preparing one masked block
Fix ( i , t ) ∈ [ N ] × [ q ] (i,t) \in[N] \times[q] ( i , t ) ∈ [ N ] × [ q ] . For simplicity, we omit dependence in ( i , t ) (i,t) ( i , t ) and write, for j ∈ [ N ] j \in[N] j ∈ [ N ] , H ( j ) = H ( i , t , j ) H(j) = H(i,t,j) H ( j ) = H ( i , t , j ) . Alice chooses a public mask for this block, in either null or planted mode. In both cases she publishes masks m = ( m 1 , … , m N ) ∈ ( F 2 s ) N m = (m_1,\ldots,m_N) \in(\mathbb{F}_2^s)^N m = ( m 1 , … , m N ) ∈ ( F 2 s ) N . The vector m m m is the mask for block ( i , t ) (i,t) ( i , t ) , where we again omit dependence in ( i , t ) (i,t) ( i , t ) .
In planted mode, she samples S ∈ ( [ N ] r ) S \in\binom{[N]}{r} S ∈ ( r [ N ] ) uniformly, chooses a pivot p ∈ S p \in S p ∈ S , samples m j m_j m j uniformly for all j ≠ p j \ne p j = p , queries H ( j ) H(j) H ( j ) for every j ∈ S j \in S j ∈ S , and sets
m p = H ( p ) + ∑ j ∈ S ∖ { p } ( H ( j ) + m j ) . m_p = H(p) + \sum_{j \in S \setminus\{p\}} (H(j) + m_j). m p = H ( p ) + j ∈ S ∖ { p } ∑ ( H ( j ) + m j ) .
Define the masked block
Y : = ( Y 1 , … , Y N ) , Y j : = H ( j ) + m j . Y := (Y_1,\ldots,Y_N), \qquad Y_j := H(j) + m_j. Y := ( Y 1 , … , Y N ) , Y j := H ( j ) + m j .
Define its relation predicate by
Rel ( Y ) = 1 ⟺ ∃ S ∈ ( [ N ] r ) : ∑ j ∈ S Y j = 0. \operatorname{Rel}(Y) = 1 \iff\exists S \in\binom{[N]}{r}: \sum_{j \in S} Y_j = 0. Rel ( Y ) = 1 ⟺ ∃ S ∈ ( r [ N ] ) : j ∈ S ∑ Y j = 0.
Lemma 6.1. In null mode, the pair ( m , Y ) (m,Y) ( m , Y ) is distributed as an independent uniform mask and a sample from Q r , N Q_{r,N} Q r , N . In planted mode, ( m , S , Y ) (m,S,Y) ( m , S , Y ) is distributed as an independent uniform mask m m m and a planted sample ( S , Y ) ← P r , N 0 (S,Y) \leftarrow P^0_{r,N} ( S , Y ) ← P r , N 0 . Also, quantum query access to H H H given m m m is exactly equivalent, one query for one query, to access to Y Y Y given m m m .
Proof. In null mode, the map ( H , m ) ↦ ( Y , m ) (H,m) \mapsto(Y,m) ( H , m ) ↦ ( Y , m ) with Y = H + m Y = H + m Y = H + m is a bijection, so Y Y Y and m m m are independent and uniform.
Fix S S S and p p p in planted mode. The construction makes
Y p = ∑ j ∈ S ∖ { p } Y j . Y_p = \sum_{j \in S \setminus\{p\}} Y_j. Y p = j ∈ S ∖ { p } ∑ Y j .
and thus ∑ j ∈ S Y j = 0 \sum_{j \in S} Y_j = 0 ∑ j ∈ S Y j = 0 . Consider the map from the initially uniform variables
( H , ( m j ) j ≠ p ) (H,(m_j)_{j \ne p}) ( H , ( m j ) j = p )
to ( Y , m ) (Y,m) ( Y , m ) . Its image is the set of pairs for which ∑ j ∈ S Y j = 0 \sum_{j \in S} Y_j = 0 ∑ j ∈ S Y j = 0 . Conversely, given any such pair, the unique preimage is H = Y + m H = Y + m H = Y + m , and the defining equation for m p m_p m p holds because the sum of the Y j Y_j Y j on S S S is zero. The map is therefore a bijection. It follows that Y Y Y is uniform subject to the planted equation and that m m m is uniform and independent of Y Y Y . Averaging over uniform S S S gives P r , N 0 P^0_{r,N} P r , N 0 .
Finally, with m m m known, a query to H H H can be converted to a query to Y Y Y by adding the known value m j m_j m j to the answer register, and vice versa. This conversion is coherent and uses no oracle query.
For any fixed r r r -subset of a uniform block, the sum is uniform in F 2 s \mathbb{F}_2^s F 2 s and equals zero with probability 2 − s 2^{-s} 2 − s . Summing over the ( N r ) \binom{N}{r} ( r N ) possible subsets gives
Pr Y ← Q r , N [ Rel ( Y ) = 1 ] ≤ ( N r ) 2 s ≤ N r N r + 4 = N − 4 . (46) \Pr_{Y \leftarrow Q_{r,N}}[\operatorname{Rel}(Y)=1] \le\frac{\binom{N}{r}}{2^s} \le\frac{N^r}{N^{r+4}} = N^{-4}. \tag*{(46)} Y ← Q r , N Pr [ Rel ( Y ) = 1 ] ≤ 2 s ( r N ) ≤ N r + 4 N r = N − 4 . (46)
Single-block encoding of one bit
To encode b ∈ { 0 , 1 } b \in\{0,1\} b ∈ { 0 , 1 } , Alice prepares one block by
b = 0 : Y ← Q r , N , b = 1 : Y ← P r , N 0 . (47) \begin{aligned}
b=0:\quad&Y \leftarrow Q_{r,N}, \qquad b=1:\quad Y \leftarrow P^0_{r,N}. \tag*{(47)}
\end{aligned} b = 0 : Y ← Q r , N , b = 1 : Y ← P r , N 0 . (47)
using the masking procedure above. She makes no query for a zero bit and exactly r r r queries for a one bit. Bob reads the block and decodes
Dec ( Y ) = Rel ( Y ) . (48) \operatorname{Dec}(Y)=\operatorname{Rel}(Y). \tag*{(48)} Dec ( Y ) = Rel ( Y ) . (48)
A one bit is always decoded correctly. By (46) , a zero bit is decoded incorrectly with probability at most N − 4 N^{-4} N − 4 .
The protocol and its correctness
The protocol is defined as follows.
Alice samples independent uniform labels a 1 , … , a N ∈ F 2 q a_1,\ldots,a_N \in\mathbb{F}_2^q a 1 , … , a N ∈ F 2 q . For every ( i , t ) ∈ [ N ] × [ q ] (i,t)\in[N]\times[q] ( i , t ) ∈ [ N ] × [ q ] , she encodes the bit a i ( t ) a_i(t) a i ( t ) in block ( i , t ) (i,t) ( i , t ) according to (47) and obtains m i , t : = ( m i , t , j ) j ∈ [ N ] m_{i,t}:=(m_{i,t,j})_{j\in[N]} m i , t := ( m i , t , j ) j ∈ [ N ] . She sends the entire mask table m : = ( m i , t ) ( i , t ) ∈ [ N ] × [ q ] m:=(m_{i,t})_{(i,t)\in[N]\times[q]} m := ( m i , t ) ( i , t ) ∈ [ N ] × [ q ] to Bob.
Bob samples a uniform ℓ \ell ℓ -set I ∈ ( [ N ] ℓ ) I\in\binom{[N]}{\ell} I ∈ ( ℓ [ N ] ) . For every i ∈ I i\in I i ∈ I and t ∈ [ q ] t\in[q] t ∈ [ q ] , Bob queries all N N N entries of H i , t H_{i,t} H i , t , computes Y i , t = ( Y i , t , j ) j ∈ [ N ] Y_{i,t}=(Y_{i,t,j})_{j\in[N]} Y i , t = ( Y i , t , j ) j ∈ [ N ] , Y i , t , j = H ( i , t , j ) + m i , t , j Y_{i,t,j}=H(i,t,j)+m_{i,t,j} Y i , t , j = H ( i , t , j ) + m i , t , j and sets a i ^ ( t ) = Dec ( Y i , t ) \widehat{a_i}(t)=\operatorname{Dec}(Y_{i,t}) a i ( t ) = Dec ( Y i , t ) . He sends
z = ∑ i ∈ I a i ^ ∈ F 2 q z=\sum_{i\in I}\widehat{a_i}\in\mathbb{F}_2^q z = i ∈ I ∑ a i ∈ F 2 q
to Alice and outputs I I I . Upon receiving z z z , Alice searches, using free local computation, for the ℓ \ell ℓ -subsets J ⊆ [ N ] J\subseteq[N] J ⊆ [ N ] satisfying ∑ j ∈ J a j = z \sum_{j\in J}a_j=z ∑ j ∈ J a j = z . If there is exactly one, she outputs it, otherwise she aborts.
Proposition 6.2. The probability that both parties output the same key is at least
1 − ℓ q N − 4 − N − 3 . 1-\ell qN^{-4}-N^{-3}. 1 − ℓ q N − 4 − N − 3 . Alice makes at most r N q rNq r N q oracle queries and Bob makes exactly ℓ q N \ell qN ℓ q N queries. Alice’s expected number of queries is r N q / 2 rNq/2 r N q /2 . Thus the total worst-case query complexity is O ( ( r + ℓ ) ℓ N log N ) O((r+\ell)\ell N\log N) O (( r + ℓ ) ℓ N log N ) .
Proof. By (46) and a union bound over the at most ℓ q \ell q ℓ q uniform blocks read by Bob, the probability that any decoded bit is incorrect is at most
ℓ q N − 4 . \ell qN^{-4}. ℓ q N − 4 .
If no such error occurs, then a i ^ = a i \widehat{a_i}=a_i a i = a i for all i ∈ I i\in I i ∈ I and thus I I I is a solution to Alice’s reconstruction equation. We bound the second bad event using the original labels, without conditioning on successful inner decoding. Condition only on I I I and z i d e a l = ∑ i ∈ I a i z_{\mathrm{ideal}}=\sum_{i\in I}a_i z ideal = ∑ i ∈ I a i , and write this target as z z z for the following calculation. For any fixed J ≠ I J\ne I J = I of size ℓ \ell ℓ , choose an index in J ∖ I J\setminus I J ∖ I . Its label remains uniform after conditioning on the sum over I I I . Conditioning on every other label, the equation ∑ j ∈ J a j = z \sum_{j\in J}a_j=z ∑ j ∈ J a j = z therefore holds with probability exactly 2 − q 2^{-q} 2 − q . A union bound gives
Pr [ ∃ J ≠ I : ∑ j ∈ J a j = z ] ≤ ( N ℓ ) 2 q ≤ N ℓ N ℓ + 3 = N − 3 . \Pr\left[\exists J\ne I:\sum_{j\in J}a_j=z\right]\le\frac{\binom{N}{\ell}}{2^q}\le\frac{N^\ell}{N^{\ell+3}}=N^{-3}. Pr ∃ J = I : j ∈ J ∑ a j = z ≤ 2 q ( ℓ N ) ≤ N ℓ + 3 N ℓ = N − 3 .
The two bad events are not necessarily independent, so we only add their probabilities. Outside these two bad events, Alice’s unique solution is I I I , and in this case the parties output the same key. This proves the correctness bound.
Alice makes r r r queries for each bit equal to one among the N q Nq N q independent uniform label bits, thus at most r N q rNq r N q queries and r N q / 2 rNq/2 r N q /2 in expectation. Bob reads one length-N N N block for each of the ℓ q \ell q ℓ q selected bits, and reading one block requires exactly N N N queries. Finally, using q = O ( ℓ log N ) q=O(\ell\log N) q = O ( ℓ log N ) proves the result. ∎
Security of the protocol
We consider a passive computationally unbounded quantum eavesdropper that is given the complete two-message public transcript ( m , z ) (m,z) ( m , z ) and has quantum query access to H H H . It succeeds if it outputs the key, which corresponds to Bob’s sampled subset I I I . We give the complete transcript to the eavesdropper before it makes any query. This gives it at least as much information as receiving the messages during the protocol. Throughout this section, the query cost of an eavesdropper is its maximum number of queries over all transcripts and internal measurement outcomes. As usual, an algorithm making fewer queries on some branches may be padded with dummy queries.
We first compare the real experiment with an ideal experiment in which Bob sends
z i d e a l = ∑ i ∈ I a i z_{\mathrm{ideal}}=\sum_{i\in I}a_i z ideal = i ∈ I ∑ a i
using Alice’s original labels. Couple the real and ideal experiments using the same oracle, masks, labels, and set I I I . The two experiments have the same key I I I and the same oracle. Their transcripts agree whenever no uniform block selected by Bob contains an accidental relation. Under this coupling, the full data available to Eve can differ only on that event. Thus, for every eavesdropper Eve, the success probabilities in the two experiments differ by at most
ε i m p ≤ ℓ q N − 4 = o ( 1 ) . (49) \varepsilon_{\mathrm{imp}}\le\ell qN^{-4}=o(1). \tag*{(49)} ε imp ≤ ℓ q N − 4 = o ( 1 ) . (49)
Fix a public value z z z . In the ideal experiment, conditioned on this value, the pair ( I , ( a 1 , … , a N ) ) (I,(a_1,\ldots,a_N)) ( I , ( a 1 , … , a N )) has distribution P ℓ , N z P_{\ell,N}^{z} P ℓ , N z . Indeed, for every fixed I I I , the sum of the initially uniform labels on I I I is uniform in F 2 q \mathbb{F}_2^q F 2 q . Its probability of being z z z is 2 − q 2^{-q} 2 − q , independent of I I I . Conditioning on z z z therefore keeps I I I uniform and makes the labels uniform subject to that sum equation. By Lemma 6.1 and (47), every label bit is independently encoded by Q r , N Q_{r,N} Q r , N when it equals zero and by P r , N 0 P_{r,N}^{0} P r , N 0 when it equals one. The masks are independent and uniform in both experiments. The distinguisher below will sample them as its own randomness, so no separate composition argument for the public masks is needed.
Theorem 6.3. Let r , ℓ ≥ 2 r,\ell\ge2 r , ℓ ≥ 2 satisfy
r 2 N − 1 / ( r + 1 ) ≤ 1 , ℓ 2 N − 1 / ( ℓ + 1 ) ≤ 1 , (50) r^2N^{-1/(r+1)}\le1,\qquad\ell^2N^{-1/(\ell+1)}\le1, \tag*{(50)} r 2 N − 1/ ( r + 1 ) ≤ 1 , ℓ 2 N − 1/ ( ℓ + 1 ) ≤ 1 , (50) and let ν > 0 \nu>0 ν > 0 be a constant. Any quantum eavesdropper whose worst-case query count is T T T and which satisfies
Pr [ the eavesdropper outputs I ] ≥ ν \Pr[\text{the eavesdropper outputs }I]\ge\nu Pr [ the eavesdropper outputs I ] ≥ ν must make
T = Ω ν ( N r / ( r + 1 ) + N ℓ / ( ℓ + 1 ) r ℓ ) T=\Omega_{\nu}\left(\frac{N^{r/(r+1)}+N^{\ell/(\ell+1)}}{\sqrt{r\ell}}\right) T = Ω ν ( r ℓ N r / ( r + 1 ) + N ℓ / ( ℓ + 1 ) ) quantum oracle queries.
Proof. By (49), the same eavesdropper succeeds in the ideal experiment with probability ν − o ( 1 ) \nu-o(1) ν − o ( 1 ) , averaged over the public value z z z . At least one value z ∗ z^* z ∗ has conditional success probability at least ν − o ( 1 ) \nu-o(1) ν − o ( 1 ) . Use z ∗ z^* z ∗ as a fixed public target in the algorithm. We convert this conditional algorithm into a distinguisher between the encoded planted and null distributions of Theorem 5.2 with target z ∗ z^* z ∗ .
The null experiment is a comparison distribution used only in the proof: its original outer labels are independent and uniform, while the public target is the fixed z ∗ z^* z ∗ . It does not need to describe a real protocol execution. We now describe the distinguisher in three steps.
Simulating Eve’s input. Its encoded input consists of all masked inner strings Y Y Y . Independently sample one uniform public mask string m m m for every block, give the eavesdropper the mask table together with z ∗ z^* z ∗ , and simulate its random-oracle access using
By Lemma 6.1 , this is exactly the ideal transcript distribution, and every quantum query to H H H is simulated by one query to Y Y Y followed by coherent addition of the known mask.
Verifying Eve’s candidate. Run the eavesdropper on this transcript and let J J J be its output. Reject if J J J is not an ℓ \ell ℓ -subset. Otherwise, read all N N N oracle positions in each of the ℓ q \ell q ℓ q inner blocks indexed by J J J , decode each block using (48), and accept exactly when the decoded labels sum to z ∗ z^* z ∗ . This verification procedure makes ℓ q N \ell qN ℓ q N queries.
Comparing the acceptance probabilities. On the planted distribution, if the eavesdropper outputs the hidden I I I , the verifier accepts unless one of the selected uniform blocks contains an accidental r r r -sum. Thus its planted acceptance probability satisfies
s P ≥ ν − o ( 1 ) − ℓ q N − 4 = ν − o ( 1 ) . s_P \ge\nu-o(1)-\ell qN^{-4}=\nu-o(1). s P ≥ ν − o ( 1 ) − ℓ q N − 4 = ν − o ( 1 ) .
This subtraction does not assume independence between Eve’s success and the decoding event. Conditioned on the outer labels and hidden I I I , the selected null blocks are still uniform, so their total error probability is at most ℓ q N − 4 \ell qN^{-4} ℓ q N − 4 even for the fixed target z ∗ z^* z ∗ .
On the encoded null distribution, let the original outer labels be a 1 , … , a N a_1,\ldots,a_N a 1 , … , a N . We use a good event for all N q Nq N q blocks, rather than just the blocks in Eve’s candidate: Eve may choose that candidate after querying the oracle. If no uniform block contains an accidental r r r -sum, all decoded labels equal their original values. Therefore acceptance implies that the original outer instance has some ℓ \ell ℓ -subset summing to z ∗ z^* z ∗ . A union bound gives
s Q ≤ ( N ℓ ) 2 q + N q ( N r ) 2 s ≤ N − 3 + N q N − 4 = o ( 1 ) . \begin{aligned}
s_Q\le\frac{\binom{N}{\ell}}{2^q}+Nq\frac{\binom{N}{r}}{2^s} \\
&\le N^{-3}+NqN^{-4}=o(1).
\end{aligned} s Q ≤ 2 q ( ℓ N ) + N q 2 s ( r N ) ≤ N − 3 + N q N − 4 = o ( 1 ) .
By (50), we have ℓ = O ( log N ) \ell=O(\log N) ℓ = O ( log N ) and q = O ( ( log N ) 2 ) q=O((\log N)^2) q = O (( log N ) 2 ) , so the last expression tends to zero. To see how this gives a useful adversary numerator, write
τ ( s P , s Q ) = s P s Q + ( 1 − s P ) ( 1 − s Q ) ≤ s Q + 1 − s P ≤ s Q + 1 − s P 2 . \begin{aligned}
\tau(s_P,s_Q)=\sqrt{s_Ps_Q}+\sqrt{(1-s_P)(1-s_Q)} \\
&\le\sqrt{s_Q}+\sqrt{1-s_P} \\
&\le\sqrt{s_Q}+1-\frac{s_P}{2}.
\end{aligned} τ ( s P , s Q ) = s P s Q + ( 1 − s P ) ( 1 − s Q ) ≤ s Q + 1 − s P ≤ s Q + 1 − 2 s P .
The last inequality uses 1 − x ≤ 1 − x / 2 \sqrt{1-x}\le1-x/2 1 − x ≤ 1 − x /2 for x ∈ [ 0 , 1 ] x\in[0,1] x ∈ [ 0 , 1 ] . Therefore
1 − τ ( s P , s Q ) ≥ s P 2 − s Q ≥ ν 2 − o ( 1 ) . 1-\tau(s_P,s_Q)\ge\frac{s_P}{2}-\sqrt{s_Q}\ge\frac{\nu}{2}-o(1). 1 − τ ( s P , s Q ) ≥ 2 s P − s Q ≥ 2 ν − o ( 1 ) .
For fixed ν > 0 \nu>0 ν > 0 , this is at least ν / 4 \nu/4 ν /4 for all sufficiently large N N N . By Theorem 5.2 , the distinguisher therefore makes
Ω ν ( N r r + 1 + ℓ ℓ + 1 r ℓ ) \Omega_\nu\left(\frac{N^{\frac{r}{r+1}+\frac{\ell}{\ell+1}}}{\sqrt{r\ell}}\right) Ω ν ( r ℓ N r + 1 r + ℓ + 1 ℓ )
queries. If the original eavesdropper uses T T T queries, the distinguisher uses T + ℓ q N T+\ell qN T + ℓ q N . We now check that the verification cost is smaller than the lower bound by a factor that tends to zero. Condition (50) implies N ≥ r 2 ( r + 1 ) N\ge r^{2(r+1)} N ≥ r 2 ( r + 1 ) and N ≥ ℓ 2 ( ℓ + 1 ) N\ge\ell^{2(\ell+1)} N ≥ ℓ 2 ( ℓ + 1 ) , and in particular r , ℓ = O ( log N ) r,\ell=O(\log N) r , ℓ = O ( log N ) . Therefore ℓ q N = O ( N ( log N ) 3 ) \ell qN=O(N(\log N)^3) ℓ q N = O ( N ( log N ) 3 ) . On the other hand,
N r r + 1 + ℓ ℓ + 1 r ℓ ≥ N 4 / 3 O ( log N ) . \frac{N^{\frac{r}{r+1}+\frac{\ell}{\ell+1}}}{\sqrt{r\ell}}\ge\frac{N^{4/3}}{O(\log N)}. r ℓ N r + 1 r + ℓ + 1 ℓ ≥ O ( log N ) N 4/3 .
In particular, the ratio of the verification cost to the lower-bound scale is
O ( N ( log N ) 3 log N N 4 / 3 ) = O ( ( log N ) 4 N 1 / 3 ) = o ( 1 ) . O\left(\frac{N(\log N)^3\log N}{N^{4/3}}\right)
=O\left(\frac{(\log N)^4}{N^{1/3}}\right)=o(1). O ( N 4/3 N ( log N ) 3 log N ) = O ( N 1/3 ( log N ) 4 ) = o ( 1 ) .
We can therefore subtract the verification cost and keep the stated lower bound for T T T .
The theorem also shows when the recovery probability must tend to zero. Write
L = N r / ( r + 1 ) + ℓ / ( ℓ + 1 ) r ℓ . \mathcal{L}=\frac{N^{r/(r+1)+\ell/(\ell+1)}}{\sqrt{r\ell}}. L = r ℓ N r / ( r + 1 ) + ℓ / ( ℓ + 1 ) .
If a family of eavesdroppers uses T = o ( L ) T=o(\mathcal{L}) T = o ( L ) queries, its recovery probability tends to zero. Otherwise some constant ν > 0 \nu>0 ν > 0 would be achieved along an infinite sequence of input lengths, contradicting the theorem on that sequence. This concerns the actual distribution of protocol executions, with a worst-case bound on each eavesdropper’s query count.
Perfect-agreement upgrade
We replace every one-block bit encoding by a pair of blocks and add a final confirmation message. If decoding fails or Alice cannot identify a unique subset, both parties output the fixed key 0. Thus the protocol always outputs a key and has perfect agreement. The public transcript reveals when this fallback key is used, but this event has vanishing probability. We include these executions in the security analysis. The paired transformation preserves the relevant adversary ratio, so the security exponent is unchanged.
Consider a random oracle
H ~ : [ N ] × [ q ] × { L , R } × [ N ] ⟶ F 2 s \widetilde{H}:[N]\times[q]\times\{L,R\}\times[N]\longrightarrow\mathbb{F}_2^s H : [ N ] × [ q ] × { L , R } × [ N ] ⟶ F 2 s
Thus there are 2 N q 2Nq 2 N q independent length-N N N blocks. Alice prepares each block with the masking procedure of Lemma 6.1 , applied to the corresponding restriction of H ~ \widetilde{H} H .
Paired encoding and the three-message protocol
To encode b ∈ { 0 , 1 } b\in\{0,1\} b ∈ { 0 , 1 } , Alice prepares the left and right masked blocks by
b = 0 : ( Y L , Y R ) ← P r , N 0 ⊗ Q r , N , b = 1 : ( Y L , Y R ) ← Q r , N ⊗ P r , N 0 . (51) \begin{aligned}
b=0:\quad&(Y^L,Y^R)\gets P^0_{r,N}\otimes Q_{r,N}, \qquad
b=1:\quad(Y^L,Y^R)\gets Q_{r,N}\otimes P^0_{r,N}. \tag*{(51)}
\end{aligned} b = 0 : ( Y L , Y R ) ← P r , N 0 ⊗ Q r , N , b = 1 : ( Y L , Y R ) ← Q r , N ⊗ P r , N 0 . (51)
Bob decodes the pair by
PairDec ( Y L , Y R ) = { 0 , Rel ( Y L ) = 1 and Rel ( Y R ) = 0 , 1 , Rel ( Y L ) = 0 and Rel ( Y R ) = 1 , ⊥ , otherwise. (52) \operatorname{PairDec}(Y^L,Y^R)=
\begin{cases}
0, & \operatorname{Rel}(Y^L)=1\text{ and }\operatorname{Rel}(Y^R)=0,\\
1, & \operatorname{Rel}(Y^L)=0\text{ and }\operatorname{Rel}(Y^R)=1,\\
\perp, & \text{otherwise.}
\end{cases} \tag*{(52)} PairDec ( Y L , Y R ) = ⎩ ⎨ ⎧ 0 , 1 , ⊥ , Rel ( Y L ) = 1 and Rel ( Y R ) = 0 , Rel ( Y L ) = 0 and Rel ( Y R ) = 1 , otherwise. (52)
Because one half is planted, the two relation predicates can never both be zero. Thus the decoder either returns the encoded bit or returns ⊥ \perp ⊥ ; it never returns the wrong bit. The symbol ⊥ \perp ⊥ is an internal decoder outcome; it leads to the shared fallback key in the protocol below.
The key space is
K = { 0 } ⊔ ( [ N ] ℓ ) . \mathcal{K}=\{0\}\sqcup\binom{[N]}{\ell}. K = { 0 } ⊔ ( ℓ [ N ] ) .
Here ⊔ \sqcup ⊔ denotes disjoint union: 0 is a separate key value, distinct from every subset key. We keep I I I for Bob’s sampled subset and write K A , K B K_A,K_B K A , K B for the parties’ actual outputs. The message fallback is also a separate symbol, distinct from every z ∈ F 2 q z\in\mathbb{F}_2^q z ∈ F 2 q .
The protocol is as follows.
Alice samples independent uniform labels a 1 , … , a N ∈ F 2 q a_1,\ldots,a_N\in\mathbb{F}_2^q a 1 , … , a N ∈ F 2 q . For every ( i , t ) ∈ [ N ] × [ q ] (i,t)\in[N]\times[q] ( i , t ) ∈ [ N ] × [ q ] , she encodes a i ( t ) a_i(t) a i ( t ) by (51) and sends all masks to Bob.
Bob samples a uniform I ∈ ( [ N ] ℓ ) I\in\binom{[N]}{\ell} I ∈ ( ℓ [ N ] ) , reads both halves of every pair ( i , t ) (i,t) ( i , t ) with i ∈ I i\in I i ∈ I , and applies (52). If any result is ⊥ \perp ⊥ , he sends fallback. Otherwise he obtains labels a ^ i ∈ F 2 q \widehat{a}_i\in\mathbb{F}_2^q a i ∈ F 2 q and sends
z = ∑ i ∈ I a ^ i . z=\sum_{i\in I}\widehat{a}_i. z = i ∈ I ∑ a i .
If Bob sent fallback, Alice replies fallback and outputs K A = 0 K_A = 0 K A = 0 . Otherwise she finds all ℓ \ell ℓ -subsets J J J satisfying ∑ j ∈ J a j = z \sum_{j \in J} a_j = z ∑ j ∈ J a j = z . If there is exactly one, she replies accept and outputs K A = J K_A = J K A = J . If there is no unique solution, she replies fallback and outputs K A = 0 K_A = 0 K A = 0 . Upon receiving Alice’s reply, Bob outputs
K B = { I , if the reply is accept , 0 , if the reply is fallback . K_B =
\begin{cases}
I, & \text{if the reply is accept},\\
0, & \text{if the reply is fallback}.
\end{cases} K B = { I , 0 , if the reply is accept , if the reply is fallback .
Let F \mathcal{F} F be the event that Alice’s final message is fallback.
Proposition 7.1. For every oracle and every choice of the parties’ randomness, both parties output a key and K A = K B K_A = K_B K A = K B . Write K K K for this common key. Then
Pr [ K = 0 ] = Pr [ F ] ≤ ε p e r f : = ℓ q N − 4 + N − 3 . (53) \Pr[K = 0] = \Pr[\mathcal{F}] \le\varepsilon_{\mathrm{perf}} := \ell q N^{-4} + N^{-3}. \tag*{(53)} Pr [ K = 0 ] = Pr [ F ] ≤ ε perf := ℓ q N − 4 + N − 3 . (53)
Alice makes exactly r N q rNq r N q oracle queries and Bob makes at most 2 ℓ q N 2\ell qN 2 ℓ q N queries. Thus the total worst-case query complexity is O ( ( r + ℓ ) ℓ N log N ) O((r+\ell)\ell N \log N) O (( r + ℓ ) ℓ N log N ) .
Proof. For every encoded bit, one half of the pair is planted and therefore has a relation. If the other half has no relation, Bob decodes the original bit; if it has a relation, he obtains ⊥ \perp ⊥ . Therefore, whenever Bob sends z z z , all his decoded labels equal Alice’s labels and I I I is a solution of Alice’s equation. If Alice replies accept, that solution is unique, so
K A = J = I = K B . K_A = J = I = K_B. K A = J = I = K B .
If Alice replies fallback, both parties output 0. This proves perfect agreement for every oracle and every choice of randomness.
Among the ℓ q \ell q ℓ q pairs selected by Bob, there is one uniform half-block per pair. By (46) and a union bound, the probability that any of these uniform halves contains an accidental relation is at most ℓ q N − 4 \ell qN^{-4} ℓ q N − 4 . Also, the unconditional probability that there is a second outer subset J ≠ I J \ne I J = I with ∑ j ∈ J a j = ∑ i ∈ I a i \sum_{j \in J} a_j = \sum_{i \in I} a_i ∑ j ∈ J a j = ∑ i ∈ I a i is at most N − 3 N^{-3} N − 3 , by the uniqueness argument in Proposition 6.2 . If neither event occurs, Bob decodes every selected bit correctly and Alice finds the unique solution I I I . Thus F \mathcal{F} F implies at least one of these events, proving (53).
Alice prepares exactly one planted half per label bit, at a cost of r r r queries. Bob reads two length-N N N halves per selected bit. The query bounds follow from q = O ( ℓ log N ) q = O(\ell\log N) q = O ( ℓ log N ) .
Security of the protocol
An eavesdropper receives the complete three-message transcript and outputs a guess K ^ \widehat{K} K for the common key K K K . Its success probability is
Pr [ K ^ = K ] , \Pr[\widehat{K} = K], Pr [ K = K ] ,
measured over all executions. On F \mathcal{F} F , the final message reveals that K = 0 K = 0 K = 0 , so the eavesdropper can succeed without making any query. These executions contribute at most ε p e r f \varepsilon_{\mathrm{perf}} ε perf to its overall success probability. As before, its query cost is the maximum number of quantum queries over all transcripts and internal outcomes.
Consider an ideal experiment in which Bob sends
z i d e a l = ∑ i ∈ I a i . z_{\mathrm{ideal}} = \sum_{i \in I} a_i. z ideal = i ∈ I ∑ a i .
Alice’s last message is always accept, and the target key is always I I I . Couple it to the real experiment using the same oracle, masks, labels, and sampled subset I I I . Outside F \mathcal{F} F , the oracle, transcript, and target key are identical in the two experiments. Thus any fixed eavesdropper satisfies
∣ Pr r e a l [ K ^ = K ] − Pr i d e a l [ K ^ = I ] ∣ ≤ Pr [ F ] ≤ ε p e r f . (54) \left|\Pr_{\mathrm{real}}[\widehat{K} = K] - \Pr_{\mathrm{ideal}}[\widehat{K} = I]\right| \le\Pr[\mathcal{F}] \le\varepsilon_{\mathrm{perf}}. \tag*{(54)} real Pr [ K = K ] − ideal Pr [ K = I ] ≤ Pr [ F ] ≤ ε perf . (54)
In particular, the change of experiment accounts for all successes obtained by guessing the fallback key.
Conditioned on a fixed public value z z z , the ideal outer instance has distribution P ℓ , N z P_{\ell,N}^{z} P ℓ , N z , and each bit is independently encoded according to (51) . The masks are independent public randomness and do not affect the adversary ratio.
Theorem 7.2 (Perfect-agreement key-recovery lower bound). Suppose r , ℓ ≥ 2 r,\ell\ge2 r , ℓ ≥ 2 satisfy (50) , and let ν > 0 \nu> 0 ν > 0 be a constant. Any quantum eavesdropper whose worst-case query count is T T T and whose unconditional key-recovery probability satisfies
Pr [ K ^ = K ] ≥ ν \Pr[\widehat{K}=K] \ge\nu Pr [ K = K ] ≥ ν must have
T = Ω ν ( N r + 1 r + ℓ ℓ + 1 r ℓ ) T = \Omega_{\nu}\left(\frac{N^{\frac{r+1}{r}+\frac{\ell}{\ell+1}}}{\sqrt{r\ell}}\right) T = Ω ν ( r ℓ N r r + 1 + ℓ + 1 ℓ ) quantum random-oracle queries.
Proof. By (54) , the eavesdropper succeeds in the ideal experiment with probability at least ν − ε p e r f \nu-\varepsilon_{\mathrm{perf}} ν − ε perf . Under (50) , we have ε p e r f = o ( 1 ) \varepsilon_{\mathrm{perf}}=o(1) ε perf = o ( 1 ) . Averaging over z z z , fix a value z ∗ z^* z ∗ for which the conditional success probability is at least ν − ε p e r f \nu-\varepsilon_{\mathrm{perf}} ν − ε perf . We turn this conditional algorithm into a distinguisher for the paired encoded distributions in Theorem 5.4 with target z ∗ z^* z ∗ .
On its encoded input, the distinguisher samples an independent uniform mask for every half-block, gives the eavesdropper the mask table, z ∗ z^* z ∗ , and the final message accept, and simulates the oracle as H ~ = Y + m \widetilde{H}=Y+m H = Y + m . By Lemma 6.1 , this is exactly the ideal conditional transcript, and each oracle query costs one query to Y Y Y . Let J J J be the eavesdropper’s output. Reject unless J J J is an ℓ \ell ℓ -subset; in particular, reject the output 0. Otherwise read both halves of all ℓ q \ell q ℓ q pairs indexed by J J J , reject if any paired decoder returns ⊥ \perp ⊥ , and accept exactly if the decoded labels sum to z ∗ z^* z ∗ . This verification procedure costs 2 ℓ q N 2\ell qN 2 ℓ q N queries.
On the planted distribution, when the eavesdropper outputs the hidden I I I , verification fails only if a selected uniform half-block contains an accidental relation. Therefore
s P ≥ ν − ε p e r f − ℓ q N − 4 = ν − o ( 1 ) . s_P \ge\nu-\varepsilon_{\mathrm{perf}}-\ell qN^{-4}=\nu-o(1). s P ≥ ν − ε perf − ℓ q N − 4 = ν − o ( 1 ) .
On the null distribution, a paired decoding that does not return ⊥ \perp ⊥ always equals its original outer bit. Acceptance therefore implies that the original outer instance has an ℓ \ell ℓ -subset summing to z ∗ z^* z ∗ , and thus
s Q ≤ ( N ℓ ) 2 q ≤ N − 3 = o ( 1 ) . s_Q \le\frac{\binom{N}{\ell}}{2^q} \le N^{-3}=o(1). s Q ≤ 2 q ( ℓ N ) ≤ N − 3 = o ( 1 ) .
The same elementary estimate used in the imperfect case gives
1 − τ ( s P , s Q ) ≥ s P 2 − s Q ≥ ν 2 − o ( 1 ) . 1-\tau(s_P,s_Q)\ge\frac{s_P}{2}-\sqrt{s_Q}\ge\frac{\nu}{2}-o(1). 1 − τ ( s P , s Q ) ≥ 2 s P − s Q ≥ 2 ν − o ( 1 ) .
The paired composition theorem therefore gives
T + 2 ℓ q N = Ω ν ( N r / ( r + 1 ) + ℓ / ( ℓ + 1 ) r ℓ ) . T+2\ell qN=\Omega_{\nu}\left(\frac{N^{r/(r+1)+\ell/(\ell+1)}}{\sqrt{r\ell}}\right). T + 2 ℓ q N = Ω ν ( r ℓ N r / ( r + 1 ) + ℓ / ( ℓ + 1 ) ) .
The verification cost is twice the cost in the imperfect case. Its ratio to the lower-bound scale is still O ( ( log N ) 4 / N 1 / 3 ) = o ( 1 ) O((\log N)^4/N^{1/3})=o(1) O (( log N ) 4 / N 1/3 ) = o ( 1 ) , so we can subtract it. This proves the claimed bound on T T T . □ \square □
Parameter choices
Near-quadratic separation
Theorem 8.1. There are two families of classical random oracle protocols:
a two-message protocol in which both parties output the same key with probability 1 − O ( N − 3 ) 1-O(N^{-3}) 1 − O ( N − 3 ) ; and
a three-message protocol that always outputs the same key at both parties, with Pr [ K = 0 ] = O ( N − 3 ) \Pr[K=0]=O(N^{-3}) Pr [ K = 0 ] = O ( N − 3 ) .
Both have honest query complexity
O ( N ( log N ) 3 ( log log N ) 2 ) = O ~ ( N ) , O\left(\frac{N(\log N)^3}{(\log\log N)^2}\right)=\widetilde{O}(N), O ( ( log log N ) 2 N ( log N ) 3 ) = O ( N ) ,
and every quantum eavesdropper recovering Bob’s key with constant probability must make at least
Ω ν ( N 2 log log N ( log N ) 5 ) = Ω ~ ν ( N 2 ) (55) \Omega_{\nu}\left(\frac{N^2 \log\log N}{(\log N)^5}\right)=\widetilde{\Omega}_{\nu}(N^2) \tag*{(55)} Ω ν ( ( log N ) 5 N 2 log log N ) = Ω ν ( N 2 ) (55)
queries. In terms of the honest query budget H H H , the lower bound is Ω ~ ν ( H 2 ) \widetilde{\Omega}_{\nu}(H^2) Ω ν ( H 2 ) .
Proof. For all sufficiently large N N N , set
k = ⌊ log N 2 log log N ⌋ . k=\left\lfloor\frac{\log N}{2\log\log N}\right\rfloor. k = ⌊ 2 log log N log N ⌋ .
and take r = ℓ = k r=\ell=k r = ℓ = k . Write λ = log N \lambda=\log N λ = log N and h = log log N h=\log\log N h = log log N . The floor in the definition of k k k gives k + 1 = λ / ( 2 h ) + θ k+1=\lambda/(2h)+\theta k + 1 = λ / ( 2 h ) + θ for some 0 < θ ≤ 1 0<\theta\leq1 0 < θ ≤ 1 . Therefore
λ k + 1 = λ λ / ( 2 h ) + θ = 2 h 1 + 2 h θ / λ = 2 h + O ( h 2 / λ ) . \frac{\lambda}{k+1}=\frac{\lambda}{\lambda/(2h)+\theta}
=\frac{2h}{1+2h\theta/\lambda}
=2h+O(h^2/\lambda). k + 1 λ = λ / ( 2 h ) + θ λ = 1 + 2 h θ / λ 2 h = 2 h + O ( h 2 / λ ) .
Since h 2 / λ → 0 h^2/\lambda\to0 h 2 / λ → 0 , this proves
λ k + 1 = 2 h + o ( 1 ) . (56) \frac{\lambda}{k+1}=2h+o(1). \tag*{(56)} k + 1 λ = 2 h + o ( 1 ) . (56)
Therefore,
k 2 N − 1 / ( k + 1 ) ≤ λ 2 4 h 2 exp ( − λ k + 1 ) = e o ( 1 ) 4 h 2 < 1. k^2N^{-1/(k+1)}\leq\frac{\lambda^2}{4h^2}\exp\left(-\frac{\lambda}{k+1}\right)=\frac{e^{o(1)}}{4h^2}<1. k 2 N − 1/ ( k + 1 ) ≤ 4 h 2 λ 2 exp ( − k + 1 λ ) = 4 h 2 e o ( 1 ) < 1.
Thus the assumptions of both Theorem 6.3 and Theorem 7.2 hold. Each theorem gives the lower bound
Ω ν ( N 2 k / ( k + 1 ) k ) = Ω ν ( N 2 k exp ( − 2 λ k + 1 ) ) = Ω ν ( N 2 h λ 5 ) . \Omega_{\nu}\left(\frac{N^{2k/(k+1)}}{k}\right)=\Omega_{\nu}\left(\frac{N^2}{k}\exp\left(-\frac{2\lambda}{k+1}\right)\right)
=\Omega_{\nu}\left(\frac{N^2h}{\lambda^5}\right). Ω ν ( k N 2 k / ( k + 1 ) ) = Ω ν ( k N 2 exp ( − k + 1 2 λ ) ) = Ω ν ( λ 5 N 2 h ) .
where for the last equality, we use the following substitutions
exp ( − 2 λ k + 1 ) = e − 4 h + o ( 1 ) = λ − 4 e o ( 1 ) , 1 k = 2 h λ ( 1 + o ( 1 ) ) . \exp\left(-\frac{2\lambda}{k+1}\right)=e^{-4h+o(1)}=\lambda^{-4}e^{o(1)},\qquad\frac{1}{k}=\frac{2h}{\lambda}(1+o(1)). exp ( − k + 1 2 λ ) = e − 4 h + o ( 1 ) = λ − 4 e o ( 1 ) , k 1 = λ 2 h ( 1 + o ( 1 )) .
Multiplying gives ( 2 + o ( 1 ) ) N 2 h / λ 5 (2+o(1))N^2h/\lambda^5 ( 2 + o ( 1 )) N 2 h / λ 5 , which proves (55). By Propositions 6.2 and 7.1 , the honest query complexity in either case is
O ( k N q ) = O ( N k 2 log N ) = O ( N ( log N ) 3 ( log log N ) 2 ) . O(kNq)=O(Nk^2\log N)=O\left(\frac{N(\log N)^3}{(\log\log N)^2}\right). O ( k N q ) = O ( N k 2 log N ) = O ( ( log log N ) 2 N ( log N ) 3 ) .
The imperfect protocol’s agreement error and the perfect protocol’s probability of outputting 0 are each at most
k q N − 4 + N − 3 = O ( N − 3 ) , kqN^{-4}+N^{-3}=O(N^{-3}), k q N − 4 + N − 3 = O ( N − 3 ) ,
because k q = O ( ( log N ) 3 / ( log log N ) 2 ) = o ( N ) kq=O((\log N)^3/(\log\log N)^2)=o(N) k q = O (( log N ) 3 / ( log log N ) 2 ) = o ( N ) . For these implementations, the honest budget satisfies H = Θ ( N k 2 log N ) = N polylog N H=\Theta(Nk^2\log N)=N\operatorname{polylog}N H = Θ ( N k 2 log N ) = N polylog N and log H = Θ ( log N ) \log H=\Theta(\log N) log H = Θ ( log N ) . Replacing N N N by H H H therefore changes only polylogarithmic factors, so Ω ~ ( N 2 ) = Ω ~ ( H 2 ) \widetilde{\Omega}(N^2)=\widetilde{\Omega}(H^2) Ω ( N 2 ) = Ω ( H 2 ) .
Remark 8.2. For every fixed ε > 0 \varepsilon>0 ε > 0 , one may instead take a sufficiently large constant k k k and recover the simpler lower bound Ω ε ( N 2 − ε ) \Omega_{\varepsilon}(N^{2-\varepsilon}) Ω ε ( N 2 − ε ) with O ε ( N log N ) O_{\varepsilon}(N\log N) O ε ( N log N ) honest queries. Theorem 8.1 is slightly stronger because it uses one parameter rule and gives the quadratic exponent up to polylogarithmic factors.
Efficient implementation with public targets
Theorem 8.3. For every integer N ≥ 64 N \ge64 N ≥ 64 , write q = ⌈ 5 log 2 N ⌉ q = \lceil5\log_2 N\rceil q = ⌈ 5 log 2 N ⌉ , s = ⌈ 6 log 2 N ⌉ s = \lceil6\log_2 N\rceil s = ⌈ 6 log 2 N ⌉ . There is a two-message classical random oracle protocol with agreement probability at least 1 − q / N 4 − 1 / ( 2 N 3 ) 1-q/N^4-1/(2N^3) 1 − q / N 4 − 1/ ( 2 N 3 ) , where each honest party makes at most 2 N q 2Nq 2 N q oracle queries. Their combined running time is O ( N ( log N ) 2 ) O(N(\log N)^2) O ( N ( log N ) 2 ) . The communication is at most N q s + q Nqs+q N q s + q bits, and for every constant ν > 0 \nu> 0 ν > 0 , any passive quantum eavesdropper recovering Bob’s key with probability at least ν \nu ν must make Ω ν ( N 4 / 3 ) \Omega_\nu(N^{4/3}) Ω ν ( N 4/3 ) queries in the worst case.
Proof. Take r = ℓ = 2 r=\ell=2 r = ℓ = 2 and use Π 2 , 2 i m p \Pi_{2,2}^{\mathrm{imp}} Π 2 , 2 imp , replacing the mask for each block by one public target.
Encoding and conditional distributions. Each block uses disjoint oracle addresses, with values Y j = H ( j ) ∈ F 2 s Y_j=H(j)\in\mathbb{F}_2^s Y j = H ( j ) ∈ F 2 s for j ∈ [ N ] j\in[N] j ∈ [ N ] . In this variant, no masks are used. To encode a bit, Alice publishes
zero: w ← Unif ( F 2 s ) , one: S ← Unif ( ( [ N ] 2 ) ) , w = ∑ j ∈ S Y j . \begin{aligned}
\text{zero:}\quad&w \leftarrow\operatorname{Unif}(\mathbb{F}_2^s),\\
\text{one:}\quad&S \leftarrow\operatorname{Unif}\left(\binom{[N]}{2}\right),\qquad w=\sum_{j\in S}Y_j.
\end{aligned} zero: one: w ← Unif ( F 2 s ) , S ← Unif ( ( 2 [ N ] ) ) , w = j ∈ S ∑ Y j .
Encoding zero makes no queries and encoding one makes two queries. Bob reads the block and decodes one exactly when two distinct positions sum to w w w . All other protocol steps are unchanged.
For each fixed S S S , its oracle sum is uniform. Thus the target is uniform in both modes, and for every u u u ,
zero: L ( Y ∣ w = u ) = Q 2 , N , one: L ( S , Y ∣ w = u ) = P 2 , N u . \begin{aligned}
\text{zero:}\quad&\mathcal{L}(Y\mid w=u)=Q_{2,N},\\
\text{one:}\quad&\mathcal{L}(S,Y\mid w=u)=P_{2,N}^{u}.
\end{aligned} zero: one: L ( Y ∣ w = u ) = Q 2 , N , L ( S , Y ∣ w = u ) = P 2 , N u .
Indeed, conditioning on a planted target u u u leaves S S S uniform. Given S S S and this target, Y Y Y is uniform subject to ∑ j ∈ S Y j = u \sum_{j\in S}Y_j=u ∑ j ∈ S Y j = u . Since blocks use independent randomness and disjoint oracle addresses, the public targets are mutually independent and uniform even when all encoded labels are fixed. Their joint distribution therefore does not depend on the encoded labels. Conditioned on the labels and targets, the blocks remain independent, with the distributions specified above.
Agreement and security. For every fixed target, a null block contains a matching pair with probability at most ( N 2 ) 2 − s \binom{N}{2}2^{-s} ( 2 N ) 2 − s . A planted block always contains one. The correctness argument of Proposition 6.2 therefore applies without change and gives agreement error at most
ε e f f : = ( N 2 ) ( 2 q 2 − s + 2 − q ) ≤ q N 4 + 1 2 N 3 . \varepsilon_{\mathrm{eff}}:=\binom{N}{2}(2q\,2^{-s}+2^{-q})\le\frac{q}{N^4}+\frac{1}{2N^3}. ε eff := ( 2 N ) ( 2 q 2 − s + 2 − q ) ≤ N 4 q + 2 N 3 1 .
The security proof also follows the earlier argument. After conditioning on all public targets, each inner block has its own fixed sum target. The norm, exact alignment, and query-filter bounds of Theorem 4.1 and Lemma 4.4 hold for every such target. Moreover, Lemma 3.3 allows a different inner operator in each coordinate, and the distribution-vector calculation in Lemma 5.1 applies coordinate by coordinate. Since N ≥ 64 N\ge64 N ≥ 64 , the assumptions of these results hold. Thus the bound of Theorem 5.2 holds for these conditional distributions.
We can now repeat the real-to-ideal comparison and candidate verification from Theorem 6.3 , averaging over both the public-target vector and Bob’s ideal message. The decoding-error bound is unchanged for every target, so the same planted and null acceptance bounds apply, including the union bound over all blocks in the null experiment. Verification uses 2 q N 2qN 2 q N queries. Consequently, an eavesdropper with recovery probability at least ν \nu ν and worst-case query count T T T satisfies
T + 2 q N = Ω ν ( N 4 / 3 ) . T+2qN=\Omega_\nu(N^{4/3}). T + 2 q N = Ω ν ( N 4/3 ) .
Since q N = O ( N log N ) = o ( N 4 / 3 ) qN=O(N\log N)=o(N^{4/3}) q N = O ( N log N ) = o ( N 4/3 ) , this proves the security claim.
Honest costs. Alice makes at most 2 N q 2Nq 2 N q queries to prepare the encodings. Bob reads 2 q 2q 2 q blocks of N N N entries each. Alice sends N q Nq N q targets of s s s bits, and Bob sends one q q q -bit sum. Thus the communication is N q s + q Nqs+q N q s + q .
To decode a block, sort its values and search for the complement u + y u+y u + y of each value y y y . Keep multiplicities to require distinct positions when u = 0 u=0 u = 0 . Alice uses the same procedure on her outer labels to find the key and test uniqueness: count unordered matching pairs, stopping at two. For distinct complementary value classes of sizes c , c ′ c,c' c , c ′ , the number of pairs is c c ′ cc' c c ′ ; for a class paired with itself, it is ( c 2 ) \binom{c}{2} ( 2 c ) . Thus no list of all matching pairs is needed. Sorting, grouping equal values, and binary-searching their complements take O ( N log N ) O(N\log N) O ( N log N ) word operations per search. There are 2 q 2q 2 q inner searches and one outer search. Including preparation and communication, the total time is O ( N q log N ) = O ( N ( log N ) 2 ) O(Nq\log N)=O(N(\log N)^2) O ( N q log N ) = O ( N ( log N ) 2 ) word operations.