Technical overview
Fourier sampling with one query
The Fourier lower bound
Near-optimal randomness from Fourier sampling
The lower bound for Haar-random states
Near-optimal randomness for Haar-random states
Preliminaries
Notation and query algorithms
Min-entropy, fidelity, and purified distance
Dirichlet distributions
The lower bound for Fourier sampling
The recording representation
The score bound
Growth of the progress measure
The lower bound
The exact identity for one phase query
The lower bound for Haar-random states
Polynomials, patterns, and the level
Dirichlet energy and concentration
The score in terms of the level
Projection estimates for Dirichlet polynomials
The effect of one query on the level
Haar-random unitary access
The squaring algorithm
The algorithm
Moments of the two ensembles
The output distribution for a fixed stored set
The output distribution of the algorithm
The score of the output distribution
Heavy outputs
Certified randomness at the ideal score
Min-entropy from auxiliary vectors
Fourier sampling
Haar-random states
Tightness of the parameters
Proof of Theorem 1.2
Quantum Hadamard products
A lower bound for Hadamard squares of Haar-random states
Deferred proofs
Proofs for the Haar lower bound
Moments of the ideal distribution
Heavy outputs
Introduction
Sampling experiments [2 , 60 , 57 , 43 , 46 ] are the leading demonstrations of quantum computational advantage; surveys are given in [34 , 33 , 31 ] . In the random circuit sampling experiments [2 , 57 , 46 ] , a device receives a random circuit C C C on n n n qubits and is asked to return strings z ∈ { 0 , 1 } n z \in\{0,1\}^{n} z ∈ { 0 , 1 } n distributed according to the output distribution p ( z ) = ∣ ⟨ z ∣ C ∣ 0 n ⟩ ∣ 2 p(z) = \lvert\langle z\lvert C\lvert0^{n}\rangle\rvert^{2} p ( z ) = ∣⟨ z ∣ C ∣ 0 n ⟩ ∣ 2 of the circuit. The photonic experiments [60 , 43 ] instead perform Gaussian boson sampling. Since it is infeasible to check directly whether a few samples follow a distribution over N = 2 n N = 2^{n} N = 2 n outcomes, the random circuit samples are instead scored by the linear cross-entropy benchmark (XEB) [2 Supplementary Information, eq. (27)] , a linear version of cross-entropy benchmarking [19 ] : a classical computer computes the ideal probabilities of the returned strings z 1 , … , z k z_{1}, \ldots, z_{k} z 1 , … , z k and reports the average ( N / k ) ∑ i p ( z i ) (N/k)\sum_{i}p(z_{i}) ( N / k ) ∑ i p ( z i ) . We use the unshifted convention B = 1 + F X E B B = 1 + F_{\mathrm{XEB}} B = 1 + F XEB , where F X E B F_{\mathrm{XEB}} F XEB is the experimental XEB fidelity. Uniformly random strings have expected score 1 1 1 , because ∑ z p ( z ) = 1 \sum_{z}p(z) = 1 ∑ z p ( z ) = 1 , while an honest sampler has expected score N ∑ z p ( z ) 2 N\sum_{z}p(z)^{2} N ∑ z p ( z ) 2 , the ideal score, which is about 2 2 2 for random circuits. The experiment of [2 ] reported a score of about 1.002 1.002 1.002 , and there is complexity-theoretic evidence that efficient classical algorithms cannot score noticeably above 1 1 1 [6 ] .
A high score, however, does not imply that the device sampled from p p p . A device that knew p p p and always returned the most likely string would score far more than an honest sampler (for a Haar-random state, about ln N ≈ 42 \ln N \approx42 ln N ≈ 42 when n = 60 n = 60 n = 60 , compared with about 2 2 2 ), even though its output would be completely predictable. This gap between scoring well and sampling correctly leads to the question that motivates this work:
What does a high cross-entropy score certify about an untrusted quantum device?
We study this question for the application that has motivated much of the theory, namely certified randomness.
Generating random bits with quantum mechanics is straightforward, but convincing a skeptical user who does not trust the hardware is much harder. In Bell experiments, two devices receive independent uniform public inputs, chosen independently of their shared state with Eve, and cannot communicate during the round. If they win the CHSH game [23 ] with probability above the classical limit 3 / 4 3/4 3/4 , one party’s output bit contains certified entropy [26 , 50 ] , even conditioned on the inputs and an adversary who is entangled with the devices [56 , 45 ] . At Tsirelson’s bound cos 2 ( π / 8 ) ≈ 0.854 \cos^{2}(\pi/8) \approx0.854 cos 2 ( π /8 ) ≈ 0.854 , which is the largest winning probability of any quantum strategy [24 ] , either party’s output bit has one bit of min-entropy, even conditioned on the public inputs and Eve’s quantum register. The drawback of this approach is that the two devices must not communicate, a condition that a user who simply receives the bits cannot verify.
An alternative, proposed in [8 ] , is to certify randomness with a single device by reusing the sampling experiment. In this protocol a verifier sends challenge circuits, the device must answer quickly with samples (too quickly for a classical simulation to keep up), and the verifier later checks their XEB score. The adversary, whom we call Eve, may have built the device, may share entanglement with it, and may learn the circuits afterward. Even an ideal sample is not perfectly unpredictable to Eve: since she knows the circuit, she can guess its most likely output, which an honest sampler returns with probability about ( ln N ) / N (\ln N)/N ( ln N ) / N . Moreover, a device can fix its first O ( log n ) O(\log n) O ( log n ) output bits by resampling until its output starts with that many zeros, which changes its score only slightly (Proposition 7.14 analyzes a variant that uses amplitude amplification). Consequently, the most that one can hope to certify from a single sample is n − O ( log n ) n - O(\log n) n − O ( log n ) bits.
The guarantees proved so far remain well short of this limit. In the random oracle model, Aaronson and Hung [8 Theorem 7.15 and Corollary 7.16] show that a device making polynomially many queries with expected linear XEB score 1 + γ 1+\gamma 1 + γ , for a constant γ > 0 \gamma>0 γ > 0 , has a single-round output state close to one with about γ n \gamma n γ n bits of conditional von Neumann entropy, even against an entangled Eve. The same work asks whether, under a plausible hardness assumption, a single sample can be certified to carry the maximum of n − O ( log n ) n-O(\log n) n − O ( log n ) bits. For a list of strings whose empirical Fourier score is high, n / 40 n/40 n /40 bits of min-entropy for the whole list are certified in [12 ] against an adversary without quantum side information.
Before one can ask how much randomness a near-ideal score certifies, one must first know whether an efficient device can exceed the ideal score at all. The reason is that the score is linear in the device’s output distribution. If some efficient device scored 2 + ε 2+\varepsilon 2 + ε , then a new device could run it with probability 1 / ( 1 + ε ) 1/(1+\varepsilon) 1/ ( 1 + ε ) and otherwise output a fixed string known to Eve. The fixed string has expected score 1 1 1 , because its expected ideal probability is 1 / N 1/N 1/ N . This mixture has expected score exactly 2 2 2 , essentially the ideal score, yet Eve guesses its output with probability at least ε / ( 1 + ε ) \varepsilon/(1+\varepsilon) ε / ( 1 + ε ) , which equals 1 / 6 1/6 1/6 when ε = 0.2 \varepsilon=0.2 ε = 0.2 . Hence, a near-ideal score can certify nearly all of the randomness only if no efficient device exceeds the ideal score by a constant.
The question of how high an efficient quantum device can score was raised in [3 ] and studied in [37 ] under the name quantum supremacy Tsirelson inequality . In the analogy with the CHSH game, the conjectured classical limit 1 1 1 plays the role of 3 / 4 3/4 3/4 , and the question is whether the ideal score plays the role of cos 2 ( π / 8 ) \cos^2(\pi/8) cos 2 ( π /8 ) . The first answers were obtained in [37 ] , in the query model. For a Haar-random state, it was shown there that an expected score of 2 + ε 2+\varepsilon 2 + ε requires Ω ( ε 5 / 4 N 1 / 4 / log N ) \Omega(\varepsilon^{5/4}N^{1/4}/\log N) Ω ( ε 5/4 N 1/4 / log N ) queries, so that efficient algorithms cannot exceed the ideal score by 1 / poly ( n ) 1/\operatorname{poly}(n) 1/ poly ( n ) . The same work gave an algorithm that scores 2 + Ω ( 1 ) 2+\Omega(1) 2 + Ω ( 1 ) with O ( N 1 / 3 ) O(N^{1/3}) O ( N 1/3 ) queries and conjectured that N 1 / 3 N^{1/3} N 1/3 queries are necessary. For Fourier sampling, where the honest sampler scores about 3 3 3 , it was shown that no algorithm making a single query does better. The corresponding question for many queries is Problem 12 in [4 ] , which asks how many queries are needed to produce a list of Fourier samples whose empirical score is about 4 4 4 .
The query model and the expected score. We work in the query model developed in [37 ] . In this model the circuit is replaced by an oracle drawn once from a known ensemble. The algorithm may query the oracle in superposition, adaptively, and with controlled and inverse queries, and all other computation is free. Theorems in this model are unconditional. Honest sampling requires only one query, whereas exceeding its expected score may require many more. Our bounds quantify this separation. For an oracle with ideal distribution p p p , the expected score of an algorithm A \mathcal{A} A that outputs a string Z Z Z is
B ( A ) = N E [ p ( Z ) ] , (1) B(\mathcal{A})=N\mathbb{E}[p(Z)], \tag*{(1)} B ( A ) = N E [ p ( Z )] , (1)
where the expectation is over the oracle and the randomness of the algorithm. We consider the following two ensembles.
Fourier sampling. Here the oracle is a uniformly random function f : { 0 , 1 } n → { ± 1 } f:\{0,1\}^{n}\to\{\pm1\} f : { 0 , 1 } n → { ± 1 } , accessed through the value oracle ∣ x , b ⟩ ↦ ∣ x , b ⊕ ( 1 − f ( x ) ) / 2 ⟩ \lvert x,b\rangle\mapsto\lvert x,b\oplus(1-f(x))/2\rangle ∣ x , b ⟩ ↦ ∣ x , b ⊕ ( 1 − f ( x )) /2 ⟩ . A single query suffices to sample from a distribution determined by f f f : apply Hadamard gates to ∣ 0 n ⟩ \lvert0^{n}\rangle ∣ 0 n ⟩ , query the oracle with the target qubit in the state ∣ − ⟩ \lvert-\rangle ∣ − ⟩ , which turns the bit flip into the sign f ( x ) f(x) f ( x ) and so multiplies each ∣ x ⟩ \lvert x\rangle ∣ x ⟩ by f ( x ) f(x) f ( x ) , apply Hadamard gates again, and measure [5 ] . The outcome is z z z with probability
p f ( z ) = f ^ ( z ) 2 , f ^ ( z ) = 1 N ∑ x ∈ { 0 , 1 } n ( − 1 ) z ⋅ x f ( x ) , (2) p_f(z)=\widehat{f}(z)^2,\qquad\widehat{f}(z)=\frac{1}{N}\sum_{x\in\{0,1\}^{n}}(-1)^{z\cdot x}f(x), \tag*{(2)} p f ( z ) = f ( z ) 2 , f ( z ) = N 1 x ∈ { 0 , 1 } n ∑ ( − 1 ) z ⋅ x f ( x ) , (2)
and these probabilities sum to 1 1 1 by Parseval’s identity. Each N f ^ ( z ) \sqrt{N}\widehat{f}(z) N f ( z ) is a normalized sum of N N N independent random signs, and hence nearly a standard Gaussian, so the honest sampler scores its fourth moment, N E ∑ z p f ( z ) 2 = 3 − 2 / N N\mathbb{E}\sum_z p_f(z)^2=3-2/N N E ∑ z p f ( z ) 2 = 3 − 2/ N .
Haar-random states. Here the oracle hides a uniformly random unit vector ∣ ϕ ⟩ = ∑ z α z ∣ z ⟩ |\phi\rangle= \sum_z \alpha_z |z\rangle ∣ ϕ ⟩ = ∑ z α z ∣ z ⟩ in C N \mathbb{C}^N C N , and p ϕ ( z ) = ∣ α z ∣ 2 p_\phi(z) = |\alpha_z|^2 p ϕ ( z ) = ∣ α z ∣ 2 . The canonical state-preparation oracle O ϕ O_\phi O ϕ [9 ] swaps ∣ ϕ ⟩ |\phi\rangle ∣ ϕ ⟩ with a fixed marker state ∣ ⊥ ⟩ |\perp\rangle ∣ ⊥ ⟩ that is orthogonal to all basis states ∣ z ⟩ |z\rangle ∣ z ⟩ , and acts as the identity on the orthogonal complement of ∣ ϕ ⟩ |\phi\rangle ∣ ϕ ⟩ and ∣ ⊥ ⟩ |\perp\rangle ∣ ⊥ ⟩ . With Haar-random unitary access , the algorithm may instead apply, to any state, a Haar-random unitary U U U with U ∣ 0 n ⟩ = ∣ ϕ ⟩ U|0^n\rangle= |\phi\rangle U ∣ 0 n ⟩ = ∣ ϕ ⟩ , its inverse, and controlled versions of both, as it could if it held the circuit itself. This form of access is at least as strong, since O ϕ O_\phi O ϕ can be built from controlled applications of U U U and U † U^\dagger U † (Section 3.1), so lower bounds against it are more meaningful. The vector ( p ϕ ( z ) ) z (p_\phi(z))_z ( p ϕ ( z ) ) z is uniformly distributed on the probability simplex, so each N p ϕ ( z ) Np_\phi(z) N p ϕ ( z ) is nearly an exponential random variable, and the honest sampler scores its second moment, N E ∑ z p ϕ ( z ) 2 = 2 N / ( N + 1 ) N\mathbb{E}\sum_z p_\phi(z)^2 = 2N/(N+1) N E ∑ z p ϕ ( z ) 2 = 2 N / ( N + 1 ) .
Our results
Our results answer both questions in the query model, namely how high an efficient device can score and how much randomness a near-ideal score certifies, and the answers follow the CHSH analogy closely. For algorithms that make o ( N 1 / 3 ) o(N^{1/3}) o ( N 1/3 ) queries, the ideal score behaves like a Tsirelson bound: no such algorithm exceeds it by more than o ( 1 ) o(1) o ( 1 ) , while O ( N 1 / 3 ) O(N^{1/3}) O ( N 1/3 ) queries suffice to exceed it by a constant. Moreover, for Fourier sampling and for Haar-random states accessed through O ϕ O_\phi O ϕ , a device that makes polynomially many queries and comes within o ( 1 ) o(1) o ( 1 ) of the ideal score has n − O ( log n ) n-O(\log n) n − O ( log n ) bits of smooth min-entropy with smoothing o ( 1 ) o(1) o ( 1 ) , in analogy with the perfectly random bit at Tsirelson’s bound. Figure 1 and Table 1 summarize the first result.
Figure 1. Expected scores for a Haar-random state as a function of the number of queries, drawn schematically on a logarithmic scale. The solid curve illustrates the scaling form of the upper bound of Theorem 1.1 , and the dashed segments mark the scores of the honest sampler, 2 N / ( N + 1 ) ≈ 2 2N/(N+1) \approx2 2 N / ( N + 1 ) ≈ 2 with one query, and of the squaring algorithm of part 3 of Theorem 1.1 , 3 − o ( 1 ) 3-o(1) 3 − o ( 1 ) with O ( N 1 / 3 ) O(N^{1/3}) O ( N 1/3 ) queries; these are lower bounds on the best score, which is not determined beyond N 1 / 3 N^{1/3} N 1/3 queries. No algorithm exceeds 2 + o ( 1 ) 2+o(1) 2 + o ( 1 ) with o ( N 1 / 3 ) o(N^{1/3}) o ( N 1/3 ) queries; at N 1 / 4 N^{1/4} N 1/4 queries, where the previous lower bound stopped, the upper bound is within O ( N − 1 / 8 ) O(N^{-1/8}) O ( N − 1/8 ) of the ideal score, and the shaded range between N 1 / 4 N^{1/4} N 1/4 and N 1 / 3 N^{1/3} N 1/3 was left open by the previous bounds. For Fourier sampling the bounds have the same form, with the scores 2 and 3 replaced by 3 and 5. The uniform output, which makes no query, is drawn just left of q = 1 q=1 q = 1 , since a logarithmic axis has no zero. The axis extends to N 1 / 2 N^{1/2} N 1/2 queries, the number of measured copies at which a repeated outcome typically first appears.
Table 1. The number of queries needed to reach an expected score of 2 + ε 2+\varepsilon 2 + ε for a Haar-random state or 3 + ε 3+\varepsilon 3 + ε for Fourier sampling, where ε > 0 \varepsilon>0 ε > 0 is a fixed constant, and to sample the collision distribution within a fixed total variation error ν \nu ν (Corollary 1.3 ), for distributions over N = 2 n N=2^n N = 2 n outcomes. The upper bounds of this work come from the squaring algorithm and need ε < 1 \varepsilon<1 ε < 1 and ε < 2 \varepsilon<2 ε < 2 , respectively, while the previous Haar upper bound holds for the constant ε \varepsilon ε attained by the algorithm of [37 ] . The lower bounds hold for all 0 < ε ≤ 1 0<\varepsilon\leq1 0 < ε ≤ 1 and 0 < ε ≤ 4 0<\varepsilon\leq4 0 < ε ≤ 4 , respectively, and the admissible range of ν \nu ν is stated in Corollary 1.3 . The previous Fourier bound is that one query does not suffice [37 ] . For Haar-random states, every bound holds both for the canonical oracle O ϕ O_\phi O ϕ and for Haar-random unitary access, the lower bound in the latter case once N N N is large enough in terms of ε \varepsilon ε (Theorem 5.25 ).
Theorem 1.1 (Query complexity of exceeding the ideal score; informal). Let A \mathcal{A} A be a quantum algorithm that makes at most q q q queries.
For Fourier sampling, B ( A ) ≤ 3 + O ( q 3 / 2 / N + q 3 / N ) B(\mathcal{A}) \le3+O(q^{3/2}/\sqrt{N}+q^3/N) B ( A ) ≤ 3 + O ( q 3/2 / N + q 3 / N ) . In particular, an expected score of 3 + ε 3+\varepsilon 3 + ε , for 0 < ε ≤ 4 0<\varepsilon\le4 0 < ε ≤ 4 , requires q ≥ ( 3 ε / 16 ) 2 / 3 N 1 / 3 q\ge(3\varepsilon/16)^{2/3}N^{1/3} q ≥ ( 3 ε /16 ) 2/3 N 1/3 .
For a Haar-random state, B ( A ) ≤ 2 N / ( N + 1 ) + O ( q 3 / 2 / N + q 3 / N ) B(\mathcal{A})\leq2N/(N+1)+O(q^{3/2}/\sqrt{N}+q^3/N) B ( A ) ≤ 2 N / ( N + 1 ) + O ( q 3/2 / N + q 3 / N ) with the canonical oracle O ϕ O_\phi O ϕ , and under Haar-random unitary access the same bound holds with an additional term O ( q log N / N ) O(q\log N/\sqrt{N}) O ( q log N / N ) . Hence an expected score of 2 + ε 2+\varepsilon 2 + ε with 0 < ε ≤ 1 0<\varepsilon\leq1 0 < ε ≤ 1 requires Ω ( ε 2 / 3 N 1 / 3 ) \Omega(\varepsilon^{2/3}N^{1/3}) Ω ( ε 2/3 N 1/3 ) queries with the canonical oracle, and also with Haar-random unitary access once N N N is large enough in terms of ε \varepsilon ε .
A variant of the O ( N 1 / 3 ) O(N^{1/3}) O ( N 1/3 ) -query algorithm of [37 ] , which we call the squaring algorithm, makes O ( N 1 / 3 ) O(N^{1/3}) O ( N 1/3 ) queries and has expected score at least 5 − o ( 1 ) 5-o(1) 5 − o ( 1 ) for Fourier sampling and at least 3 − o ( 1 ) 3-o(1) 3 − o ( 1 ) for either form of Haar access.
Consequently, for every fixed b ∈ ( 3 , 5 ) b\in(3,5) b ∈ ( 3 , 5 ) for Fourier sampling, and every fixed b ∈ ( 2 , 3 ) b\in(2,3) b ∈ ( 2 , 3 ) for either form of Haar access, the query complexity of achieving B ( A ) ≥ b B(\mathcal{A})\geq b B ( A ) ≥ b is Θ ( N 1 / 3 ) \Theta(N^{1/3}) Θ ( N 1/3 ) , where the constant in the lower bound depends on b b b .
Thus the honest sampler, which makes a single query, remains optimal up to o ( 1 ) o(1) o ( 1 ) until an algorithm makes about N 1 / 3 N^{1/3} N 1/3 queries. For example, at N 1 / 4 N^{1/4} N 1/4 queries, a number for which the previous lower bound still allows a constant advantage, the score stays within O ( N − 1 / 8 ) O(N^{-1/8}) O ( N − 1/8 ) of the ideal score, and an expected Fourier score of 4 4 4 requires more than 0.32 N 1 / 3 0.32N^{1/3} 0.32 N 1/3 queries, which is more than 3 × 10 5 3\times10^5 3 × 1 0 5 for n = 60 n=60 n = 60 . For Haar-random states, the theorem confirms the conjecture of [37 ] , as well as the expectation stated there that the O ( N 1 / 3 ) O(N^{1/3}) O ( N 1/3 ) -query algorithm of that work can be made to score 3 − o ( 1 ) 3-o(1) 3 − o ( 1 ) ; we prove this for the variant described below. For Fourier sampling, it settles the expected-score version of Problem 12 mentioned in [4 ] . Outputting a uniformly random entry of a list uses no further queries, and the expected score of that entry is the expected empirical score of the list. If the empirical score is at least 3.9 3.9 3.9 with probability 0.9 0.9 0.9 , then, since rewards are nonnegative, this expected score is at least 0.9 ⋅ 3.9 > 3.5 0.9\cdot3.9>3.5 0.9 ⋅ 3.9 > 3.5 , so producing such a list takes more than 0.2 N 1 / 3 0.2N^{1/3} 0.2 N 1/3 queries. In the other direction, the empirical score of independent runs of the squaring algorithm exceeds any fixed score below 5 5 5 , or below 3 3 3 for Haar-random states, with high probability (Corollary 6.11 ).
The squaring algorithm explains where the exponent 1 / 3 1/3 1/3 comes from. It draws m m m ideal samples and stores the outcomes. The stored set has total probability of order m / N m/N m / N , and amplitude amplification [17 ] raises to nearly one the probability that one more ideal sample lies in it. This costs m + O ( N / m ) m + O(\sqrt{N/m}) m + O ( N / m ) queries, which is O ( N 1 / 3 ) O(N^{1/3}) O ( N 1/3 ) for m = N 1 / 3 m = N^{1/3} m = N 1/3 . Likely outcomes are stored more often, and the amplified sample, which is distributed according to p p p conditioned on lying in the stored set, favors them again. As a result, the output z z z has probability nearly proportional to p ( z ) 2 p(z)^2 p ( z ) 2 , which explains the name. A sampler whose output distribution is proportional to p ( z ) 2 p(z)^2 p ( z ) 2 scores N ∑ z p ( z ) 3 / ∑ z p ( z ) 2 N \sum_z p(z)^3 / \sum_z p(z)^2 N ∑ z p ( z ) 3 / ∑ z p ( z ) 2 , a ratio of consecutive moments, which is 15 / 3 = 5 15/3 = 5 15/3 = 5 for the nearly Gaussian Fourier coefficients and 6 / 2 = 3 6/2 = 3 6/2 = 3 for the nearly exponential Haar probabilities. To reach these scores, our variant runs a fixed number of amplification steps, tuned to the typical probability of the stored set, as suggested in [37 ] . The algorithm has the same structure as the quantum algorithm for finding collisions [18 ] , whose query complexity is also N 1 / 3 N^{1/3} N 1/3 [10 ] , but we do not know of a reduction between the two problems. Moreover, the gain in score does not come from a repeated outcome among the stored samples, which for m = N 1 / 3 m = N^{1/3} m = N 1/3 are distinct with high probability, but from the coincidence of the amplified sample with one of them.
The lower-bound framework. For Haar-random states, we first explain why earlier methods stopped at N 1 / 4 N^{1/4} N 1/4 . The argument of [37 ] first uses the simulation of [9 ] to replace queries by resource states of the form a ∣ ϕ ⟩ + b ∣ ⊥ ⟩ a|\phi\rangle+ b|\perp\rangle a ∣ ϕ ⟩ + b ∣ ⊥ ⟩ . Haar phase averaging then reduces the score analysis to ordinary copies of ∣ ϕ ⟩ |\phi\rangle ∣ ϕ ⟩ , with a copy count quadratic in q q q , up to accuracy-dependent and logarithmic factors. A constant advantage over the ideal score requires collisions among the measured copies, which occur at about N \sqrt{N} N copies. This yields the earlier N 1 / 4 N^{1/4} N 1/4 query lower bound, up to logarithmic factors. The reduction thus incurs a quadratic cost before any collision is counted. Avoiding this loss requires an argument about the queries themselves, whose effect on the state is coherent and leaves no classical record of what the algorithm has learned. Instead of simulating queries by copies, we therefore ask what the state of an algorithm must look like if it is to score above the honest sampler, and we track a progress measure that is zero for the honest sampler and grows, after t t t queries, by only O ( ( t + 1 ) / N ) O(\sqrt{(t+1)/N}) O ( ( t + 1 ) / N ) at the next query.
For Fourier sampling, we purify the random choice of function, as in the compressed oracle technique [Zha19]. In this representation, the basis states of the purifying register are indexed by subsets of { 0 , 1 } n \{0,1\}^n { 0 , 1 } n , which we call recorded sets. Each query changes a recorded set by at most one point. The number of recorded points is not itself a useful measure, since an algorithm can record many points without scoring above the honest sampler; what matters is how the points are arranged. In the honest sampler, the part of the state with output z z z records exactly one point in the Hadamard basis state ∣ χ z ⟩ = H ⊗ n ∣ z ⟩ = N − 1 / 2 ∑ x ( − 1 ) z ⋅ x ∣ x ⟩ | \chi_z \rangle= H^{\otimes n}|z\rangle= N^{-1/2} \sum_x (-1)^{z\cdot x}|x\rangle ∣ χ z ⟩ = H ⊗ n ∣ z ⟩ = N − 1/2 ∑ x ( − 1 ) z ⋅ x ∣ x ⟩ . To score more, an output branch must have a nonzero amplitude for removing a pair with the coefficients of its Hadamard basis state. Our measure is the norm of the coherent amplitudes for removing such pairs. Comparing pair removal before and after a query leaves one other recorded point to remove, with coefficient O ( 1 / N ) O(1/\sqrt{N}) O ( 1/ N ) (Section 2.2).
For Haar-random states, the natural analogue would count repeated amplitudes such as α z 2 \alpha_z^2 α z 2 or ∣ α z ∣ 2 |\alpha_z|^2 ∣ α z ∣ 2 . However, every term of the normalization ∑ z ∣ α z ∣ 2 = 1 \sum_z |\alpha_z|^2 = 1 ∑ z ∣ α z ∣ 2 = 1 repeats an amplitude, although the sum is a constant. We instead expand the state in orthogonal polynomials on the probability simplex, an expansion in which the normalization has degree zero. Each term has a nonnegative integer level that counts repeated amplitudes after this expansion. The progress measure λ \lambda λ is the square root of the average level, so it need not be an integer. To show that a query increases λ \lambda λ only slightly, we prove an exact identity for the orthogonal polynomials of the Dirichlet distribution, which describes how their degree changes when one more outcome is observed (Section 2.4).
Certified randomness at the ideal score. We now turn to the randomness that a near-ideal score certifies. Since the answer depends on what Eve may know and do, we first describe the experiment precisely. It models one sample from a round of the protocol of [8 ] , with the oracle in place of the challenge circuit.
The device and Eve share an arbitrary entangled state, of arbitrary finite dimension, independent of the freshly sampled oracle.
The oracle is drawn: a random function f f f , or a Haar-random state ∣ ϕ ⟩ |\phi\rangle ∣ ϕ ⟩ accessed through O ϕ O_\phi O ϕ . From this point on, the device and Eve do not communicate.
The device makes q q q queries, acting arbitrarily on its own registers and on its half of the shared state, and outputs a string Z Z Z .
Eve receives the complete classical description R R R of the oracle (the truth table of f f f , or the vector ϕ \phi ϕ ) and measures her register E E E , in a way that may depend on R R R , in order to guess Z Z Z .
No assumption is made about how the device works. The restriction on communication cannot be removed, since a device that sends Z Z Z to Eve certifies nothing, and step 4 gives Eve all the information that the device could have obtained from its queries. Without smoothing, the conditional min-entropy H min ( Z ∣ R E ) H_{\min}(Z \mid RE) H m i n ( Z ∣ R E ) equals − log 2 -\log_2 − log 2 of the best probability with which Eve can guess Z Z Z [38 ] . Its smooth version H min η ( Z ∣ R E ) H_{\min}^{\eta}(Z \mid RE) H m i n η ( Z ∣ R E ) is at least h h h if some normalized state within purified distance η \eta η of the actual joint state of R R R , Z Z Z , and E E E has conditional min-entropy at least h h h [54 ] . The purified distance is a fidelity-based distance that lies between the trace distance and the square root of twice the trace distance.1 Smooth min-entropy is the quantity needed for randomness extraction, since a seeded extractor that is secure against quantum side information turns such a Z Z Z into nearly h h h bits that are close to uniform even given Eve’s register [55 ] .
Theorem 1.2 (Certified randomness at the ideal score; informal). Let δ ≥ 0 \delta\ge0 δ ≥ 0 . Consider a device in this experiment that makes q ≥ 1 q \ge1 q ≥ 1 queries, and suppose that its expected score is at least 3 − 2 / N − δ 3 - 2/N - \delta 3 − 2/ N − δ for Fourier sampling, or at least 2 N / ( N + 1 ) − δ 2N/(N + 1) - \delta 2 N / ( N + 1 ) − δ for a Haar-random state accessed through O ϕ O_\phi O ϕ ; we call δ \delta δ the allowed deficit. Then there is an η = O ( δ + q 3 / 4 N − 1 / 4 ) \eta= O(\sqrt{\delta} + q^{3/4}N^{-1/4}) η = O ( δ + q 3/4 N − 1/4 ) such that, if η ≤ 1 / 2 \eta\le1/2 η ≤ 1/2 ,
H min η ( Z ∣ R E ) ≥ n − 4 log 2 q − log 2 n − O ( 1 ) for Fourier sampling , H min η ( Z ∣ R E ) ≥ n − 2 log 2 q − log 2 n − O ( 1 ) for Haar-random states . \begin{aligned}
H_{\min}^{\eta}(Z \mid RE) &\ge n - 4\log_2 q - \log_2 n - O(1) && \text{for Fourier sampling},\\
H_{\min}^{\eta}(Z \mid RE) &\ge n - 2\log_2 q - \log_2 n - O(1) && \text{for Haar-random states}.
\end{aligned} H m i n η ( Z ∣ R E ) H m i n η ( Z ∣ R E ) ≥ n − 4 log 2 q − log 2 n − O ( 1 ) ≥ n − 2 log 2 q − log 2 n − O ( 1 ) for Fourier sampling , for Haar-random states . The constants do not depend on the dimension of the state shared with Eve. In particular, if q ≤ n O ( 1 ) q \le n^{O(1)} q ≤ n O ( 1 ) and δ = o ( 1 ) \delta= o(1) δ = o ( 1 ) , the output has n − O ( log n ) n - O(\log n) n − O ( log n ) bits of smooth min-entropy with smoothing o ( 1 ) o(1) o ( 1 ) , and the smoothing is negligible if δ \delta δ is negligible.
In a state within purified distance η \eta η of the actual one, Eve guesses Z Z Z with probability at most 2 − n + O ( log n ) 2^{-n+O(\log n)} 2 − n + O ( l o g n ) , even though she knows the entire oracle and may hold an arbitrarily large quantum memory entangled with the device. More generally, a bound H min η ( Z ∣ R E ) ≥ h H_{\min}^{\eta}(Z \mid RE) \ge h H m i n η ( Z ∣ R E ) ≥ h implies that her guessing probability in the actual state is at most 2 − h + η 2^{-h} + \eta 2 − h + η , since trace distance is at most purified distance. For n = 60 n = 60 n = 60 , q = 100 q = 100 q = 100 , and δ = 0 \delta= 0 δ = 0 , the explicit bounds of Theorems 7.2 and 7.9 give at least 24 bits for Fourier sampling with η ≈ 0.00112 \eta\approx0.00112 η ≈ 0.00112 and at least 39 bits for Haar-random states with η ≈ 0.0201 \eta\approx0.0201 η ≈ 0.0201 , while an ideal Haar sample carries about 54.6 bits without smoothing.
The proof shows that, up to a total error η \eta η , the part of the device’s state with output z z z is K z ψ 0 K_z\psi_0 K z ψ 0 , where ψ 0 \psi_0 ψ 0 is the initial shared state and K z K_z K z is an operator that acts on the device alone and has norm at most poly ( q ) p ( z ˉ ) \operatorname{poly}(q)\sqrt{p(\bar{z})} poly ( q ) p ( z ˉ ) for every fixed oracle (Sections 2.3 and 2.5). No new progress measure is needed for this step: the structure comes from the terms that the proof of the score bound discards, and the remaining argument uses only the fact that a device with few queries changes slowly as the oracle changes. Since such operators do not act on Eve’s register, in this nearby state she guesses Z Z Z at most poly ( q ) \operatorname{poly}(q) poly ( q ) times as often as she could guess an ideal sample. The theorem is not restricted to deficits that tend to zero: for a constant deficit below a threshold it certifies the same number of bits, with a constant smoothing parameter of order δ \sqrt{\delta} δ .
Three terms in Theorem 1.2 cannot be removed. First, consider a device that outputs a fixed string known to Eve with probability μ \mu μ and otherwise runs the honest sampler (Proposition 7.13 ). For Fourier sampling its deficit is δ = 2 ( 1 − 1 / N ) μ \delta= 2(1 - 1/N)\mu δ = 2 ( 1 − 1/ N ) μ , but Eve guesses its output with probability at least μ \mu μ , and every state in which her guessing probability is small is at purified distance at least about μ \sqrt{\mu} μ from the actual one. Hence the term δ \sqrt{\delta} δ in η \eta η has the right order.
Second, some bound on the number of queries is necessary, as the squaring algorithm of part 3 of Theorem 1.1 shows. Running it with probability about 1 / 2 1/2 1/2 , and otherwise outputting a fixed string, uses O ( N 1 / 3 ) O(N^{1/3}) O ( N 1/3 ) queries and attains the ideal score, yet Eve guesses the output with probability about 1 / 2 1/2 1/2 . Correspondingly, the term q 3 / 4 N − 1 / 4 q^{3/4}N^{-1/4} q 3/4 N − 1/4 in η \eta η becomes a constant when q q q reaches about N 1 / 3 N^{1/3} N 1/3 . In Figure 2 (b), the first of these devices lies on the upper edge of the darker region, and the second is the cross on the ideal-score line; part (a) of the figure shows the corresponding picture for the CHSH game, in which the PR box plays the role of the squaring algorithm.
Figure 2. Two certification pictures, drawn schematically. (a) In the CHSH game, quantum strategies win with probability at most cos 2 ( π / 8 ) \cos^2(\pi/8) cos 2 ( π /8 ) [24 ] , and for each winning probability Eve’s probability of guessing one party’s output bit, conditioned on the public inputs and her quantum register, is at most the curve shown, which reaches 1 / 2 1/2 1/2 at Tsirelson’s bound. This follows from the local-output bound of [50 eq. (6)] by conditioning on Eve’s measurement outcome and using concavity. Mixing a deterministic strategy with the PR box [52 ] , a hypothetical device that respects no-signaling and wins with certainty, gives the dashed segment, which meets Tsirelson’s bound at a guessing probability of about 0.79. (b) The analogous picture for the XEB test with a Haar-random state accessed through O ϕ O_\phi O ϕ ; Eve’s guessing probability for the honest sampler, about ( ln N ) / N (\ln N)/N ( ln N ) / N , is drawn as 0. Mixtures of the uniform output, the honest sampler, and an output known to Eve make at most one query and fill the darker triangle; away from the ideal score, the exact region for polynomially many queries is not determined. With polynomially many queries no device scores more than o ( 1 ) o(1) o ( 1 ) above the ideal score (Theorem 1.1 ), and within o ( 1 ) o(1) o ( 1 ) of the ideal score the output has n − O ( log n ) n-O(\log n) n − O ( log n ) bits of smooth min-entropy with smoothing η = o ( 1 ) \eta=o(1) η = o ( 1 ) (Theorem 1.2 ). Her actual guessing probability is then at most 2 − n + O ( log n ) + η = o ( 1 ) 2^{-n+O(\log n)}+\eta=o(1) 2 − n + O ( l o g n ) + η = o ( 1 ) , so the region narrows to 0 at the ideal score as n n n grows. With O ( N 1 / 3 ) O(N^{1/3}) O ( N 1/3 ) queries the squaring algorithm plays the role of the PR box: mixing it with an output known to Eve attains the ideal score while Eve guesses with probability about 1 / 2 1/2 1/2 , which is the cross. For Fourier sampling the scores 2 and 3 become 3 and 5.
Third, neither loss, 2 log 2 q 2\log_2 q 2 log 2 q for Haar-random states or 4 log 2 q 4\log_2 q 4 log 2 q for Fourier sampling, can be reduced below 2 log 2 q − O ( 1 ) 2\log_2 q - O(1) 2 log 2 q − O ( 1 ) . Consider the device that makes q q q queries and uses amplitude amplification to raise the probability that one ideal sample lies in a fixed set of about N / q 2 N/q^2 N / q 2 strings (Proposition 7.14 ). It loses only O ( q − 2 + q 4 N − 1 / 2 ) O(q^{-2} + q^4N^{-1/2}) O ( q − 2 + q 4 N − 1/2 ) in score, but its output lies in this known set with probability at least 3 / 4 3/4 3/4 , so its smooth min-entropy is at most n − 2 log 2 q + O ( 1 ) n - 2\log_2 q + O(1) n − 2 log 2 q + O ( 1 ) for every smoothing parameter η ≤ 1 / 2 \eta\le1/2 η ≤ 1/2 . Thus the coefficient 2 of log 2 q \log_2 q log 2 q in the Haar bound cannot be lowered, the Haar bound is within log 2 n + O ( 1 ) \log_2 n + O(1) log 2 n + O ( 1 ) bits of this upper bound, and the correct coefficient of log 2 q \log_2 q log 2 q for Fourier sampling lies between 2 and 4.
At near-ideal scores, Theorem 1.2 answers the oracle version of the question raised in [8 ] , unconditionally and with n − O ( log n ) n - O(\log n) n − O ( log n ) bits, the most that can be certified. It goes beyond earlier results in three respects. First, it certifies smooth min-entropy for a single sample, which an extractor can use directly. Against an entangled Eve, the earlier single-round guarantee is about η n \eta n η n bits of von Neumann entropy in a nearby state ([8 ] , Theorem 7.15 and Corollary 7.16); the multi-round guarantee uses entropy accumulation ([27 ] ). For lists of Fourier samples without quantum side information, the earlier guarantee is n / 40 n/40 n /40 bits for the whole list ([12 ] ). Second, in our setting Eve learns the oracle itself. In the earlier model, the device queries C ′ = V C W C' = VCW C ′ = V C W , where V V V applies independent random phases and W W W is Haar-random on the subspace orthogonal to ∣ 0 n ⟩ |0^n\rangle ∣ 0 n ⟩ and fixes ∣ 0 n ⟩ |0^n\rangle ∣ 0 n ⟩ . These transformations preserve the output distribution of C C C . Eve learns C C C , while V V V and W W W remain secret; after this averaging, conditioning on C C C is equivalent to conditioning on its output distribution ([8 ] , Theorem 7.1). We have no corresponding result for an Eve who learns a full Haar-random unitary. Third, it covers Fourier sampling against an entangled Eve, which was previously analyzed only for devices that behave as the honest sampler ([8 ] ). In the other direction, the earlier results apply to any constant advantage over the score 1 of a uniformly random output and to full unitary access, and they include multi-round protocols with finite tests and, under computational assumptions, randomness expansion. The two sets of results are therefore complementary: the earlier ones certify a constant fraction of the randomness from any violation of the classical bound, and ours certify all but O ( log n ) O(\log n) O ( log n ) bits of it within o ( 1 ) o(1) o ( 1 ) of the ideal score.
Limitations of the randomness result. Theorem 1.2 concerns a single oracle experiment at nearly the ideal score, and several steps separate it from a deployed protocol. Current devices operate far from this regime: the experiment of [2 ] scored about 1.002, against an ideal score of about 2, whereas Theorem 1.2 needs a deficit small enough that η ≤ 1 / 2 \eta\le1/2 η ≤ 1/2 . For such devices, the guarantees of [8 ] are the relevant ones. All of our results are in the oracle model, which is the price of being unconditional. The theorem also assumes a bound on the expected score of the run whose output is certified, whereas a protocol observes the empirical score of finitely many samples, conditions on passing a test, and runs many rounds. In addition, the challenge comes from a truly random oracle rather than from a short seed, so we claim no randomness expansion. Finally, for Haar-random states we need the canonical oracle O ϕ O_\phi O ϕ rather than unitary access (Section 2.5).
The collision distribution, heavy outputs, and Hadamard products. The output distribution of the squaring algorithm is close to the collision distribution r p ( z ) = p ( z ) 2 / ∑ y p ( y ) 2 r_p(z)=p(z)^2/\sum_y p(y)^2 r p ( z ) = p ( z ) 2 / ∑ y p ( y ) 2 , that is, the distribution of the common value of two independent samples from p p p , conditioned on their being equal. The squaring algorithm samples it to within average total variation distance O ( N − 1 / 3 ) O(N^{-1/3}) O ( N − 1/3 ) (Theorem 6.6 ), where the total variation distance of two distributions a a a and b b b is TV ( a , b ) = ( 1 / 2 ) ∑ z ∣ a ( z ) − b ( z ) ∣ \operatorname{TV}(a,b)=(1/2)\sum_z \lvert a(z)-b(z)\rvert TV ( a , b ) = ( 1/2 ) ∑ z ∣ a ( z ) − b ( z )∣ .
A small error in total variation causes only a small loss in score, although the reward N p ( z ) Np(z) N p ( z ) of a single outcome can be as large as N N N . Indeed, the score that a sampler with output distribution a a a loses relative to r p r_p r p comes from the outcomes to which a a a assigns less probability than r p r_p r p . This missing probability has total mass TV ( a , r p ) \operatorname{TV}(a,r_p) TV ( a , r p ) and is at most r p ( z ) r_p(z) r p ( z ) at each outcome z z z , so by the Cauchy–Schwarz inequality a sampler with E TV ( a , r p ) ≤ ν \mathbb{E}\operatorname{TV}(a,r_p)\le\nu E TV ( a , r p ) ≤ ν loses only O ( ν ) O(\sqrt{\nu}) O ( ν ) on average over the oracle. More precisely, it scores at least 5 − 35 ν − o ( 1 ) 5-\sqrt{35\nu}-o(1) 5 − 35 ν − o ( 1 ) for Fourier sampling and 3 − 12 ν − o ( 1 ) 3-\sqrt{12\nu}-o(1) 3 − 12 ν − o ( 1 ) for Haar-random states, where 5 and 3 are the scores of r p r_p r p , and Theorem 1.1 then gives the following.
Corollary 1.3 (Sampling the collision distribution). For every fixed 0 < ν < 4 / 35 0<\nu<4/35 0 < ν < 4/35 for Fourier sampling, and every fixed 0 < ν < 1 / 12 0<\nu<1/12 0 < ν < 1/12 for either form of Haar access, every algorithm with no supplied copies whose output distribution a a a satisfies E TV ( a , r p ) ≤ ν \mathbb{E}\operatorname{TV}(a,r_p)\le\nu E TV ( a , r p ) ≤ ν makes Ω ( N 1 / 3 ) \Omega(N^{1/3}) Ω ( N 1/3 ) queries, while the squaring algorithm makes O ( N 1 / 3 ) O(N^{1/3}) O ( N 1/3 ) queries and has E TV ( a , r p ) = O ( N − 1 / 3 ) \mathbb{E}\operatorname{TV}(a,r_p)=O(N^{-1/3}) E TV ( a , r p ) = O ( N − 1/3 ) .
The collision distribution also gives a tight bound for heavy output generation [5 ] . For Haar-random states, honest sampling produces outcomes above the median with limiting probability ( 1 + ln 2 ) / 2 (1+\ln2)/2 ( 1 + ln 2 ) /2 , while the squaring algorithm attains ( 2 + 2 ln 2 + ( ln 2 ) 2 ) / 4 (2+2\ln2+(\ln2)^2)/4 ( 2 + 2 ln 2 + ( ln 2 ) 2 ) /4 . Every fixed target strictly between these values has query complexity Θ ( N 1 / 3 ) \Theta(N^{1/3}) Θ ( N 1/3 ) under either form of Haar access without supplied copies (Section 6.7 and Theorem 6.12 ). This holds for both the empirical median and the fixed median of the marginal probability law, with probability averaged over the oracle and the algorithm’s randomness. Honest sampling already exceeds the original 2/3 heavy-output threshold; the result concerns a fixed improvement over its heavy probability.
If the m m m samples are kept coherent rather than measured, the same idea can be used to prepare the quantum Hadamard product of two unknown states ∑ z α z ∣ z ⟩ \sum_z \alpha_z\lvert z\rangle ∑ z α z ∣ z ⟩ and ∑ z β z ∣ z ⟩ \sum_z \beta_z\lvert z\rangle ∑ z β z ∣ z ⟩ , that is, the normalized state with amplitudes proportional to α z β z \alpha_z\beta_z α z β z [32 , 35 ] . We analyze it when all amplitudes have magnitude N − 1 / 2 N^{-1/2} N − 1/2 . In that case the algorithm keeps its m m m stored samples of the first state in superposition, amplifies the component in which a fresh sample of the second state agrees with one of them, and then erases the agreeing stored register by a reversible computation instead of measuring it. The result is within trace distance O ( N − 1 / 6 ) O(N^{-1/6}) O ( N − 1/6 ) of the Hadamard product after O ( N 1 / 3 ) O(N^{1/3}) O ( N 1/3 ) queries (Theorem 8.1 ), whereas amplifying the agreement of one copy of each state uses about N \sqrt{N} N queries. For Haar-random inputs we have only a lower bound: since measuring the Hadamard product of ∣ ϕ ⟩ \lvert\phi\rangle ∣ ϕ ⟩ with itself samples r p r_p r p , preparing it to within average trace distance below 1 / 12 1/12 1/12 requires Ω ( N 1 / 3 ) \Omega(N^{1/3}) Ω ( N 1/3 ) queries (Proposition 8.2 ).
Related work
The complexity-theoretic case for quantum sampling advantage was made in [1 , 20 , 21 , 16 , 44 ] , and foundations for heavy-output tasks related to XEB, including Fourier sampling as a black-box problem, were developed in [5 ] . Fourier sampling with a function of the form ( − 1 ) g ( x ) (-1)^{g(x)} ( − 1 ) g ( x ) , where g g g is a polynomial of degree 3 over F 2 \mathbb{F}_2 F 2 , is the sampling task of a class of instantaneous quantum polynomial-time (IQP) circuits [20 , 21 ] ; our results concern a uniformly random function and do not address this structured case. Classical algorithms are known to reach nontrivial XEB scores on shallow or noisy circuits [13 , 29 ] , noisy random circuit sampling admits a polynomial-time classical algorithm in the asymptotic regime [7 ] , and tensor-network methods have produced samples for the circuits of [2 ] with a comparable score [51 ] .
Besides protocols based on Bell tests and on sampling, certified randomness can also be obtained from cryptographic single-device protocols [14 , 47 ] , which are efficiently verifiable but require the device to maintain a superposition while it interacts with the verifier. There are also protocols in the random oracle model based on the proof of quantumness of [58 ] , such as [39 CKM+26] , whose min-entropy is conditioned on the oracle but not on quantum side information. Independent and concurrent work [36 ] certifies randomness at the optimal rate in the quantum random oracle model. On the experimental side, a sampling-based protocol was run on a 56-qubit trapped-ion processor, certifying 71,313 bits of smooth min-entropy against a restricted class of adversaries and under the additional assumptions of that experiment [41 ] , and a subsequent experiment demonstrated randomness amplification [40 ] .
On the technical side, our Fourier analysis combines the polynomial method [11 ] with the purified random function of the compressed oracle technique [Zha19]. The generic bound on the size of the recorded set does not by itself control the score; we instead track coherent pair removal in the Fourier basis, as explained in Section 2.2. Path recording [42 ] plays a similar role for Haar-random unitaries, and a polynomial method for unitary oracles was developed in [53 ] .
Organization of the paper. Section 2 explains the main arguments, starting with the simplest case, and Section 3 fixes the model and the notation. Section 4 proves the Fourier lower bound and the exact one-query identity, and Section 5 proves the Haar lower bound, including the extension to Haar-random unitary access. Section 6 analyzes the squaring algorithm for both ensembles; it proves part 3 of Theorem 1.1 and Corollary 1.3 , and it shows that the empirical score of independent runs rarely falls below any fixed value smaller than its limit (Corollary 6.11 ). Section 7 proves Theorem 1.2 , gives a robust form of the exact privacy statement for one phase query (Proposition 7.8 ), and constructs the two devices that show which terms of the theorem are necessary (Propositions 7.13 and 7.14 ). Section 8 treats Hadamard products. Appendix § 17 collects the supporting Haar proofs, the moment calculations, and the proofs for supplied copies.
Acknowledgments and AI disclosure
This work was supported by the faculty startup grant of AM at Virginia Tech.
The authors conceived the high-level idea of the framework and developed it to obtain the result for Haar-random states, using Claude Opus 5 to discuss ideas, to create early drafts, and to write earlier versions of some sections. When prompted with these ideas, ChatGPT Astra 6.1 produced the main results for Fourier sampling and suggested certified randomness as an extension of the approach. All sections and results were subsequently revised with the help of both Claude Opus 5.5 and ChatGPT Sol 6.1, and the authors take full responsibility for the correctness of the results.
Technical overview
In this section we explain the main arguments behind our results and defer complete proofs to later sections. All of our lower bounds follow the same plan. We define a progress measure λ \lambda λ that is zero for the honest sampler, show that the score can exceed the ideal score by at most O ( λ + λ 2 ) O(\lambda+\lambda^2) O ( λ + λ 2 ) , and show that after t t t queries the next query increases λ \lambda λ by only O ( ( t + 1 ) / N ) O(\sqrt{(t+1)/N}) O ( ( t + 1 ) / N ) , so that λ = O ( q 3 / 2 / N ) \lambda=O(q^{3/2}/\sqrt{N}) λ = O ( q 3/2 / N ) after q q q queries. The randomness theorems are then obtained from the terms that the proof of the score bound discards. Both ensembles follow this plan and differ only in how each step is carried out (Figure 3 ). We begin with a single query to a random Boolean function, for which both the score and the privacy of an optimal device are given by exact identities, and then treat many queries, first for Fourier sampling and then for Haar-random states. The upper bound, the squaring algorithm, was described in § 9.1 ; its analysis in § 14 uses only amplitude amplification and moment estimates for the two ensembles. The body is organized by result rather than by ensemble: § 12 and § 13 prove the two lower bounds, § 14 analyzes the algorithm, and § 15 proves both randomness theorems.
Figure 3. The structure of the arguments of Section 2. Both lower bounds follow the top row, and both randomness theorems follow the bottom row, which starts from the terms that the proof of the score bound discards. The notes below the boxes indicate how each step is carried out for Fourier sampling and for Haar-random states.
Fourier sampling with one query
Consider first an algorithm that makes a single phase query ∣ x ⟩ ↦ f ( x ) ∣ x ⟩ |x\rangle\mapsto f(x)|x\rangle ∣ x ⟩ ↦ f ( x ) ∣ x ⟩ to an n n n -qubit address register, without control. Its final state is then linear in f f f , of the form Ψ ( f ) = ∑ x f ( x ) v x \Psi(f)=\sum_x f(x)v_x Ψ ( f ) = ∑ x f ( x ) v x for fixed vectors v x v_x v x , and the algorithm outputs z z z when a final measurement { Π z } \{\Pi_z\} { Π z } gives the outcome z z z . Since every f f f is a linear combination ∑ w f ^ ( w ) χ w \sum_w \widehat{f}(w)\chi_w ∑ w f ( w ) χ w of the characters χ w ( x ) = ( − 1 ) w ⋅ x \chi_w(x)=(-1)^{w\cdot x} χ w ( x ) = ( − 1 ) w ⋅ x , such an algorithm is determined by its behavior on single characters. On the input χ w \chi_w χ w , the honest sampler outputs w w w with certainty, which is the Bernstein–Vazirani algorithm [22 ] . For an arbitrary algorithm of this kind, let σ \sigma σ denote its probability of identifying a uniformly random w w w from one query to χ w \chi_w χ w . Its score on a random f f f is then given exactly by
B ( A ) = 1 − 2 N + 2 σ . (3) B(\mathcal{A})=1-\frac{2}{N}+2\sigma. \tag*{(3)} B ( A ) = 1 − N 2 + 2 σ . (3)
For example, an algorithm that ignores the oracle has σ = 1 / N \sigma=1/N σ = 1/ N and scores 1, while the honest sampler has σ = 1 \sigma=1 σ = 1 . The proof of (3) is elementary. The score is ∑ z E f [ N p f ( z ) ∥ Π z Ψ ( f ) ∥ 2 ] \sum_z\mathbb{E}_f[Np_f(z)\lVert\Pi_z\Psi(f)\rVert^2] ∑ z E f [ N p f ( z ) ∥ Π z Ψ ( f ) ∥ 2 ] , and both factors are quadratic in f f f : the reward and the probability of the output z z z are
N p f ( z ) = N f ^ ( z ) 2 = 1 N ∑ x , y χ z ( x ) χ z ( y ) f ( x ) f ( y ) , Np_f(z)=N\widehat{f}(z)^2=\frac{1}{N}\sum_{x,y}\chi_z(x)\chi_z(y)f(x)f(y), N p f ( z ) = N f ( z ) 2 = N 1 x , y ∑ χ z ( x ) χ z ( y ) f ( x ) f ( y ) ,
∥ Π z Ψ ( f ) ∥ 2 = ∑ x ′ , y ′ f ( x ′ ) f ( y ′ ) ⟨ v x ′ , Π z v y ′ ⟩ . \lVert\Pi_z\Psi(f)\rVert^2=\sum_{x',y'}f(x')f(y')\langle v_{x'},\Pi_zv_{y'}\rangle. ∥ Π z Ψ ( f ) ∥ 2 = x ′ , y ′ ∑ f ( x ′ ) f ( y ′ ) ⟨ v x ′ , Π z v y ′ ⟩ .
Each summand is therefore an average of a product of four values of f f f , which vanishes unless the four points match in pairs. Matching x = y x=y x = y and x ′ = y ′ x'=y' x ′ = y ′ contributes ∑ z E f ∥ Π z Ψ ( f ) ∥ 2 = 1 \sum_z\mathbb{E}_f\lVert\Pi_z\Psi(f)\rVert^2=1 ∑ z E f ∥ Π z Ψ ( f ) ∥ 2 = 1 ; each of the two ways of matching across the factors, such as x = x ′ x=x' x = x ′ and y = y ′ y=y' y = y ′ , contributes N − 1 ∑ z ∥ Π z Ψ ( χ x ) ∥ 2 = σ N^{-1}\sum_z\lVert\Pi_z\Psi(\chi_x)\rVert^2=\sigma N − 1 ∑ z ∥ Π z Ψ ( χ x ) ∥ 2 = σ ; and the case in which all four points coincide, which the three matchings count three times instead of once, contributes − 2 / N -2/N − 2/ N .
Since σ ≤ 1 \sigma\leq1 σ ≤ 1 , an algorithm that makes one phase query scores at most $3-2/N$, with equality exactly when it identifies every character. This is the phase-query case of the one-query theorem of Kre21. The identity does not hold for a general value query; for example, for n = 1 n=1 n = 1 an algorithm that reads f ( 1 ) f(1) f ( 1 ) by a value query with the target qubit in ∣ 0 ⟩ |0\rangle ∣0 ⟩ identifies every character but scores only 1. The identity also shows what an optimal device looks like. Suppose that the device shares an arbitrary entangled state ∣ ψ 0 ⟩ |\psi_0\rangle ∣ ψ 0 ⟩ with Eve, as in Theorem 1.2 . If B ( A ) = 3 − 2 / N B(\mathcal{A})=3-2/N B ( A ) = 3 − 2/ N , then $\sigma=1, and by linearity the part of the state with output z z z is Π z Ψ ( f ) = f ^ ( z ) Ψ ( χ z ) \Pi_z\Psi(f)=\widehat{f}(z)\Psi(\chi_z) Π z Ψ ( f ) = f ( z ) Ψ ( χ z ) . On the fixed input χ z \chi_z χ z the device applies a fixed unitary to its own registers, which leaves the reduced state ρ E \rho_E ρ E of Eve unchanged. Hence, if ρ z f \rho_z^f ρ z f denotes Eve’s subnormalized reduced state on the output-z z z branch Π z Ψ ( f ) \Pi_z\Psi(f) Π z Ψ ( f ) , whose trace is the probability of the output z z z , then
ρ z f = p f ( z ) ρ E (4) \rho_z^f=p_f(z)\rho_E \tag*{(4)} ρ z f = p f ( z ) ρ E (4)
for every f f f and z z z .
Thus the output is an exact sample from p f p_f p f and is independent of Eve’s register, even given f f f . Our main theorems are robust versions of (3) and (4) for algorithms that make many queries; for a single phase query, a robust form of (4) itself is given in Proposition 7.8.
The Fourier lower bound
With many queries there is no classical record of what the algorithm has learned, since it queries in superposition and a later query can undo an earlier one. We therefore purify the random function, as in the compressed oracle technique [Zha19]. This makes the pairing argument of Section 2.1 systematic: a product of values of f f f has nonzero mean only if every point occurs in it an even number of times, and the purifying register records, in superposition, the set of points that occur an odd number of times. This purifying register, from which each query reads the value f ( x ) f(x) f ( x ) , starts in the uniform superposition over all functions f f f . Its Fourier basis consists of the vectors
∣ S ⟩ = 2 − N / 2 ∑ f ( ∏ x ∈ S f ( x ) ) ∣ f ⟩ , |S\rangle=2^{-N/2}\sum_f\left(\prod_{x\in S}f(x)\right)|f\rangle, ∣ S ⟩ = 2 − N /2 f ∑ ( x ∈ S ∏ f ( x ) ) ∣ f ⟩ ,
indexed by the sets S ⊆ { 0 , 1 } n S\subseteq\{0,1\}^n S ⊆ { 0 , 1 } n , and multiplying by f ( x ) f(x) f ( x ) maps ∣ S ⟩ |S\rangle ∣ S ⟩ to ∣ S △ { x } ⟩ |S\triangle\{x\}\rangle ∣ S △ { x }⟩ . A query to the address x x x (on the part of the state where the target qubit is ∣ − ⟩ |-\rangle ∣ − ⟩ ) therefore adds x x x to the recorded set S S S if it is absent and removes it if it is present. Consequently, after t t t queries the joint state has the form ∑ ∣ S ∣ ≤ t ∣ S ⟩ ⊗ ∣ Ψ S ⟩ \sum_{|S|\leq t}|S\rangle\otimes|\Psi_S\rangle ∑ ∣ S ∣ ≤ t ∣ S ⟩ ⊗ ∣ Ψ S ⟩ , where the vectors ∣ Ψ S ⟩ |\Psi_S\rangle ∣ Ψ S ⟩ are the Fourier coefficients of the state of the algorithm, viewed as a polynomial in f f f as in the polynomial method [11 ] . We write Ψ \Psi Ψ for the final joint state and Ψ z = Π z Ψ \Psi_z=\Pi_z\Psi Ψ z = Π z Ψ for its output-z z z branch.
The score in terms of recorded points. Let a x a_x a x be the operator that removes the point x x x from the recorded set, and maps to zero the states in which x x x is not recorded, so that multiplication by f ( x ) f(x) f ( x ) acts on the register as a x + a x † a_x+a_x^\dagger a x + a x † . The reward of the output z z z is N f ^ ( z ) 2 N\widehat{f}(z)^2 N f ( z ) 2 , and the normalized Fourier coefficient N f ^ ( z ) = N − 1 / 2 ∑ x χ z ( x ) f ( x ) \sqrt{N}\widehat{f}(z)=N^{-1/2}\sum_x\chi_z(x)f(x) N f ( z ) = N − 1/2 ∑ x χ z ( x ) f ( x ) acts as b z + b z † b_z+b_z^\dagger b z + b z † , where the operator b z = N − 1 / 2 ∑ x χ z ( x ) a x b_z = N^{-1/2} \sum_x \chi_z(x) a_x b z = N − 1/2 ∑ x χ z ( x ) a x removes one recorded point with the amplitudes of the Hadamard basis state ∣ χ z ⟩ = H ⊗ n ∣ z ⟩ = N − 1 / 2 ∑ x χ z ( x ) ∣ x ⟩ |\chi_z\rangle= H^{\otimes n}|z\rangle= N^{-1/2} \sum_x \chi_z(x)|x\rangle ∣ χ z ⟩ = H ⊗ n ∣ z ⟩ = N − 1/2 ∑ x χ z ( x ) ∣ x ⟩ . Since the squared norm of a joint state is the average over f f f of the squared norm of the algorithm’s state, the squared norm of N f ^ ( z ) Ψ z \sqrt{N}\,\widehat{f}(z)\Psi_z N f ( z ) Ψ z is E f N f ^ ( z ) 2 ∥ Ψ z ( f ) ∥ 2 \mathbb{E}_f\,N\widehat{f}(z)^2\|\Psi_z(f)\|^2 E f N f ( z ) 2 ∥ Ψ z ( f ) ∥ 2 , the contribution of the output z z z to the score. Hence B ( A ) = ∑ z ∥ ( b z + b z † ) Ψ z ∥ 2 B(\mathcal{A}) = \sum_z \|(b_z+b_z^\dagger)\Psi_z\|^2 B ( A ) = ∑ z ∥ ( b z + b z † ) Ψ z ∥ 2 , and expanding the square gives
B ( A ) = 1 − 2 N E ∣ S ∣ + 2 ∑ z ∥ b z Ψ z ∥ 2 + 2 Re ∑ z ⟨ Ψ z , b z 2 Ψ z ⟩ , (5) B(\mathcal{A}) = 1 - \frac{2}{N}\mathbb{E}|S| + 2\sum_z \|b_z\Psi_z\|^2 + 2\operatorname{Re}\sum_z \langle\Psi_z,b_z^2\Psi_z\rangle, \tag*{(5)} B ( A ) = 1 − N 2 E ∣ S ∣ + 2 z ∑ ∥ b z Ψ z ∥ 2 + 2 Re z ∑ ⟨ Ψ z , b z 2 Ψ z ⟩ , (5)
where E ∣ S ∣ \mathbb{E}|S| E ∣ S ∣ is the expected number of recorded points in the final state; the small correction − ( 2 / N ) E ∣ S ∣ -(2/N)\mathbb{E}|S| − ( 2/ N ) E ∣ S ∣ appears because a point cannot be recorded twice. For one phase query, exactly one point is recorded, so the interference term vanishes, the quantity ∑ z ∥ b z Ψ z ∥ 2 \sum_z\|b_z\Psi_z\|^2 ∑ z ∥ b z Ψ z ∥ 2 equals σ \sigma σ , and (5) reduces to (3). The honest sampler makes one query and then applies Hadamard gates, so each of its output-z z z branches holds exactly one recorded point, in the state ∣ χ z ⟩ |\chi_z\rangle ∣ χ z ⟩ , which gives the score 1 + 2 − 2 / N 1+2-2/N 1 + 2 − 2/ N .
Pairs of recorded points as the progress measure. The recorded set has size at most the number of queries, but a query can either add or remove a point, and the size alone does not control the score. We instead track the amplitudes with which b z 2 b_z^2 b z 2 removes two recorded points. The score bound below will show that exceeding the ideal score requires b z 2 Ψ z ≠ 0 b_z^2\Psi_z\ne0 b z 2 Ψ z = 0 for some branch. The relevant exact inequality is
∥ b z g ∥ 2 ≤ ∥ g ∥ 2 + ∥ b z 2 g ∥ 2 for every vector g , (6) \|b_zg\|^2 \le\|g\|^2+\|b_z^2g\|^2 \qquad\text{for every vector }g, \tag*{(6)} ∥ b z g ∥ 2 ≤ ∥ g ∥ 2 + ∥ b z 2 g ∥ 2 for every vector g , (6)
since the difference between the two sides equals ∥ ( b z † b z − I ) g ∥ 2 \|(b_z^\dagger b_z-I)g\|^2 ∥ ( b z † b z − I ) g ∥ 2 plus a nonnegative correction. In particular, ∥ b z g ∥ 2 > ∥ g ∥ 2 \|b_zg\|^2>\|g\|^2 ∥ b z g ∥ 2 > ∥ g ∥ 2 implies b z 2 g ≠ 0 b_z^2g\ne0 b z 2 g = 0 . Since ∑ z ∥ b z Ψ z ∥ 2 ≤ E ∣ S ∣ \sum_z\|b_z\Psi_z\|^2\le\mathbb{E}|S| ∑ z ∥ b z Ψ z ∥ 2 ≤ E ∣ S ∣ by the orthogonality of the characters, the negative term − ( 2 / N ) E ∣ S ∣ -(2/N)\mathbb{E}|S| − ( 2/ N ) E ∣ S ∣ in (5) is at most − ( 2 / N ) ∑ z ∥ b z Ψ z ∥ 2 -(2/N)\sum_z\|b_z\Psi_z\|^2 − ( 2/ N ) ∑ z ∥ b z Ψ z ∥ 2 , which turns the factor 2 in front of that sum into 2 ( 1 − 1 / N ) 2(1-1/N) 2 ( 1 − 1/ N ) . Applying (6) to each branch and bounding the interference term by the Cauchy–Schwarz inequality, we obtain
B ( A ) ≤ 3 − 2 N + 2 λ + 2 ( 1 − 1 N ) λ 2 , λ = ( ∑ z ∥ b z 2 Ψ z ∥ 2 ) 1 / 2 . (7) B(\mathcal{A}) \le3-\frac{2}{N}+2\lambda+2\left(1-\frac{1}{N}\right)\lambda^2,\qquad\lambda=\left(\sum_z\|b_z^2\Psi_z\|^2\right)^{1/2}. \tag*{(7)} B ( A ) ≤ 3 − N 2 + 2 λ + 2 ( 1 − N 1 ) λ 2 , λ = ( z ∑ ∥ b z 2 Ψ z ∥ 2 ) 1/2 . (7)
Our progress measure λ \lambda λ is the norm of the family ( b z 2 Ψ z ) z (b_z^2\Psi_z)_z ( b z 2 Ψ z ) z , whose members coherently remove pairs of recorded points with amplitudes determined by χ z \chi_z χ z . It is evaluated on the whole final state rather than branch by branch, because the projections Π z \Pi_z Π z belong to the final measurement, whereas λ \lambda λ has to be tracked after every query. Because λ \lambda λ vanishes as long as at most one point is recorded, every algorithm that makes one query, of any kind, scores at most 3 − 2 / N 3-2/N 3 − 2/ N ; this recovers the one-query bound mentioned in Section 2.1 in full generality.
Growth of the progress measure. It remains to show that pairs form slowly. Unitaries applied between queries do not act on the recording register, so only queries change λ \lambda λ . The difference between applying b z 2 b_z^2 b z 2 before and after a query that toggles x x x removes one other recorded point, with coefficient 2 χ z ( x ) / N 2\chi_z(x)/\sqrt{N} 2 χ z ( x ) / N and a sign determined by whether x x x is recorded. The factor 2 counts the two orders of removal. By Parseval’s identity, the squared norms after removing this other point sum to at most t t t over all Hadamard basis states. The address components of a query are orthogonal, so the total squared norm of this difference is at most 4 t / N 4t/N 4 t / N , summed over z z z and the addresses. The query itself preserves the norm of the existing family ( b z 2 Ψ ) z (b_z^2\Psi)_z ( b z 2 Ψ ) z , so the triangle inequality gives
λ t + 1 ≤ λ t + 2 t / N , hence λ ≤ 2 N ∑ t = 0 q − 1 t ≤ 4 3 ⋅ q 3 / 2 N . (8) \lambda_{t+1}\le\lambda_t+2\sqrt{t/N},\qquad\text{hence}\qquad\lambda\le\frac{2}{\sqrt{N}}\sum_{t=0}^{q-1}\sqrt{t}\le\frac{4}{3}\cdot\frac{q^{3/2}}{\sqrt{N}}. \tag*{(8)} λ t + 1 ≤ λ t + 2 t / N , hence λ ≤ N 2 t = 0 ∑ q − 1 t ≤ 3 4 ⋅ N q 3/2 . (8)
where λ t \lambda_t λ t denotes the progress after t t t queries. Together with (7) , this proves part 1 of Theorem 1.1 : a score of 3 + ϵ 3+\epsilon 3 + ϵ with 0 < ϵ ≤ 4 0<\epsilon\le4 0 < ϵ ≤ 4 forces λ ≥ ϵ / 4 \lambda\ge\epsilon/4 λ ≥ ϵ /4 , and hence q ≥ ( 3 ϵ / 16 ) 2 / 3 N 1 / 3 q\ge(3\epsilon/16)^{2/3}N^{1/3} q ≥ ( 3 ϵ /16 ) 2/3 N 1/3 . The squaring algorithm shows that the order of the growth bound is tight up to a constant factor: its score of nearly 5 5 5 forces λ ≥ ( 5 − 1 ) / 2 − o ( 1 ) \lambda\ge(\sqrt{5}-1)/2-o(1) λ ≥ ( 5 − 1 ) /2 − o ( 1 ) by (7) , while it uses O ( N 1 / 3 ) O(N^{1/3}) O ( N 1/3 ) queries.
Near-optimal randomness from Fourier sampling
We now explain why a near-ideal score makes the output unpredictable. In the warm-up, the ideal score forced each branch to be f ^ ( z ) \hat f(z) f ^ ( z ) times the state of the device on the fixed input χ z \chi_z χ z , and on a fixed input the device leaves Eve’s state unchanged. With many queries this holds only approximately, and we use two tools to make the argument robust. The first is the term ∥ ( b ^ z † b ^ z − I ) g ∥ 2 \|(\hat b_z^\dagger\hat b_z-I)g\|^2 ∥ ( b ^ z † b ^ z − I ) g ∥ 2 in the gap between the two sides of (6) , which the proof of the score bound discarded. The second is Markov’s inequality for polynomials [15 ] , which states that a polynomial of degree d d d that is bounded by 1 on [ − 1 , 1 ] [-1,1] [ − 1 , 1 ] has derivative at most d 2 d^2 d 2 there. We need only the case of the endpoint 1, and its proof extends without change to operator-valued polynomials (Lemma 7.5 ). Let the device and Eve share a pure state ∣ ψ 0 ⟩ |\psi_0\rangle ∣ ψ 0 ⟩ on registers A A A and E E E , let ρ E \rho_E ρ E be the reduced state of Eve, and let the device apply a unitary V f V_f V f to A A A , which is the form of every device after the purification of Lemma 3.2 . Suppose that B ( A ) ≥ 3 − 2 / N − δ B(\mathcal{A})\ge3-2/N-\delta B ( A ) ≥ 3 − 2/ N − δ .
The structure of the branches at a near-ideal score. The quantity ∥ ( b ^ z † b ^ z − I ) Ψ z ∥ 2 \|(\hat b_z^\dagger\hat b_z-I)\Psi_z\|^2 ∥ ( b ^ z † b ^ z − I ) Ψ z ∥ 2 measures how far a branch is from satisfying b ^ z † b ^ z Ψ z = Ψ z \hat b_z^\dagger\hat b_z\Psi_z=\Psi_z b ^ z † b ^ z Ψ z = Ψ z , the equation that holds for a branch with exactly one recorded point in the state ∣ χ z ⟩ |\chi_z\rangle ∣ χ z ⟩ , as for the honest sampler. If we keep this quantity in the proof of (7) , a score deficit δ \delta δ and a small progress measure force
∑ z ∥ ( b ^ z † b ^ z − I ) Ψ z ∥ 2 ≤ δ 2 − 2 / N + O ( λ + λ 2 ) . \sum_z \|(\hat b_z^\dagger\hat b_z-I)\Psi_z\|^2 \le\frac{\delta}{2-2/N}+O(\lambda+\lambda^2). z ∑ ∥ ( b ^ z † b ^ z − I ) Ψ z ∥ 2 ≤ 2 − 2/ N δ + O ( λ + λ 2 ) .
Consequently, the branches are close to the vectors G z = ( b z + b z † ) b z Ψ z G_z=(b_z+b_z^\dagger)b_z\Psi_z G z = ( b z + b z † ) b z Ψ z , obtained from Ψ z \Psi_z Ψ z by removing one recorded point with the amplitudes of ∣ χ z ⟩ |\chi_z\rangle ∣ χ z ⟩ and multiplying by N f ^ ( z ) \sqrt{N}\hat f(z) N f ^ ( z ) ; indeed, Ψ z − G z = ( I − b z † b z ) Ψ z − b z 2 Ψ z \Psi_z-G_z=(I-b_z^\dagger b_z)\Psi_z-b_z^2\Psi_z Ψ z − G z = ( I − b z † b z ) Ψ z − b z 2 Ψ z , and both terms are small. In total,
( ∑ z ∥ Ψ z − G z ∥ 2 ) 1 / 2 ≤ η , η = δ + O ( q 3 / 4 N − 1 / 4 ) for q ≤ N 1 / 3 . (9) \left(\sum_z\|\Psi_z-G_z\|^2\right)^{1/2}\le\eta,\qquad\eta=\sqrt{\delta}+O(q^{3/4}N^{-1/4})\quad\text{for }q\le N^{1/3}. \tag*{(9)} ( z ∑ ∥ Ψ z − G z ∥ 2 ) 1/2 ≤ η , η = δ + O ( q 3/4 N − 1/4 ) for q ≤ N 1/3 . (9)
The rate of change of a q q q -query device. For a fixed f f f , removing a recorded point with the amplitudes of ∣ χ z ⟩ |\chi_z\rangle ∣ χ z ⟩ corresponds to differentiating the unique multilinear extension of the state in the normalized direction χ z / N \chi_z/\sqrt{N} χ z / N . All derivatives below are taken in the unique multilinear extension of f ↦ V f f\mapsto V_f f ↦ V f . Since ∣ ψ 0 ⟩ |\psi_0\rangle ∣ ψ 0 ⟩ does not depend on f f f , the vector G z G_z G z is therefore the initial state acted on by the operator
K z = N f ^ ( z ) Π z ∂ χ z V f , ∂ χ z V f = N − 1 / 2 ∑ x χ z ( x ) ∂ V f ∂ f ( x ) . K_z=\sqrt{N}\hat f(z)\Pi_z\partial_{\chi_z}V_f,\qquad\partial_{\chi_z}V_f=N^{-1/2}\sum_x\chi_z(x)\frac{\partial V_f}{\partial f(x)}. K z = N f ^ ( z ) Π z ∂ χ z V f , ∂ χ z V f = N − 1/2 x ∑ χ z ( x ) ∂ f ( x ) ∂ V f .
on the device alone, where ∂ χ z V f \partial_{\chi_z}V_f ∂ χ z V f denotes the derivative at f f f in the direction χ z / N \chi_z/\sqrt{N} χ z / N . Because Eve knows f f f , we need a bound on K z K_z K z for every f f f , not only on average.
The unitary V f V_f V f is a polynomial of degree at most q q q in the values f ( x ) f(x) f ( x ) , and its multilinear extension to the cube [ − 1 , 1 ] N [-1,1]^N [ − 1 , 1 ] N takes values that are averages of unitaries, so it has norm at most 1 on the cube. The normalized direction χ z / N \chi_z/\sqrt{N} χ z / N has an entry of magnitude N − 1 / 2 N^{-1/2} N − 1/2 at each address. Let I + \mathcal{I}_+ I + and I − \mathcal{I}_- I − be the sets of addresses at which χ z \chi_z χ z agrees or disagrees with f f f . Multiplying the values of f f f on I + \mathcal{I}_+ I + , or on I − \mathcal{I}_- I − , by a factor t ∈ [ − 1 , 1 ] t\in[-1,1] t ∈ [ − 1 , 1 ] keeps the point in the cube, and ∂ χ z V f \partial_{\chi_z}V_f ∂ χ z V f is N − 1 / 2 N^{-1/2} N − 1/2 times the difference of the derivatives at t = 1 t=1 t = 1 of the two resulting polynomials of degree at most q q q . Markov’s inequality for polynomials bounds each of these derivatives by q 2 q^2 q 2 , so ∥ ∂ χ z V f ∥ ≤ 2 q 2 / N \|\partial\chi_z V_f\|\le2q^2/\sqrt{N} ∥ ∂ χ z V f ∥ ≤ 2 q 2 / N , and hence ∥ K z ∥ 2 ≤ 4 q 4 p f ( z ) \|K_z\|^2\le4q^4p_f(z) ∥ K z ∥ 2 ≤ 4 q 4 p f ( z ) . Apart from the score bound and the growth estimate, this is the only step that uses the assumption that the device makes few queries.
Bounding the knowledge of Eve. An operator that acts on the device alone cannot make any measurement outcome of Eve more likely than ∥ K z ∥ 2 \|K_z\|^2 ∥ K z ∥ 2 times its probability on her initial state. Hence, for any initial entanglement and any measurement that Eve performs,
Pr G z [ m ] ≤ 4 q 4 p f ( z ) Pr ρ E [ m ] for every outcome m and all f and z , (10) \Pr_{G_z}[m]\le4q^4p_f(z)\Pr_{\rho_E}[m]\qquad\text{for every outcome }m\text{ and all }f\text{ and }z, \tag*{(10)} G z Pr [ m ] ≤ 4 q 4 p f ( z ) ρ E Pr [ m ] for every outcome m and all f and z , (10)
where Pr G z [ m ] \Pr_{G_z}[m] Pr G z [ m ] denotes the unnormalized weight of outcome m m m on the vector G z G_z G z , and Pr ρ E [ m ] \Pr_{\rho_E}[m] Pr ρ E [ m ] is its probability on Eve’s initial state; this is the robust form of (4).
The actual branches need not satisfy such a bound, because a device may output a fixed string with small probability, and so we pass to a nearby state. We normalize the vector ∑ z ∣ z ⟩ ⊗ G z \sum_z|z\rangle\otimes G_z ∑ z ∣ z ⟩ ⊗ G z , in which the first register holds z z z , measure the purifying register of f f f in the basis { ∣ f ⟩ } \{|f\rangle\} { ∣ f ⟩} , which gives Eve the function f f f , and discard the device. The resulting state of f f f , z z z , and Eve’s register is within purified distance η \eta η of the actual one. Indeed, the unit vector ∑ z ∣ z ⟩ ⊗ Ψ z \sum_z|z\rangle\otimes\Psi_z ∑ z ∣ z ⟩ ⊗ Ψ z is within distance η \eta η of ∑ z ∣ z ⟩ ⊗ G z \sum_z|z\rangle\otimes G_z ∑ z ∣ z ⟩ ⊗ G z , so the sine of its angle with the normalized vector is at most η \eta η (Proposition 7.1), and measuring or discarding registers does not increase the purified distance [54 ] . In this state, if η ≤ 1 / 2 \eta\le1/2 η ≤ 1/2 , so that the normalizing factor ∑ z ∥ G z ∥ 2 \sum_z\|G_z\|^2 ∑ z ∥ G z ∥ 2 is at least 1 / 4 1/4 1/4 , then (10) implies that Eve guesses Z Z Z with probability at most
O ( q 4 ) E f max z p f ( z ) = O ( q 4 n / N ) , O(q^4)\mathbb{E}_f\max_z p_f(z)=O(q^4n/N), O ( q 4 ) E f z max p f ( z ) = O ( q 4 n / N ) ,
which is O ( q 4 ) O(q^4) O ( q 4 ) times her probability of guessing an ideal sample. Taking logarithms gives the Fourier case of Theorem 1.2 .
The lower bound for Haar-random states
For a Haar-random state ∣ ϕ ⟩ = ∑ x α x ∣ x ⟩ |\phi\rangle=\sum_x\alpha_x|x\rangle ∣ ϕ ⟩ = ∑ x α x ∣ x ⟩ , we write p x = ∣ α x ∣ 2 p_x=|\alpha_x|^2 p x = ∣ α x ∣ 2 . We first consider algorithms with no supplied copies of ∣ ϕ ⟩ |\phi\rangle ∣ ϕ ⟩ . After t t t queries to O ϕ O_\phi O ϕ , the state is a polynomial of total degree at most 2 t 2t 2 t in the amplitudes and their conjugates. More generally, with s s s supplied copies, its degree is at most s + 2 t s+2t s + 2 t (Lemma 5.1). The plan of Section 2.2 carries over; the main difference lies in the choice of the progress measure.
The normalization obstacle. For Fourier sampling, progress was measured by pairs of recorded points. The natural analogue for Haar-random states is a repeated amplitude, as in α z 2 \alpha_z^2 α z 2 or α z α z ‾ = p z \alpha_z\overline{\alpha_z}=p_z α z α z = p z , which is the coherent counterpart of seeing the outcome z z z twice. However, every term of the normalization ∑ x p x = 1 \sum_xp_x=1 ∑ x p x = 1 repeats an amplitude, although the sum itself is a constant, and the oracle produces such sums at every query. For example, two queries applied to ∣ ⊥ ⟩ |{\perp}\rangle ∣ ⊥ ⟩ return ∣ ⊥ ⟩ |{\perp}\rangle ∣ ⊥ ⟩ , yet the second query, expanded in the amplitudes, gives O ϕ ∣ ϕ ⟩ = ( ∑ x p x ) ∣ ⊥ ⟩ + ( 1 − ∑ x p x ) ∣ ϕ ⟩ O_\phi|\phi\rangle=(\sum_xp_x)|{\perp}\rangle+(1-\sum_xp_x)|\phi\rangle O ϕ ∣ ϕ ⟩ = ( ∑ x p x ) ∣ ⊥ ⟩ + ( 1 − ∑ x p x ) ∣ ϕ ⟩ . We therefore measure the dependence on the probabilities p x p_x p x by the degree in an expansion in orthogonal polynomials. Like the Fourier degree of a Boolean function, this degree depends only on the function and not on the way in which it is written, so the normalization has degree zero.
The level and the progress measure. Two properties of the Haar measure make this approach work. Write α x = p x e i θ x \alpha_x=\sqrt{p_x}e^{i\theta_x} α x = p x e i θ x . The phases θ x \theta_x θ x are independent and uniform, so two terms are orthogonal unless, at every x x x , the number of factors α x \alpha_x α x minus the number of factors α x ‾ \overline{\alpha_x} α x is the same in both terms. Moreover, independently of the phases, the vector p p p is uniform on the probability simplex, that is, it has the Dirichlet distribution with all parameters equal to 1. In a term with k k k unpaired factors α x \alpha_x α x (or α ‾ x \overline{\alpha}_x α x ), these factors contribute p x k p_x^k p x k to the squared magnitude of the term, which reweights the distribution of p p p exactly as if x x x had been observed k k k times, and the result is again a Dirichlet distribution.
We expand the rest of the term in orthogonal polynomials for that distribution, and we define the level of the term as its degree in this expansion plus, for each outcome, the number of unpaired factors at that outcome beyond the first. The first unpaired factor at an outcome is not counted, because every branch α z ∣ z ⟩ \alpha_z|z\rangle α z ∣ z ⟩ of the honest sampler has one. Thus α x α ‾ y \alpha_x\overline{\alpha}_y α x α y with x ≠ y x \ne y x = y , and the normalization, have level zero, while α x 2 \alpha_x^2 α x 2 and p x − 1 / N p_x-1/N p x − 1/ N have level one. Our progress measure is the square root of the average level,
λ = ( ∑ k k ∥ P k Ψ ∥ 2 ) 1 / 2 , \lambda= \left(\sum_k k\left\|P_k\Psi\right\|^2\right)^{1/2}, λ = ( k ∑ k ∥ P k Ψ ∥ 2 ) 1/2 ,
where P k P_k P k denotes the projection onto the part of the state of level k k k . For s s s copies of ∣ ϕ ⟩ |\phi\rangle ∣ ϕ ⟩ , the quantity λ 2 \lambda^2 λ 2 is exactly the expected number of measured copies that repeat an earlier outcome, namely s ( s − 1 ) / ( N + s − 1 ) s(s-1)/(N+s-1) s ( s − 1 ) / ( N + s − 1 ) (Lemma 5.5). The argument therefore also applies to algorithms that receive s s s copies in addition to making q q q queries, and shows that exceeding the ideal score by a constant requires s + q s + q + 1 = Ω ( N ) s+q\sqrt{s+q+1}=\Omega(\sqrt{N}) s + q s + q + 1 = Ω ( N ) (Corollary 5.7). With s = 0 s=0 s = 0 , the query contribution is of order q 3 / 2 q^{3/2} q 3/2 , which explains the N 1 / 3 N^{1/3} N 1/3 lower bound.
The score in terms of the level. A state of level zero scores at most the ideal score 2 N / ( N + 1 ) 2N/(N+1) 2 N / ( N + 1 ) . Its terms contain each outcome at most once. Since the reward N p z Np_z N p z does not depend on the phases, different terms do not interfere, and each term is correlated with N p z Np_z N p z only through a single factor α z \alpha_z α z or α ‾ z \overline{\alpha}_z α z . This factor shifts the distribution of p z p_z p z as one observed sample would, which raises the mean of N p z Np_z N p z to at most 2 N / ( N + 1 ) 2N/(N+1) 2 N / ( N + 1 ) . A term of positive level can score more, but only by an amount proportional to its level, because a polynomial of low degree cannot concentrate its weight where p z p_z p z is large. Finally, the interference between the part of level zero and the rest involves only the fluctuation of N p z Np_z N p z around its mean, which has variance at most 2, so by the Cauchy–Schwarz inequality it contributes O ( λ ) O(\lambda) O ( λ ) . Altogether,
B ( A ) ≤ 2 N N + 1 + O ( λ + λ 2 ) . (11) B(\mathcal{A}) \le\frac{2N}{N+1}+O(\lambda+\lambda^2). \tag*{(11)} B ( A ) ≤ N + 1 2 N + O ( λ + λ 2 ) . (11)
The effect of one query on the level. Write O ϕ = I − 2 ∣ η ϕ ⟩ ⟨ η ϕ ∣ O_\phi=I-2|\eta_\phi\rangle\langle\eta_\phi| O ϕ = I − 2∣ η ϕ ⟩ ⟨ η ϕ ∣ with ∣ η ϕ ⟩ = ( ∣ ⊥ ⟩ − ∣ ϕ ⟩ ) / 2 |\eta_\phi\rangle=(|\perp\rangle-|\phi\rangle)/\sqrt{2} ∣ η ϕ ⟩ = ( ∣ ⊥ ⟩ − ∣ ϕ ⟩) / 2 . Returning to the no-copy case, consider a term of total degree d d d in the amplitudes and their conjugates, so that d ≤ 2 t d\le2t d ≤ 2 t after t t t queries. Each new factor raises the level by at most one, and it can do so only when it falls on an outcome that already appears in the term; a factor at a fresh outcome does not raise the level. When the new factor does fall on an occupied outcome, either it repeats an unpaired factor of the same kind or it pairs with a conjugate factor, and the two cases need different arguments. In the first case, only an O ( ( d + 1 ) / N ) O((d+1)/N) O (( d + 1 ) / N ) fraction of the weight moves up a level. Indeed, a term of degree d d d has unpaired factors on at most d d d outcomes, and a polynomial of degree at most d d d in p p p cannot concentrate on a few outcomes, so these outcomes carry only an O ( d / N ) O(d/N) O ( d / N ) fraction of its weight (Lemma 5.8).
If instead the new factor pairs up with a conjugate factor, it creates p x p_x p x , and in the step that applies ⟨ ϕ ∣ \langle\phi| ⟨ ϕ ∣ the resulting terms are summed over x x x , which can bring back the normalization. These terms must therefore be bounded together, and for this purpose we prove an identity that concerns only the Dirichlet distribution and its orthogonal polynomials.
Observing one more sample x x x from p p p turns a Dirichlet prior into a Dirichlet posterior, and this is how a new factor at x x x reweights a term. Let ∣ a ∣ ≥ N |a| \ge N ∣ a ∣ ≥ N be the sum of the parameters of the prior. We show that, on average over x x x with probability α x / ∣ a ∣ \alpha_x/|a| α x /∣ a ∣ , an orthogonal polynomial of exact degree r ≥ 1 r \ge1 r ≥ 1 for the prior has a fraction r / ( ∣ a ∣ + 2 r − 1 ) ≤ r / N r/(|a|+2r-1) \le r/N r / ( ∣ a ∣ + 2 r − 1 ) ≤ r / N of its prior squared norm in degree r − 1 r-1 r − 1 for the posterior, and none in lower degrees. The identity follows from integration by parts on the simplex. For background on orthogonal polynomials for Dirichlet distributions, see [28 , 30 ] .
By duality, it shows that when ⟨ ϕ ∣ \langle\phi| ⟨ ϕ ∣ is applied to ∑ x α x h x ∣ x ⟩ \sum_x \alpha_x h_x|x\rangle ∑ x α x h x ∣ x ⟩ , where each h x h_x h x has degree at most r r r , the part of the result ∑ x p x h x \sum_x p_x h_x ∑ x p x h x of degree r + 1 r+1 r + 1 carries at most a fraction ( r + 1 ) / N (r+1)/N ( r + 1 ) / N of the weight of the input. Since λ \lambda λ is the norm of the state in which the part of level k k k is multiplied by k \sqrt{k} k , and k + 1 − k ≤ 1 \sqrt{k+1}-\sqrt{k} \le1 k + 1 − k ≤ 1 , each of the two steps changes λ \lambda λ by at most the norm of the part of the state that it moves up a level plus the norm of the part that it moves down a level, and the second part is bounded by applying the same estimates to the adjoint step (Lemma 5.19). Together, the two cases show that a query, controlled or not, raises λ \lambda λ by at most O ( ( d + 1 ) / N ) = O ( ( t + 1 ) / N ) O(\sqrt{(d+1)/N}) = O(\sqrt{(t+1)/N}) O ( ( d + 1 ) / N ) = O ( ( t + 1 ) / N ) after t t t queries. Hence λ = O ( q 3 / 2 / N ) \lambda= O(q^{3/2}/\sqrt{N}) λ = O ( q 3/2 / N ) after q q q queries, and (11) gives part 2 of Theorem 1.1 .
Extension to Haar-random unitary access. For each fixed ϕ \phi ϕ , q q q queries to a random unitary U U U with U ∣ 0 n ⟩ = ∣ ϕ ⟩ U|0^n\rangle= |\phi\rangle U ∣ 0 n ⟩ = ∣ ϕ ⟩ can be simulated by 2 q 2q 2 q queries to O ϕ O_\phi O ϕ with error O ( q / N ) O(q/\sqrt{N}) O ( q / N ) [37 Theorem 19] . This changes the score by at most the error times the largest reward N max z p z N\max_z p_z N max z p z , whose average is ln N + O ( 1 ) \ln N + O(1) ln N + O ( 1 ) . The squaring algorithm only prepares ∣ ϕ ⟩ |\phi\rangle ∣ ϕ ⟩ and reflects about it, so it runs unchanged with U U U .
Near-optimal randomness for Haar-random states
The three steps of Section 2.3 carry over to this setting, with the phase θ z \theta_z θ z of α z \alpha_z α z in place of the Fourier coefficient, and the main change is in the second step. First, the part of the output-z z z branch that does not depend on θ z \theta_z θ z consists of the terms with no unpaired factor at z z z . At level zero these terms score at most 1 1 1 , well below the ideal score, because without a factor at z z z the reweighting does not favor z z z . The part of positive level has weight at most λ 2 \lambda^2 λ 2 , so a near-ideal score forces the branches to equal their θ z \theta_z θ z -dependent parts G z G_z G z up to a total error η = O ( δ + q 3 / 4 N − 1 / 4 ) \eta= O(\sqrt{\delta}+q^{3/4}N^{-1/4}) η = O ( δ + q 3/4 N − 1/4 ) .
Second, unlike a Fourier coefficient, the phase θ z \theta_z θ z can be changed without leaving the ensemble. Rotating it moves ∣ ϕ ⟩ |\phi\rangle ∣ ϕ ⟩ by at most 2 p z 2\sqrt{p_z} 2 p z , so, when the oracle is replaced one query at a time, the unitary of the device changes by O ( q p z ) O(q\sqrt{p_z}) O ( q p z ) . Hence G z G_z G z , which is the branch minus the average of its copies with the phase θ z \theta_z θ z rotated, is the initial state acted on by an operator on the device of norm O ( q p z ) O(q\sqrt{p_z}) O ( q p z ) ; this hybrid argument takes the place of Markov’s inequality for polynomials.
Third, as in (10) , the unnormalized weight of every outcome of a measurement of Eve on G z G_z G z is at most O ( q 2 ) p z O(q^2)p_z O ( q 2 ) p z times its probability on her initial state. Since E max z p z = ( ln N + O ( 1 ) ) / N \mathbb{E}\max_z p_z = (\ln N + O(1))/N E max z p z = ( ln N + O ( 1 )) / N , we obtain the Haar case of Theorem 1.2 . The factor q 2 q^2 q 2 , instead of the factor q 4 q^4 q 4 that Markov’s inequality gives, is the reason why the bound loses 2 log 2 q 2\log_2 q 2 log 2 q bits here but 4 log 2 q 4\log_2 q 4 log 2 q bits for Fourier sampling.
The argument does not extend to an Eve who learns a full Haar-random unitary U U U . Our score bound for unitary access averages over the columns of U U U other than ϕ \phi ϕ , which such an Eve knows, and a device can correlate its output with these columns. For instance, a device that applies U U U to its half of a maximally entangled state shared with Eve produces a uniform output that Eve, knowing U U U , recovers exactly. That device scores only 1 1 1 , but a proof for this setting would have to rule out such correlations at the ideal score.
Preliminaries
Notation and query algorithms
Throughout, n ≥ 1 n \ge1 n ≥ 1 and N = 2 n N = 2^n N = 2 n . We identify { 0 , 1 } n \{0,1\}^n { 0 , 1 } n with [ N ] = { 1 , … , N } [N] = \{1,\ldots,N\} [ N ] = { 1 , … , N } when convenient, and we write z ⋅ x z \cdot x z ⋅ x for the inner product of z , x ∈ { 0 , 1 } n z,x \in\{0,1\}^n z , x ∈ { 0 , 1 } n modulo 2. Logarithms are to base 2 unless written ln \ln ln . Inner products ⟨ u , v ⟩ \langle u,v\rangle ⟨ u , v ⟩ are conjugate-linear in the first argument, ∥ v ∥ \lVert v\rVert ∥ v ∥ is the norm of a vector, and ∥ T ∥ \lVert T\rVert ∥ T ∥ is the operator norm of an operator T T T . For a positive semidefinite operator M M M , we write Tr M \operatorname{Tr} M Tr M for its trace. All Hilbert spaces are finite-dimensional, except for the spaces of square-integrable functions on the simplex that are defined in Section 3.3 and used in § 13 .
The oracle of an experiment is denoted ω \omega ω when we do not need to specify the ensemble; it is a function f f f in the Fourier ensemble and a state ϕ \phi ϕ in the Haar ensemble. We write p ω p_\omega p ω for the ideal distribution on { 0 , 1 } n \{0,1\}^n { 0 , 1 } n that the oracle determines, and O ω O_\omega O ω for the unitary through which it is accessed, namely O f O_f O f of (14) or O ϕ O_\phi O ϕ of (16) .
The Fourier ensemble. The oracle is a uniformly random function f : { 0 , 1 } n → { − 1 , 1 } f:\{0,1\}^n \to\{-1,1\} f : { 0 , 1 } n → { − 1 , 1 } , so that the N N N values f ( x ) f(x) f ( x ) are independent uniformly random signs. For z ∈ { 0 , 1 } n z \in\{0,1\}^n z ∈ { 0 , 1 } n , let χ z ( x ) = ( − 1 ) z ⋅ x \chi_z(x) = (-1)^{z \cdot x} χ z ( x ) = ( − 1 ) z ⋅ x denote the characters, which satisfy χ z ( x ) χ z ( y ) = χ z ( x ⊕ y ) \chi_z(x)\chi_z(y) = \chi_z(x \oplus y) χ z ( x ) χ z ( y ) = χ z ( x ⊕ y ) and the orthogonality relations
∑ z χ z ( x ) χ z ( y ) = N 1 [ x = y ] , ∑ x χ z ( x ) χ w ( x ) = N 1 [ z = w ] . (12) \sum_z \chi_z(x)\chi_z(y) = N\mathbb{1}[x=y], \qquad\sum_x \chi_z(x)\chi_w(x) = N\mathbb{1}[z=w]. \tag*{(12)} z ∑ χ z ( x ) χ z ( y ) = N 1 [ x = y ] , x ∑ χ z ( x ) χ w ( x ) = N 1 [ z = w ] . (12)
The Fourier coefficients and the ideal distribution are
f ^ ( z ) = 1 N ∑ x χ z ( x ) f ( x ) , p f ( z ) = f ^ ( z ) 2 , (13) \widehat{f}(z) = \frac{1}{N}\sum_x \chi_z(x)f(x), \qquad p_f(z) = \widehat{f}(z)^2, \tag*{(13)} f ( z ) = N 1 x ∑ χ z ( x ) f ( x ) , p f ( z ) = f ( z ) 2 , (13)
and ∑ z p f ( z ) = 1 \sum_z p_f(z) = 1 ∑ z p f ( z ) = 1 for every f f f by Parseval’s identity, which follows from (12) .
The algorithm accesses f f f through the value oracle
O f ∣ x , b ⟩ = ∣ x , b ⊕ ( 1 − f ( x ) ) / 2 ⟩ , x ∈ { 0 , 1 } n , b ∈ { 0 , 1 } , (14) O_f\lvert x,b\rangle= \lvert x,b \oplus(1-f(x))/2\rangle, \qquad x \in\{0,1\}^n,\ b \in\{0,1\}, \tag*{(14)} O f ∣ x , b ⟩ = ∣ x , b ⊕ ( 1 − f ( x )) /2 ⟩ , x ∈ { 0 , 1 } n , b ∈ { 0 , 1 } , (14)
which acts on an address register of n n n qubits and a target qubit. In the basis ∣ + ⟩ = ( ∣ 0 ⟩ + ∣ 1 ⟩ ) / 2 \lvert+\rangle= (\lvert0\rangle+\lvert1\rangle)/\sqrt{2} ∣ + ⟩ = (∣ 0 ⟩ + ∣ 1 ⟩) / 2 , ∣ − ⟩ = ( ∣ 0 ⟩ − ∣ 1 ⟩ ) / 2 \lvert-\rangle= (\lvert0\rangle-\lvert1\rangle)/\sqrt{2} ∣ − ⟩ = (∣ 0 ⟩ − ∣ 1 ⟩) / 2 of the target qubit, the oracle acts as
O f ∣ x ⟩ ∣ + ⟩ = ∣ x ⟩ ∣ + ⟩ , O f ∣ x ⟩ ∣ − ⟩ = f ( x ) ∣ x ⟩ ∣ − ⟩ , (15) O_f\lvert x\rangle\lvert+\rangle= \lvert x\rangle\lvert+\rangle,\qquad O_f\lvert x\rangle\lvert-\rangle= f(x)\lvert x\rangle\lvert-\rangle, \tag*{(15)} O f ∣ x ⟩ ∣ + ⟩ = ∣ x ⟩ ∣ + ⟩ , O f ∣ x ⟩ ∣ − ⟩ = f ( x ) ∣ x ⟩ ∣ − ⟩ , (15)
because flipping the target qubit leaves ∣ + ⟩ \lvert+\rangle ∣ + ⟩ unchanged and multiplies ∣ − ⟩ \lvert-\rangle ∣ − ⟩ by − 1 -1 − 1 . We call a query in which the target qubit is in the state ∣ − ⟩ \lvert-\rangle ∣ − ⟩ a phase query . The operator O f O_f O f is a permutation of the computational basis with O f 2 = I O_f^2 = I O f 2 = I , so it is unitary, Hermitian, and its own inverse.
The Haar ensemble. The oracle hides a uniformly random unit vector ∣ ϕ ⟩ = ∑ x ∈ [ N ] α x ∣ x ⟩ \lvert\phi\rangle= \sum_{x\in[N]} \alpha_x\lvert x\rangle ∣ ϕ ⟩ = ∑ x ∈ [ N ] α x ∣ x ⟩ in C N \mathbb{C}^N C N , and the ideal distribution is p ϕ ( x ) = ∣ α x ∣ 2 p_\phi(x) = \lvert\alpha_x\rvert^2 p ϕ ( x ) = ∣ α x ∣ 2 . The ensemble is a distribution on unit vectors rather than on rays: the global phase of ∣ ϕ ⟩ \lvert\phi\rangle ∣ ϕ ⟩ matters, because the oracle below swaps ∣ ϕ ⟩ \lvert\phi\rangle ∣ ϕ ⟩ with a fixed vector, so that ∣ ϕ ⟩ \lvert\phi\rangle ∣ ϕ ⟩ and e i θ ∣ ϕ ⟩ e^{i\theta}\lvert\phi\rangle e i θ ∣ ϕ ⟩ give different oracles.
The query register is Q = C ∣ ⊥ ⟩ ⊕ C N Q = \mathbb{C}\lvert\perp\rangle\oplus\mathbb{C}^N Q = C ∣ ⊥ ⟩ ⊕ C N , where ∣ ⊥ ⟩ \lvert\perp\rangle ∣ ⊥ ⟩ is a fixed unit vector orthogonal to C N \mathbb{C}^N C N . The canonical state-preparation oracle is
O ϕ = I − 2 ∣ η ϕ ⟩ ⟨ η ϕ ∣ , ∣ η ϕ ⟩ = ∣ ⊥ ⟩ − ∣ ϕ ⟩ 2 , (16) O_\phi= I - 2\lvert\eta_\phi\rangle\langle\eta_\phi\rvert,\qquad\lvert\eta_\phi\rangle= \frac{\lvert\perp\rangle-\lvert\phi\rangle}{\sqrt{2}}, \tag*{(16)} O ϕ = I − 2 ∣ η ϕ ⟩ ⟨ η ϕ ∣ , ∣ η ϕ ⟩ = 2 ∣ ⊥ ⟩ − ∣ ϕ ⟩ , (16)
which is the reflection about the hyperplane orthogonal to ∣ η ϕ ⟩ |\eta_\phi\rangle ∣ η ϕ ⟩ . Expanding the projection gives
O ϕ = I − ∣ ⊥ ⟩ ⟨ ⊥ ∣ + ∣ ⊥ ⟩ ⟨ ϕ ∣ + ∣ ϕ ⟩ ⟨ ⊥ ∣ − ∣ ϕ ⟩ ⟨ ϕ ∣ , (17) O_\phi= I - |\perp\rangle\langle\perp| + |\perp\rangle\langle\phi| + |\phi\rangle\langle\perp| - |\phi\rangle\langle\phi|, \tag*{(17)} O ϕ = I − ∣ ⊥ ⟩ ⟨ ⊥ ∣ + ∣ ⊥ ⟩ ⟨ ϕ ∣ + ∣ ϕ ⟩ ⟨ ⊥ ∣ − ∣ ϕ ⟩ ⟨ ϕ ∣ , (17)
so O ϕ O_\phi O ϕ swaps ∣ ⊥ ⟩ |\perp\rangle ∣ ⊥ ⟩ and ∣ ϕ ⟩ |\phi\rangle ∣ ϕ ⟩ and acts as the identity on the vectors orthogonal to both ∣ ⊥ ⟩ |\perp\rangle ∣ ⊥ ⟩ and ∣ ϕ ⟩ |\phi\rangle ∣ ϕ ⟩ . Like O f O_f O f , it is unitary, Hermitian, and its own inverse.
The expansion (17) also shows how the hidden amplitudes enter: in the basis { ∣ ⊥ ⟩ , ∣ 1 ⟩ , … , ∣ N ⟩ } \{|\perp\rangle, |1\rangle, \ldots, |N\rangle\} { ∣ ⊥ ⟩ , ∣1 ⟩ , … , ∣ N ⟩} of Q Q Q , every matrix entry of O ϕ O_\phi O ϕ is a polynomial of degree at most two in the amplitudes α x \alpha_x α x and their conjugates α x ‾ \overline{\alpha_x} α x , each factor ∣ ϕ ⟩ |\phi\rangle ∣ ϕ ⟩ contributing one α x \alpha_x α x and each factor ⟨ ϕ ∣ \langle\phi| ⟨ ϕ ∣ one α x ‾ \overline{\alpha_x} α x .
With Haar -random unitary access, the algorithm may instead apply a Haar-random unitary U U U on C N \mathbb{C}^N C N , its inverse U † U^\dagger U † , and controlled versions of both, and the state scored is ∣ ϕ ⟩ = U ∣ 0 n ⟩ |\phi\rangle= U|0^n\rangle ∣ ϕ ⟩ = U ∣ 0 n ⟩ . Both forms of access are the models of [37 ] , and the second is at least as strong as the first, since O ϕ O_\phi O ϕ can be built from one controlled application of U † U^\dagger U † and one of U U U with the help of one ancilla qubit.
To build O ϕ O_\phi O ϕ in this way, identify ∣ ⊥ ⟩ |\perp\rangle ∣ ⊥ ⟩ with ∣ 0 ⟩ ∣ 0 n ⟩ |0\rangle|0^n\rangle ∣0 ⟩ ∣ 0 n ⟩ and ∣ x ⟩ |x\rangle ∣ x ⟩ with ∣ 1 ⟩ ∣ x ⟩ |1\rangle|x\rangle ∣1 ⟩ ∣ x ⟩ , and let c U = ∣ 0 ⟩ ⟨ 0 ∣ ⊗ I + ∣ 1 ⟩ ⟨ 1 ∣ ⊗ U cU = |0\rangle\langle0| \otimes I + |1\rangle\langle1| \otimes U c U = ∣0 ⟩ ⟨ 0∣ ⊗ I + ∣1 ⟩ ⟨ 1∣ ⊗ U be U U U controlled by the ancilla. Then c U † ∣ η ϕ ⟩ = ∣ − ⟩ ∣ 0 n ⟩ cU^\dagger|\eta_\phi\rangle= |-\rangle|0^n\rangle c U † ∣ η ϕ ⟩ = ∣ − ⟩ ∣ 0 n ⟩ for the vector ∣ η ϕ ⟩ |\eta_\phi\rangle ∣ η ϕ ⟩ of (16), so
I − 2 ∣ η ϕ ⟩ ⟨ η ϕ ∣ = c U ( I − 2 ∣ − ⟩ ⟨ − ∣ ⊗ ∣ 0 n ⟩ ⟨ 0 n ∣ ) c U † I - 2|\eta_\phi\rangle\langle\eta_\phi| = cU(I - 2|-\rangle\langle-| \otimes|0^n\rangle\langle0^n|)cU^\dagger I − 2∣ η ϕ ⟩ ⟨ η ϕ ∣ = c U ( I − 2∣ − ⟩ ⟨ − ∣ ⊗ ∣ 0 n ⟩ ⟨ 0 n ∣ ) c U †
on all of C 2 ⊗ C N \mathbb{C}^2 \otimes\mathbb{C}^N C 2 ⊗ C N . This operator is O ϕ O_\phi O ϕ on the embedded register. The middle factor swaps ∣ 0 ⟩ ∣ 0 n ⟩ |0\rangle|0^n\rangle ∣0 ⟩ ∣ 0 n ⟩ with ∣ 1 ⟩ ∣ 0 n ⟩ |1\rangle|0^n\rangle ∣1 ⟩ ∣ 0 n ⟩ and fixes every ∣ 1 ⟩ ∣ x ⟩ |1\rangle|x\rangle ∣1 ⟩ ∣ x ⟩ with x ≠ 0 n x \ne0^n x = 0 n , and it uses no query.
The expected score. For an oracle ω \omega ω with ideal distribution p ω p_\omega p ω , the expected score of an algorithm A \mathcal{A} A that outputs Z ∈ { 0 , 1 } n Z \in\{0,1\}^n Z ∈ { 0 , 1 } n is
B ( A ) = E ω ∑ z Pr [ Z = z ∣ ω ] N p ω ( z ) , (18) B(\mathcal{A}) = \mathbb{E}_\omega\sum_z \Pr[Z = z \mid\omega] Np_\omega(z), \tag*{(18)} B ( A ) = E ω z ∑ Pr [ Z = z ∣ ω ] N p ω ( z ) , (18)
which is (1). We call N p ω ( z ) Np_\omega(z) N p ω ( z ) the reward of the outcome z z z , so that the score is the expected reward of the output. Outputting a uniformly random string, or a fixed string, gives B ( A ) = 1 B(\mathcal{A}) = 1 B ( A ) = 1 , because ∑ z p ω ( z ) = 1 \sum_z p_\omega(z) = 1 ∑ z p ω ( z ) = 1 and E ω p ω ( z ) = 1 / N \mathbb{E}_\omega p_\omega(z) = 1/N E ω p ω ( z ) = 1/ N for every $z.
The honest sampler is the one-query algorithm that prepares a state whose measurement in the computational basis has the distribution p ω p_\omega p ω and measures it. In the Fourier ensemble it applies Hadamard gates, a phase query, and Hadamard gates to ∣ 0 n ⟩ |0^n\rangle ∣ 0 n ⟩ , as in § 9 , and in the Haar ensemble it applies O ϕ O_\phi O ϕ to ∣ ⊥ ⟩ |\perp\rangle ∣ ⊥ ⟩ . It outputs z z z with probability p ω ( z ) p_\omega(z) p ω ( z ) , and its expected score, the ideal score , is
E ω N ∑ z p ω ( z ) 2 = { 3 − 2 / N in the Fourier ensemble , 2 N / ( N + 1 ) in the Haar ensemble ; (19) \mathbb{E}_\omega N \sum_z p_\omega(z)^2 =
\begin{cases}
3 - 2/N & \text{in the Fourier ensemble},\\
2N/(N + 1) & \text{in the Haar ensemble};
\end{cases} \tag*{(19)} E ω N z ∑ p ω ( z ) 2 = { 3 − 2/ N 2 N / ( N + 1 ) in the Fourier ensemble , in the Haar ensemble ; (19)
these values are computed in Lemma 6.2 , and from § 13 on we write β N = 2 N / ( N + 1 ) \beta_N = 2N/(N + 1) β N = 2 N / ( N + 1 ) for the ideal Haar score.
No algorithm scores more than E ω N max z p ω ( z ) \mathbb{E}_\omega N\max_z p_\omega(z) E ω N max z p ω ( z ) , a value that is approached by algorithms that learn the oracle; it is ln N + O ( 1 ) \ln N + O(1) ln N + O ( 1 ) in the Haar ensemble (Lemma 5.24 ) and at most 2 ( n + 2 ) 2(n + 2) 2 ( n + 2 ) in the Fourier ensemble (Lemma 7.7 ).
Query algorithms and a reduction to controlled queries
We now describe the most general experiment that our theorems concern. It includes an adversary, Eve, who may share an entangled state with the device; the theorems about the score alone are the special case in which Eve’s register is trivial. Throughout, device and algorithm refer to the same party, the one that makes the queries; we denote it by A \mathcal{A} A , so that B ( A ) B(\mathcal{A}) B ( A ) in (18) is the expected score of the device in the experiment.
Definition 3.1 (The experiment). Fix q ≥ 0 q \ge0 q ≥ 0 and one of the two ensembles.
The device holds a register A A A and Eve holds a register E E E , both of finite dimension, and they start in a joint state ρ A E \rho_{AE} ρ A E that does not depend on the oracle. The oracle ω \omega ω is then drawn.
The device applies oracle-independent operations to A A A and makes at most q q q queries along every path of its computation, which consists of finitely many steps. An operation may adjoin ancillas in fixed states, apply unitaries, and perform measurements whose outcomes are appended to a classical record kept in A A A , and every operation and every query may depend on the record produced before it.
A query applies O ω O_\omega O ω to a register of A A A of the appropriate type, chosen according to the record, possibly controlled by a qubit of A A A . Since O ω O_\omega O ω is its own inverse, inverse queries are the same operation.
The output Z ∈ { 0 , 1 } n Z \in\{0,1\}^n Z ∈ { 0 , 1 } n is a function of the final record. No operation acts on E E E , and nothing is sent from A A A to E E E . After Z Z Z has been produced, Eve receives a complete classical description of ω \omega ω in a register R R R : the truth table of f f f , or the vector ϕ \phi ϕ .
Classical randomness of the device is included in ρ A E \rho_{AE} ρ A E , and so is any randomness shared with Eve. Haar-random unitary access, in which U U U and U † U^\dagger U † are distinct operations, is not covered by this definition and is reduced to the canonical oracle in Section 5.6.
For each oracle ω \omega ω and each z z z , the experiment determines the subnormalized state ρ z ω \rho_z^\omega ρ z ω of Eve’s register on the event Z = z Z=z Z = z , whose trace is Pr [ Z = z ∣ ω ] \Pr[Z=z\mid\omega] Pr [ Z = z ∣ ω ] . Since nothing acts on E E E , we have ∑ z ρ z ω = ρ E \sum_z \rho_z^\omega=\rho_E ∑ z ρ z ω = ρ E for every ω \omega ω , where ρ E \rho_E ρ E is the reduced state of E E E in ρ A E \rho_{AE} ρ A E , although Z Z Z may be correlated with E E E . The next lemma puts every such experiment into a form with a fixed sequence of controlled queries, which is the form used in the proofs.
Lemma 3.2 (Reduction to a fixed sequence of controlled queries). Consider an experiment as in Definition 3.1. There are
(a) a finite-dimensional register A ′ A' A ′ , which contains a query register Q Q Q of the type on which O ω O_\omega O ω acts and a control qubit C C C ,
(b) a unit vector ψ 0 ∈ A ′ ⊗ E \psi_0 \in A' \otimes E ψ 0 ∈ A ′ ⊗ E whose reduced state on E E E is ρ E \rho_E ρ E ,
(c) oracle-independent unitaries U 0 , … , U q U_0,\ldots,U_q U 0 , … , U q on A ′ A' A ′ , and
(d) orthogonal projections { Π z } z ∈ { 0 , 1 } n \{\Pi_z\}_{z\in\{0,1\}^n} { Π z } z ∈ { 0 , 1 } n on A ′ A' A ′ with ∑ z Π z = I \sum_z \Pi_z=I ∑ z Π z = I ,
with the following property. Let
O ω c = ∣ 0 ⟩ ⟨ 0 ∣ C ⊗ I + ∣ 1 ⟩ ⟨ 1 ∣ C ⊗ O ω (20) O_\omega^{\mathrm{c}}=|0\rangle\langle0|_C\otimes I+|1\rangle\langle1|_C\otimes O_\omega \tag*{(20)} O ω c = ∣0 ⟩ ⟨ 0 ∣ C ⊗ I + ∣1 ⟩ ⟨ 1 ∣ C ⊗ O ω (20) act on C C C and Q Q Q and trivially on the rest of A ′ A' A ′ , and put
V ω = U q O ω c U q − 1 O ω c ⋯ U 1 O ω c U 0 . (21) V_\omega=U_q O_\omega^{\mathrm{c}} U_{q-1} O_\omega^{\mathrm{c}}\cdots U_1 O_\omega^{\mathrm{c}} U_0. \tag*{(21)} V ω = U q O ω c U q − 1 O ω c ⋯ U 1 O ω c U 0 . (21) Then, for every oracle ω \omega ω and every z z z ,
ρ z ω = Tr A ′ [ ( Π z V ω ⊗ I E ) ∣ ψ 0 ⟩ ⟨ ψ 0 ∣ ( Π z V ω ⊗ I E ) † ] , Pr [ Z = z ∣ ω ] = ∥ ( Π z V ω ⊗ I E ) ψ 0 ∥ 2 . (22) \rho_z^\omega=\operatorname{Tr}_{A'}\left[(\Pi_zV_\omega\otimes I_E)|\psi_0\rangle\langle\psi_0|(\Pi_zV_\omega\otimes I_E)^\dagger\right],\qquad
\Pr[Z=z\mid\omega]=\left\|(\Pi_zV_\omega\otimes I_E)\psi_0\right\|^2. \tag*{(22)} ρ z ω = Tr A ′ [ ( Π z V ω ⊗ I E ) ∣ ψ 0 ⟩ ⟨ ψ 0 ∣ ( Π z V ω ⊗ I E ) † ] , Pr [ Z = z ∣ ω ] = ∥ ( Π z V ω ⊗ I E ) ψ 0 ∥ 2 . (22)
Proof. We modify the experiment in four steps, none of which changes the subnormalized state of E E E on the event Z = z Z=z Z = z , for any ω \omega ω and z z z .
Step 1: the record as a register and the query rounds. Regard the classical record as a register K K K of A A A with an orthonormal basis { ∣ r ⟩ } \{\lvert r\rangle\} {∣ r ⟩} indexed by the possible records, which are finitely many because the computation has finitely many steps and every measurement has finitely many outcomes, and let the record include the number of queries made so far along its path. At every stage, the state of A E AE A E is block diagonal, of the form
∑ r ∣ r ⟩ ⟨ r ∣ K ⊗ σ r . \sum_r \lvert r\rangle\langle r\rvert_K \otimes\sigma_r. r ∑ ∣ r ⟩ ⟨ r ∣ K ⊗ σ r .
We group the computation into q q q query rounds and a final round. Along a path, the rounds are as follows.
(i) For 1 ≤ k ≤ q 1 \le k \le q 1 ≤ k ≤ q , the k k k -th round consists of everything the device does after its ( k − 1 ) (k-1) ( k − 1 ) -st query, up to and including its k k k -th query, and the final round consists of what remains after the q q q -th query.
(ii) If the path makes exactly j < q j<q j < q queries, then the ( j + 1 ) (j+1) ( j + 1 ) -st round consists instead of everything after its j j j -th query up to the end of the computation, and the rounds after the ( j + 1 ) (j+1) ( j + 1 ) -st, including the final round, are empty.
Within a round, the operations other than the query, together with the recording of their outcomes, compose into a single oracle-independent completely positive trace-preserving map on A A A , possibly on an enlarged A A A , because every operation is selected by the record and the record grows with every outcome. The query of the k k k -th round is the unitary
∑ r ∣ r ⟩ ⟨ r ∣ K ⊗ Q ω r . \sum_r \lvert r\rangle\langle r\rvert_K \otimes Q_\omega^r. r ∑ ∣ r ⟩ ⟨ r ∣ K ⊗ Q ω r .
where Q ω r Q_\omega^r Q ω r is the identity if the path r r r makes fewer than k k k queries, and otherwise O ω O_\omega O ω acting on the registers selected by r r r , possibly controlled by the qubit selected by r r r . On block-diagonal states these maps act exactly as the record-dependent operations of the experiment, and they are oracle-independent except for the queries.
Step 2: a fixed query register. Adjoin a register Q of the type on which O ω O_\omega O ω acts and a qubit C, both in fixed states. Let S r S^r S r be the oracle-independent unitary that swaps the registers selected by r r r into Q and acts on C as follows.
(i) If the query of the path r r r is controlled, then S r S^r S r swaps the control qubit selected by r r r into C.
(ii) Otherwise, since C starts in the fixed state ∣ 0 ⟩ \lvert0\rangle ∣ 0 ⟩ , the unitary S r S^r S r flips it to ∣ 1 ⟩ \lvert1\rangle ∣ 1 ⟩ if the path makes a query and leaves it in ∣ 0 ⟩ \lvert0\rangle ∣ 0 ⟩ if it does not.
Then the operator W = ∑ r ∣ r ⟩ ⟨ r ∣ K ⊗ S r W=\sum_r\lvert r\rangle\langle r\rvert_K\otimes S^r W = ∑ r ∣ r ⟩ ⟨ r ∣ K ⊗ S r is an oracle-independent unitary, and
W † O ω C W = ∑ r ∣ r ⟩ ⟨ r ∣ K ⊗ Q ω r . W^\dagger O_\omega^C W=\sum_r\lvert r\rangle\langle r\rvert_K\otimes Q_\omega^r. W † O ω C W = r ∑ ∣ r ⟩ ⟨ r ∣ K ⊗ Q ω r .
on every state that is block diagonal in K and has Q and C in their fixed states, which includes every state that occurs in the computation. The identity holds because, on each block r r r , the factor W W W , which acts first, moves the relevant registers into position, the controlled query acts on them exactly as Q ω r Q_\omega^r Q ω r does, and W † W^\dagger W † moves them back.
Since O ω c O^c_\omega O ω c does not act on K, both applications of W W W are controlled by the same value of the record. Thus every query step is O ω c O^c_\omega O ω c conjugated by oracle-independent unitaries, and these unitaries are absorbed into the operations before and after the query.
Step 3: dilation and purification. Replace each oracle-independent completely positive trace-preserving map by a Stinespring isometry whose environment register is kept by the device and never acted on again. This does not change the reduced state of the other registers at any later time, because all later operations act trivially on the environment. Purify ρ A E \rho_{AE} ρ A E with a register that is kept by the device and never acted on. Include every register that is adjoined during the experiment in the initial state, each in its fixed state.
The result is a register A ′ A' A ′ and a unit vector ψ 0 ∈ A ′ ⊗ E \psi_0 \in A' \otimes E ψ 0 ∈ A ′ ⊗ E whose reduced state on E E E is ρ E \rho_E ρ E , and the device now applies, alternately, oracle-independent unitaries on A ′ A' A ′ and the controlled query O ω c O^c_\omega O ω c on CQ, that is, it applies V ω V_\omega V ω of (21) . A path that makes fewer than q q q queries has C in the state ∣ 0 ⟩ \lvert0\rangle ∣ 0 ⟩ at the remaining query rounds.
Step 4: the output. Extend the output function Z Z Z arbitrarily to the records that cannot occur at the end of the computation, and let Π z \Pi_z Π z be the projection onto the records r r r with Z ( r ) = z Z(r)=z Z ( r ) = z , tensored with the identity on the other registers of A ′ A' A ′ , so that ∑ z Π z = I \sum_z \Pi_z=I ∑ z Π z = I . After Step 3, the reduced state of K, the original registers of A, and E at the end of the computation equals the final state of the original experiment, and it is block diagonal in K. Therefore the partial trace in (22) is the sum of the E E E -parts of the blocks with Z ( r ) = z Z(r)=z Z ( r ) = z , which is ρ z ω \rho_z^\omega ρ z ω . Its trace is Pr [ Z = z ∣ ω ] \Pr[Z=z\mid\omega] Pr [ Z = z ∣ ω ] .
From now on we write A A A for the register A ′ A' A ′ of Lemma 3.2. We refer to Ψ ( ω ) = ( V ω ⊗ I E ) ψ 0 \Psi(\omega)=(V_\omega\otimes I_E)\psi_0 Ψ ( ω ) = ( V ω ⊗ I E ) ψ 0 as the final state of the device for the oracle ω \omega ω , and to Ψ z ( ω ) = ( Π z ⊗ I E ) Ψ ( ω ) \Psi_z(\omega)=(\Pi_z\otimes I_E)\Psi(\omega) Ψ z ( ω ) = ( Π z ⊗ I E ) Ψ ( ω ) as its output-z z z branch . In this notation the expected score (18) reads
B ( A ) = E ω ∑ z N p ω ( z ) ∥ Ψ z ( ω ) ∥ 2 . (23) B(A)=\mathbb{E}_\omega\sum_z Np_\omega(z)\lVert\Psi_z(\omega)\rVert^2. \tag*{(23)} B ( A ) = E ω z ∑ N p ω ( z ) ∥ Ψ z ( ω ) ∥ 2 . (23)
A query that is controlled by C in the state ∣ 1 ⟩ \lvert1\rangle ∣ 1 ⟩ is an ordinary query, so the lemma also covers algorithms that query without control, and in particular the honest samplers of both ensembles.
Amplitude amplification
The squaring algorithm of Section 6 and the state-preparation algorithm of Section 8 use amplitude amplification in the following standard form [17 ] .
Lemma 3.3 (Amplitude amplification). Let ψ \psi ψ be a unit vector in a Hilbert space, let Π \Pi Π be an orthogonal projection, and let P = ∥ Π ψ ∥ 2 > 0 P=\lVert\Pi\psi\rVert^2>0 P = ∥ Π ψ ∥ 2 > 0 .
(i) If P = 1 P=1 P = 1 , then
( ( 2 ∣ ψ ⟩ ⟨ ψ ∣ − I ) ( I − 2 Π ) ) ℓ ψ = ( − 1 ) ℓ ψ ((2\lvert\psi\rangle\langle\psi\rvert-I)(I-2\Pi))^\ell\psi=(-1)^\ell\psi (( 2 ∣ ψ ⟩ ⟨ ψ ∣ − I ) ( I − 2Π ) ) ℓ ψ = ( − 1 ) ℓ ψ for every integer ℓ ≥ 0 \ell\geq0 ℓ ≥ 0 .
(ii) If P < 1 P<1 P < 1 , put
ϑ = arcsin P ∈ ( 0 , π / 2 ) , u = Π ψ P , u ⊥ = ( I − Π ) ψ 1 − P , \vartheta=\arcsin\sqrt{P}\in(0,\pi/2),\qquad u=\frac{\Pi\psi}{\sqrt{P}},\qquad u^\perp=\frac{(I-\Pi)\psi}{\sqrt{1-P}}, ϑ = arcsin P ∈ ( 0 , π /2 ) , u = P Π ψ , u ⊥ = 1 − P ( I − Π ) ψ , so that ψ = sin ϑ u + cos ϑ u ⊥ \psi=\sin\vartheta\,u+\cos\vartheta\,u^\perp ψ = sin ϑ u + cos ϑ u ⊥ ; then, for every integer ℓ ≥ 0 \ell\geq0 ℓ ≥ 0 ,
( ( 2 ∣ ψ ⟩ ⟨ ψ ∣ − I ) ( I − 2 Π ) ) ℓ ψ = sin ( ( 2 ℓ + 1 ) ϑ ) u + cos ( ( 2 ℓ + 1 ) ϑ ) u ⊥ . ((2\lvert\psi\rangle\langle\psi\rvert-I)(I-2\Pi))^\ell\psi=\sin((2\ell+1)\vartheta)\,u+\cos((2\ell+1)\vartheta)\,u^\perp. (( 2 ∣ ψ ⟩ ⟨ ψ ∣ − I ) ( I − 2Π ) ) ℓ ψ = sin (( 2 ℓ + 1 ) ϑ ) u + cos (( 2 ℓ + 1 ) ϑ ) u ⊥ .
Proof. If P = 1 P=1 P = 1 , then Π ψ = ψ \Pi\psi=\psi Π ψ = ψ , so ( I − 2 Π ) ψ = − ψ (I-2\Pi)\psi=-\psi ( I − 2Π ) ψ = − ψ and ( 2 ∣ ψ ⟩ ⟨ ψ ∣ − I ) ( − ψ ) = − ψ (2|\psi\rangle\langle\psi|-I)(-\psi)=-\psi ( 2∣ ψ ⟩ ⟨ ψ ∣ − I ) ( − ψ ) = − ψ .
For (ii), let 0 < P < 1 0<P<1 0 < P < 1 . The vectors u u u and u ⊥ u^\perp u ⊥ are orthonormal, and the plane they span contains ψ \psi ψ and is invariant under both reflections. Indeed, I − 2 Π I-2\Pi I − 2Π fixes u ⊥ u^\perp u ⊥ and negates u u u , while 2 ∣ ψ ⟩ ⟨ ψ ∣ − I 2|\psi\rangle\langle\psi|-I 2∣ ψ ⟩ ⟨ ψ ∣ − I fixes ψ \psi ψ and negates the vector cos ϑ u − sin ϑ u ⊥ \cos\vartheta u-\sin\vartheta u^\perp cos ϑ u − sin ϑ u ⊥ orthogonal to it. On this plane, in the basis ( u , u ⊥ ) (u,u^\perp) ( u , u ⊥ ) , the product of the two reflections has the matrix
( cos 2 ϑ sin 2 ϑ − sin 2 ϑ cos 2 ϑ ) , \begin{pmatrix}
\cos2\vartheta& \sin2\vartheta\\
-\sin2\vartheta& \cos2\vartheta
\end{pmatrix}, ( cos 2 ϑ − sin 2 ϑ sin 2 ϑ cos 2 ϑ ) ,
which is the rotation by the angle 2 ϑ 2\vartheta 2 ϑ that takes u ⊥ u^\perp u ⊥ toward u u u ; here x u + y u ⊥ xu+yu^\perp xu + y u ⊥ is written ( x , y ) (x,y) ( x , y ) , and the first column is the image of u u u . By the addition formulas the matrix maps ( sin α , cos α ) (\sin\alpha,\cos\alpha) ( sin α , cos α ) to ( sin ( α + 2 ϑ ) , cos ( α + 2 ϑ ) ) (\sin(\alpha+2\vartheta),\cos(\alpha+2\vartheta)) ( sin ( α + 2 ϑ ) , cos ( α + 2 ϑ )) for every α \alpha α ; in particular it maps ψ = ( sin ϑ , cos ϑ ) \psi=(\sin\vartheta,\cos\vartheta) ψ = ( sin ϑ , cos ϑ ) to ( sin 3 ϑ , cos 3 ϑ ) (\sin3\vartheta,\cos3\vartheta) ( sin 3 ϑ , cos 3 ϑ ) , and induction on ℓ \ell ℓ gives the claim. □ \square □
Min-entropy, fidelity, and purified distance
The oracle register R R R is finite in the Fourier ensemble and continuous in the Haar ensemble. To treat both cases at once, we describe the joint state of R R R , Z Z Z , and E E E by the family of Eve’s conditional states.
Definition 3.4 (Families of positive operators and entropies). A family of positive operators is a map, measurable with respect to the distribution of the oracle, ω ↦ ( τ z ω ) z ∈ { 0 , 1 } n \omega\mapsto(\tau^\omega_z)_{z\in\{0,1\}^n} ω ↦ ( τ z ω ) z ∈ { 0 , 1 } n from oracles to tuples of positive semidefinite operators on E E E . It is normalized if E ω ∑ z Tr τ z ω = 1 \mathbb{E}_\omega\sum_z\operatorname{Tr}\tau^\omega_z=1 E ω ∑ z Tr τ z ω = 1 . This normalization is joint over the oracle and output; the total trace for each fixed oracle need not be 1 1 1 . For normalized families ρ \rho ρ and τ \tau τ define
p g u e s s ( Z ∣ R E ) τ = E ω sup M ∑ z Tr ( M z τ z ω ) , p_{\mathrm{guess}}(Z\mid RE)_\tau=\mathbb{E}_\omega\sup_M\sum_z\operatorname{Tr}(M_z\tau^\omega_z), p guess ( Z ∣ R E ) τ = E ω M sup z ∑ Tr ( M z τ z ω ) , H min ( Z ∣ R E ) τ = − log p g u e s s ( Z ∣ R E ) τ , H_{\min}(Z\mid RE)_\tau=-\log p_{\mathrm{guess}}(Z\mid RE)_\tau, H m i n ( Z ∣ R E ) τ = − log p guess ( Z ∣ R E ) τ , F ( ρ , τ ) = E ω ∑ z ∥ ρ z ω τ z ω ∥ 1 , F(\rho,\tau)=\mathbb{E}_\omega\sum_z\left\|\sqrt{\rho^\omega_z}\sqrt{\tau^\omega_z}\right\|_1, F ( ρ , τ ) = E ω z ∑ ρ z ω τ z ω 1 , P ( ρ , τ ) = 1 − F ( ρ , τ ) 2 . P(\rho,\tau)=\sqrt{1-F(\rho,\tau)^2}. P ( ρ , τ ) = 1 − F ( ρ , τ ) 2 . where the supremum is over all measurements M = ( M z ) z M=(M_z)_z M = ( M z ) z on E E E , that is, over all tuples of positive semidefinite operators with ∑ z M z = I E \sum_z M_z=I_E ∑ z M z = I E , and where ∥ T ∥ 1 = Tr T † T \|T\|_1=\operatorname{Tr}\sqrt{T^\dagger T} ∥ T ∥ 1 = Tr T † T is the trace norm.
For 0 ≤ η ≤ 1 0\leq\eta\leq1 0 ≤ η ≤ 1 , the smooth min-entropy is
H min η ( Z ∣ R E ) ρ = sup { H min ( Z ∣ R E ) τ : τ a normalized family with P ( ρ , τ ) ≤ η } . H_{\min}^{\eta}(Z\mid RE)_\rho=\sup\{H_{\min}(Z\mid RE)_\tau:\tau\text{ a normalized family with }P(\rho,\tau)\leq\eta\}. H m i n η ( Z ∣ R E ) ρ = sup { H m i n ( Z ∣ R E ) τ : τ a normalized family with P ( ρ , τ ) ≤ η } . Here F ( ρ , τ ) ≤ 1 F(\rho,\tau)\leq1 F ( ρ , τ ) ≤ 1 , because
∥ ρ z ω τ z ω ∥ 1 ≤ ( Tr ρ z ω Tr τ z ω ) 1 / 2 , \left\|\sqrt{\rho^\omega_z}\sqrt{\tau^\omega_z}\right\|_1\leq\left(\operatorname{Tr}\rho^\omega_z\operatorname{Tr}\tau^\omega_z\right)^{1/2}, ρ z ω τ z ω 1 ≤ ( Tr ρ z ω Tr τ z ω ) 1/2 , and the Cauchy–Schwarz inequality over ω \omega ω and z z z , together with the normalization of both families, bounds the sum by 1 1 1 .
The family that describes an experiment consists of the states ρ z ω \rho^\omega_z ρ z ω of Definition 3.1, and it is normalized since ∑ z Tr ρ z ω = 1 \sum_z\operatorname{Tr}\rho^\omega_z=1 ∑ z Tr ρ z ω = 1 for every ω \omega ω . In this family, p g u e s s ( Z ∣ R E ) ρ p_{\mathrm{guess}}(Z\mid RE)_\rho p guess ( Z ∣ R E ) ρ is the largest probability with which Eve, who knows ω \omega ω and holds E E E , guesses Z Z Z , since she may choose her measurement as a function of ω \omega ω . The integrands in Definition 3.4 are measurable functions of ω \omega ω , because the supremum may be taken over a countable dense set of measurements, and the trace norm is continuous.
Dirichlet distributions
For a = ( a 1 , … , a N ) a=(a_1,\ldots,a_N) a = ( a 1 , … , a N ) with all a i ≥ 1 a_i \ge1 a i ≥ 1 , write ∣ a ∣ = a 1 + ⋯ + a N |a|=a_1+\cdots+a_N ∣ a ∣ = a 1 + ⋯ + a N . The Dirichlet distribution Dir ( a ) \operatorname{Dir}(a) Dir ( a ) is the probability distribution on the simplex { p ∈ R N : p i ≥ 0 , ∑ i p i = 1 } \{p\in\mathbb{R}^N:p_i\ge0,\ \sum_i p_i=1\} { p ∈ R N : p i ≥ 0 , ∑ i p i = 1 } with density proportional to ∏ i p i a i − 1 \prod_i p_i^{a_i-1} ∏ i p i a i − 1 with respect to the uniform measure on the simplex, and Dir ( 1 , … , 1 ) \operatorname{Dir}(1,\ldots,1) Dir ( 1 , … , 1 ) is the uniform distribution.
We write E a \mathbb{E}_a E a for the expectation under Dir ( a ) \operatorname{Dir}(a) Dir ( a ) , and ⟨ g , h ⟩ a = E a [ g h ˉ ] \langle g,h\rangle_a=\mathbb{E}_a[g\bar{h}] ⟨ g , h ⟩ a = E a [ g h ˉ ] and ∥ h ∥ a \|h\|_a ∥ h ∥ a for the inner product and norm of the space of square-integrable functions on the simplex under Dir ( a ) \operatorname{Dir}(a) Dir ( a ) . We also write ( x ) k = x ( x + 1 ) ⋯ ( x + k − 1 ) (x)_k=x(x+1)\cdots(x+k-1) ( x ) k = x ( x + 1 ) ⋯ ( x + k − 1 ) for the rising factorial. The following facts are classical [49 Chapter 2] ; we include the short proofs.
Lemma 3.7 (Dirichlet facts). Let p ∼ Dir ( a ) p\sim\operatorname{Dir}(a) p ∼ Dir ( a ) .
(i) For nonnegative integers b 1 , … , b N b_1,\ldots,b_N b 1 , … , b N ,
E a ∏ i p i b i = ∏ i ( a i ) b i ( ∣ a ∣ ) ∣ b ∣ , where ∣ b ∣ = ∑ i b i . \mathbb{E}_a\prod_i p_i^{b_i}=\frac{\prod_i(a_i)_{b_i}}{(|a|)_{|b|}},\qquad\text{where }|b|=\sum_i b_i. E a i ∏ p i b i = ( ∣ a ∣ ) ∣ b ∣ ∏ i ( a i ) b i , where ∣ b ∣ = i ∑ b i . In particular,
E a p i = a i ∣ a ∣ and Var a ( p i ) = a i ( ∣ a ∣ − a i ) ∣ a ∣ 2 ( ∣ a ∣ + 1 ) . \mathbb{E}_a p_i=\frac{a_i}{|a|}\qquad\text{and}\qquad\operatorname{Var}_a(p_i)=\frac{a_i(|a|-a_i)}{|a|^2(|a|+1)}. E a p i = ∣ a ∣ a i and Var a ( p i ) = ∣ a ∣ 2 ( ∣ a ∣ + 1 ) a i ( ∣ a ∣ − a i ) . (ii) As measures on the simplex,
p i d Dir ( a ) = a i ∣ a ∣ d Dir ( a + e i ) , p_i\,d\operatorname{Dir}(a)=\frac{a_i}{|a|}\,d\operatorname{Dir}(a+e_i), p i d Dir ( a ) = ∣ a ∣ a i d Dir ( a + e i ) , where e i e_i e i is the i i i -th unit vector. Equivalently, E a [ p i h ] = ( a i / ∣ a ∣ ) E a + e i [ h ] \mathbb{E}_a[p_i h]=(a_i/|a|)\mathbb{E}_{a+e_i}[h] E a [ p i h ] = ( a i /∣ a ∣ ) E a + e i [ h ] for every integrable h h h .
(iii) *For S ⊆ [ N ] S\subseteq[N] S ⊆ [ N ] , we write a ( S ) = ∑ i ∈ S a i a(S)=\sum_{i\in S}a_i a ( S ) = ∑ i ∈ S a i and p ( S ) = ∑ i ∈ S p i p(S)=\sum_{i\in S}p_i p ( S ) = ∑ i ∈ S p i . If ∅ ≠ S ⊊ [ N ] \varnothing\ne S\subsetneq[N] ∅ = S ⊊ [ N ] , the mass p ( S ) p(S) p ( S ) has the Beta distribution with parameters ( a ( S ) , ∣ a ∣ − a ( S ) ) (a(S),|a|-a(S)) ( a ( S ) , ∣ a ∣ − a ( S )) , whose density on [ 0 , 1 ] [0,1] [ 0 , 1 ] is proportional to t a ( S ) − 1 ( 1 − t ) ∣ a ∣ − a ( S ) − 1 t^{a(S)-1}(1-t)^{|a|-a(S)-1} t a ( S ) − 1 ( 1 − t ) ∣ a ∣ − a ( S ) − 1 , and the vector ( p i / p ( S ) ) i ∈ S (p_i/p(S))_{i\in S} ( p i / p ( S ) ) i ∈ S is independent of p ( S ) p(S) p ( S ) and has the distribution Dir ( ( a i ) i ∈ S ) \operatorname{Dir}((a_i)_{i\in S}) Dir (( a i ) i ∈ S ) .
Proof. With respect to Lebesgue measure in the coordinates p 1 , … , p N − 1 p_1,\ldots,p_{N-1} p 1 , … , p N − 1 , the density of Dir ( a ) \operatorname{Dir}(a) Dir ( a ) is
Γ ( ∣ a ∣ ) ∏ i p i a i − 1 ∏ i Γ ( a i ) . \frac{\Gamma(|a|)\prod_i p_i^{a_i-1}}{\prod_i\Gamma(a_i)}. ∏ i Γ ( a i ) Γ ( ∣ a ∣ ) ∏ i p i a i − 1 .
For (i), multiplying this density by ∏ i p i b i \prod_i p_i^{b_i} ∏ i p i b i gives a multiple of the density of Dir ( a + b ) \operatorname{Dir}(a+b) Dir ( a + b ) , so the expectation is the ratio of the two normalizing constants,
Γ ( ∣ a ∣ ) ∏ i Γ ( a i + b i ) Γ ( ∣ a ∣ + ∣ b ∣ ) ∏ i Γ ( a i ) , \frac{\Gamma(|a|)\prod_i\Gamma(a_i+b_i)}{\Gamma(|a|+|b|)\prod_i\Gamma(a_i)}, Γ ( ∣ a ∣ + ∣ b ∣ ) ∏ i Γ ( a i ) Γ ( ∣ a ∣ ) ∏ i Γ ( a i + b i ) ,
which is the stated product of rising factorials. Part (ii) is the case b = e i b=e_i b = e i of (i), read as an identity between densities.
For (iii), write
t = p ( S ) , p i = t u i for i ∈ S , p j = ( 1 − t ) v j for j ∉ S , t=p(S),\qquad p_i=tu_i\ \text{ for }i\in S,\qquad p_j=(1-t)v_j\ \text{ for }j\notin S, t = p ( S ) , p i = t u i for i ∈ S , p j = ( 1 − t ) v j for j ∈ / S ,
where u u u and v v v range over the simplices of dimensions ∣ S ∣ − 1 |S|-1 ∣ S ∣ − 1 and N − ∣ S ∣ − 1 N-|S|-1 N − ∣ S ∣ − 1 . In the coordinates consisting of t t t and all but one coordinate of each of u u u and v v v , the Jacobian of this change of variables is proportional to t ∣ S ∣ − 1 ( 1 − t ) N − ∣ S ∣ − 1 t^{|S|-1}(1-t)^{N-|S|-1} t ∣ S ∣ − 1 ( 1 − t ) N − ∣ S ∣ − 1 , and
∏ i p i a i − 1 = t a ( S ) − ∣ S ∣ ( 1 − t ) ∣ a ∣ − a ( S ) − N + ∣ S ∣ ∏ i ∈ S u i a i − 1 ∏ j ∉ S v j a j − 1 . \prod_i p_i^{a_i-1}=t^{a(S)-|S|}(1-t)^{|a|-a(S)-N+|S|}\prod_{i\in S}u_i^{a_i-1}\prod_{j\notin S}v_j^{a_j-1}. i ∏ p i a i − 1 = t a ( S ) − ∣ S ∣ ( 1 − t ) ∣ a ∣ − a ( S ) − N + ∣ S ∣ i ∈ S ∏ u i a i − 1 j ∈ / S ∏ v j a j − 1 .
Hence the joint density of ( t , u , v ) (t,u,v) ( t , u , v ) is proportional to t a ( S ) − 1 ( 1 − t ) ∣ a ∣ − a ( S ) − 1 t^{a(S)-1}(1-t)^{|a|-a(S)-1} t a ( S ) − 1 ( 1 − t ) ∣ a ∣ − a ( S ) − 1 times a function of u u u times a function of v v v . Since ( t , u , v ) (t,u,v) ( t , u , v ) ranges over a product of three sets, t t t , u u u , and v v v are independent, t t t has the stated Beta distribution, and u = ( p i / p ( S ) ) i ∈ S u=(p_i/p(S))_{i\in S} u = ( p i / p ( S ) ) i ∈ S has the distribution Dir ( ( a i ) i ∈ S ) \operatorname{Dir}((a_i)_{i\in S}) Dir (( a i ) i ∈ S ) . ∎
Part (ii) says that multiplying the density by p i p_i p i is the same as observing the outcome i i i once: the prior Dir ( a ) \operatorname{Dir}(a) Dir ( a ) becomes the posterior Dir ( a + e i ) \operatorname{Dir}(a+e_i) Dir ( a + e i ) , and the normalizing factor a i / ∣ a ∣ a_i/|a| a i /∣ a ∣ is the prior probability of that observation. This interpretation is used throughout Section 5.
The Haar measure in these terms. Write α x = p x e i θ x \alpha_x=\sqrt{p_x}e^{i\theta_x} α x = p x e i θ x for the amplitudes of a Haar-random state. Under the Haar measure, the phases θ 1 , … , θ N \theta_1,\ldots,\theta_N θ 1 , … , θ N are independent and uniform on [ 0 , 2 π ) [0,2\pi) [ 0 , 2 π ) , they are independent of p = ( p 1 , … , p N ) p=(p_1,\ldots,p_N) p = ( p 1 , … , p N ) , and p p p is uniform on the simplex, that is, p ∼ Dir ( 1 , … , 1 ) p\sim\operatorname{Dir}(1,\ldots,1) p ∼ Dir ( 1 , … , 1 ) . This is the standard description of the Haar measure on the sphere in terms of its moduli and phases; for example, it follows by writing a vector of independent standard complex Gaussians in polar coordinates and normalizing it.
The lower bound for Fourier sampling
In this section we prove part 1 of Theorem 1.1. We fix an experiment in the Fourier ensemble, which by Lemma 3.2 we may assume makes a fixed sequence of q q q controlled queries. The experiment has device register A A A , Eve’s register E E E (which may be trivial), initial state ψ 0 ∈ A ⊗ E \psi_0\in A\otimes E ψ 0 ∈ A ⊗ E , unitaries U 0 , … , U q U_0,\ldots,U_q U 0 , … , U q , projections { Π z } \{\Pi_z\} { Π z } , and final state
Ψ ( f ) = ( V f ⊗ I E ) ψ 0 , V f = U q O f c U q − 1 ⋯ O f c U 0 . \Psi(f)=(V_f\otimes I_E)\psi_0,\qquad V_f=U_qO_f^cU_{q-1}\cdots O_f^cU_0. Ψ ( f ) = ( V f ⊗ I E ) ψ 0 , V f = U q O f c U q − 1 ⋯ O f c U 0 .
The query register Q Q Q of Lemma 3.2 consists of an address register X X X of n n n qubits and a target qubit T T T , so the query acts on the control qubit C C C , on X X X , and on T T T .
The recording representation
Let H = A ⊗ E \mathcal{H}=A\otimes E H = A ⊗ E . The final state is a function f ↦ Ψ ( f ) f\mapsto\Psi(f) f ↦ Ψ ( f ) from { − 1 , 1 } { 0 , 1 } n \{-1,1\}^{\{0,1\}^n} { − 1 , 1 } { 0 , 1 } n to H \mathcal{H} H . We work in the space F \mathcal{F} F of all such functions, equipped with the inner product ⟨ Φ , Φ ′ ⟩ = E f ⟨ Φ ( f ) , Φ ′ ( f ) ⟩ \langle\Phi,\Phi'\rangle=\mathbb{E}_f\langle\Phi(f),\Phi'(f)\rangle ⟨ Φ , Φ ′ ⟩ = E f ⟨ Φ ( f ) , Φ ′ ( f )⟩ , so that ∥ Φ ∥ 2 = E f ∥ Φ ( f ) ∥ 2 \lVert\Phi\rVert^2=\mathbb{E}_f\lVert\Phi(f)\rVert^2 ∥ Φ ∥ 2 = E f ∥ Φ ( f ) ∥ 2 and ∥ Ψ ∥ = 1 \lVert\Psi\rVert=1 ∥ Ψ ∥ = 1 .
For a set S ⊆ { 0 , 1 } n S\subseteq\{0,1\}^n S ⊆ { 0 , 1 } n , let χ S ( f ) = ∏ y ∈ S f ( y ) \chi_S(f)=\prod_{y\in S}f(y) χ S ( f ) = ∏ y ∈ S f ( y ) , with χ ∅ = 1 \chi_\varnothing=1 χ ∅ = 1 . These are the characters of the group { − 1 , 1 } { 0 , 1 } n \{-1,1\}^{\{0,1\}^n} { − 1 , 1 } { 0 , 1 } n , indexed by sets. They should not be confused with the characters χ z \chi_z χ z of (12), which are indexed by strings. Since the values of f f f are independent uniform signs, E f χ S ( f ) χ S ′ ( f ) = 1 [ S = S ′ ] \mathbb{E}_f\chi_S(f)\chi_{S'}(f)=\mathbf{1}[S=S'] E f χ S ( f ) χ S ′ ( f ) = 1 [ S = S ′ ] , and the 2 N 2^N 2 N functions χ S \chi_S χ S form an orthonormal basis of the scalar functions on { − 1 , 1 } { 0 , 1 } n \{-1,1\}^{\{0,1\}^n} { − 1 , 1 } { 0 , 1 } n . Every Φ ∈ F \Phi\in\mathcal{F} Φ ∈ F therefore has the expansion
Φ = ∑ S χ S Φ S , Φ S = E f [ χ S ( f ) Φ ( f ) ] ∈ H , ∥ Φ ∥ 2 = ∑ S ∥ Φ S ∥ 2 . (25) \Phi=\sum_S\chi_S\Phi_S,\qquad\Phi_S=\mathbb{E}_f[\chi_S(f)\Phi(f)]\in\mathcal{H},\qquad\lVert\Phi\rVert^2=\sum_S\lVert\Phi_S\rVert^2. \tag*{(25)} Φ = S ∑ χ S Φ S , Φ S = E f [ χ S ( f ) Φ ( f )] ∈ H , ∥ Φ ∥ 2 = S ∑ ∥ Φ S ∥ 2 . (25)
We call S S S the recorded set of the term χ S Φ S \chi_S\Phi_S χ S Φ S and its elements the recorded points . This is the representation used in the compressed oracle technique [Zha19]. If the random function is purified by a register in the uniform superposition 2 − N / 2 ∑ f ∣ f ⟩ 2^{-N/2}\sum_f |f\rangle 2 − N /2 ∑ f ∣ f ⟩ , then χ S Φ S \chi_S\Phi_S χ S Φ S corresponds to the vector ∣ S ⟩ ⊗ Φ S |S\rangle\otimes\Phi_S ∣ S ⟩ ⊗ Φ S , where the vectors ∣ S ⟩ = 2 − N / 2 ∑ f χ S ( f ) ∣ f ⟩ |S\rangle=2^{-N/2}\sum_f\chi_S(f)|f\rangle ∣ S ⟩ = 2 − N /2 ∑ f χ S ( f ) ∣ f ⟩ form the Fourier basis of that register. We shall not need the register itself, only the expansion (25).
Operators on F \mathcal{F} F . An operator T T T on H \mathcal{H} H acts on F \mathcal{F} F pointwise, by ( T Φ ) ( f ) = T Φ ( f ) (T\Phi)(f)=T\Phi(f) ( T Φ ) ( f ) = T Φ ( f ) . This action preserves each coefficient space: ( T Φ ) S = T Φ S (T\Phi)_S=T\Phi_S ( T Φ ) S = T Φ S . Multiplication by a scalar function m ( f ) m(f) m ( f ) also acts on F \mathcal{F} F . In particular, X x \mathcal{X}_x X x denotes multiplication by f ( x ) f(x) f ( x ) . Since f ( x ) χ S ( f ) = χ S △ { x } ( f ) f(x)\chi_S(f)=\chi_{S\mathbin{\triangle}\{x\}}(f) f ( x ) χ S ( f ) = χ S △ { x } ( f ) , where △ \triangle △ is the symmetric difference, we have
X x ( χ S h ) = χ S △ { x } h ( h ∈ H ) . (26) \mathcal{X}_x(\chi_S h)=\chi_{S\mathbin{\triangle}\{x\}}h \qquad(h\in\mathcal{H}). \tag*{(26)} X x ( χ S h ) = χ S △ { x } h ( h ∈ H ) . (26)
That is, multiplying by f ( x ) f(x) f ( x ) records the point x x x if it is absent and removes it if it is present. We split this operation into its two halves. Let a x a_x a x and a x † a_x^\dagger a x † be the operators on F \mathcal{F} F defined on the basis by
a x ( χ S h ) = 1 [ x ∈ S ] χ S ∖ { x } h , a x † ( χ S h ) = 1 [ x ∉ S ] χ S ∪ { x } h . (27) a_x(\chi_S h)=\mathbf{1}[x\in S]\chi_{S\setminus\{x\}}h,\qquad a_x^\dagger(\chi_S h)=\mathbf{1}[x\notin S]\chi_{S\cup\{x\}}h. \tag*{(27)} a x ( χ S h ) = 1 [ x ∈ S ] χ S ∖ { x } h , a x † ( χ S h ) = 1 [ x ∈ / S ] χ S ∪ { x } h . (27)
Thus a x a_x a x removes the point x x x and a x † a_x^\dagger a x † records it, and each gives zero when it cannot do so. The two operators are adjoint to each other, since the inner products ⟨ χ S ′ h ′ , a x χ S h ⟩ \langle\chi_{S'}h',a_x\chi_Sh\rangle ⟨ χ S ′ h ′ , a x χ S h ⟩ and ⟨ a x † χ S ′ h ′ , χ S h ⟩ \langle a_x^\dagger\chi_{S'}h',\chi_Sh\rangle ⟨ a x † χ S ′ h ′ , χ S h ⟩ both equal ⟨ h ′ , h ⟩ \langle h',h\rangle ⟨ h ′ , h ⟩ when S ′ = S ∖ { x } S'=S\setminus\{x\} S ′ = S ∖ { x } with x ∈ S x\in S x ∈ S , and both vanish otherwise.
In the language of qubits, if the set S S S is encoded by N N N membership qubits, one for each address, then a x a_x a x , a x † a_x^\dagger a x † , and a x † a x a_x^\dagger a_x a x † a x are the lowering, raising, and number operators of the x x x -th qubit, and X x \mathcal{X}_x X x is its Pauli X X X operator. These qubits represent the dependence on f f f and are not a register that the algorithm can act on.
Directly from (26) and (27),
X x = a x + a x † , a x 2 = 0 , a x a x † + a x † a x = I , a x a x † − a x † a x = I − 2 n x , (28) \mathcal{X}_x=a_x+a_x^\dagger,\qquad a_x^2=0,\qquad a_xa_x^\dagger+a_x^\dagger a_x=I,\qquad a_xa_x^\dagger-a_x^\dagger a_x=I-2n_x, \tag*{(28)} X x = a x + a x † , a x 2 = 0 , a x a x † + a x † a x = I , a x a x † − a x † a x = I − 2 n x , (28)
where the operator n x = a x † a x n_x=a_x^\dagger a_x n x = a x † a x is the orthogonal projection onto the terms in which x x x is recorded. Operators attached to distinct points x ≠ y x\ne y x = y commute, because they act on the membership of different points. The operator D = ∑ x n x D=\sum_x n_x D = ∑ x n x , with D ( χ S h ) = ∣ S ∣ χ S h D(\chi_S h)=|S|\chi_S h D ( χ S h ) = ∣ S ∣ χ S h , counts the recorded points.
Finally, for z ∈ { 0 , 1 } n z\in\{0,1\}^n z ∈ { 0 , 1 } n we define
b z = 1 N ∑ x χ z ( x ) a x . (29) b_z=\frac{1}{\sqrt{N}}\sum_x\chi_z(x)a_x. \tag*{(29)} b z = N 1 x ∑ χ z ( x ) a x . (29)
This operator removes one recorded point with the amplitudes of the Hadamard basis state ∣ χ z ⟩ = H ⊗ n ∣ z ⟩ = N − 1 / 2 ∑ x χ z ( x ) ∣ x ⟩ |\chi_z\rangle=H^{\otimes n}|z\rangle=N^{-1/2}\sum_x\chi_z(x)|x\rangle ∣ χ z ⟩ = H ⊗ n ∣ z ⟩ = N − 1/2 ∑ x χ z ( x ) ∣ x ⟩ : the amplitude with which it removes x x x is the amplitude of ∣ x ⟩ |x\rangle ∣ x ⟩ in ∣ χ z ⟩ |\chi_z\rangle ∣ χ z ⟩ .
These operators also have a description in terms of the function Φ \Phi Φ itself. The operator a x a_x a x is the discrete derivative
( a x Φ ) ( f ) = 1 2 ( Φ ( f x , + ) − Φ ( f x , − ) ) , (a_x\Phi)(f)=\frac{1}{2}\bigl(\Phi(f^{x,+})-\Phi(f^{x,-})\bigr), ( a x Φ ) ( f ) = 2 1 ( Φ ( f x , + ) − Φ ( f x , − ) ) ,
where f x , ± f^{x,\pm} f x , ± agrees with f f f outside x x x and takes the value ± 1 \pm1 ± 1 at x x x . This holds because
χ S ( f x , ± ) = { ± χ S ∖ { x } ( f ) if x ∈ S , χ S ( f ) otherwise . \chi_S(f^{x,\pm})=
\begin{cases}
\pm\chi_{S\setminus\{x\}}(f) & \text{if }x\in S,\\
\chi_S(f) & \text{otherwise}.
\end{cases} χ S ( f x , ± ) = { ± χ S ∖ { x } ( f ) χ S ( f ) if x ∈ S , otherwise .
This description is used in § 15 .
Lemma 4.1 (Identities for the Fourier operators). For all z , x ∈ { 0 , 1 } n z,x\in\{0,1\}^n z , x ∈ { 0 , 1 } n and all Φ ∈ F \Phi\in\mathcal{F} Φ ∈ F , the following hold.
(i) The operators b w b_w b w satisfy
∑ w b w † b w = D . \sum_w b_w^\dagger b_w = D. w ∑ b w † b w = D .
(ii) The operators b z b_z b z and b z † b_z^\dagger b z † satisfy
b z b z † − b z † b z = I − 2 N D . b_zb_z^\dagger-b_z^\dagger b_z=I-\frac{2}{N}D. b z b z † − b z † b z = I − N 2 D .
(iii) The vector Φ \Phi Φ satisfies
∑ w ∥ ( b w 2 X x − X x b w 2 ) Φ ∥ 2 = 4 N ⟨ Φ , ( D − n x ) Φ ⟩ . \sum_w\left\lVert\left(b_w^2\mathcal{X}_x-\mathcal{X}_xb_w^2\right)\Phi\right\rVert^2=\frac{4}{N}\langle\Phi,(D-n_x)\Phi\rangle. w ∑ ( b w 2 X x − X x b w 2 ) Φ 2 = N 4 ⟨ Φ , ( D − n x ) Φ ⟩ .
Proof. Part (i). By (29) and the first relation in (12),
∑ w b w † b w = 1 N ∑ x , y ( ∑ w χ w ( x ) χ w ( y ) ) a x † a y = ∑ x a x † a x = D . \begin{aligned}
\sum_w b_w^\dagger b_w=\frac{1}{N}\sum_{x,y}\left(\sum_w\chi_w(x)\chi_w(y)\right)a_x^\dagger a_y \\
&=\sum_x a_x^\dagger a_x=D.
\end{aligned} w ∑ b w † b w = N 1 x , y ∑ ( w ∑ χ w ( x ) χ w ( y ) ) a x † a y = x ∑ a x † a x = D .
Part (ii). Expanding the products gives
b z b z † − b z † b z = 1 N ∑ x , y χ z ( x ) χ z ( y ) ( a x a y † − a y † a x ) . b_zb_z^\dagger-b_z^\dagger b_z=\frac{1}{N}\sum_{x,y}\chi_z(x)\chi_z(y)(a_xa_y^\dagger-a_y^\dagger a_x). b z b z † − b z † b z = N 1 x , y ∑ χ z ( x ) χ z ( y ) ( a x a y † − a y † a x ) .
For x ≠ y x\ne y x = y the operators a x a_x a x and a y † a_y^\dagger a y † commute, so only the terms with x = y x=y x = y remain. By (28), these terms give
1 N ∑ x ( I − 2 n x ) = I − 2 N D . \frac{1}{N}\sum_x(I-2n_x)=I-\frac{2}{N}D. N 1 x ∑ ( I − 2 n x ) = I − N 2 D .
Part (iii). Fix x x x and write
b w = N − 1 / 2 χ w ( x ) a x + c w , c w = N − 1 / 2 ∑ y ≠ x χ w ( y ) a y , b_w=N^{-1/2}\chi_w(x)a_x+c_w,\qquad c_w=N^{-1/2}\sum_{y\ne x}\chi_w(y)a_y, b w = N − 1/2 χ w ( x ) a x + c w , c w = N − 1/2 y = x ∑ χ w ( y ) a y ,
where c w c_w c w is an operator that commutes with a x a_x a x , a x † a_x^\dagger a x † , and n x n_x n x . Since a x 2 = 0 a_x^2=0 a x 2 = 0 and χ w ( x ) 2 = 1 \chi_w(x)^2=1 χ w ( x ) 2 = 1 ,
b w 2 = 2 N χ w ( x ) a x c w + c w 2 . b_w^2=\frac{2}{\sqrt{N}}\chi_w(x)a_xc_w+c_w^2. b w 2 = N 2 χ w ( x ) a x c w + c w 2 .
The term c w 2 c_w^2 c w 2 commutes with X x = a x + a x † \mathcal{X}_x=a_x+a_x^\dagger X x = a x + a x † . Moreover, by (28),
a x X x − X x a x = a x a x † − a x † a x = I − 2 n x , a_x\mathcal{X}_x-\mathcal{X}_xa_x=a_xa_x^\dagger-a_x^\dagger a_x=I-2n_x, a x X x − X x a x = a x a x † − a x † a x = I − 2 n x ,
so that
b w 2 X x − X x b w 2 = 2 N χ w ( x ) ( I − 2 n x ) c w . b_w^2\mathcal{X}_x-\mathcal{X}_xb_w^2=\frac{2}{\sqrt{N}}\chi_w(x)(I-2n_x)c_w. b w 2 X x − X x b w 2 = N 2 χ w ( x ) ( I − 2 n x ) c w .
The operator I − 2 n x I-2n_x I − 2 n x multiplies each basis term by ± 1 \pm1 ± 1 , so it preserves norms. Therefore
∑ w ∥ ( b w 2 X x − X x b w 2 ) Φ ∥ 2 = 4 N ∑ w ∥ c w Φ ∥ 2 = 4 N ⟨ Φ , ∑ w c w † c w Φ ⟩ . \begin{aligned}
\sum_w\left\lVert\left(b_w^2\mathcal{X}_x-\mathcal{X}_xb_w^2\right)\Phi\right\rVert^2=\frac{4}{N}\sum_w\left\lVert c_w\Phi\right\rVert^2 \\
&=\frac{4}{N}\left\langle\Phi,\sum_wc_w^\dagger c_w\Phi\right\rangle.
\end{aligned} w ∑ ( b w 2 X x − X x b w 2 ) Φ 2 = N 4 w ∑ ∥ c w Φ ∥ 2 = N 4 ⟨ Φ , w ∑ c w † c w Φ ⟩ .
As in (i), the orthogonality relation (12) gives
∑ w c w † c w = ∑ y ≠ x a y † a y = D − n x . \sum_wc_w^\dagger c_w=\sum_{y\ne x}a_y^\dagger a_y=D-n_x. w ∑ c w † c w = y = x ∑ a y † a y = D − n x .
The query in the recording representation. By (15), the value oracle decomposes as
O f = P + + ∑ x f ( x ) P x , P + = I X ⊗ ∣ + ⟩ ⟨ + ∣ T , P x = ∣ x ⟩ ⟨ x ∣ X ⊗ ∣ − ⟩ ⟨ − ∣ T . O_f = P_+ + \sum_x f(x)P_x,\qquad P_+ = I_X \otimes|+\rangle\langle+|_T,\qquad P_x = |x\rangle\langle x|_X \otimes|-\rangle\langle-|_T. O f = P + + x ∑ f ( x ) P x , P + = I X ⊗ ∣ + ⟩ ⟨ + ∣ T , P x = ∣ x ⟩ ⟨ x ∣ X ⊗ ∣ − ⟩ ⟨ − ∣ T .
where P + P_+ P + and the P x P_x P x are mutually orthogonal projections on XT that sum to the identity. Hence the controlled query (20) acts on F \mathcal{F} F as
Q = P ∅ + ∑ x X x P x c , P ∅ = ∣ 0 ⟩ ⟨ 0 ∣ C ⊗ I + ∣ 1 ⟩ ⟨ 1 ∣ C ⊗ P + , P x c = ∣ 1 ⟩ ⟨ 1 ∣ C ⊗ P x , (30) Q = P_{\varnothing} + \sum_x \mathcal{X}_x P_x^c,\qquad P_{\varnothing} = |0\rangle\langle0|_C \otimes I + |1\rangle\langle1|_C \otimes P_+,\qquad P_x^c = |1\rangle\langle1|_C \otimes P_x, \tag*{(30)} Q = P ∅ + x ∑ X x P x c , P ∅ = ∣0 ⟩ ⟨ 0 ∣ C ⊗ I + ∣1 ⟩ ⟨ 1 ∣ C ⊗ P + , P x c = ∣1 ⟩ ⟨ 1 ∣ C ⊗ P x , (30)
where P ∅ P_{\varnothing} P ∅ and the P x c P_x^c P x c are mutually orthogonal projections on A A A summing to the identity. These projections act pointwise on F \mathcal{F} F , and X x \mathcal{X}_x X x commutes with all of them.
The final state is Ψ = U q Q U q − 1 Q ⋯ U 1 Q U 0 ψ 0 \Psi= U_q Q U_{q-1}Q \cdots U_1 Q U_0\psi_0 Ψ = U q Q U q − 1 Q ⋯ U 1 Q U 0 ψ 0 , where ψ 0 \psi_0 ψ 0 is regarded as a constant function and the U t U_t U t act pointwise. We write Ψ t \Psi_t Ψ t for the state after t t t queries and the unitary U t U_t U t that follows them, so that Ψ 0 = U 0 ψ 0 \Psi_0 = U_0\psi_0 Ψ 0 = U 0 ψ 0 and Ψ q = Ψ \Psi_q = \Psi Ψ q = Ψ .
Three facts control the recorded sets that occur in Ψ t \Psi_t Ψ t .
The constant function ψ 0 \psi_0 ψ 0 has the single recorded set S = ∅ S = \varnothing S = ∅ .
A pointwise unitary does not change the sets S S S that occur.
By (26) , the query changes each set by at most one point.
By induction on t t t ,
( Ψ t ) S = 0 whenever ∣ S ∣ > t , hence ⟨ Φ , D Φ ⟩ ≤ t ∥ Φ ∥ 2 (31) (\Psi_t)_S = 0\quad\text{whenever }|S|>t,\qquad\text{hence}\qquad\langle\Phi,D\Phi\rangle\le t\|\Phi\|^2 \tag*{(31)} ( Ψ t ) S = 0 whenever ∣ S ∣ > t , hence ⟨ Φ , D Φ ⟩ ≤ t ∥Φ ∥ 2 (31)
for every Φ \Phi Φ that is obtained from Ψ t \Psi_t Ψ t by applying operators that act pointwise, such as P x c P_x^c P x c or Π z \Pi_z Π z . The first part of (31) is the statement that the final state is a polynomial of degree at most q q q in the values of f f f , as in the polynomial method [11 ] .
The score bound
Let Ψ z = Π z Ψ \Psi_z = \Pi_z\Psi Ψ z = Π z Ψ be the output-z z z branch of the final state. Since N f ^ ( z ) = N − 1 / 2 ∑ x χ z ( x ) f ( x ) \sqrt{N}\,\widehat{f}(z) = N^{-1/2}\sum_x \chi_z(x)f(x) N f ( z ) = N − 1/2 ∑ x χ z ( x ) f ( x ) , multiplication by N f ^ ( z ) \sqrt{N}\,\widehat{f}(z) N f ( z ) is the operator N − 1 / 2 ∑ x χ z ( x ) X x = b z + b z † N^{-1/2}\sum_x\chi_z(x)\mathcal{X}_x = b_z + b_z^\dagger N − 1/2 ∑ x χ z ( x ) X x = b z + b z † . By (23) and this identity,
B ( A ) = ∑ z E f [ N f ^ ( z ) 2 ∥ Ψ z ( f ) ∥ 2 ] = ∑ z ∥ ( b z + b z † ) Ψ z ∥ 2 . (32) B(A)=\sum_z \mathbb{E}_f\left[N\widehat{f}(z)^2\|\Psi_z(f)\|^2\right]=\sum_z\|(b_z+b_z^\dagger)\Psi_z\|^2. \tag*{(32)} B ( A ) = z ∑ E f [ N f ( z ) 2 ∥ Ψ z ( f ) ∥ 2 ] = z ∑ ∥ ( b z + b z † ) Ψ z ∥ 2 . (32)
We write D z = b z † b z D_z=b_z^\dagger b_z D z = b z † b z , so that, by Lemma 4.1(i), D = ∑ w D w D=\sum_w D_w D = ∑ w D w . The next lemma bounds the score in terms of the progress measure
λ ( Φ ) = ( ∑ z ∥ b z 2 Φ ∥ 2 ) 1 / 2 . (33) \lambda(\Phi)=\left(\sum_z\|b_z^2\Phi\|^2\right)^{1/2}. \tag*{(33)} λ ( Φ ) = ( z ∑ ∥ b z 2 Φ ∥ 2 ) 1/2 . (33)
The lemma retains one nonpositive term, which the proof of the lower bound discards and which Section 7 uses.
Lemma 4.2 (Score bound). For the final state Ψ \Psi Ψ of the experiment, with λ = λ ( Ψ ) \lambda=\lambda(\Psi) λ = λ ( Ψ ) and Ψ z = Π z Ψ \Psi_z=\Pi_z\Psi Ψ z = Π z Ψ ,
B ( A ) ≤ 3 − 2 N + 2 λ + 2 ( 1 − 1 N ) λ 2 − 2 ( 1 − 1 N ) ∑ z ∥ ( D z − I ) Ψ z ∥ 2 . (34) B(A)\le3-\frac{2}{N}+2\lambda+2\left(1-\frac{1}{N}\right)\lambda^2-2\left(1-\frac{1}{N}\right)\sum_z\|(D_z-I)\Psi_z\|^2. \tag*{(34)} B ( A ) ≤ 3 − N 2 + 2 λ + 2 ( 1 − N 1 ) λ 2 − 2 ( 1 − N 1 ) z ∑ ∥ ( D z − I ) Ψ z ∥ 2 . (34)
Proof. Step 1: the branch quantity e e e . Let
e = ( ∑ z ∥ b z 2 Ψ z ∥ 2 ) 1 / 2 e = \left(\sum_z \lVert b_z^2\Psi_z\rVert^2\right)^{1/2} e = ( z ∑ ∥ b z 2 Ψ z ∥ 2 ) 1/2
be the progress measure evaluated branch by branch. Since Π z \Pi_z Π z acts on A A A and b z b_z b z acts on the dependence on f f f , the two commute, so
e 2 = ∑ z ∥ Π z b z 2 Ψ ∥ 2 ≤ ∑ z ∥ b z 2 Ψ ∥ 2 = λ 2 , e^2 = \sum_z \lVert\Pi_z b_z^2\Psi\rVert^2
\le\sum_z \lVert b_z^2\Psi\rVert^2 = \lambda^2, e 2 = z ∑ ∥ Π z b z 2 Ψ ∥ 2 ≤ z ∑ ∥ b z 2 Ψ ∥ 2 = λ 2 ,
where the inequality holds because each Π z \Pi_z Π z is a projection. We prove (34) with e e e in place of λ \lambda λ . Since the right side of that bound is increasing in e ≥ 0 e \ge0 e ≥ 0 , and e ≤ λ e \le\lambda e ≤ λ , the lemma follows.
Step 2: the expansion of the square. For the bound, fix z z z and write g = Ψ z g = \Psi_z g = Ψ z . Expanding the square and using Lemma 4.1(ii),
( b z + b z † ) 2 = b z 2 + b z † 2 + b z b z † + b z † b z = b z 2 + b z † 2 + I − 2 N D + 2 D z . (35) (b_z+b_z^\dagger)^2=b_z^2+b_z^{\dagger2}+b_zb_z^\dagger+b_z^\dagger b_z=b_z^2+b_z^{\dagger2}+I-\frac{2}{N}D+2D_z. \tag*{(35)} ( b z + b z † ) 2 = b z 2 + b z † 2 + b z b z † + b z † b z = b z 2 + b z † 2 + I − N 2 D + 2 D z . (35)
Step 3: the first bound on the quadratic form. We bound the quadratic form on g g g of the operator I − ( 2 / N ) D + 2 D z I-(2/N)D+2D_z I − ( 2/ N ) D + 2 D z in two steps, Steps 3 and 4. First, ⟨ g , D z g ⟩ ≤ ⟨ g , D g ⟩ \langle g,D_zg\rangle\le\langle g,Dg\rangle ⟨ g , D z g ⟩ ≤ ⟨ g , D g ⟩ , because D D D is the sum of the operators D w D_w D w and each D w = b w † b w D_w=b_w^\dagger b_w D w = b w † b w has a nonnegative quadratic form. Hence
⟨ g , ( I − 2 N D + 2 D z ) g ⟩ ≤ ∥ g ∥ 2 + 2 ( 1 − 1 N ) ⟨ g , D z g ⟩ . (36) \left\langle g,\left(I-\frac{2}{N}D+2D_z\right)g\right\rangle
\le\lVert g\rVert^2+2\left(1-\frac{1}{N}\right)\langle g,D_zg\rangle. \tag*{(36)} ⟨ g , ( I − N 2 D + 2 D z ) g ⟩ ≤ ∥ g ∥ 2 + 2 ( 1 − N 1 ) ⟨ g , D z g ⟩ . (36)
Step 4: the key identity and the second bound. Second, applying Lemma 4.1(ii) once more,
D z 2 = b z † ( b z b z † ) b z = b z † ( D z + I − 2 N D ) b z = b z † 2 b z 2 + D z − 2 N b z † D b z , \begin{aligned}
D_z^2=b_z^\dagger(b_zb_z^\dagger)b_z=b_z^\dagger\left(D_z+I-\frac{2}{N}D\right)b_z \\
&=b_z^{\dagger2}b_z^2+D_z-\frac{2}{N}b_z^\dagger Db_z,
\end{aligned} D z 2 = b z † ( b z b z † ) b z = b z † ( D z + I − N 2 D ) b z = b z † 2 b z 2 + D z − N 2 b z † D b z ,
and rearranging gives the identity
I + b z † 2 b z 2 − D z = ( D z − I ) 2 + 2 N b z † D b z . (37) I+b_z^{\dagger2}b_z^2-D_z=(D_z-I)^2+\frac{2}{N}b_z^\dagger Db_z. \tag*{(37)} I + b z † 2 b z 2 − D z = ( D z − I ) 2 + N 2 b z † D b z . (37)
Taking the quadratic form on g g g and using ⟨ b z g , D b z g ⟩ ≥ 0 \langle b_zg,Db_zg\rangle\ge0 ⟨ b z g , D b z g ⟩ ≥ 0 , we obtain
⟨ g , D z g ⟩ ≤ ∥ g ∥ 2 + ∥ b z 2 g ∥ 2 − ∥ ( D z − I ) g ∥ 2 . (38) \langle g,D_zg\rangle\le\lVert g\rVert^2+\lVert b_z^2g\rVert^2-\lVert(D_z-I)g\rVert^2. \tag*{(38)} ⟨ g , D z g ⟩ ≤ ∥ g ∥ 2 + ∥ b z 2 g ∥ 2 − ∥( D z − I ) g ∥ 2 . (38)
Dropping its last term gives the inequality (6) of the overview.
Step 5: summation over z z z . Combining (36) and (38) ,
⟨ g , ( I − 2 N D + 2 D z ) g ⟩ ≤ ( 3 − 2 N ) ∥ g ∥ 2 + 2 ( 1 − 1 N ) ∥ b z 2 g ∥ 2 − 2 ( 1 − 1 N ) ∥ ( D z − I ) g ∥ 2 . \left\langle g,\left(I-\frac{2}{N}D+2D_z\right)g\right\rangle
\le\left(3-\frac{2}{N}\right)\lVert g\rVert^2+2\left(1-\frac{1}{N}\right)\lVert b_z^2g\rVert^2
-2\left(1-\frac{1}{N}\right)\lVert(D_z-I)g\rVert^2. ⟨ g , ( I − N 2 D + 2 D z ) g ⟩ ≤ ( 3 − N 2 ) ∥ g ∥ 2 + 2 ( 1 − N 1 ) ∥ b z 2 g ∥ 2 − 2 ( 1 − N 1 ) ∥( D z − I ) g ∥ 2 .
We sum over z z z , using that the squared norms ∥ Ψ z ∥ 2 \lVert\Psi_z\rVert^2 ∥ Ψ z ∥ 2 sum to 1 and the definition of e e e . We find that the contribution of the terms I − ( 2 / N ) D + 2 D z I-(2/N)D+2D_z I − ( 2/ N ) D + 2 D z in (35) to (32) is at most
3 − 2 N + 2 ( 1 − 1 N ) e 2 − 2 ( 1 − 1 N ) ∑ z ∥ ( D z − I ) Ψ z ∥ 2 . 3-\frac{2}{N}+2\left(1-\frac{1}{N}\right)e^2-2\left(1-\frac{1}{N}\right)\sum_z\lVert(D_z-I)\Psi_z\rVert^2. 3 − N 2 + 2 ( 1 − N 1 ) e 2 − 2 ( 1 − N 1 ) z ∑ ∥( D z − I ) Ψ z ∥ 2 .
Step 6: the interference term. The remaining terms contribute
∑ z ⟨ Ψ z , ( b z 2 + b z † 2 ) Ψ z ⟩ = 2 Re ∑ z ⟨ Ψ z , b z 2 Ψ z ⟩ \sum_z \langle\Psi_z,(b_z^2+b_z^{\dagger2})\Psi_z\rangle=2\operatorname{Re}\sum_z\langle\Psi_z,b_z^2\Psi_z\rangle z ∑ ⟨ Ψ z , ( b z 2 + b z † 2 ) Ψ z ⟩ = 2 Re z ∑ ⟨ Ψ z , b z 2 Ψ z ⟩
≤ 2 ( ∑ z ∥ Ψ z ∥ 2 ) 1 / 2 ( ∑ z ∥ b z 2 Ψ z ∥ 2 ) 1 / 2 = 2 ϵ . \le2\left(\sum_z\|\Psi_z\|^2\right)^{1/2}\left(\sum_z\|b_z^2\Psi_z\|^2\right)^{1/2}=2\epsilon. ≤ 2 ( z ∑ ∥ Ψ z ∥ 2 ) 1/2 ( z ∑ ∥ b z 2 Ψ z ∥ 2 ) 1/2 = 2 ϵ .
Here the first equality holds because b z † 2 b_z^{\dagger2} b z † 2 is the adjoint of b z 2 b_z^2 b z 2 , and the inequality is the Cauchy–Schwarz inequality. Adding this to the bound of Step 5 proves the bound with ϵ \epsilon ϵ in place of λ \lambda λ .
Growth of the progress measure
Lemma 4.3 (Growth). For 0 ≤ t < q 0\le t<q 0 ≤ t < q ,
λ ( Ψ t + 1 ) ≤ λ ( Ψ t ) + 2 t / N . \lambda(\Psi_{t+1})\le\lambda(\Psi_t)+2\sqrt{t/N}. λ ( Ψ t + 1 ) ≤ λ ( Ψ t ) + 2 t / N . Consequently,
λ ( Ψ ) ≤ λ ˉ q : = 2 N ∑ t = 0 q − 1 t ≤ 4 3 ⋅ q 3 / 2 N . (39) \begin{aligned}
\lambda(\Psi)&\le\bar{\lambda}_q:=\frac{2}{\sqrt{N}}\sum_{t=0}^{q-1}\sqrt{t}\\
&\le\frac{4}{3}\cdot\frac{q^{3/2}}{\sqrt{N}}. \tag*{(39)}
\end{aligned} λ ( Ψ ) ≤ λ ˉ q := N 2 t = 0 ∑ q − 1 t ≤ 3 4 ⋅ N q 3/2 . (39)
Proof. Step 1: the vector L Φ \mathcal{L}\Phi L Φ . It is convenient to regard the family ( b z 2 Φ ) z (b_z^2\Phi)_z ( b z 2 Φ ) z as the single vector L Φ = ∑ z ∣ z ⟩ ⊗ b z 2 Φ \mathcal{L}\Phi=\sum_z|z\rangle\otimes b_z^2\Phi L Φ = ∑ z ∣ z ⟩ ⊗ b z 2 Φ in C N ⊗ F \mathbb{C}^N\otimes\mathcal{F} C N ⊗ F , so that λ ( Φ ) = ∥ L Φ ∥ \lambda(\Phi)=\|\mathcal{L}\Phi\| λ ( Φ ) = ∥ L Φ∥ . An operator T T T on H \mathcal{H} H , acting pointwise, commutes with every b z b_z b z , so L ( T Φ ) = ( I ⊗ T ) L Φ \mathcal{L}(T\Phi)=(I\otimes T)\mathcal{L}\Phi L ( T Φ ) = ( I ⊗ T ) L Φ . In particular, the unitaries U t U_t U t do not change λ \lambda λ , and it suffices to bound the effect of one query Q Q Q on Ψ t \Psi_t Ψ t .
Step 2: moving L \mathcal{L} L past one query. By (30), and because b z 2 b_z^2 b z 2 commutes with the pointwise projections P ∅ P_{\varnothing} P ∅ and P x P_x P x ,
L Q Ψ t − ( I ⊗ Q ) L Ψ t = ∑ z ∣ z ⟩ ⊗ ∑ x ( b z 2 χ x − χ x b z 2 ) P x c Ψ t . \mathcal{L}Q\Psi_t-(I\otimes Q)\mathcal{L}\Psi_t
=\sum_z|z\rangle\otimes\sum_x(b_z^2\chi_x-\chi_xb_z^2)P_x^c\Psi_t. L Q Ψ t − ( I ⊗ Q ) L Ψ t = z ∑ ∣ z ⟩ ⊗ x ∑ ( b z 2 χ x − χ x b z 2 ) P x c Ψ t .
Moreover, for fixed z z z , the vectors ( b z 2 χ x − χ x b z 2 ) P x c Ψ t (b_z^2\chi_x-\chi_xb_z^2)P_x^c\Psi_t ( b z 2 χ x − χ x b z 2 ) P x c Ψ t for distinct x x x are orthogonal, because the operator b z 2 χ x − χ x b z 2 b_z^2\chi_x-\chi_xb_z^2 b z 2 χ x − χ x b z 2 acts only on the dependence on f f f while P x c P_x^c P x c projects onto mutually orthogonal subspaces of A A A .
Step 3: the degree bound. Therefore, by Step 2 and Lemma 4.1(iii),
∥ L Q Ψ t − ( I ⊗ Q ) L Ψ t ∥ 2 = ∑ x ∑ z ∥ ( b z 2 χ x − χ x b z 2 ) P x c Ψ t ∥ 2 = 4 N ∑ x ⟨ P x c Ψ t , ( D − n x ) P x c Ψ t ⟩ . \begin{aligned}
\|\mathcal{L}Q\Psi_t-(I\otimes Q)\mathcal{L}\Psi_t\|^2
&=\sum_x\sum_z\|(b_z^2\chi_x-\chi_xb_z^2)P_x^c\Psi_t\|^2\\
&=\frac{4}{N}\sum_x\langle P_x^c\Psi_t,(D-n_x)P_x^c\Psi_t\rangle.
\end{aligned} ∥ L Q Ψ t − ( I ⊗ Q ) L Ψ t ∥ 2 = x ∑ z ∑ ∥ ( b z 2 χ x − χ x b z 2 ) P x c Ψ t ∥ 2 = N 4 x ∑ ⟨ P x c Ψ t , ( D − n x ) P x c Ψ t ⟩ .
and, by (31) applied to P x c Ψ t P_x^c\Psi_t P x c Ψ t after dropping the nonpositive contribution of − n x -n_x − n x , the last expression is at most ( 4 t / N ) ∑ x ∥ P x c Ψ t ∥ 2 ≤ 4 t / N (4t/N)\sum_x\|P_x^c\Psi_t\|^2\le4t/N ( 4 t / N ) ∑ x ∥ P x c Ψ t ∥ 2 ≤ 4 t / N . The last inequality holds because the P x c P_x^c P x c are mutually orthogonal projections and ∥ Ψ t ∥ = 1 \|\Psi_t\|=1 ∥ Ψ t ∥ = 1 .
Step 4: the triangle inequality. Since Q Q Q is unitary, ∥ ( I ⊗ Q ) L Ψ t ∥ = ∥ L Ψ t ∥ \|(I\otimes Q)\mathcal{L}\Psi_t\|=\|\mathcal{L}\Psi_t\| ∥ ( I ⊗ Q ) L Ψ t ∥ = ∥ L Ψ t ∥ , and the triangle inequality, together with the bound of Step 3, gives
λ ( Q Ψ t ) ≤ λ ( Ψ t ) + 2 t / N . \lambda(Q\Psi_t)\le\lambda(\Psi_t)+2\sqrt{t/N}. λ ( Q Ψ t ) ≤ λ ( Ψ t ) + 2 t / N .
This is the first claim, because λ ( Ψ t + 1 ) = λ ( U t + 1 Q Ψ t ) = λ ( Q Ψ t ) \lambda(\Psi_{t+1})=\lambda(U_{t+1}Q\Psi_t)=\lambda(Q\Psi_t) λ ( Ψ t + 1 ) = λ ( U t + 1 Q Ψ t ) = λ ( Q Ψ t ) , where the second equality holds by Step 1.
Step 5: the sum of the increments. Initially, Ψ 0 = U 0 ψ 0 \Psi_0=U_0\psi_0 Ψ 0 = U 0 ψ 0 is a constant function, so every a x a_x a x maps it to zero and λ ( Ψ 0 ) = 0 \lambda(\Psi_0)=0 λ ( Ψ 0 ) = 0 . Summing the increments gives the middle expression in (39). Finally, the inequality t ≤ ∫ t t + 1 s d s \sqrt{t}\le\int_t^{t+1}\sqrt{s}\,\mathrm{d}s t ≤ ∫ t t + 1 s d s gives
∑ t = 0 q − 1 t ≤ ∫ 0 q s d s = 2 3 q 3 / 2 . \sum_{t=0}^{q-1}\sqrt{t}\le\int_0^q\sqrt{s}\,\mathrm{d}s=\frac{2}{3}q^{3/2}. t = 0 ∑ q − 1 t ≤ ∫ 0 q s d s = 3 2 q 3/2 .
The lower bound
Theorem 4.4 (Fourier lower bound). Every algorithm that makes at most q q q queries in the Fourier ensemble satisfies
B ( A ) ≤ 3 − 2 N + 8 3 q 3 / 2 N + 32 9 ( 1 − 1 N ) q 3 N . (40) B(\mathcal{A})\le3-\frac{2}{N}+\frac{8}{3}\frac{q^{3/2}}{\sqrt{N}}+\frac{32}{9}\left(1-\frac{1}{N}\right)\frac{q^3}{N}. \tag*{(40)} B ( A ) ≤ 3 − N 2 + 3 8 N q 3/2 + 9 32 ( 1 − N 1 ) N q 3 . (40) Consequently, if B ( A ) ≥ 3 + ε B(\mathcal{A})\ge3+\varepsilon B ( A ) ≥ 3 + ε for some 0 < ε ≤ 4 0<\varepsilon\le4 0 < ε ≤ 4 , then
q ≥ ( 3 ε / 16 ) 2 / 3 N 1 / 3 . q\ge(3\varepsilon/16)^{2/3}N^{1/3}. q ≥ ( 3 ε /16 ) 2/3 N 1/3 . Proof. Step 1: the explicit bound. By Lemma 4.2 , dropping its last term,
B ( A ) ≤ 3 − 2 N + 2 λ + 2 ( 1 − 1 N ) λ 2 , λ = λ ( Ψ ) ≤ 4 3 q 3 / 2 N − 1 / 2 , B(\mathcal{A})\le3-\frac{2}{N}+2\lambda+2\left(1-\frac{1}{N}\right)\lambda^2,\qquad\lambda=\lambda(\Psi)\le\frac{4}{3}q^{3/2}N^{-1/2}, B ( A ) ≤ 3 − N 2 + 2 λ + 2 ( 1 − N 1 ) λ 2 , λ = λ ( Ψ ) ≤ 3 4 q 3/2 N − 1/2 , where the bound on λ \lambda λ holds by Lemma 4.3 . The right side of the first inequality is increasing in λ ≥ 0 \lambda\ge0 λ ≥ 0 , so substituting the bound on λ \lambda λ gives (40).
Step 2: a lower bound on λ \lambda λ . If B ( A ) ≥ 3 + ε B(\mathcal{A})\ge3+\varepsilon B ( A ) ≥ 3 + ε , then, after dropping − 2 / N -2/N − 2/ N and bounding 1 − 1 / N 1-1/N 1 − 1/ N by 1, the first inequality of Step 1 gives ε ≤ 2 λ + 2 λ 2 \varepsilon\le2\lambda+2\lambda^2 ε ≤ 2 λ + 2 λ 2 . Solving the quadratic inequality gives
λ ≥ 1 + 2 ε − 1 2 = ε 1 + 2 ε + 1 \lambda\ge\frac{\sqrt{1+2\varepsilon}-1}{2}=\frac{\varepsilon}{\sqrt{1+2\varepsilon}+1} λ ≥ 2 1 + 2 ε − 1 = 1 + 2 ε + 1 ε ≥ ε 4 , \ge\frac{\varepsilon}{4}, ≥ 4 ε , where the last step uses ε ≤ 4 \varepsilon\le4 ε ≤ 4 .
Hence, by the bound on λ \lambda λ in Step 1,
ε 4 ≤ 4 3 q 3 / 2 N − 1 / 2 , that is, q 3 / 2 ≥ 3 ε 16 N , \frac{\varepsilon}{4}\le\frac{4}{3}q^{3/2}N^{-1/2},\qquad\text{that is,}\qquad q^{3/2}\ge\frac{3\varepsilon}{16}\sqrt{N}, 4 ε ≤ 3 4 q 3/2 N − 1/2 , that is, q 3/2 ≥ 16 3 ε N , which is the claim.
The restriction ε ≤ 4 \varepsilon\le4 ε ≤ 4 costs nothing, since a score of 3 + ε 3+\varepsilon 3 + ε with ε > 4 \varepsilon>4 ε > 4 is in particular a score of at least 7, so that q ≥ ( 3 / 4 ) 2 / 3 N 1 / 3 q\ge(3/4)^{2/3}N^{1/3} q ≥ ( 3/4 ) 2/3 N 1/3 by the case ε = 4 \varepsilon=4 ε = 4 . The proof also recovers, in full generality, the one-query bound of [37 ] . Indeed, an algorithm that makes one query of any kind, controlled or not, has λ ( Ψ ) = 0 \lambda(\Psi)=0 λ ( Ψ ) = 0 , because at most one point is ever recorded and b z 2 b_z^2 b z 2 removes two. Hence B ( A ) ≤ 3 − 2 / N B(\mathcal{A})\le3-2/N B ( A ) ≤ 3 − 2/ N by Lemma 4.2 .
Remark 4.5 (Limited independence). For a fixed algorithm, the score is the expectation over f f f of
∑ z N p f ( z ) ∥ Ψ z ( f ) ∥ 2 , \sum_z Np_f(z)\lVert\Psi_z(f)\rVert^2, z ∑ N p f ( z ) ∥ Ψ z ( f ) ∥ 2 ,
which is a polynomial of degree at most 2 q + 2 2q+2 2 q + 2 in the values f ( x ) f(x) f ( x ) , because V f V_f V f has degree at most q q q and N p f ( z ) Np_f(z) N p f ( z ) has degree 2. Since f ( x ) 2 = 1 f(x)^2=1 f ( x ) 2 = 1 , such a polynomial is a linear combination of the characters χ S \chi_S χ S with ∣ S ∣ ≤ 2 q + 2 |S|\le2q+2 ∣ S ∣ ≤ 2 q + 2 , and the expectation of χ S \chi_S χ S with S ≠ ∅ S\ne\varnothing S = ∅ is 0 under every random function whose values are ( 2 q + 2 ) (2q+2) ( 2 q + 2 ) -wise independent and uniform. The score of A \mathcal{A} A , and hence Theorem 4.4 , is therefore unchanged when the uniformly random function is replaced by such a function.
The exact identity for one phase query
For algorithms that make a single phase query, the score is given by an exact formula, which we stated in Section 2.1. An algorithm makes a single phase query if q = 1 q=1 q = 1 and the state U 0 ψ 0 U_0\psi_0 U 0 ψ 0 has the control qubit C in the state ∣ 1 ⟩ \lvert1\rangle ∣ 1 ⟩ and the target qubit T in the state ∣ − ⟩ \lvert-\rangle ∣ − ⟩ . For such a state, P ∅ U 0 ψ 0 = 0 P_{\emptyset}U_0\psi_0=0 P ∅ U 0 ψ 0 = 0 , so by (30) the final state is
Ψ ( f ) = ∑ x f ( x ) v x , v x = ( U 1 P x C U 0 ⊗ I E ) ψ 0 , (41) \Psi(f)=\sum_x f(x)v_x,\qquad v_x=(U_1P_x^C U_0\otimes I_E)\psi_0, \tag*{(41)} Ψ ( f ) = x ∑ f ( x ) v x , v x = ( U 1 P x C U 0 ⊗ I E ) ψ 0 , (41)
which is linear in f f f . In particular, the final state when the oracle is the character χ w \chi_w χ w is Ψ ( χ w ) = ∑ x χ w ( x ) v x \Psi(\chi_w)=\sum_x\chi_w(x)v_x Ψ ( χ w ) = ∑ x χ w ( x ) v x , and, for every f f f ,
Ψ ( f ) = ∑ w f ^ ( w ) Ψ ( χ w ) \Psi(f)=\sum_w\widehat{f}(w)\Psi(\chi_w) Ψ ( f ) = w ∑ f ( w ) Ψ ( χ w )
because
f = ∑ w f ^ ( w ) χ w . f=\sum_w\widehat{f}(w)\chi_w. f = w ∑ f ( w ) χ w .
Proposition 4.6 (One phase query). Let A \mathcal{A} A make a single phase query , and let
σ = 1 N ∑ z Pr [ Z = z ∣ f = χ z ] \sigma=\frac{1}{N}\sum_z\Pr[Z=z\mid f=\chi_z] σ = N 1 z ∑ Pr [ Z = z ∣ f = χ z ] be the probability with which it identifies a uniformly random character. Then the following hold.
The score of A \mathcal{A} A is
B ( A ) = 1 − 2 N + 2 σ . (42) B(\mathcal{A})=1-\frac{2}{N}+2\sigma. \tag*{(42)} B ( A ) = 1 − N 2 + 2 σ . (42) In particular, B ( A ) ≤ 3 − 2 / N B(\mathcal{A})\leq3-2/N B ( A ) ≤ 3 − 2/ N , and equality holds if and only if A \mathcal{A} A outputs w w w with certainty whenever the oracle is χ w \chi_w χ w .
In the case of equality, Ψ z ( f ) = f ^ ( z ) Ψ ( χ z ) \Psi_z(f)=\widehat{f}(z)\Psi(\chi_z) Ψ z ( f ) = f ( z ) Ψ ( χ z ) for all f f f and z z z , and Eve’s conditional states are ρ f z = p f ( z ) ρ E \rho^z_f=p_f(z)\rho_E ρ f z = p f ( z ) ρ E . That is, the output is an exact sample from p f p_f p f and is independent of Eve’s register, even given f f f .
Proof. Step 1: every term of Ψ \Psi Ψ has one recorded point. By (41) , Ψ = ∑ x χ { x } v x \Psi=\sum_x\chi_{\{x\}}v_x Ψ = ∑ x χ { x } v x , so every term of Ψ \Psi Ψ has exactly one recorded point. Hence D Ψ = Ψ D\Psi=\Psi D Ψ = Ψ , b z 2 Ψ = 0 b_z^2\Psi=0 b z 2 Ψ = 0 , and
b z Ψ = 1 N ∑ x χ z ( x ) χ ∅ v x = 1 N Ψ ( χ z ) , b_z\Psi=\frac{1}{\sqrt{N}}\sum_x\chi_z(x)\chi_{\varnothing}v_x=\frac{1}{\sqrt{N}}\Psi(\chi_z), b z Ψ = N 1 x ∑ χ z ( x ) χ ∅ v x = N 1 Ψ ( χ z ) ,
which is a constant function. Consequently, applying Π z \Pi_z Π z , which commutes with b z b_z b z and D D D , gives D Ψ z = Ψ z D\Psi_z=\Psi_z D Ψ z = Ψ z , b z 2 Ψ z = 0 b_z^2\Psi_z=0 b z 2 Ψ z = 0 , and
∥ b z Ψ z ∥ 2 = 1 N ∥ Π z Ψ ( χ z ) ∥ 2 = 1 N Pr [ Z = z ∣ f = χ z ] . \lVert b_z\Psi_z\rVert^2=\frac{1}{N}\lVert\Pi_z\Psi(\chi_z)\rVert^2=\frac{1}{N}\Pr[Z=z\mid f=\chi_z]. ∥ b z Ψ z ∥ 2 = N 1 ∥ Π z Ψ ( χ z ) ∥ 2 = N 1 Pr [ Z = z ∣ f = χ z ] .
Step 2: the exact score. We now evaluate (32) exactly, using the expansion (35) . For each z z z , the terms of that expansion contribute as follows.
The terms b z 2 b_z^2 b z 2 and b z † 2 b_z^{\dagger2} b z † 2 contribute ⟨ Ψ z , b z 2 Ψ z ⟩ + ⟨ b z 2 Ψ z , Ψ z ⟩ = 0 \langle\Psi_z,b_z^2\Psi_z\rangle+\langle b_z^2\Psi_z,\Psi_z\rangle=0 ⟨ Ψ z , b z 2 Ψ z ⟩ + ⟨ b z 2 Ψ z , Ψ z ⟩ = 0 .
The term I − ( 2 / N ) D I-(2/N)D I − ( 2/ N ) D contributes ( 1 − 2 / N ) ∥ Ψ z ∥ 2 (1-2/N)\lVert\Psi_z\rVert^2 ( 1 − 2/ N ) ∥ Ψ z ∥ 2 .
The term 2 D z 2D_z 2 D z contributes 2 ∥ b z Ψ z ∥ 2 2\lVert b_z\Psi_z\rVert^2 2 ∥ b z Ψ z ∥ 2 .
Summing over z z z gives (42) .
Step 3: the case of equality. Since σ ≤ 1 \sigma\le1 σ ≤ 1 , the score is at most 3 − 2 / N 3 - 2/N 3 − 2/ N , with equality if and only if Pr [ Z = w ∣ f = χ w ] = 1 \Pr[Z = w \mid f = \chi_w] = 1 Pr [ Z = w ∣ f = χ w ] = 1 for every w w w . In that case, Π z Ψ ( χ w ) = 0 \Pi_z\Psi(\chi_w) = 0 Π z Ψ ( χ w ) = 0 for z ≠ w z \ne w z = w , so by linearity
Ψ z ( f ) = ∑ w f ^ ( w ) Π z Ψ ( χ w ) = f ^ ( z ) Ψ ( χ z ) . \Psi_z(f) = \sum_w \widehat{f}(w)\Pi_z\Psi(\chi_w) = \widehat{f}(z)\Psi(\chi_z). Ψ z ( f ) = w ∑ f ( w ) Π z Ψ ( χ w ) = f ( z ) Ψ ( χ z ) .
Finally, Ψ ( χ z ) = ( V χ z ⊗ I E ) ψ 0 \Psi(\chi_z) = (V_{\chi_z} \otimes I_E)\psi_0 Ψ ( χ z ) = ( V χ z ⊗ I E ) ψ 0 with V χ z V_{\chi_z} V χ z unitary on A A A , so its reduced state on E E E is ρ E \rho_E ρ E and, by (22) , Eve’s conditional states are
ρ z f = f ^ ( z ) 2 ρ E = p f ( z ) ρ E . \rho_z^f = \widehat{f}(z)^2\rho_E = p_f(z)\rho_E. ρ z f = f ( z ) 2 ρ E = p f ( z ) ρ E .
The identity (42) is specific to phase queries. For a query whose target qubit is in a general state, the state after the query also has terms with no recorded point, and the score can be smaller than 1 − 2 / N + 2 σ 1 - 2/N + 2\sigma 1 − 2/ N + 2 σ . The example in Section 2.1 has σ = 1 \sigma= 1 σ = 1 and score 1 1 1 .
The lower bound for Haar-random states
In this section we prove the lower bound for Haar-random states. As in the Fourier case, we bound the score in terms of a progress measure and then bound its change under a query. The identity ∑ x α x α x ‾ = 1 \sum_x \alpha_x\overline{\alpha_x} = 1 ∑ x α x α x = 1 shows that counting repeated factors depends on how the polynomial is written. We use unpaired amplitudes and degrees for the corresponding Dirichlet measures, and write λ t \lambda_t λ t for the progress measure after t t t queries. For an algorithm given s s s copies and making q q q queries to O ϕ O_\phi O ϕ , we prove
B ( A ) ≤ β N + 2 2 λ q + 72 λ q 2 , B(\mathcal{A}) \le\beta_N + 2\sqrt{2}\lambda_q + 72\lambda_q^2, B ( A ) ≤ β N + 2 2 λ q + 72 λ q 2 ,
λ t + 1 ≤ λ t + c 0 s + 2 t + 1 N ( 0 ≤ t < q ) . \lambda_{t+1} \le\lambda_t + c_0\sqrt{\frac{s+2t+1}{N}} \qquad(0 \le t < q). λ t + 1 ≤ λ t + c 0 N s + 2 t + 1 ( 0 ≤ t < q ) .
where c 0 c_0 c 0 is absolute and β N \beta_N β N is the ideal score defined below. With no copies, λ 0 = 0 \lambda_0 = 0 λ 0 = 0 , so summing gives λ q = O ( q 3 / 2 / N ) \lambda_q = O(q^{3/2}/\sqrt{N}) λ q = O ( q 3/2 / N ) . Exceeding the ideal score by a constant therefore requires Ω ( N 1 / 3 ) \Omega(N^{1/3}) Ω ( N 1/3 ) queries. The score bound uses Lemma 5.8 , and the query bound uses both Lemmas 5.8 and 5.17. We give their statements and the resulting score and query arguments here; supporting calculations and longer block estimates are in Appendix § 17 .§ 9 . The extension to unitary access is in Section 5.6.
Throughout, ∣ ϕ ⟩ \lvert\phi\rangle ∣ ϕ ⟩ is Haar-random, and we write
∣ ϕ ⟩ = ∑ x ∈ [ N ] α x ∣ x ⟩ , p x = ∣ α x ∣ 2 , α x = p x e i θ x , \lvert\phi\rangle= \sum_{x\in[N]} \alpha_x\lvert x\rangle,\qquad p_x = \lvert\alpha_x\rvert^2,\qquad\alpha_x = \sqrt{p_x}e^{i\theta_x}, ∣ ϕ ⟩ = x ∈ [ N ] ∑ α x ∣ x ⟩ , p x = ∣ α x ∣ 2 , α x = p x e i θ x ,
so that the phases are independent and uniform and p p p is uniform on the simplex (Section 3.3). We write β N = 2 N / ( N + 1 ) \beta_N = 2N/(N+1) β N = 2 N / ( N + 1 ) for the ideal score, e i e_i e i for the i i i -th unit vector of Z N \mathbb{Z}^N Z N , and, as in Section 3.3, ∣ a ∣ \lvert a\rvert ∣ a ∣ for the total parameter of a Dirichlet distribution Dir ( a ) \operatorname{Dir}(a) Dir ( a ) . For a vector γ ∈ Z N \gamma\in\mathbb{Z}^N γ ∈ Z N we write ∣ γ ∣ 1 = ∑ i ∣ γ i ∣ \lvert\gamma\rvert_1 = \sum_i \lvert\gamma_i\rvert ∣ γ ∣ 1 = ∑ i ∣ γ i ∣ .
Fix an experiment, which by Lemma 3.2 we may assume makes a fixed sequence of q q q controlled queries. The device register A A A contains the control qubit C C C and the query register Q = C ∣ ⊥ ⟩ ⊕ C N Q = \mathbb{C}\lvert\perp\rangle\oplus\mathbb{C}^N Q = C ∣ ⊥ ⟩ ⊕ C N . Eve’s register E E E may be trivial. The final state is Ψ ( ϕ ) = ( V ϕ ⊗ I E ) ψ 0 \Psi(\phi) = (V_\phi\otimes I_E)\psi_0 Ψ ( ϕ ) = ( V ϕ ⊗ I E ) ψ 0 , where
V ϕ = U q O ϕ C U q − 1 ⋯ O ϕ C U 0 . V_\phi= U_q O_\phi^C U_{q-1}\cdots O_\phi^C U_0. V ϕ = U q O ϕ C U q − 1 ⋯ O ϕ C U 0 .
If the algorithm receives s s s copies of ∣ ϕ ⟩ \lvert\phi\rangle ∣ ϕ ⟩ , then the initial vector is ∣ ϕ ⟩ ⊗ s ⊗ ψ 0 \lvert\phi\rangle^{\otimes s}\otimes\psi_0 ∣ ϕ ⟩ ⊗ s ⊗ ψ 0 instead, with the copies in s s s further registers of A A A . The proof of Lemma 3.2 applies to this initial state without change. As in § 12 , we write H = A ⊗ E \mathcal{H} = A \otimes E H = A ⊗ E for the space in which the final state takes its values.
Polynomials, patterns, and the level
Polynomials. For a finite-dimensional space V \mathcal{V} V , which will be H \mathcal{H} H or a tensor factor of it, let P ≤ d ( V ) \mathcal{P}_{\le d}(\mathcal{V}) P ≤ d ( V ) be the space of functions F F F from the unit sphere of C N \mathbb{C}^{N} C N to V \mathcal{V} V that are polynomials of total degree at most d d d in the 2 N 2N 2 N variables α x , α x ‾ \alpha_x,\overline{\alpha_x} α x , α x , with the inner product and norm
⟨ F , G ⟩ = E ϕ ⟨ F ( ϕ ) , G ( ϕ ) ⟩ V , ∥ F ∥ 2 = E ϕ ∥ F ( ϕ ) ∥ V 2 . \langle F,G\rangle=\mathbb{E}_{\phi}\langle F(\phi),G(\phi)\rangle_{\mathcal{V}},\qquad\|F\|^2=\mathbb{E}_{\phi}\|F(\phi)\|_{\mathcal{V}}^2. ⟨ F , G ⟩ = E ϕ ⟨ F ( ϕ ) , G ( ϕ ) ⟩ V , ∥ F ∥ 2 = E ϕ ∥ F ( ϕ ) ∥ V 2 .
Two polynomials are identified when they agree on the sphere. We regard the elements of P ≤ d ( V ) \mathcal{P}_{\le d}(\mathcal{V}) P ≤ d ( V ) as vector-valued polynomials; they need not be normalized for each ϕ \phi ϕ . A final state is a unit vector in this space, because ∥ Ψ ( ϕ ) ∥ = 1 \|\Psi(\phi)\|=1 ∥Ψ ( ϕ ) ∥ = 1 for every ϕ \phi ϕ .
Lemma 5.1 (Degree growth). After t t t queries, the state of an algorithm that received s s s copies lies in P ≤ s + 2 t ( H ) \mathcal{P}_{\le s+2t}(\mathcal{H}) P ≤ s + 2 t ( H ) .
Proof. The initial vector
∣ ϕ ⟩ ⊗ s ⊗ ψ 0 = ∑ x ∈ [ N ] s α x 1 ⋯ α x s ∣ x 1 , … , x s ⟩ ⊗ ψ 0 |\phi\rangle^{\otimes s}\otimes\psi_0=\sum_{x\in[N]^s}\alpha_{x_1}\cdots\alpha_{x_s}|x_1,\ldots,x_s\rangle\otimes\psi_0 ∣ ϕ ⟩ ⊗ s ⊗ ψ 0 = x ∈ [ N ] s ∑ α x 1 ⋯ α x s ∣ x 1 , … , x s ⟩ ⊗ ψ 0
has degree s s s . A fixed unitary maps each coordinate of the state to a fixed linear combination of coordinates and does not raise the degree. By (17), every matrix entry of O ϕ O_\phi O ϕ , and hence of O ϕ c O_\phi^c O ϕ c , is a polynomial of degree at most two, so a query raises the degree by at most two. □ \square □
Patterns and sectors. We first group monomials by their unpaired amplitudes, then expand their remaining factors in p p p in orthogonal polynomials. The unpaired factors determine the Dirichlet distribution used for the inner product. A pattern is a vector γ ∈ Z N \gamma\in\mathbb{Z}^{N} γ ∈ Z N , and its phase monomial is
u γ ( ϕ ) = ∏ i : γ i > 0 α i γ i ∏ i : γ i < 0 α i ‾ − γ i = ( ∏ i p i ∣ γ i ∣ / 2 ) e i ∑ i γ i θ i . \begin{aligned}
u_\gamma(\phi)=\prod_{i:\gamma_i>0}\alpha_i^{\gamma_i}\prod_{i:\gamma_i<0}\overline{\alpha_i}^{-\gamma_i} \\
&=\left(\prod_i p_i^{|\gamma_i|/2}\right)e^{\mathrm{i}\sum_i\gamma_i\theta_i}.
\end{aligned} u γ ( ϕ ) = i : γ i > 0 ∏ α i γ i i : γ i < 0 ∏ α i − γ i = ( i ∏ p i ∣ γ i ∣/2 ) e i ∑ i γ i θ i .
A positive entry γ i \gamma_i γ i stands for γ i \gamma_i γ i unpaired factors α i \alpha_i α i , and a negative entry for ∣ γ i ∣ |\gamma_i| ∣ γ i ∣ factors α i ‾ \overline{\alpha_i} α i . Every monomial in the variables α , α ‾ \alpha,\overline{\alpha} α , α factors uniquely as u γ ∏ i p i m i u_\gamma\prod_i p_i^{m_i} u γ ∏ i p i m i with m i ≥ 0 m_i\ge0 m i ≥ 0 . Explicitly, if it contains α i b i α i ‾ c i \alpha_i^{b_i}\overline{\alpha_i}^{c_i} α i b i α i c i , then γ i = b i − c i \gamma_i=b_i-c_i γ i = b i − c i and m i = min ( b i , c i ) m_i=\min(b_i,c_i) m i = min ( b i , c i ) . Its total degree is ∣ γ ∣ 1 + 2 ∑ i m i |\gamma|_1+2\sum_i m_i ∣ γ ∣ 1 + 2 ∑ i m i .
The sector of γ \gamma γ is the set of functions u γ h ( p ) u_\gamma h(p) u γ h ( p ) , so that h h h depends on ϕ \phi ϕ only through the probabilities p 1 , … , p N p_1,\ldots,p_N p 1 , … , p N .
To each pattern we attach the Dirichlet parameters
a ( γ ) = ( 1 + ∣ γ 1 ∣ , … , 1 + ∣ γ N ∣ ) , ∣ a ( γ ) ∣ = N + ∣ γ ∣ 1 , a(\gamma)=(1+|\gamma_1|,\ldots,1+|\gamma_N|),\qquad|a(\gamma)|=N+|\gamma|_1, a ( γ ) = ( 1 + ∣ γ 1 ∣ , … , 1 + ∣ γ N ∣ ) , ∣ a ( γ ) ∣ = N + ∣ γ ∣ 1 ,
and the weight
M γ = E ϕ ∣ u γ ∣ 2 = ∏ i ∣ γ i ∣ ! ( N ) ∣ γ ∣ 1 , M_\gamma=\mathbb{E}_{\phi}|u_\gamma|^2=\frac{\prod_i|\gamma_i|!}{(N)_{|\gamma|_1}}, M γ = E ϕ ∣ u γ ∣ 2 = ( N ) ∣ γ ∣ 1 ∏ i ∣ γ i ∣ ! ,
where the value of M γ M_\gamma M γ follows from the identity ∣ u γ ∣ 2 = ∏ i p i ∣ γ i ∣ |u_\gamma|^2=\prod_i p_i^{|\gamma_i|} ∣ u γ ∣ 2 = ∏ i p i ∣ γ i ∣ and Lemma 3.7(i).
Within the sector of γ \gamma γ , we use the inner product of square-integrable functions under Dir ( a ( γ ) ) \operatorname{Dir}(a(\gamma)) Dir ( a ( γ )) . We write R r a \mathcal{R}_r^a R r a for the space of polynomials in p p p of degree at most r r r that are orthogonal, under Dir ( a ) \operatorname{Dir}(a) Dir ( a ) , to all polynomials in p p p of degree at most r − 1 r-1 r − 1 , with the convention R − 1 a = { 0 } \mathcal{R}_{-1}^a=\{0\} R − 1 a = { 0 } ; its elements have exact degree r r r for Dir ( a ) \operatorname{Dir}(a) Dir ( a ) . We write Π ≤ r a \Pi_{\le r}^a Π ≤ r a and Π r a \Pi_r^a Π r a for the orthogonal projections onto the polynomials of degree at most r r r and onto R r a \mathcal{R}^{a}_{r} R r a in that space. These notions depend on a a a only through the inner product ⟨ ⋅ , ⋅ ⟩ a \langle\cdot,\cdot\rangle_{a} ⟨ ⋅ , ⋅ ⟩ a .
A polynomial in p p p with values in V \mathcal{V} V is treated coefficientwise with respect to a fixed orthonormal basis of V \mathcal{V} V , and all statements about polynomials in p p p below extend to V \mathcal{V} V -valued ones in this way.
Lemma 5.2 (Blocks). The following hold.
(i) For every d ≥ 0 d \ge0 d ≥ 0 ,
P ≤ d ( V ) = ⨁ ∣ γ ∣ 1 + 2 r ≤ d u γ R r a ( γ ) ⊗ V (43) \mathcal{P}_{\le d}(\mathcal{V})=\bigoplus_{|\gamma|_{1}+2r\le d}u_{\gamma}\mathcal{R}^{a(\gamma)}_{r}\otimes\mathcal{V} \tag*{(43)} P ≤ d ( V ) = ∣ γ ∣ 1 + 2 r ≤ d ⨁ u γ R r a ( γ ) ⊗ V (43) where the summands, which we call blocks, are pairwise orthogonal.
(ii) For every pattern γ \gamma γ and every function h h h of p p p with ∥ h ∥ a ( γ ) < ∞ \lVert h\rVert_{a(\gamma)}<\infty ∥ h ∥ a ( γ ) < ∞ , in particular for every polynomial in p p p ,
∥ u γ h ∥ 2 = M γ ∥ h ∥ a ( γ ) 2 . (44) \lVert u_{\gamma}h\rVert^{2}=M_{\gamma}\lVert h\rVert^{2}_{a(\gamma)}. \tag*{(44)} ∥ u γ h ∥ 2 = M γ ∥ h ∥ a ( γ ) 2 . (44)
Proof. Step 1: decomposition into orthogonal sectors. By the factorization of monomials, every element of P ≤ d ( V ) \mathcal{P}_{\le d}(\mathcal{V}) P ≤ d ( V ) is a sum of terms u γ h u_{\gamma}h u γ h with h h h a polynomial in p p p of degree at most ( d − ∣ γ ∣ 1 ) / 2 (d-|\gamma|_{1})/2 ( d − ∣ γ ∣ 1 ) /2 . We treat scalar coefficients; the V \mathcal{V} V -valued case follows coefficientwise.
Terms with distinct patterns are orthogonal. Indeed, for γ ≠ γ ′ \gamma\ne\gamma' γ = γ ′ and functions h , h ′ h,h' h , h ′ of p p p , conditioning on p p p and averaging over the phases gives
⟨ u γ h , u γ ′ h ′ ⟩ = E p [ h ( p ) ‾ h ′ ( p ) ∏ i p i ( ∣ γ i ∣ + ∣ γ i ′ ∣ ) / 2 E θ e i ∑ i ( γ i ′ − γ i ) θ i ] = 0 , \langle u_{\gamma}h,u_{\gamma'}h'\rangle=\mathbb{E}_{p}\left[\overline{h(p)}h'(p)\prod_{i}p_{i}^{(|\gamma_{i}|+|\gamma'_{i}|)/2}\mathbb{E}_{\theta}e^{\mathrm{i}\sum_{i}(\gamma'_{i}-\gamma_{i})\theta_{i}}\right]=0, ⟨ u γ h , u γ ′ h ′ ⟩ = E p [ h ( p ) h ′ ( p ) i ∏ p i ( ∣ γ i ∣ + ∣ γ i ′ ∣ ) /2 E θ e i ∑ i ( γ i ′ − γ i ) θ i ] = 0 ,
because the phases are independent and uniform and some γ i ′ − γ i \gamma'_{i}-\gamma_{i} γ i ′ − γ i is nonzero.
Step 2: the norm conversion. For (44), averaging over the phases gives
∥ u γ h ∥ 2 = E Dir ( 1 , … , 1 ) [ ∏ i p i ∣ γ i ∣ ∣ h ∣ 2 ] . \lVert u_{\gamma}h\rVert^{2}=\mathbb{E}_{\operatorname{Dir}(1,\ldots,1)}\left[\prod_{i}p_{i}^{|\gamma_{i}|}|h|^{2}\right]. ∥ u γ h ∥ 2 = E Dir ( 1 , … , 1 ) [ i ∏ p i ∣ γ i ∣ ∣ h ∣ 2 ] .
Applying Lemma 3.7(ii) once for each of the ∣ γ ∣ 1 |\gamma|_{1} ∣ γ ∣ 1 factors p i p_{i} p i raises the parameter from ( 1 , … , 1 ) (1,\ldots,1) ( 1 , … , 1 ) to a ( γ ) a(\gamma) a ( γ ) , and each application contributes the factor a i / ∣ a ∣ a_{i}/|a| a i /∣ a ∣ for the parameters current at that moment. For the outcome i i i these numerators are 1 , 2 , … , ∣ γ i ∣ 1,2,\ldots,|\gamma_{i}| 1 , 2 , … , ∣ γ i ∣ , and, in some order, the denominators are N , N + 1 , … , N + ∣ γ ∣ 1 − 1 N,N+1,\ldots,N+|\gamma|_{1}-1 N , N + 1 , … , N + ∣ γ ∣ 1 − 1 , so the product of all the factors is M γ M_{\gamma} M γ .
Step 3: orthogonality within a sector. Finally, within a sector, decompose h = ∑ r h r h=\sum_{r}h_{r} h = ∑ r h r with h r ∈ R r a ( γ ) h_{r}\in\mathcal{R}^{a(\gamma)}_{r} h r ∈ R r a ( γ ) . The same computation gives
⟨ u γ h r , u γ h t ⟩ = M γ ⟨ h r , h t ⟩ a ( γ ) = 0 for r ≠ t , \langle u_{\gamma}h_{r},u_{\gamma}h_{t}\rangle=M_{\gamma}\langle h_{r},h_{t}\rangle_{a(\gamma)}=0\qquad\text{for }r\ne t, ⟨ u γ h r , u γ h t ⟩ = M γ ⟨ h r , h t ⟩ a ( γ ) = 0 for r = t ,
and h r h_{r} h r is represented by a polynomial of degree at most r r r , so the degree count of Step 1 gives the decomposition (43).
:::
When a query changes one entry of the pattern by one unit, we shall use (44) together with Lemma 3.7(ii) in the following form: for every pattern γ \gamma γ and outcome i i i with ∣ γ i ± 1 ∣ = ∣ γ i ∣ + 1 |\gamma_{i}\pm1|=|\gamma_{i}|+1 ∣ γ i ± 1∣ = ∣ γ i ∣ + 1 ,
M γ p i d D i r ( a ( γ ) ) = M γ ± e i d D i r ( a ( γ ± e i ) ) , (45) M_{\gamma}p_{i}\,\mathrm{dDir}(a(\gamma))=M_{\gamma\pm e_{i}}\,\mathrm{dDir}(a(\gamma\pm e_{i})), \tag*{(45)} M γ p i dDir ( a ( γ )) = M γ ± e i dDir ( a ( γ ± e i )) , (45)
and symmetrically with p i − 1 p_{i}^{-1} p i − 1 when the magnitude of the entry decreases; both sides are ∣ u γ ± e i ∣ 2 |u_{\gamma\pm e_{i}}|^{2} ∣ u γ ± e i ∣ 2 times the distribution of p p p under the Haar measure.
The level. The level adds the degree under the Dirichlet measure to the number of unpaired factors beyond the first at each outcome. The first factor is not counted, because the honest sampler has one unpaired factor in each output branch. A block in P ≤ d \mathcal{P}_{\le d} P ≤ d satisfies ∣ γ ∣ 1 + 2 r ≤ d |\gamma|_1+2r\le d ∣ γ ∣ 1 + 2 r ≤ d , while its level is rep ( γ ) + r \operatorname{rep}(\gamma)+r rep ( γ ) + r .
Definition 5.3 (Level). For a pattern γ \gamma γ let
rep ( γ ) = ∑ i max ( ∣ γ i ∣ − 1 , 0 ) \operatorname{rep}(\gamma)=\sum_i\max(|\gamma_i|-1,0) rep ( γ ) = i ∑ max ( ∣ γ i ∣ − 1 , 0 ) count the occurrences beyond the first at each outcome. The level of the block indexed by ( γ , r ) (\gamma,r) ( γ , r ) in (43) is rep ( γ ) + r \operatorname{rep}(\gamma)+r rep ( γ ) + r . Let P k P_k P k be the orthogonal projection onto the sum of the blocks of level k k k , and let C = ∑ k k P k C=\sum_k kP_k C = ∑ k k P k be the level operator . The progress measure of a polynomial F F F is
λ ( F ) = ∥ C 1 / 2 F ∥ = ( ∑ k k ∥ P k F ∥ 2 ) 1 / 2 . \lambda(F)=\lVert C^{1/2}F\rVert=\left(\sum_k k\lVert P_kF\rVert^2\right)^{1/2}. λ ( F ) = ∥ C 1/2 F ∥ = ( k ∑ k ∥ P k F ∥ 2 ) 1/2 .
A block has level zero when its pattern is square-free (∣ γ i ∣ ≤ 1 |\gamma_i|\le1 ∣ γ i ∣ ≤ 1 for all i i i ) and its polynomial factor is constant. For example, p z = 1 / N + ( p z − 1 / N ) p_z=1/N+(p_z-1/N) p z = 1/ N + ( p z − 1/ N ) splits into levels zero and one. In the sector of α z \alpha_z α z , the Dirichlet measure is Dir ( a ( e z ) ) \operatorname{Dir}(a(e_z)) Dir ( a ( e z )) , under which p z p_z p z has mean 2 / ( N + 1 ) 2/(N+1) 2/ ( N + 1 ) . Hence
α z p z = 2 N + 1 α z + α z ( p z − 2 N + 1 ) . \alpha_zp_z=\frac{2}{N+1}\alpha_z+\alpha_z\left(p_z-\frac{2}{N+1}\right). α z p z = N + 1 2 α z + α z ( p z − N + 1 2 ) .
The two summands again have levels zero and one. These are decompositions of vector-valued polynomials. The normalization ∑ z p z = 1 \sum_z p_z=1 ∑ z p z = 1 has level zero, while α z 2 \alpha_z^2 α z 2 has level one.
Three facts about these projections are used repeatedly.
Each P k P_k P k acts on P ≤ d ( V ) \mathcal{P}_{\le d}(\mathcal{V}) P ≤ d ( V ) as the sum of the projections onto the blocks of (43) of level k k k , so it maps P ≤ d ( V ) \mathcal{P}_{\le d}(\mathcal{V}) P ≤ d ( V ) to itself.
A ϕ \phi ϕ -independent operator on V \mathcal{V} V acts on the coefficients only, hence maps each block to itself and commutes with every P k P_k P k and with C C C .
Adjoining or removing a register in a fixed state, such as the query register in the state ∣ ⊥ ⟩ |\perp\rangle ∣ ⊥ ⟩ , changes neither the pattern nor the polynomial factor of any block, so the map J : G ↦ G ⊗ ∣ ⊥ ⟩ J:G\mapsto G\otimes|\perp\rangle J : G ↦ G ⊗ ∣ ⊥ ⟩ and its adjoint also commute with every P k P_k P k .
Level zero and the ideal score. The score is the quadratic form, on P ≤ d ( H ) \mathcal{P}_{\le d}(\mathcal{H}) P ≤ d ( H ) , of the multiplication operator X = ∑ z N p z Π z X=\sum_zNp_z\Pi_z X = ∑ z N p z Π z , defined on all square-integrable H \mathcal{H} H -valued functions of ϕ \phi ϕ by
( X F ) ( ϕ ) = ∑ z N p z ( ϕ ) Π z F ( ϕ ) . (XF)(\phi)=\sum_zNp_z(\phi)\Pi_zF(\phi). ( X F ) ( ϕ ) = z ∑ N p z ( ϕ ) Π z F ( ϕ ) .
It raises the degree of a polynomial by two, and only its quadratic form is used. Indeed,
⟨ F , X F ⟩ = N ∑ z E ϕ [ p z ∥ Π z F ( ϕ ) ∥ 2 ] . (46) \langle F,XF\rangle=N\sum_z\mathbb{E}_{\phi}\left[p_z\lVert\Pi_zF(\phi)\rVert^2\right]. \tag*{(46)} ⟨ F , X F ⟩ = N z ∑ E ϕ [ p z ∥ Π z F ( ϕ ) ∥ 2 ] . (46)
which is the expected score (23) when F F F is a final state. Since X X X multiplies by a function of p p p and by projections on H \mathcal{H} H , it preserves the pattern of every block and its branch, and it can change only the degree under the Dirichlet measure.
Proposition 5.4 (Level zero and the ideal score). If F 0 = P 0 F 0 F_0=P_0F_0 F 0 = P 0 F 0 , then
⟨ F 0 , X F 0 ⟩ ≤ β N ∥ F 0 ∥ 2 . \langle F_0,XF_0\rangle\leq\beta_N\lVert F_0\rVert^2. ⟨ F 0 , X F 0 ⟩ ≤ β N ∥ F 0 ∥ 2 . with equality for the honest sampler. More precisely, for a square-free pattern γ \gamma γ , an output z z z , and a constant v ∈ H v\in\mathcal{H} v ∈ H ,
⟨ u γ Π z v , X u γ Π z v ⟩ = N ( 1 + ∣ γ z ∣ ) N + ∣ γ ∣ 1 ∥ u γ Π z v ∥ 2 ≤ { ∥ u γ Π z v ∥ 2 if γ z = 0 , β N ∥ u γ Π z v ∥ 2 if ∣ γ z ∣ = 1. \begin{aligned}
\langle u_\gamma\Pi_zv,Xu_\gamma\Pi_zv\rangle
&=\frac{N(1+|\gamma_z|)}{N+|\gamma|_1}\lVert u_\gamma\Pi_zv\rVert^2\\
&\leq
\begin{cases}
\lVert u_\gamma\Pi_zv\rVert^2 & \text{if }\gamma_z=0,\\
\beta_N\lVert u_\gamma\Pi_zv\rVert^2 & \text{if }|\gamma_z|=1.
\end{cases}
\end{aligned} ⟨ u γ Π z v , X u γ Π z v ⟩ = N + ∣ γ ∣ 1 N ( 1 + ∣ γ z ∣ ) ∥ u γ Π z v ∥ 2 ≤ { ∥ u γ Π z v ∥ 2 β N ∥ u γ Π z v ∥ 2 if γ z = 0 , if ∣ γ z ∣ = 1.
Proof. Step 1: reduction to single terms. A polynomial of level zero is a sum of terms u γ Π z v u_\gamma\Pi_zv u γ Π z v with γ \gamma γ square-free and v ∈ H v\in\mathcal{H} v ∈ H constant, and we may take the v v v from a fixed orthonormal basis of H \mathcal{H} H adapted to the decomposition H = ⨁ z Π z H \mathcal{H}=\bigoplus_z\Pi_z\mathcal{H} H = ⨁ z Π z H . Distinct triples ( z , γ , v ) (z,\gamma,v) ( z , γ , v ) give orthogonal terms, and X X X preserves all three data, so the quadratic form is a sum over the terms.
For one term, by (44) and the mean E a ( γ ) p z = ( 1 + ∣ γ z ∣ ) / ∣ a ( γ ) ∣ \mathbb{E}_{a(\gamma)}p_z=(1+|\gamma_z|)/|a(\gamma)| E a ( γ ) p z = ( 1 + ∣ γ z ∣ ) /∣ a ( γ ) ∣ from Lemma 3.7(i), we have
⟨ u γ Π z v , X u γ Π z v ⟩ = N M γ E a ( γ ) [ p z ] ∥ Π z v ∥ 2 = N ( 1 + ∣ γ z ∣ ) N + ∣ γ ∣ 1 ∥ u γ Π z v ∥ 2 . \begin{aligned}
\langle u_\gamma\Pi_zv,Xu_\gamma\Pi_zv\rangle
&=NM_\gamma\mathbb{E}_{a(\gamma)}[p_z]\lVert\Pi_zv\rVert^2\\
&=\frac{N(1+|\gamma_z|)}{N+|\gamma|_1}\lVert u_\gamma\Pi_zv\rVert^2.
\end{aligned} ⟨ u γ Π z v , X u γ Π z v ⟩ = N M γ E a ( γ ) [ p z ] ∥ Π z v ∥ 2 = N + ∣ γ ∣ 1 N ( 1 + ∣ γ z ∣ ) ∥ u γ Π z v ∥ 2 .
Step 2: the two bounds. If γ z = 0 \gamma_z=0 γ z = 0 , then the ratio is N / ( N + ∣ γ ∣ 1 ) ≤ 1 ≤ β N N/(N+|\gamma|_1)\leq1\leq\beta_N N / ( N + ∣ γ ∣ 1 ) ≤ 1 ≤ β N . If ∣ γ z ∣ = 1 |\gamma_z|=1 ∣ γ z ∣ = 1 , then ∣ γ ∣ 1 ≥ 1 |\gamma|_1\geq1 ∣ γ ∣ 1 ≥ 1 and the ratio is at most 2 N / ( N + 1 ) = β N 2N/(N+1)=\beta_N 2 N / ( N + 1 ) = β N .
Finally, the honest sampler prepares ∣ ϕ ⟩ = O ϕ ∣ ⊥ ⟩ |\phi\rangle=O_\phi|\perp\rangle ∣ ϕ ⟩ = O ϕ ∣ ⊥ ⟩ with its single query and measures it, so its output-z z z branch is α z ∣ z ⟩ \alpha_z|z\rangle α z ∣ z ⟩ , of pattern e z e_z e z with constant polynomial factor, for which the ratio equals β N \beta_N β N .
Lemma 5.5 (The level of the copies). For every s ≥ 0 s\geq0 s ≥ 0 ,
λ ( ∣ ϕ ⟩ ⊗ s ) 2 = s ( s − 1 ) N + s − 1 . \lambda\left(|\phi\rangle^{\otimes s}\right)^2=\frac{s(s-1)}{N+s-1}. λ ( ∣ ϕ ⟩ ⊗ s ) 2 = N + s − 1 s ( s − 1 ) .
The proof is in Appendix § 17 .§ 9.1 .
The identity follows by expanding in the basis of the copy registers. Conditional on p p p , the squared amplitudes give s s s independent samples, so the squared progress measure of the copies is the expected number of samples that repeat an earlier outcome.
The main theorem. Combining the score and growth estimates with Lemma 5.5 gives us the following theorem.
Theorem 5.6 (Haar lower bound for the canonical oracle). Let an algorithm receive s s s copies of ∣ ϕ ⟩ |\phi\rangle ∣ ϕ ⟩ and make at most q q q queries to O ϕ O_\phi O ϕ . Then
λ ( Ψ ) ≤ Λ s , q and B ( A ) ≤ β N + 2 2 Λ s , q + 72 Λ s , q 2 , \lambda(\Psi)\leq\Lambda_{s,q}\qquad\text{and}\qquad B(\mathcal{A})\leq\beta_N+2\sqrt{2}\Lambda_{s,q}+72\Lambda_{s,q}^2, λ ( Ψ ) ≤ Λ s , q and B ( A ) ≤ β N + 2 2 Λ s , q + 72 Λ s , q 2 , where
Λ s , q = s ( s − 1 ) N + s − 1 + c 0 N ∑ t = 0 q − 1 s + 2 t + 1 . \Lambda_{s,q}=\sqrt{\frac{s(s-1)}{N+s-1}+\frac{c_0}{\sqrt{N}}\sum_{t=0}^{q-1}\sqrt{s+2t+1}}. Λ s , q = N + s − 1 s ( s − 1 ) + N c 0 t = 0 ∑ q − 1 s + 2 t + 1 .
Proof. Step 1: the initial level. Let Ψ t \Psi_t Ψ t be the state after t t t queries and the fixed unitary that follows them, as in Section 4.1, so that Ψ 0 = U 0 ( ∣ ϕ ⟩ ⊗ s ⊗ ψ 0 ) \Psi_0 = U_0(|\phi\rangle^{\otimes s} \otimes\psi_0) Ψ 0 = U 0 ( ∣ ϕ ⟩ ⊗ s ⊗ ψ 0 ) and Ψ q = Ψ \Psi_q = \Psi Ψ q = Ψ . Each Ψ t \Psi_t Ψ t is a unit vector in P ≤ s + 2 t ( H ) \mathcal{P}_{\leq s+2t}(\mathcal{H}) P ≤ s + 2 t ( H ) by Lemma 5.1 . The fixed unitaries commute with C C C and preserve the norm, and adjoining the ϕ \phi ϕ -independent vector ψ 0 \psi_0 ψ 0 does not change the level, so, by Lemma 5.5,
λ ( Ψ 0 ) 2 = s ( s − 1 ) N + s − 1 . \lambda(\Psi_0)^2 = \frac{s(s-1)}{N+s-1}. λ ( Ψ 0 ) 2 = N + s − 1 s ( s − 1 ) .
Step 2: the effect of the queries. By the growth estimate at degree s + 2 t s+2t s + 2 t ,
λ ( Ψ t + 1 ) ≤ λ ( Ψ t ) + c 0 s + 2 t + 1 N . \lambda(\Psi_{t+1}) \leq\lambda(\Psi_t) + c_0\sqrt{\frac{s+2t+1}{N}}. λ ( Ψ t + 1 ) ≤ λ ( Ψ t ) + c 0 N s + 2 t + 1 .
Summing over t t t gives λ ( Ψ ) ≤ Λ s , q \lambda(\Psi) \leq\Lambda_{s,q} λ ( Ψ ) ≤ Λ s , q , which is the first claim.
Finally, the score estimate applies to Ψ \Psi Ψ , and its right side is increasing in λ ( Ψ ) \lambda(\Psi) λ ( Ψ ) .
Corollary 5.7 (Query and copy bounds). Let 0 < ε ≤ 1 0 < \varepsilon\leq1 0 < ε ≤ 1 , and let an algorithm as in Theorem 5.6 have B ( A ) ≥ 2 + ε B(\mathcal{A}) \geq2+\varepsilon B ( A ) ≥ 2 + ε . Then
s + q s + q + 1 ≥ c 1 ε N . s+q\sqrt{s+q+1} \geq c_1\varepsilon\sqrt{N}. s + q s + q + 1 ≥ c 1 ε N . for an absolute constant c 1 > 0 c_1 > 0 c 1 > 0 . In particular, the following hold.
(i) With no copies, q ≥ c 2 ε 2 / 3 N 1 / 3 q \geq c_2\varepsilon^{2/3}N^{1/3} q ≥ c 2 ε 2/3 N 1/3 for an absolute constant c 2 > 0 c_2 > 0 c 2 > 0 .
(ii) With no queries, s ≥ c 1 ε N s \geq c_1\varepsilon\sqrt{N} s ≥ c 1 ε N .
Proof. Step 1: a lower and an upper bound on Λ \Lambda Λ . Since β N ≤ 2 \beta_N \leq2 β N ≤ 2 , the theorem gives
ε ≤ 2 2 Λ + 72 Λ 2 , where Λ = Λ s , q . \varepsilon\leq2\sqrt{2}\Lambda+ 72\Lambda^2, \qquad\text{where } \Lambda=\Lambda_{s,q}. ε ≤ 2 2 Λ + 72 Λ 2 , where Λ = Λ s , q .
If Λ ≤ 1 \Lambda\leq1 Λ ≤ 1 , then this gives ε ≤ 75 Λ \varepsilon\leq75\Lambda ε ≤ 75Λ . If Λ > 1 \Lambda> 1 Λ > 1 , then Λ > ε \Lambda> \varepsilon Λ > ε . In both cases Λ ≥ ε / 75 \Lambda\geq\varepsilon/75 Λ ≥ ε /75 .
On the other hand, each summand is at most s + 2 q + 1 \sqrt{s+2q+1} s + 2 q + 1 , and the empty sum is zero when q = 0 q=0 q = 0 . Bounding s ( s − 1 ) / ( N + s − 1 ) s(s-1)/(N+s-1) s ( s − 1 ) / ( N + s − 1 ) by s 2 / N s^2/N s 2 / N and using s + 2 q + 1 ≤ 2 ( s + q + 1 ) s+2q+1 \leq2(s+q+1) s + 2 q + 1 ≤ 2 ( s + q + 1 ) , we obtain
Λ ≤ s N + c 0 q s + 2 q + 1 N ≤ ( 1 + 2 c 0 ) ( s + q s + q + 1 ) N . \begin{aligned}
\Lambda\leq\frac{s}{\sqrt{N}}+\frac{c_0q\sqrt{s+2q+1}}{\sqrt{N}} \\
&\leq\frac{(1+\sqrt{2}c_0)(s+q\sqrt{s+q+1})}{\sqrt{N}}.
\end{aligned} Λ ≤ N s + N c 0 q s + 2 q + 1 ≤ N ( 1 + 2 c 0 ) ( s + q s + q + 1 ) .
Step 2: the three claims. The two bounds give the first claim with c 1 = 1 / ( 75 ( 1 + 2 c 0 ) ) c_1=1/(75(1+\sqrt{2}c_0)) c 1 = 1/ ( 75 ( 1 + 2 c 0 )) . With s = 0 s=0 s = 0 , the first claim reads q q + 1 ≥ c 1 ε N q\sqrt{q+1}\geq c_1\varepsilon\sqrt{N} q q + 1 ≥ c 1 ε N , and the bound q q + 1 ≤ 2 q 3 / 2 q\sqrt{q+1}\leq\sqrt{2}q^{3/2} q q + 1 ≤ 2 q 3/2 gives item (i). With q = 0 q=0 q = 0 , the first claim is item (ii).
Both extremes of the corollary have the right exponent of N N N : O ( N ) O(\sqrt{N}) O ( N ) measured copies suffice to exceed the ideal score by a constant, since a repeated outcome identifies an outcome of large probability [37 ] , and O ( N 1 / 3 ) O(N^{1/3}) O ( N 1/3 ) queries suffice by Theorem 6.9 in § 14 . The exponent of ε \varepsilon ε is not known to be sharp.
Dirichlet energy and concentration
To bound the score, we first bound the mass of a set of outcomes weighted by a polynomial in p p p . Throughout this subsection, a i ≥ 1 a_i \geq1 a i ≥ 1 . We prove the following lemma using integration by parts.
Lemma 5.8 (The mass of a set of outcomes). Let S ⊆ [ N ] S \subseteq[N] S ⊆ [ N ] , and write p ( S ) = ∑ i ∈ S p i p(S)=\sum_{i\in S}p_i p ( S ) = ∑ i ∈ S p i and a ( S ) = ∑ i ∈ S a i a(S)=\sum_{i\in S}a_i a ( S ) = ∑ i ∈ S a i . For every polynomial h h h in p p p of degree at most r r r ,
E a [ p ( S ) ∣ h ∣ 2 ] ≤ 8 a ( S ) + r ∣ a ∣ ∥ h ∥ a 2 . \mathbb{E}_{a}\left[p(S)|h|^2\right] \leq8\frac{a(S)+r}{|a|}\|h\|_{a}^{2}. E a [ p ( S ) ∣ h ∣ 2 ] ≤ 8 ∣ a ∣ a ( S ) + r ∥ h ∥ a 2 .
Tangent derivatives. The partial derivatives ∂ i = ∂ / ∂ p i \partial_i = \partial/\partial p_i ∂ i = ∂ / ∂ p i of a polynomial can depend on how it is represented away from the simplex. We instead differentiate along e i − p e_i-p e i − p , which points from p p p toward vertex i i i , and define
T i g = ∂ i g − ∑ j = 1 N p j ∂ j g . (47) T_i g = \partial_i g-\sum_{j=1}^{N}p_j\partial_j g. \tag*{(47)} T i g = ∂ i g − j = 1 ∑ N p j ∂ j g . (47)
For 0 ≤ t ≤ 1 0\leq t\leq1 0 ≤ t ≤ 1 , the point ( 1 − t ) p + t e i (1-t)p+te_i ( 1 − t ) p + t e i lies in the simplex. Since T i g ( p ) T_i g(p) T i g ( p ) is the derivative at t = 0 t=0 t = 0 of the polynomial g ( ( 1 − t ) p + t e i ) g((1-t)p+te_i) g (( 1 − t ) p + t e i ) , it depends only on the restriction of g g g to the simplex. The operators satisfy ∑ i p i T i = 0 \sum_i p_iT_i=0 ∑ i p i T i = 0 .
Lemma 5.9 (Integration by parts). *For all polynomials g g g , v v v and all i ∈ [ N ] i\in[N] i ∈ [ N ] ,
E a [ p i ( T i g ) v ] = E a [ g ( ( ∣ a ∣ p i − a i ) v − p i T i v ) ] . (48) \mathbb{E}_a\left[p_i(T_i g)v\right]=\mathbb{E}_a\left[g\left((|a|p_i-a_i)v-p_iT_i v\right)\right]. \tag*{(48)} E a [ p i ( T i g ) v ] = E a [ g ( ( ∣ a ∣ p i − a i ) v − p i T i v ) ] . (48) We verify the identity on monomials using the Dirichlet moment formula, which avoids boundary terms. It is bilinear, with no conjugation, and applies to conjugates by substituting v ‾ \overline{v} v for v v v . The proof is in Appendix A.1.2.
The form Γ \Gamma Γ and the operator L a L_a L a . For polynomials f , g f,g f , g , define the form Γ \Gamma Γ and the operator L a L_a L a by
Γ ( f , g ) = ∑ i , j p i ( δ i j − p j ) ∂ i f ∂ j g , \Gamma(f,g)=\sum_{i,j}p_i(\delta_{ij}-p_j)\,\partial_i f\,\partial_j g, Γ ( f , g ) = i , j ∑ p i ( δ ij − p j ) ∂ i f ∂ j g ,
L a g = ∑ i , j p i ( δ i j − p j ) ∂ i ∂ j g + ∑ i ( a i − ∣ a ∣ p i ) ∂ i g . (49) L_a g=\sum_{i,j}p_i(\delta_{ij}-p_j)\,\partial_i\partial_j g+\sum_i(a_i-|a|p_i)\,\partial_i g. \tag*{(49)} L a g = i , j ∑ p i ( δ ij − p j ) ∂ i ∂ j g + i ∑ ( a i − ∣ a ∣ p i ) ∂ i g . (49)
Expanding the square shows that on the simplex
Γ ( g , g ) = ∑ i p i ∣ ∂ i g ∣ 2 − ∣ ∑ j p j ∂ j g ∣ 2 = ∑ i p i ∣ T i g ∣ 2 ≥ 0 , \begin{aligned}
\Gamma(g,g)=\sum_i p_i|\partial_i g|^2-\left|\sum_jp_j\partial_j g\right|^2 \\
&=\sum_i p_i|T_i g|^2\geq0,
\end{aligned} Γ ( g , g ) = i ∑ p i ∣ ∂ i g ∣ 2 − j ∑ p j ∂ j g 2 = i ∑ p i ∣ T i g ∣ 2 ≥ 0 ,
and more generally Γ ( f , g ) = ∑ i p i T i f ‾ T i g \Gamma(f,g)=\sum_i p_i\overline{T_i f}\,T_i g Γ ( f , g ) = ∑ i p i T i f T i g .
On the simplex the operator L a L_a L a can be written with the tangent derivatives alone,
L a g = ∑ i ( p i T i 2 g + a i T i g ) , (50) L_a g=\sum_i(p_iT_i^2g+a_iT_i g), \tag*{(50)} L a g = i ∑ ( p i T i 2 g + a i T i g ) , (50)
so it is well defined on functions on the simplex, since each T i T_i T i is. The calculation is in Appendix A.1.3. Since L a p i = a i − ∣ a ∣ p i L_a p_i=a_i-|a|p_i L a p i = a i − ∣ a ∣ p i , summing over i ∈ S i\in S i ∈ S gives L a p ( S ) = a ( S ) − ∣ a ∣ p ( S ) L_a p(S)=a(S)-|a|p(S) L a p ( S ) = a ( S ) − ∣ a ∣ p ( S ) .
Lemma 5.10 (Symmetry and eigenvalues). *For all polynomials f , g f,g f , g :
(i) the identity E a Γ ( f , g ) = − ⟨ f , L a g ⟩ a \mathbb{E}_a\Gamma(f,g)=-\langle f,L_a g\rangle_a E a Γ ( f , g ) = − ⟨ f , L a g ⟩ a holds; in particular, the operator L a L_a L a is symmetric for ⟨ ⋅ , ⋅ ⟩ a \langle\cdot,\cdot\rangle_a ⟨ ⋅ , ⋅ ⟩ a and ⟨ g , L a g ⟩ a ≤ 0 \langle g,L_a g\rangle_a\leq0 ⟨ g , L a g ⟩ a ≤ 0 ;
(ii) the operator L a L_a L a maps polynomials of degree at most m m m to polynomials of degree at most m m m , and L a g = − r ( ∣ a ∣ + r − 1 ) g L_a g=-r(|a|+r-1)g L a g = − r ( ∣ a ∣ + r − 1 ) g for g ∈ R r a g\in R^a_r g ∈ R r a ;
(iii) for every polynomial h h h of degree at most r r r ,
E a Γ ( h , h ) ≤ r ( ∣ a ∣ + r − 1 ) ∥ h ∥ a 2 . \mathbb{E}_a\Gamma(h,h)\leq r(|a|+r-1)\lVert h\rVert_a^2. E a Γ ( h , h ) ≤ r ( ∣ a ∣ + r − 1 ) ∥ h ∥ a 2 . The proof is in Appendix A.1.4.
The proof of Lemma 5.8 is in Appendix A.1.5.
The score in terms of the level
For a unit polynomial F F F , write F 0 = P 0 F F_0=P_0F F 0 = P 0 F and F + = F − F 0 F_+=F-F_0 F + = F − F 0 . Expanding along this decomposition gives
⟨ F , X F ⟩ = ⟨ F 0 , X F 0 ⟩ + 2 Re ⟨ F 0 , X F + ⟩ + ⟨ F + , X F + ⟩ . (51) \langle F,XF\rangle=\langle F_0,XF_0\rangle+2\operatorname{Re}\langle F_0,XF_+\rangle+\langle F_+,XF_+\rangle. \tag*{(51)} ⟨ F , X F ⟩ = ⟨ F 0 , X F 0 ⟩ + 2 Re ⟨ F 0 , X F + ⟩ + ⟨ F + , X F + ⟩ . (51)
The first term is at most the ideal score by Proposition 5.4. We bound the cross term by O ( λ ( F ) ) O(\lambda(F)) O ( λ ( F )) and the last term by O ( λ ( F ) 2 ) O(\lambda(F)^2) O ( λ ( F ) 2 ) , using Lemma 5.8 for the latter.
Lemma 5.11 (The cross term). For every F ∈ P ≤ d ( H ) F\in\mathcal{P}_{\le d}(\mathcal{H}) F ∈ P ≤ d ( H ) with F 0 = P 0 F F_0=P_0F F 0 = P 0 F and F + = F − F 0 F_+=F-F_0 F + = F − F 0 ,
∣ ⟨ F 0 , X F + ⟩ ∣ ≤ 2 ∥ F 0 ∥ ∥ F + ∥ and ∥ F + ∥ ≤ λ ( F ) . \lvert\langle F_0,XF_+\rangle\rvert\le\sqrt{2}\,\lVert F_0\rVert\lVert F_+\rVert
\qquad\text{and}\qquad
\lVert F_+\rVert\le\lambda(F). ∣⟨ F 0 , X F + ⟩∣ ≤ 2 ∥ F 0 ∥ ∥ F + ∥ and ∥ F + ∥ ≤ λ ( F ) .
Proof. Step 1: reduction to one sector. Since X X X preserves branches and patterns and F 0 F_0 F 0 lies in sectors with square-free patterns and constant polynomial factors, the pairing is a sum over such sectors. In one such sector, write a = a ( γ ) a=a(\gamma) a = a ( γ ) . Let v v v be the constant coefficient of Π z F 0 \Pi_zF_0 Π z F 0 and g g g the polynomial factor of Π z F + \Pi_zF_+ Π z F + , with E a g = 0 \mathbb{E}_a g=0 E a g = 0 coefficientwise. Then E a ⟨ v , g ⟩ = 0 \mathbb{E}_a\langle v,g\rangle=0 E a ⟨ v , g ⟩ = 0 , so only the centered part of p z p_z p z contributes:
∣ N E a [ p z ⟨ v , g ⟩ ] ∣ = ∣ N E a [ ( p z − E a p z ) ⟨ v , g ⟩ ] ∣ ≤ N Var a ( p z ) ∥ v ∥ ∥ g ∥ a . \begin{aligned}
\lvert N\mathbb{E}_a[p_z\langle v,g\rangle]\rvert
=\lvert N\mathbb{E}_a[(p_z-\mathbb{E}_a p_z)\langle v,g\rangle]\rvert\\
&\le N\sqrt{\operatorname{Var}_a(p_z)}\,\lVert v\rVert\lVert g\rVert_a.
\end{aligned} ∣ N E a [ p z ⟨ v , g ⟩]∣ = ∣ N E a [( p z − E a p z ) ⟨ v , g ⟩]∣ ≤ N Var a ( p z ) ∥ v ∥ ∥ g ∥ a .
Step 2: the variance and the first claim. By Lemma 3.7(i), with a z ≤ 2 a_z\le2 a z ≤ 2 and ∣ a ∣ ≥ N \lvert a\rvert\ge N ∣ a ∣ ≥ N ,
N 2 Var a ( p z ) = N 2 a z ( ∣ a ∣ − a z ) ∣ a ∣ 2 ( ∣ a ∣ + 1 ) ≤ 2 N 2 ∣ a ∣ ( ∣ a ∣ + 1 ) ≤ 2. N^2\operatorname{Var}_a(p_z)
=\frac{N^2a_z(\lvert a\rvert-a_z)}{\lvert a\rvert^2(\lvert a\rvert+1)}
\le\frac{2N^2}{\lvert a\rvert(\lvert a\rvert+1)}\le2. N 2 Var a ( p z ) = ∣ a ∣ 2 (∣ a ∣ + 1 ) N 2 a z (∣ a ∣ − a z ) ≤ ∣ a ∣ (∣ a ∣ + 1 ) 2 N 2 ≤ 2.
Multiplying by M γ M_\gamma M γ and applying the Cauchy–Schwarz inequality over the sectors gives the first claim.
For the second claim, we have
∥ F + ∥ 2 = ∑ k ≥ 1 ∥ P k F ∥ 2 ≤ ∑ k ≥ 1 k ∥ P k F ∥ 2 = λ ( F ) 2 . \lVert F_+\rVert^2=\sum_{k\ge1}\lVert P_kF\rVert^2
\le\sum_{k\ge1}k\lVert P_kF\rVert^2=\lambda(F)^2. ∥ F + ∥ 2 = k ≥ 1 ∑ ∥ P k F ∥ 2 ≤ k ≥ 1 ∑ k ∥ P k F ∥ 2 = λ ( F ) 2 .
Lemma 5.12 (The positive-level piece). For every F ∈ P ≤ d ( H ) F\in\mathcal{P}_{\le d}(\mathcal{H}) F ∈ P ≤ d ( H ) with F + = F − P 0 F F_+=F-P_0F F + = F − P 0 F ,
⟨ F + , X F + ⟩ ≤ 72 λ ( F ) 2 . \langle F_+,XF_+\rangle\le72\lambda(F)^2. ⟨ F + , X F + ⟩ ≤ 72 λ ( F ) 2 .
Proof. Step 1: reduction to one sector. Fix a branch z z z and a pattern γ \gamma γ , and write a = a ( γ ) a=a(\gamma) a = a ( γ ) . Let the component of Π z F + \Pi_zF_+ Π z F + in this sector be
u γ ∑ r h r , h r ∈ R a a , u_\gamma\sum_r h_r,\qquad h_r\in\mathbb{R}_a^a, u γ r ∑ h r , h r ∈ R a a ,
with H \mathcal{H} H -valued coefficients treated coefficientwise. Since X X X preserves branches and patterns, the quadratic form is a sum over sectors, and within a sector it is, by (44) ,
N M γ E a [ p z ∥ ∑ r h r ∥ 2 ] . NM_\gamma\mathbb{E}_a\left[p_z\left\lVert\sum_r h_r\right\rVert^2\right]. N M γ E a p z r ∑ h r 2 .
Step 2: multiplication by p z p_z p z . Multiplication by p z p_z p z connects only equal or adjacent degrees under the Dirichlet measure. Indeed, p z h t p_z h_t p z h t has degree at most t + 1 t+1 t + 1 , so ⟨ h r , p z h t ⟩ a = 0 \langle h_r,p_z h_t\rangle_a=0 ⟨ h r , p z h t ⟩ a = 0 for r > t + 1 r>t+1 r > t + 1 , and symmetry gives the same conclusion for t > r + 1 t>r+1 t > r + 1 . Write w r = E a [ p z ∥ h r ∥ 2 ] w_r=\mathbb{E}_a[p_z\|h_r\|^2] w r = E a [ p z ∥ h r ∥ 2 ] . Applying the Cauchy–Schwarz inequality to p z h r \sqrt{p_z}h_r p z h r and p z h r ± 1 \sqrt{p_z}h_{r\pm1} p z h r ± 1 gives ∣ ⟨ h r , p z h r ± 1 ⟩ a ∣ ≤ w r w r ± 1 |\langle h_r,p_z h_{r\pm1}\rangle_a|\le\sqrt{w_rw_{r\pm1}} ∣ ⟨ h r , p z h r ± 1 ⟩ a ∣ ≤ w r w r ± 1 . Since 2 w r w r + 1 ≤ w r + w r + 1 2\sqrt{w_rw_{r+1}}\le w_r+w_{r+1} 2 w r w r + 1 ≤ w r + w r + 1 , we obtain
E a [ p z ∥ ∑ r h r ∥ 2 ] ≤ ∑ r w r + 2 ∑ r w r w r + 1 \mathbb{E}_a\left[p_z\left\|\sum_r h_r\right\|^2\right]\le\sum_r w_r+2\sum_r\sqrt{w_rw_{r+1}} E a p z r ∑ h r 2 ≤ r ∑ w r + 2 r ∑ w r w r + 1
≤ 3 ∑ r w r . \le3\sum_r w_r. ≤ 3 r ∑ w r .
Step 3: comparison with the level. Each w r w_r w r is the quantity bounded in Lemma 5.8 for the set S = { z } S=\{z\} S = { z } , whose parameter is a z = 1 + ∣ γ z ∣ a_z=1+|\gamma_z| a z = 1 + ∣ γ z ∣ , so that lemma and ∣ a ∣ ≥ N |a|\ge N ∣ a ∣ ≥ N give
N w r ≤ 8 ( 1 + ∣ γ z ∣ + r ) ∥ h r ∥ a 2 . Nw_r\le8(1+|\gamma_z|+r)\|h_r\|_a^2. N w r ≤ 8 ( 1 + ∣ γ z ∣ + r ) ∥ h r ∥ a 2 .
Now compare with the level k = rep ( γ ) + r k=\operatorname{rep}(\gamma)+r k = rep ( γ ) + r of the block ( γ , r ) (\gamma,r) ( γ , r ) , which is at least 1 1 1 for every block of F + F_+ F + . Since ∣ γ z ∣ ≤ 1 + max ( ∣ γ z ∣ − 1 , 0 ) ≤ 1 + rep ( γ ) |\gamma_z|\le1+\max(|\gamma_z|-1,0)\le1+\operatorname{rep}(\gamma) ∣ γ z ∣ ≤ 1 + max ( ∣ γ z ∣ − 1 , 0 ) ≤ 1 + rep ( γ ) , we have 1 + ∣ γ z ∣ + r ≤ 2 + k ≤ 3 k 1+|\gamma_z|+r\le2+k\le3k 1 + ∣ γ z ∣ + r ≤ 2 + k ≤ 3 k . Here the level does not count the first occurrence of z z z in the pattern, as in Proposition 5.4, but it counts every further occurrence.
Finally, summing over the sectors, which are orthogonal, converting back by M γ M_\gamma M γ , and using that Π z \Pi_z Π z commutes with every P k P_k P k , we obtain
⟨ F + , X F + ⟩ ≤ 24 ∑ k ≥ 1 3 k ∥ P k F ∥ 2 = 72 λ ( F ) 2 . \langle F_+,XF_+\rangle\le24\sum_{k\ge1}3k\|P_kF\|^2=72\lambda(F)^2. ⟨ F + , X F + ⟩ ≤ 24 k ≥ 1 ∑ 3 k ∥ P k F ∥ 2 = 72 λ ( F ) 2 .
Theorem 5.13 (Score bound). *For every unit vector F ∈ P ≤ d ( H ) F\in\mathcal{P}_{\le d}(\mathcal{H}) F ∈ P ≤ d ( H ) ,
⟨ F , X F ⟩ ≤ β N + 2 2 λ ( F ) + 72 λ ( F ) 2 . \langle F,XF\rangle\le\beta_N+2\sqrt{2}\lambda(F)+72\lambda(F)^2. ⟨ F , X F ⟩ ≤ β N + 2 2 λ ( F ) + 72 λ ( F ) 2 . Proof. We bound the three terms in (51) as follows.
The first term is at most β N ∥ F 0 ∥ 2 ≤ β N \beta_N\|F_0\|^2\le\beta_N β N ∥ F 0 ∥ 2 ≤ β N by Proposition 5.4.
The second term is at most 2 2 ∥ F 0 ∥ ∥ F + ∥ ≤ 2 2 λ ( F ) 2\sqrt{2}\|F_0\|\|F_+\|\le2\sqrt{2}\lambda(F) 2 2 ∥ F 0 ∥∥ F + ∥ ≤ 2 2 λ ( F ) by Lemma 5.11.
The third term is at most 72 λ ( F ) 2 72\lambda(F)^2 72 λ ( F ) 2 by Lemma 5.12.
Projection estimates for Dirichlet polynomials
We next prove the estimates needed to bound the effect of a query on the level. Multiplying by an amplitude changes the pattern and therefore the Dirichlet inner product. Fix a i ≥ 1 a_i\ge1 a i ≥ 1 . Weighting Dir ( a ) \operatorname{Dir}(a) Dir ( a ) by p i p_i p i and normalizing gives Dir ( a + e i ) \operatorname{Dir}(a+e_i) Dir ( a + e i ) . For g ∈ R r a g\in\mathcal{R}^a_r g ∈ R r a with r ≥ 1 r\ge1 r ≥ 1 , the posterior decomposition has only degrees r r r and r − 1 r-1 r − 1 . With weights a i / ∣ a ∣ a_i/|a| a i /∣ a ∣ , the sum of the lower-degree squared norms equals r / ( ∣ a ∣ + 2 r − 1 ) r/(|a|+2r-1) r / ( ∣ a ∣ + 2 r − 1 ) times ∥ g ∥ 2 \|g\|^2 ∥ g ∥ 2 , and r / ( ∣ a ∣ + 2 r − 1 ) ≤ r / N r/(|a|+2r-1)\le r/N r / ( ∣ a ∣ + 2 r − 1 ) ≤ r / N when ∣ a ∣ ≥ N |a|\ge N ∣ a ∣ ≥ N . We then use this identity to bound the degree-r + 1 r+1 r + 1 part of ∑ i p i h i \sum_i p_i h_i ∑ i p i h i for polynomials h i h_i h i of degree at most r r r .
Lemma 5.14 (Two adjacent degrees). Let i ∈ [ N ] i\in[N] i ∈ [ N ] .
(i) If g ∈ R r a g\in\mathcal{R}^a_r g ∈ R r a , then g ∈ R r a + e i ⊕ R r − 1 a + e i g\in\mathcal{R}^{a+e_i}_r\oplus\mathcal{R}^{a+e_i}_{r-1} g ∈ R r a + e i ⊕ R r − 1 a + e i .
(ii) Conversely, if h ∈ R r a + e i h\in\mathcal{R}^{a+e_i}_r h ∈ R r a + e i , then p i h ∈ R r + 1 a ⊕ R r a p_i h\in\mathcal{R}^a_{r+1}\oplus\mathcal{R}^a_r p i h ∈ R r + 1 a ⊕ R r a .
Proof. For the first claim, g g g has degree at most r r r , so it suffices to show that g g g is orthogonal under Dir ( a + e i ) \operatorname{Dir}(a+e_i) Dir ( a + e i ) to every polynomial v v v of degree at most r − 2 r-2 r − 2 . By Lemma 3.7(ii),
⟨ v , g ⟩ a + e i = ∣ a ∣ a i E a [ p i v ‾ g ] = 0 , \langle v,g\rangle_{a+e_i}=\frac{|a|}{a_i}\mathbb{E}_a[p_i\overline{v}g]=0, ⟨ v , g ⟩ a + e i = a i ∣ a ∣ E a [ p i v g ] = 0 ,
because p i v ‾ p_i\overline{v} p i v has degree at most r − 1 r-1 r − 1 and g ∈ R r a g\in\mathcal{R}_r^a g ∈ R r a .
For the second claim, p i h p_i h p i h has degree at most r + 1 r+1 r + 1 , and for v v v of degree at most r − 1 r-1 r − 1 ,
⟨ v , p i h ⟩ a = a i ∣ a ∣ ⟨ v , h ⟩ a + e i = 0 \langle v,p_i h\rangle_a=\frac{a_i}{|a|}\langle v,h\rangle_{a+e_i}=0 ⟨ v , p i h ⟩ a = ∣ a ∣ a i ⟨ v , h ⟩ a + e i = 0
because h ∈ R r a + e i h\in\mathcal{R}_r^{a+e_i} h ∈ R r a + e i .
Theorem 5.15 (The projection onto the lower degree). Let g ∈ R r a g\in\mathcal{R}_r^a g ∈ R r a with r ≥ 1 r\geq1 r ≥ 1 and let i ∈ [ N ] i\in[N] i ∈ [ N ] . Then
Π ≤ r − 1 a + e i g = T i g + r g ∣ a ∣ + 2 r − 1 ∈ R r − 1 a + e i . \Pi_{\leq r-1}^{a+e_i}g=\frac{T_i g+r g}{|a|+2r-1}\in\mathcal{R}_{r-1}^{a+e_i}. Π ≤ r − 1 a + e i g = ∣ a ∣ + 2 r − 1 T i g + r g ∈ R r − 1 a + e i . Proof. Step 1: the degree. Choose a representative of g g g of degree at most r r r and split off its homogeneous part g r g_r g r of degree r r r , writing g = g r + g < r g=g_r+g_{<r} g = g r + g < r . Euler’s identity ∑ j p j ∂ j g r = r g r \sum_j p_j\partial_j g_r=r g_r ∑ j p j ∂ j g r = r g r shows that the top parts cancel in
T i g + r g = ∂ i g + ( r g < r − ∑ j p j ∂ j g < r ) , T_i g+r g=\partial_i g+\left(rg_{<r}-\sum_j p_j\partial_j g_{<r}\right), T i g + r g = ∂ i g + ( r g < r − j ∑ p j ∂ j g < r ) , which therefore has degree at most $r-1.
Step 2: the pairing with polynomials of lower degree. We next show that for every polynomial v v v of degree at most r − 1 r-1 r − 1 ,
E a [ p i ( T i g + r g ) v ] = ( ∣ a ∣ + 2 r − 1 ) E a [ p i g v ] . (52) \mathbb{E}_a\left[p_i(T_i g+r g)v\right]=(|a|+2r-1)\mathbb{E}_a[p_i g v]. \tag*{(52)} E a [ p i ( T i g + r g ) v ] = ( ∣ a ∣ + 2 r − 1 ) E a [ p i g v ] . (52) By (48),
E a [ p i ( T i g ) v ] = ∣ a ∣ E a [ p i g v ] − a i E a [ g v ] − E a [ g p i ∂ i v ] + E a [ g p i ∑ j p j ∂ j v ] . \mathbb{E}_a[p_i(T_i g)v]=|a|\mathbb{E}_a[p_i g v]-a_i\mathbb{E}_a[g v]
-\mathbb{E}_a[g p_i\partial_i v]+\mathbb{E}_a\left[g p_i\sum_j p_j\partial_j v\right]. E a [ p i ( T i g ) v ] = ∣ a ∣ E a [ p i g v ] − a i E a [ g v ] − E a [ g p i ∂ i v ] + E a [ g p i j ∑ p j ∂ j v ] . The second and third terms vanish, because v v v and p i ∂ i v p_i\partial_i v p i ∂ i v have degree at most r − 1 r-1 r − 1 and g ∈ R r a g\in\mathcal{R}_r^a g ∈ R r a . In the last term, write w = ∑ j p j ∂ j v − ( r − 1 ) v w=\sum_j p_j\partial_j v-(r-1)v w = ∑ j p j ∂ j v − ( r − 1 ) v . If v v v is split into its homogeneous part of degree r − 1 r-1 r − 1 and the rest, then Euler’s identity shows that w w w has degree at most $r-2. Hence p i w p_iw p i w has degree at most r − 1 r-1 r − 1 and is orthogonal to g g g , and the last term equals ( r − 1 ) E a [ p i g v ] (r-1)\mathbb{E}_a[p_i g v] ( r − 1 ) E a [ p i g v ] . Adding r E a [ p i g v ] r\mathbb{E}_a[p_i g v] r E a [ p i g v ] to both sides gives (52).
Step 3: the projection. Finally, by Lemma 3.7(ii), E a [ p i ⋅ ] \mathbb{E}_a[p_i\cdot] E a [ p i ⋅ ] is a i / ∣ a ∣ a_i/|a| a i /∣ a ∣ times the expectation under Dir ( a + e i ) \operatorname{Dir}(a+e_i) Dir ( a + e i ) , so (52) with v ‾ \overline{v} v in place of v v v states that
g − T i g + r g ∣ a ∣ + 2 r − 1 g-\frac{T_i g+r g}{|a|+2r-1} g − ∣ a ∣ + 2 r − 1 T i g + r g is orthogonal under Dir ( a + e i ) \operatorname{Dir}(a+e_i) Dir ( a + e i ) to every polynomial of degree at most $r-1. Since this quotient has degree at most r − 1 r-1 r − 1 , it is the orthogonal projection of g g g onto that space.
Moreover, the projection lies in R r − 1 a + e i \mathcal{R}_{r-1}^{a+e_i} R r − 1 a + e i , and not only among the polynomials of degree at most r − 1 r-1 r − 1 , because, by Lemma 5.14, the polynomial g g g has no posterior components of degree r − 2 r-2 r − 2 or lower.
Theorem 5.16 (Average squared norm of the lower-degree projection). For every r ≥ 1 r \ge1 r ≥ 1 and g ∈ R r a g \in\mathcal{R}^{a}_{r} g ∈ R r a ,
∑ i = 1 N a i ∣ a ∣ ∥ Π ≤ r − 1 a + e i g ∥ a + e i 2 = r ∣ a ∣ + 2 r − 1 ∥ g ∥ a 2 . \sum_{i=1}^{N} \frac{a_i}{|a|}\left\|\Pi^{a+e_i}_{\le r-1}g\right\|_{a+e_i}^{2} = \frac{r}{|a|+2r-1}\|g\|_{a}^{2}. i = 1 ∑ N ∣ a ∣ a i Π ≤ r − 1 a + e i g a + e i 2 = ∣ a ∣ + 2 r − 1 r ∥ g ∥ a 2 . Proof. Step 1: reduction to a prior expectation. Write b = ∣ a ∣ + 2 r − 1 b=|a|+2r-1 b = ∣ a ∣ + 2 r − 1 . If we substitute Theorem 5.15 and convert each posterior norm to a prior expectation by Lemma 3.7(ii), then the weight a i / ∣ a ∣ a_i/|a| a i /∣ a ∣ cancels against the conversion factor ∣ a ∣ / a i |a|/a_i ∣ a ∣/ a i :
∑ i a i ∣ a ∣ ∥ Π ≤ r − 1 a + e i g ∥ a + e i 2 = 1 b 2 E a [ ∑ i p i ∣ T i g + r g ∣ 2 ] . \sum_i \frac{a_i}{|a|}\left\|\Pi^{a+e_i}_{\le r-1}g\right\|_{a+e_i}^{2}
=\frac{1}{b^2}\mathbb{E}_a\left[\sum_i p_i|T_i g+r g|^2\right]. i ∑ ∣ a ∣ a i Π ≤ r − 1 a + e i g a + e i 2 = b 2 1 E a [ i ∑ p i ∣ T i g + r g ∣ 2 ] . On the simplex, expanding the square gives
∑ i p i ∣ T i g + r g ∣ 2 = Γ ( g , g ) + 2 r Re ( g ‾ ∑ i p i T i g ) + r 2 ∣ g ∣ 2 \sum_i p_i|T_i g+r g|^2
=\Gamma(g,g)+2r\operatorname{Re}\left(\overline{g}\sum_i p_iT_i g\right)+r^2|g|^2 i ∑ p i ∣ T i g + r g ∣ 2 = Γ ( g , g ) + 2 r Re ( g i ∑ p i T i g ) + r 2 ∣ g ∣ 2 = Γ ( g , g ) + r 2 ∣ g ∣ 2 , =\Gamma(g,g)+r^2|g|^2, = Γ ( g , g ) + r 2 ∣ g ∣ 2 , because ∑ i p i T i g = 0 \sum_i p_iT_i g=0 ∑ i p i T i g = 0 and ∑ i p i = 1 \sum_i p_i=1 ∑ i p i = 1 .
Step 2: the expectation. By Lemma 5.10(i) and (ii),
E a Γ ( g , g ) = r ( ∣ a ∣ + r − 1 ) ∥ g ∥ a 2 , \mathbb{E}_a\Gamma(g,g)=r(|a|+r-1)\|g\|_a^2, E a Γ ( g , g ) = r ( ∣ a ∣ + r − 1 ) ∥ g ∥ a 2 , and r ( ∣ a ∣ + r − 1 ) + r 2 = r b r(|a|+r-1)+r^2=rb r ( ∣ a ∣ + r − 1 ) + r 2 = r b . Dividing by b 2 b^2 b 2 gives the theorem. □
At r = 1 r=1 r = 1 the identity can be verified directly. A centered linear statistic g = ∑ j c j p j g=\sum_j c_jp_j g = ∑ j c j p j with ∑ j a j c j = 0 \sum_j a_jc_j=0 ∑ j a j c j = 0 lies in R 1 a \mathcal{R}^{a}_{1} R 1 a , its projection onto the constants under the posterior Dir ( a + e i ) \operatorname{Dir}(a+e_i) Dir ( a + e i ) is its posterior mean c i / ( ∣ a ∣ + 1 ) c_i/(|a|+1) c i / ( ∣ a ∣ + 1 ) , and Lemma 3.7(i) gives
∑ i a i ∣ a ∣ ∣ c i ∣ a ∣ + 1 ∣ 2 = 1 ∣ a ∣ + 1 ∥ g ∥ a 2 . \sum_i \frac{a_i}{|a|}\left|\frac{c_i}{|a|+1}\right|^2=\frac{1}{|a|+1}\|g\|_a^2. i ∑ ∣ a ∣ a i ∣ a ∣ + 1 c i 2 = ∣ a ∣ + 1 1 ∥ g ∥ a 2 .
Lemma 5.17 (Sums over outcomes). Let h 1 , … , h N h_1,\ldots,h_N h 1 , … , h N be polynomials in p p p of degree at most r r r , and let Y = ∑ i = 1 N p i h i Y=\sum_{i=1}^{N}p_i h_i Y = ∑ i = 1 N p i h i . Then
∥ Π r + 1 a Y ∥ a 2 ≤ r + 1 ∣ a ∣ + 2 r + 1 ∑ i = 1 N E a [ p i ∣ h i ∣ 2 ] . \left\|\Pi^{a}_{r+1}Y\right\|_a^2\le\frac{r+1}{|a|+2r+1}\sum_{i=1}^{N}\mathbb{E}_a[p_i|h_i|^2]. Π r + 1 a Y a 2 ≤ ∣ a ∣ + 2 r + 1 r + 1 i = 1 ∑ N E a [ p i ∣ h i ∣ 2 ] . Proof. Step 1: the pairing in the posterior spaces. Since
∥ Π r + 1 a Y ∥ a = sup g ∈ R r + 1 a ∥ g ∥ a = 1 ∣ ⟨ g , Y ⟩ a ∣ , \left\|\Pi^{a}_{r+1}Y\right\|_a=\sup_{\substack{g\in\mathcal{R}^{a}_{r+1}\\\|g\|_a=1}}|\langle g,Y\rangle_a|, Π r + 1 a Y a = g ∈ R r + 1 a ∥ g ∥ a = 1 sup ∣ ⟨ g , Y ⟩ a ∣ , we fix such a g g g . Converting each term to the posterior by Lemma 3.7(ii), and inserting the projection Π ≤ r a + e i \Pi^{a+e_i}_{\le r} Π ≤ r a + e i , which is allowed because h i h_i h i has degree at most r r r , we obtain
⟨ g , Y ⟩ a = ∑ i E a [ p i g ‾ h i ] \langle g,Y\rangle_a=\sum_i\mathbb{E}_a[p_i\overline{g}h_i] ⟨ g , Y ⟩ a = i ∑ E a [ p i g h i ] = ∑ i a i ∣ a ∣ ⟨ g , h i ⟩ a + e i =\sum_i\frac{a_i}{|a|}\langle g,h_i\rangle_{a+e_i} = i ∑ ∣ a ∣ a i ⟨ g , h i ⟩ a + e i = ∑ i a i ∣ a ∣ ⟨ Π ≤ r a + e i g , h i ⟩ a + e i . =\sum_i\frac{a_i}{|a|}\left\langle\Pi^{a+e_i}_{\le r}g,h_i\right\rangle_{a+e_i}. = i ∑ ∣ a ∣ a i ⟨ Π ≤ r a + e i g , h i ⟩ a + e i .
Step 2: the two factors. By the Cauchy–Schwarz inequality in the weighted direct sum of the posterior spaces,
∣ ⟨ g , Y ⟩ a ∣ 2 ≤ ( ∑ i a i ∣ a ∣ ∥ ∑ ≤ r a + e i g ∥ a + e i 2 ) ( ∑ i a i ∣ a ∣ ∥ h i ∥ a + e i 2 ) . |\langle g,Y\rangle_a|^2 \le\left(\sum_i \frac{a_i}{|a|}\left\|\mathop{\sum}_{\le r}^{a+e_i} g\right\|_{a+e_i}^2\right)\left(\sum_i \frac{a_i}{|a|}\|h_i\|_{a+e_i}^2\right). ∣ ⟨ g , Y ⟩ a ∣ 2 ≤ ( i ∑ ∣ a ∣ a i ∑ ≤ r a + e i g a + e i 2 ) ( i ∑ ∣ a ∣ a i ∥ h i ∥ a + e i 2 ) .
The first factor equals ( r + 1 ) / ( ∣ a ∣ + 2 r + 1 ) (r+1)/(|a|+2r+1) ( r + 1 ) / ( ∣ a ∣ + 2 r + 1 ) by Theorem 5.16 with r + 1 r+1 r + 1 in place of r r r . The second factor equals ∑ i E a [ p i ∣ h i ∣ 2 ] \sum_i \mathbb{E}_a[p_i|h_i|^2] ∑ i E a [ p i ∣ h i ∣ 2 ] by Lemma 3.7(ii).
The effect of one query on the level
We now use Lemmas 5.8 and 5.17 to bound the effects of appending ∣ ϕ ⟩ |\phi\rangle ∣ ϕ ⟩ and applying ⟨ ϕ ∣ \langle\phi| ⟨ ϕ ∣ . Each map changes the level by at most one. Bounds on the components that move between levels then bound the commutator with C 1 / 2 C^{1/2} C 1/2 , and hence the change in progress.
The oracle in terms of two maps. Let W \mathcal{W} W be the space of all registers other than the query register Q Q Q , so that V = W ⊗ Q \mathcal{V}=\mathcal{W}\otimes Q V = W ⊗ Q after reordering. Define, pointwise in ϕ \phi ϕ , the maps L + : W → W ⊗ Q L_+:\mathcal{W}\to\mathcal{W}\otimes Q L + : W → W ⊗ Q and L − : W ⊗ Q → W L_-:\mathcal{W}\otimes Q\to\mathcal{W} L − : W ⊗ Q → W by
L + G = G ⊗ ∣ ϕ ⟩ = ∑ i α i G ⊗ ∣ i ⟩ , L_+G=G\otimes|\phi\rangle=\sum_i\alpha_iG\otimes|i\rangle, L + G = G ⊗ ∣ ϕ ⟩ = i ∑ α i G ⊗ ∣ i ⟩ ,
L − F = ∑ i α i ‾ F i for F = F ⊥ ⊗ ∣ ⊥ ⟩ + ∑ i F i ⊗ ∣ i ⟩ , L_-F=\sum_i\overline{\alpha_i}F_i\qquad\text{for }F=F_\perp\otimes|\perp\rangle+\sum_iF_i\otimes|i\rangle, L − F = i ∑ α i F i for F = F ⊥ ⊗ ∣ ⊥ ⟩ + i ∑ F i ⊗ ∣ i ⟩ ,
together with J G = G ⊗ ∣ ⊥ ⟩ JG=G\otimes|\perp\rangle J G = G ⊗ ∣ ⊥ ⟩ and its adjoint J † F = F ⊥ J^\dagger F=F_\perp J † F = F ⊥ . The maps L + L_+ L + and J J J are isometries pointwise in ϕ \phi ϕ , and L − = L + † L_-=L_+^\dagger L − = L + † both pointwise and for the inner product of vector-valued polynomials.
For N = 2 N=2 N = 2 , consider G ± = α 1 ∣ 1 ⟩ ± α 2 ∣ 2 ⟩ G_\pm=\alpha_1|1\rangle\pm\alpha_2|2\rangle G ± = α 1 ∣1 ⟩ ± α 2 ∣2 ⟩ . Both are normalized and have level zero, but
L − G + = p 1 + p 2 = 1 , L − G − = p 1 − p 2 = 2 p 1 − 1. L_-G_+=p_1+p_2=1,\qquad L_-G_-=p_1-p_2=2p_1-1. L − G + = p 1 + p 2 = 1 , L − G − = p 1 − p 2 = 2 p 1 − 1.
Since p 1 p_1 p 1 is uniform on [ 0 , 1 ] [0,1] [ 0 , 1 ] , the first output has level zero and the second has squared level-one norm ∫ 0 1 ( 2 p − 1 ) 2 d p = 1 / 3 \int_0^1(2p-1)^2\,\mathrm{d}p=1/3 ∫ 0 1 ( 2 p − 1 ) 2 d p = 1/3 , attaining Lemma 5.17 at r = 0 r=0 r = 0 . The input components are orthogonal in the query register, but their images under L − L_- L − are added in the same space. We must therefore bound their sum before taking its norm. We use L − L_- L − to analyze the oracle; the full query remains unitary.
We write
K ϕ = J − L + 2 , K ϕ † = J † − L − 2 . K_\phi=\frac{J-L_+}{\sqrt{2}},\qquad K_\phi^\dagger=\frac{J^\dagger-L_-}{\sqrt{2}}. K ϕ = 2 J − L + , K ϕ † = 2 J † − L − .
The map K ϕ K_\phi K ϕ appends ∣ η ϕ ⟩ = ( ∣ ⊥ ⟩ − ∣ ϕ ⟩ ) / 2 |\eta_\phi\rangle=(|\perp\rangle-|\phi\rangle)/\sqrt{2} ∣ η ϕ ⟩ = ( ∣ ⊥ ⟩ − ∣ ϕ ⟩) / 2 from (16), and its adjoint applies ⟨ η ϕ ∣ \langle\eta_\phi| ⟨ η ϕ ∣ . Thus K ϕ K ϕ † K_\phi K_\phi^\dagger K ϕ K ϕ † is the projection onto ∣ η ϕ ⟩ |\eta_\phi\rangle ∣ η ϕ ⟩ in the query register, and
O ϕ = I − 2 K ϕ K ϕ † . (53) O_\phi=I-2K_\phi K_\phi^\dagger. \tag*{(53)} O ϕ = I − 2 K ϕ K ϕ † . (53)
The maps J J J and J † J^\dagger J † commute with every P k P_k P k , by the third fact after Definition 5.3, so the analysis of a query reduces to that of L + L_+ L + and L − L_- L − .
The effect of one factor on a block. Fix a block u γ h u_\gamma h u γ h with h ∈ R r a h\in R_r^a h ∈ R r a , where a = a ( γ ) a=a(\gamma) a = a ( γ ) and k = rep ( γ ) + r k=\operatorname{rep}(\gamma)+r k = rep ( γ ) + r . The map L − L_- L − multiplies by α i ‾ \overline{\alpha_i} α i at outcome i i i . This changes γ i \gamma_i γ i to γ i − 1 \gamma_i-1 γ i − 1 and the polynomial factor as in Lemma 5.14. The table lists the resulting degrees under the Dirichlet measure and levels.
In the first two rows the magnitude ∣ γ i ∣ |\gamma_i| ∣ γ i ∣ grows, the new Dirichlet measure is the posterior Dir ( a + e i ) \operatorname{Dir}(a+e_i) Dir ( a + e i ) , and part (i) of Lemma 5.14 splits h h h into degrees r r r and r − 1 r-1 r − 1 . In the last two rows the magnitude shrinks, the factor α i α i ‾ = p i \alpha_i\overline{\alpha_i}=p_i α i α i = p i appears, and part (ii) of the lemma splits p i h p_i h p i h into degrees r r r and r + 1 r+1 r + 1 for Dir ( a − e i ) \operatorname{Dir}(a-e_i) Dir ( a − e i ) . Multiplication by α i \alpha_i α i , which is what L + L_+ L + does, obeys the same table with the signs of the entries reversed.
Two consequences of the table are used repeatedly. First, a single factor changes the level by at most one. Second, the level increases only in the first and third rows, that is, only when the new factor falls on an outcome that already appears in the pattern. Combined with Lemma 5.8 , which bounds the weight that a polynomial of degree d d d places on the occupied outcomes, this gives the rate ( d + 1 ) / N (d+1)/N ( d + 1 ) / N in Lemma 5.18, and hence the rate ( d + 1 ) / N \sqrt{(d+1)/N} ( d + 1 ) / N in Theorem 5.21.
For L + L_+ L + , we use Lemma 5.8 . For L − L_- L − , repeated unpaired factors use the same estimate, while paired conjugate factors require Lemma 5.17. As the G ± G_\pm G ± example shows, terms contributing to the same output block must be added before taking norms.
Lemma 5.18 (Raising the level by one). For L ∈ { L + , L − } L\in\{L_+,L_-\} L ∈ { L + , L − } and every polynomial F ∈ P ≤ d F\in\mathcal{P}_{\leq d} F ∈ P ≤ d in the domain of L L L ,
∑ k ≥ 0 ∥ P k + 1 L P k F ∥ 2 ≤ 36 d + 1 N ∥ F ∥ 2 . \sum_{k\geq0}\left\|P_{k+1}LP_kF\right\|^2 \leq36\frac{d+1}{N}\|F\|^2. k ≥ 0 ∑ ∥ P k + 1 L P k F ∥ 2 ≤ 36 N d + 1 ∥ F ∥ 2 .
The proof is in Appendix A.1.6.
For L + L_+ L + , only occupied outcomes can raise the level, so Lemma 5.8 bounds their total squared norm by 16 d / N 16d/N 16 d / N times the input norm squared. For L − L_- L − , repeated unpaired factors use the same estimate in the measure Dir ( a − e i ) \operatorname{Dir}(a-e_i) Dir ( a − e i ) , while paired conjugate factors use Lemma 5.17. Their bounds are 16 ( d + 1 ) / N 16(d+1)/N 16 ( d + 1 ) / N and ( d + 1 ) / ( 2 N ) (d+1)/(2N) ( d + 1 ) / ( 2 N ) , respectively. Within an output block we add these two contributions before taking the norm; distinct output blocks are orthogonal. The appendix verifies that every input component is counted at most once, giving the stated constant 36.
Lemma 5.19 (Lowering the level by one). For L ∈ { L + , L − } L\in\{L_+,L_-\} L ∈ { L + , L − } and every polynomial F ∈ P ≤ d F\in\mathcal{P}_{\leq d} F ∈ P ≤ d in the domain of L L L ,
∑ k ≥ 1 ∥ P k − 1 L P k F ∥ 2 ≤ 36 d + 2 N ∥ F ∥ 2 . \sum_{k\geq1}\left\|P_{k-1}LP_kF\right\|^2 \leq36\frac{d+2}{N}\|F\|^2. k ≥ 1 ∑ ∥ P k − 1 L P k F ∥ 2 ≤ 36 N d + 2 ∥ F ∥ 2 .
The proof is in Appendix A.1.7.
This follows by duality from Lemma 5.18, since L + † = L − L_+^\dagger=L_- L + † = L − and the output has degree at most d + 1 d+1 d + 1 . Applying the raising estimate at that degree gives d + 2 d+2 d + 2 in the numerator.
Lemma 5.20 (One map and the level). For L ∈ { L + , L − , J , J † } L\in\{L_+,L_-,J,J^\dagger\} L ∈ { L + , L − , J , J † } and every polynomial F ∈ P ≤ d F\in\mathcal{P}_{\leq d} F ∈ P ≤ d in the domain of L L L ,
∥ C 1 / 2 L F − L C 1 / 2 F ∥ ≤ 12 d + 2 N ∥ F ∥ . \left\|C^{1/2}LF-LC^{1/2}F\right\|\leq12\sqrt{\frac{d+2}{N}}\|F\|. C 1/2 L F − L C 1/2 F ≤ 12 N d + 2 ∥ F ∥.
Proof. For J J J and J † J^\dagger J † the left side is zero. Let L ∈ { L + , L − } L\in\{L_+,L_-\} L ∈ { L + , L − } . Since L L L maps each block to adjacent levels only, inserting the level decomposition on both sides of L L L gives
C 1 / 2 L − L C 1 / 2 = ∑ k ≥ 0 ( k + 1 − k ) P k + 1 L P k + ∑ k ≥ 0 ( k − k + 1 ) P k L P k + 1 . C^{1/2}L-LC^{1/2}=\sum_{k\geq0}(\sqrt{k+1}-\sqrt{k})P_{k+1}LP_k
+\sum_{k\geq0}(\sqrt{k}-\sqrt{k+1})P_kLP_{k+1}. C 1/2 L − L C 1/2 = k ≥ 0 ∑ ( k + 1 − k ) P k + 1 L P k + k ≥ 0 ∑ ( k − k + 1 ) P k L P k + 1 .
and every scalar factor has absolute value at most one. The terms of the first sum lie at distinct levels, so its norm on F F F is at most
( ∑ k ∥ P k + 1 L P k F ∥ 2 ) 1 / 2 ≤ 6 d + 1 N ∥ F ∥ \left(\sum_k\left\|P_{k+1}LP_kF\right\|^2\right)^{1/2}\leq6\sqrt{\frac{d+1}{N}}\|F\| ( k ∑ ∥ P k + 1 L P k F ∥ 2 ) 1/2 ≤ 6 N d + 1 ∥ F ∥
by Lemma 5.18. Likewise, the second sum is at most 6 ( d + 2 ) / N ∥ F ∥ 6\sqrt{(d+2)/N}\|F\| 6 ( d + 2 ) / N ∥ F ∥ by Lemma 5.19. The triangle inequality gives the claim.
Theorem 5.21 (One-query growth). *There is an absolute constant c 0 c_0 c 0 such that for all F ∈ P ≤ d ( V ) F\in\mathcal{P}_{\leq d}(\mathcal{V}) F ∈ P ≤ d ( V ) ,
λ ( O ϕ F ) ≤ λ ( F ) + c 0 d + 1 N ∥ F ∥ , \lambda(O_\phi F)\leq\lambda(F)+c_0\sqrt{\frac{d+1}{N}}\|F\|, λ ( O ϕ F ) ≤ λ ( F ) + c 0 N d + 1 ∥ F ∥ , and the same holds for the controlled query O ϕ c O_\phi^{\mathrm{c}} O ϕ c .*
Proof. By (53),
C 1 / 2 O ϕ − O ϕ C 1 / 2 = − 2 ( ( C 1 / 2 K ϕ − K ϕ C 1 / 2 ) K ϕ † + K ϕ ( C 1 / 2 K ϕ † − K ϕ † C 1 / 2 ) ) . C^{1/2}O_\phi-O_\phi C^{1/2}
=-2\left((C^{1/2}K_\phi-K_\phi C^{1/2})K_\phi^\dagger
+K_\phi(C^{1/2}K_\phi^\dagger-K_\phi^\dagger C^{1/2})\right). C 1/2 O ϕ − O ϕ C 1/2 = − 2 ( ( C 1/2 K ϕ − K ϕ C 1/2 ) K ϕ † + K ϕ ( C 1/2 K ϕ † − K ϕ † C 1/2 ) ) .
and we bound the two terms on F ∈ P ≤ d ( V ) F\in\mathcal{P}_{\leq d}(\mathcal{V}) F ∈ P ≤ d ( V ) separately.
Step 1: the two terms. For the first term, we have K ϕ † F ∈ P ≤ d + 1 K_\phi^\dagger F\in\mathcal{P}_{\leq d+1} K ϕ † F ∈ P ≤ d + 1 and ∥ K ϕ † F ∥ ≤ ∥ F ∥ \|K_\phi^\dagger F\|\leq\|F\| ∥ K ϕ † F ∥ ≤ ∥ F ∥ , because K ϕ † K_\phi^\dagger K ϕ † is a contraction pointwise in ϕ \phi ϕ . Moreover, K ϕ = ( J − L + ) / 2 K_\phi=(J-L_+)/\sqrt{2} K ϕ = ( J − L + ) / 2 with J J J commuting with C 1 / 2 C^{1/2} C 1/2 , so Lemma 5.20 for L + L_+ L + at degree d + 1 d+1 d + 1 gives
∥ ( C 1 / 2 K ϕ − K ϕ C 1 / 2 ) K ϕ † F ∥ ≤ 12 2 d + 3 N ∥ F ∥ . \|(C^{1/2}K_\phi-K_\phi C^{1/2})K_\phi^\dagger F\|
\leq\frac{12}{\sqrt{2}}\sqrt{\frac{d+3}{N}}\|F\|. ∥ ( C 1/2 K ϕ − K ϕ C 1/2 ) K ϕ † F ∥ ≤ 2 12 N d + 3 ∥ F ∥.
For the second term, the map K ϕ K_\phi K ϕ is an isometry pointwise and K ϕ † = ( J † − L − ) / 2 K_\phi^\dagger=(J^\dagger-L_-)/\sqrt{2} K ϕ † = ( J † − L − ) / 2 , so the lemma for L − L_- L − at degree d d d gives
∥ K ϕ ( C 1 / 2 K ϕ † − K ϕ † C 1 / 2 ) F ∥ ≤ 12 2 d + 2 N ∥ F ∥ . \|K_\phi(C^{1/2}K_\phi^\dagger-K_\phi^\dagger C^{1/2})F\|
\leq\frac{12}{\sqrt{2}}\sqrt{\frac{d+2}{N}}\|F\|. ∥ K ϕ ( C 1/2 K ϕ † − K ϕ † C 1/2 ) F ∥ ≤ 2 12 N d + 2 ∥ F ∥.
Step 2: the level after the query. Using d + 3 ≤ 3 ( d + 1 ) d+3\leq3(d+1) d + 3 ≤ 3 ( d + 1 ) and d + 2 ≤ 2 ( d + 1 ) d+2\leq2(d+1) d + 2 ≤ 2 ( d + 1 ) , the two terms together give
∥ C 1 / 2 O ϕ F − O ϕ C 1 / 2 F ∥ ≤ 12 2 ( 3 + 2 ) d + 1 N ∥ F ∥ ≤ 54 d + 1 N ∥ F ∥ . \|C^{1/2}O_\phi F-O_\phi C^{1/2}F\|
\leq12\sqrt{2}(\sqrt{3}+\sqrt{2})\sqrt{\frac{d+1}{N}}\|F\|
\leq54\sqrt{\frac{d+1}{N}}\|F\|. ∥ C 1/2 O ϕ F − O ϕ C 1/2 F ∥ ≤ 12 2 ( 3 + 2 ) N d + 1 ∥ F ∥ ≤ 54 N d + 1 ∥ F ∥.
Since O ϕ O_\phi O ϕ preserves norms for every ϕ \phi ϕ , it also preserves the norm of a polynomial. Hence
λ ( O ϕ F ) = ∥ C 1 / 2 O ϕ F ∥ ≤ ∥ O ϕ C 1 / 2 F ∥ + ∥ C 1 / 2 O ϕ F − O ϕ C 1 / 2 F ∥ = λ ( F ) + ∥ C 1 / 2 O ϕ F − O ϕ C 1 / 2 F ∥ . \begin{aligned}
\lambda(O_\phi F) &= \lVert C^{1/2}O_\phi F\rVert\\
&\le\lVert O_\phi C^{1/2}F\rVert+ \lVert C^{1/2}O_\phi F-O_\phi C^{1/2}F\rVert\\
&= \lambda(F)+\lVert C^{1/2}O_\phi F-O_\phi C^{1/2}F\rVert.
\end{aligned} λ ( O ϕ F ) = ∥ C 1/2 O ϕ F ∥ ≤ ∥ O ϕ C 1/2 F ∥ + ∥ C 1/2 O ϕ F − O ϕ C 1/2 F ∥ = λ ( F ) + ∥ C 1/2 O ϕ F − O ϕ C 1/2 F ∥ .
Step 3: the controlled query. The control projections are ϕ \phi ϕ -independent and commute with C 1 / 2 C^{1/2} C 1/2 , so
C 1 / 2 O ϕ c − O ϕ c C 1 / 2 = ∣ 1 ⟩ ⟨ 1 ∣ ⊗ ( C 1 / 2 O ϕ − O ϕ C 1 / 2 ) . C^{1/2}O_\phi^{\mathrm c}-O_\phi^{\mathrm c}C^{1/2}=|1\rangle\langle1|\otimes(C^{1/2}O_\phi-O_\phi C^{1/2}). C 1/2 O ϕ c − O ϕ c C 1/2 = ∣1 ⟩ ⟨ 1∣ ⊗ ( C 1/2 O ϕ − O ϕ C 1/2 ) .
Applying the bound just proved to ( ∣ 1 ⟩ ⟨ 1 ∣ ⊗ I ) F ∈ P ≤ d ( V ) (|1\rangle\langle1|\otimes I)F\in\mathcal{P}_{\le d}(\mathcal{V}) ( ∣1 ⟩ ⟨ 1∣ ⊗ I ) F ∈ P ≤ d ( V ) , whose norm is at most ∥ F ∥ \lVert F\rVert ∥ F ∥ , gives the same estimate, and O ϕ c O_\phi^{\mathrm c} O ϕ c is again unitary pointwise.
The proof gives c 0 = 54 c_0=54 c 0 = 54 and completes Theorem 5.6. Only the rank-one part enters the commutator, since the identity commutes with C 1 / 2 C^{1/2} C 1/2 . Inverse queries are also covered because O ϕ − 1 = O ϕ O_\phi^{-1}=O_\phi O ϕ − 1 = O ϕ .
Remark 5.22 (State designs). For a fixed algorithm given s s s copies and making q q q queries to the canonical oracle, Ψ ( ϕ ) \Psi(\phi) Ψ ( ϕ ) has degree at most s + 2 q s+2q s + 2 q (Lemma 5.1). The score integrand ∑ z N p ϕ ( z ) ∥ Ψ z ( ϕ ) ∥ 2 \sum_z Np_\phi(z)\lVert\Psi_z(\phi)\rVert^2 ∑ z N p ϕ ( z ) ∥ Ψ z ( ϕ ) ∥ 2 therefore has degree at most 2 s + 4 q + 2 2s+4q+2 2 s + 4 q + 2 , since N p ϕ ( z ) = N α z α z ‾ Np_\phi(z)=N\alpha_z\overline{\alpha_z} N p ϕ ( z ) = N α z α z has degree two. Averaging over a uniform global phase eliminates monomials with unequal numbers of amplitudes and conjugates. Every remaining monomial has degree at most s + 2 q + 1 s+2q+1 s + 2 q + 1 in each, so an exact ( s + 2 q + 1 ) (s+2q+1) ( s + 2 q + 1 ) -design preserves its Haar expectation. The score, and hence the bound of Theorem 5.6 for the supplied s s s copies, is unchanged when the state is drawn from such a design and multiplied by an independent uniform global phase.
Haar-random unitary access
With Haar-random unitary access the algorithm applies a Haar-random U U U , its inverse, and controlled versions of both, and the state scored is ∣ ϕ ⟩ = U ∣ 0 n ⟩ |\phi\rangle=U|0^n\rangle ∣ ϕ ⟩ = U ∣ 0 n ⟩ . The following simulation result reduces this model to the canonical oracle.
The conditional distribution below is the random state-preparation oracle of [37 Definition 8] . Fix any unitary V V V with V ∣ 0 n ⟩ = ∣ ϕ ⟩ V|0^n\rangle=|\phi\rangle V ∣ 0 n ⟩ = ∣ ϕ ⟩ , and let W W W fix ∣ 0 n ⟩ |0^n\rangle ∣ 0 n ⟩ and be Haar-random on its orthogonal complement. Then U ϕ = V W U_\phi=VW U ϕ = V W , and Haar invariance makes its distribution independent of the choice of V V V .
Theorem 5.23 ([37 Definition 8 and Theorem 19] ). For a unit vector ∣ ϕ ⟩ ∈ C N |\phi\rangle\in\mathbb{C}^N ∣ ϕ ⟩ ∈ C N , let U ϕ U_\phi U ϕ be a random unitary with U ϕ ∣ 0 n ⟩ = ∣ ϕ ⟩ U_\phi|0^n\rangle=|\phi\rangle U ϕ ∣ 0 n ⟩ = ∣ ϕ ⟩ , distributed according to the Haar measure on the set of such unitaries.
For every algorithm A A A that makes q q q queries to U ϕ U_\phi U ϕ , including inverse and controlled queries, there is an algorithm B B B that makes 2 q 2q 2 q queries to O ϕ O_\phi O ϕ such that, for every ∣ ϕ ⟩ |\phi\rangle ∣ ϕ ⟩ , the channel from the input to the premeasurement state of A A A , averaged over U ϕ U_\phi U ϕ , and the corresponding channel of B B B are within diamond distance ( 10 q + 4 ) / N (10q+4)/\sqrt{N} ( 10 q + 4 ) / N . Here the diamond distance is the completely bounded trace norm of the difference, without a factor 1 / 2 1/2 1/2 .
If ∣ ϕ ⟩ |\phi\rangle ∣ ϕ ⟩ is Haar-random, then U ϕ U_\phi U ϕ is a Haar-random unitary.
Converting a distance between channels into a difference of scores requires a bound on the largest possible reward, which is N N N times the probability of the heaviest outcome.
Lemma 5.24 (The heaviest outcome). Let H N = ∑ j = 1 N 1 / j H_N = \sum_{j=1}^{N} 1/j H N = ∑ j = 1 N 1/ j . For a Haar-random state,
E ϕ [ N max z p z ] = H N ≤ ln N + 1. \mathbb{E}_{\phi}\left[N\max_z p_z\right] = H_N \le\ln N + 1. E ϕ [ N z max p z ] = H N ≤ ln N + 1. The proof is in Appendix § 17 .1.8.
Theorem 5.25 (Haar lower bound for unitary access). Every algorithm that makes q q q queries to a Haar-random unitary, with inverse and controlled access, satisfies
B ( A ) ≤ β N + 2 2 Λ 0 , 2 q + 72 Λ 0 , 2 q 2 + ( 5 q + 2 ) H N N . B(\mathcal{A}) \le\beta_N + 2\sqrt{2}\,\Lambda_{0,2q} + 72\Lambda_{0,2q}^{2} + \frac{(5q+2)H_N}{\sqrt{N}}. B ( A ) ≤ β N + 2 2 Λ 0 , 2 q + 72 Λ 0 , 2 q 2 + N ( 5 q + 2 ) H N . Consequently, there is an absolute constant c 3 > 0 c_3 > 0 c 3 > 0 such that, for every 0 < ε ≤ 1 0 < \varepsilon\le1 0 < ε ≤ 1 and every N N N with ( 5 N 1 / 3 + 2 ) ( ln N + 1 ) ≤ ε N / 2 (5N^{1/3}+2)(\ln N+1) \le\varepsilon\sqrt{N}/2 ( 5 N 1/3 + 2 ) ( ln N + 1 ) ≤ ε N /2 , a score of 2 + ε 2+\varepsilon 2 + ε requires at least c 3 ε 2 / 3 N 1 / 3 c_3\varepsilon^{2/3}N^{1/3} c 3 ε 2/3 N 1/3 queries.
Proof. Step 1: a fixed state. Fix ϕ \phi ϕ and let Z Z Z and Z ′ Z' Z ′ be the outputs of A \mathcal{A} A , averaged over U ϕ U_\phi U ϕ , and of the simulator B \mathcal{B} B of Theorem 5.23 . The diamond distance bounds the trace norm of the difference of the premeasurement states, and the total variation distance of the output distributions is at most half of that trace norm. Since the reward z ↦ N p z z \mapsto Np_z z ↦ N p z is nonnegative and at most N max z p z N\max_z p_z N max z p z , the two scores differ by at most the total variation distance times N max z p z N\max_z p_z N max z p z , that is,
N E [ p Z ∣ ϕ ] ≤ N E [ p Z ′ ∣ ϕ ] + 5 q + 2 N N max z p z . N\mathbb{E}[p_Z\mid\phi] \le N\mathbb{E}[p_{Z'}\mid\phi] + \frac{5q+2}{\sqrt{N}}N\max_z p_z. N E [ p Z ∣ ϕ ] ≤ N E [ p Z ′ ∣ ϕ ] + N 5 q + 2 N z max p z .
Step 2: averaging over the state. We now average over the Haar-random ϕ \phi ϕ , under which U ϕ U_\phi U ϕ is Haar-random. The simulator B \mathcal{B} B is a mixture of algorithms of the form of Definition 3.1 , each making 2 q 2q 2 q queries to O ϕ O_\phi O ϕ , and the expected score is linear in the mixture. Hence Theorem 5.6 with s = 0 s=0 s = 0 and 2 q 2q 2 q queries bounds the first term on the right; Lemma 5.24 bounds the second, which gives the display in the statement.
Step 3: the consequence. We may assume q ≤ N 1 / 3 q \le N^{1/3} q ≤ N 1/3 , because for q > N 1 / 3 q > N^{1/3} q > N 1/3 the claim holds for every c 3 ≤ 1 c_3 \le1 c 3 ≤ 1 . Then, by the hypothesis on N N N , the last term of the display in the statement is at most ( 5 N 1 / 3 + 2 ) ( ln N + 1 ) / N ≤ ε / 2 (5N^{1/3}+2)(\ln N+1)/\sqrt{N} \le\varepsilon/2 ( 5 N 1/3 + 2 ) ( ln N + 1 ) / N ≤ ε /2 , and β N ≤ 2 \beta_N \le2 β N ≤ 2 gives ε / 2 ≤ 2 2 Λ 0 , 2 q + 72 Λ 0 , 2 q 2 \varepsilon/2 \le2\sqrt{2}\Lambda_{0,2q}+72\Lambda_{0,2q}^{2} ε /2 ≤ 2 2 Λ 0 , 2 q + 72 Λ 0 , 2 q 2 . The proof of Corollary 5.7 , with ε / 2 \varepsilon/2 ε /2 in place of ε \varepsilon ε and 2 q 2q 2 q in place of q q q , gives 2 q ≥ c 2 ( ε / 2 ) 2 / 3 N 1 / 3 2q \ge c_2(\varepsilon/2)^{2/3}N^{1/3} 2 q ≥ c 2 ( ε /2 ) 2/3 N 1/3 , so the claim holds with c 3 = min { 1 , c 2 / 2 5 / 3 } c_3=\min\{1,c_2/2^{5/3}\} c 3 = min { 1 , c 2 / 2 5/3 } .
Together with Theorem 6.9 in § 14 , which applies to unitary access without change because the squaring algorithm uses U U U only to prepare ∣ ϕ ⟩ |\phi\rangle ∣ ϕ ⟩ and to reflect about it, this proves part 2 of Theorem 1.1 and the Haar case of the final statement of that theorem.
The quantity H N = Θ ( log N ) H_N=\Theta(\log N) H N = Θ ( log N ) is also the supremum of the expected scores of all algorithms: by (18) no algorithm scores more than E ϕ N max z p z = H N \mathbb{E}_{\phi}N\max_z p_z=H_N E ϕ N max z p z = H N , and an algorithm with enough queries can identify the heaviest outcome with probability close to one.
The squaring algorithm
In this section we prove part 3 of Theorem 1.1 and the formal version of Corollary 1.3 . The algorithm and its analysis are the same for the Fourier ensemble, for the canonical oracle, and for Haar-random unitary access, because the algorithm uses the oracle only to prepare a state whose measurement gives the ideal distribution, and to reflect about it. We treat the three forms of access together and write ω \omega ω for the oracle, p = p ω p=p_\omega p = p ω for the ideal distribution, and p z = p ( z ) p_z=p(z) p z = p ( z ) . The normalized moments of p p p and the collision distribution are
M j = N j − 1 ∑ z p z j ( j ≥ 1 ) , r p ( z ) = p z 2 ∑ y p y 2 = N p z 2 M 2 , (54) M_j=N^{j-1}\sum_z p_z^j \quad(j\ge1), \qquad r_p(z)=\frac{p_z^2}{\sum_y p_y^2}=\frac{Np_z^2}{M_2}, \tag*{(54)} M j = N j − 1 z ∑ p z j ( j ≥ 1 ) , r p ( z ) = ∑ y p y 2 p z 2 = M 2 N p z 2 , (54)
where r p r_p r p is the distribution of the common value of two independent samples from p p p conditioned on their being equal. The ideal score (19) is E ω M 2 \mathbb{E}_\omega M_2 E ω M 2 , and M 2 ≥ 1 M_2\ge1 M 2 ≥ 1 for every distribution by the Cauchy–Schwarz inequality
1 = ( ∑ z p z ) 2 ≤ N ∑ z p z 2 . 1=\left(\sum_z p_z\right)^2\le N\sum_z p_z^2. 1 = ( z ∑ p z ) 2 ≤ N z ∑ p z 2 .
In each case the oracle provides access for state preparation and reflection: there is a unit vector ∣ ψ ω ⟩ ∈ C N |\psi_\omega\rangle\in\mathbb{C}^N ∣ ψ ω ⟩ ∈ C N whose computational-basis measurement has distribution p ω p_\omega p ω , one query prepares ∣ ψ ω ⟩ |\psi_\omega\rangle ∣ ψ ω ⟩ , and two queries implement the reflection 2 ∣ ψ ω ⟩ ⟨ ψ ω ∣ − I 2|\psi_\omega\rangle\langle\psi_\omega|-I 2∣ ψ ω ⟩ ⟨ ψ ω ∣ − I .
Fourier ensemble. Let Δ f ∣ x ⟩ = f ( x ) ∣ x ⟩ \Delta_f|x\rangle=f(x)|x\rangle Δ f ∣ x ⟩ = f ( x ) ∣ x ⟩ be the phase query, which is one query to the value oracle with the target qubit in ∣ − ⟩ |-\rangle ∣ − ⟩ by (15) , and let U f = H ⊗ n Δ f H ⊗ n U_f=H^{\otimes n}\Delta_fH^{\otimes n} U f = H ⊗ n Δ f H ⊗ n , a unitary with U f † = U f U_f^\dagger=U_f U f † = U f . Then
∣ ψ f ⟩ = U f ∣ 0 n ⟩ = ∑ z f ^ ( z ) ∣ z ⟩ . |\psi_f\rangle=U_f|0^n\rangle=\sum_z\widehat{f}(z)|z\rangle. ∣ ψ f ⟩ = U f ∣ 0 n ⟩ = z ∑ f ( z ) ∣ z ⟩ .
because H ⊗ n ∣ 0 n ⟩ = N − 1 / 2 ∑ x ∣ x ⟩ H^{\otimes n}|0^n\rangle=N^{-1/2}\sum_x|x\rangle H ⊗ n ∣ 0 n ⟩ = N − 1/2 ∑ x ∣ x ⟩ and H ⊗ n ∣ x ⟩ = N − 1 / 2 ∑ z χ z ( x ) ∣ z ⟩ H^{\otimes n}|x\rangle=N^{-1/2}\sum_z\chi_z(x)|z\rangle H ⊗ n ∣ x ⟩ = N − 1/2 ∑ z χ z ( x ) ∣ z ⟩ .
Canonical oracle. Here ∣ ψ ϕ ⟩ = ∣ ϕ ⟩ = O ϕ ∣ ⊥ ⟩ |\psi_\phi\rangle=|\phi\rangle=O_\phi|\perp\rangle ∣ ψ ϕ ⟩ = ∣ ϕ ⟩ = O ϕ ∣ ⊥ ⟩ . The reflection about ∣ ϕ ⟩ |\phi\rangle ∣ ϕ ⟩ acts on the query register Q = C ∣ ⊥ ⟩ ⊕ C N Q=\mathbb{C}|\perp\rangle\oplus\mathbb{C}^N Q = C ∣ ⊥ ⟩ ⊕ C N , but the algorithm below never leaves C N \mathbb{C}^N C N once ∣ ϕ ⟩ |\phi\rangle ∣ ϕ ⟩ has been prepared, because ∣ ϕ ⟩ ∈ C N |\phi\rangle\in\mathbb{C}^N ∣ ϕ ⟩ ∈ C N and both reflections it uses map C N \mathbb{C}^N C N to itself.
Haar-random unitary access. Here ∣ ψ U ⟩ = U ∣ 0 n ⟩ |\psi_U\rangle=U|0^n\rangle ∣ ψ U ⟩ = U ∣ 0 n ⟩ .
The reflections in the three cases are
2 ∣ ψ f ⟩ ⟨ ψ f ∣ − I = U f ( 2 ∣ 0 n ⟩ ⟨ 0 n ∣ − I ) U f , (Fourier ensemble) 2 ∣ ϕ ⟩ ⟨ ϕ ∣ − I Q = O ϕ ( 2 ∣ ⊥ ⟩ ⟨ ⊥ ∣ − I Q ) O ϕ , (canonical oracle) 2 ∣ ψ U ⟩ ⟨ ψ U ∣ − I = U ( 2 ∣ 0 n ⟩ ⟨ 0 n ∣ − I ) U † , (unitary access) \begin{aligned}
2|\psi_f\rangle\langle\psi_f|-I&=U_f(2|0^n\rangle\langle0^n|-I)U_f, &&\text{(Fourier ensemble)}\\
2|\phi\rangle\langle\phi|-I_Q&=O_\phi(2|\perp\rangle\langle\perp|-I_Q)O_\phi, &&\text{(canonical oracle)}\\
2|\psi_U\rangle\langle\psi_U|-I&=U(2|0^n\rangle\langle0^n|-I)U^\dagger, &&\text{(unitary access)}
\end{aligned} 2∣ ψ f ⟩ ⟨ ψ f ∣ − I 2∣ ϕ ⟩ ⟨ ϕ ∣ − I Q 2∣ ψ U ⟩ ⟨ ψ U ∣ − I = U f ( 2∣ 0 n ⟩ ⟨ 0 n ∣ − I ) U f , = O ϕ ( 2∣ ⊥ ⟩ ⟨ ⊥ ∣ − I Q ) O ϕ , = U ( 2∣ 0 n ⟩ ⟨ 0 n ∣ − I ) U † , (Fourier ensemble) (canonical oracle) (unitary access)
where the second identity holds by (17) .
For j ≥ 1 j\ge1 j ≥ 1 let κ j = j ! \kappa_j=j! κ j = j ! in the two Haar cases, where p p p is uniform on the simplex, and, in the Fourier ensemble, κ j = ( 2 j − 1 ) ! ! = 1 ⋅ 3 ⋯ ( 2 j − 1 ) \kappa_j=(2j-1)!!=1\cdot3\cdots(2j-1) κ j = ( 2 j − 1 )!! = 1 ⋅ 3 ⋯ ( 2 j − 1 ) . These are the limits of E M j \mathbb{E}M_j E M j as N → ∞ N\to\infty N → ∞ , and Lemma 6.2 gives E M j ≤ κ j \mathbb{E}M_j\le\kappa_j E M j ≤ κ j for every j j j together with the exact values of E M 2 \mathbb{E}M_2 E M 2 and E M 3 \mathbb{E}M_3 E M 3 . In particular, κ 2 \kappa_2 κ 2 , which is 2 for Haar access and 3 for the Fourier ensemble, is the limit of the ideal score.
The algorithm
The algorithm stores the outcomes of m m m measured samples and amplifies the component of one more sample that lies in the stored set. The probability of the stored set is a random variable whose mean is about κ 2 m / N \kappa_2m/N κ 2 m / N (Lemma 6.5 ), and the algorithm chooses its number of amplification steps as if this probability were exactly P ⋆ = κ 2 m / N P_\star=\kappa_2m/N P ⋆ = κ 2 m / N ; it never estimates the actual probability.
Definition 6.1 (The squaring algorithm S q m \mathrm{Sq}_m Sq m ). Let m ≥ 1 m\ge1 m ≥ 1 be such that P ⋆ = κ 2 m / N ≤ 1 / 4 P_\star=\kappa_2m/N\le1/4 P ⋆ = κ 2 m / N ≤ 1/4 , let ϑ 0 = arcsin P ⋆ \vartheta_0=\arcsin\sqrt{P_\star} ϑ 0 = arcsin P ⋆ , let ℓ \ell ℓ be a nonnegative integer nearest to π / ( 4 ϑ 0 ) − 1 / 2 \pi/(4\vartheta_0)-1/2 π / ( 4 ϑ 0 ) − 1/2 , and put L = 2 ℓ + 1 L=2\ell+1 L = 2 ℓ + 1 , so that ∣ L ϑ 0 − π / 2 ∣ ≤ ϑ 0 |L\vartheta_0-\pi/2|\le\vartheta_0 ∣ L ϑ 0 − π /2∣ ≤ ϑ 0 . The algorithm proceeds as follows.
Prepare and measure m m m copies of ∣ ψ ω ⟩ \lvert\psi_\omega\rangle ∣ ψ ω ⟩ , obtaining outcomes Y 1 , … , Y m Y_1,\ldots,Y_m Y 1 , … , Y m , and store the set S = { Y 1 , … , Y m } S=\{Y_1,\ldots,Y_m\} S = { Y 1 , … , Y m } .
Prepare one more copy of ∣ ψ ω ⟩ \lvert\psi_\omega\rangle ∣ ψ ω ⟩ .
Apply ℓ \ell ℓ times the operator
( 2 ∣ ψ ω ⟩ ⟨ ψ ω ∣ − I ) ( I − 2 Π S ) , where Π S = ∑ z ∈ S ∣ z ⟩ ⟨ z ∣ . (2\lvert\psi_\omega\rangle\langle\psi_\omega\rvert-I)(I-2\Pi_S), \qquad\text{where }\Pi_S=\sum_{z\in S}\lvert z\rangle\langle z\rvert. ( 2 ∣ ψ ω ⟩ ⟨ ψ ω ∣ − I ) ( I − 2 Π S ) , where Π S = z ∈ S ∑ ∣ z ⟩ ⟨ z ∣ .
Measure in the computational basis and output the outcome Z Z Z .
The reflection I − 2 Π S I-2\Pi_S I − 2 Π S uses only the stored set, so the number of queries is m + 1 + 2 ℓ m+1+2\ell m + 1 + 2 ℓ . Since ∣ L ϑ 0 − π / 2 ∣ ≤ ϑ 0 \lvert L\vartheta_0-\pi/2\rvert\leq\vartheta_0 ∣ L ϑ 0 − π /2 ∣ ≤ ϑ 0 gives 2 ℓ ≤ π / ( 2 ϑ 0 ) 2\ell\leq\pi/(2\vartheta_0) 2 ℓ ≤ π / ( 2 ϑ 0 ) , and arcsin u ≥ u \arcsin u\geq u arcsin u ≥ u gives ϑ 0 ≥ P ⋆ \vartheta_0\geq\sqrt{P_\star} ϑ 0 ≥ P ⋆ , the number of queries is at most
m + 1 + π 2 ϑ 0 ≤ m + 1 + π 2 N κ 2 m . (55) m+1+\frac{\pi}{2\vartheta_0}\leq m+1+\frac{\pi}{2}\sqrt{\frac{N}{\kappa_2m}}. \tag*{(55)} m + 1 + 2 ϑ 0 π ≤ m + 1 + 2 π κ 2 m N . (55)
The number of amplification steps depends only on N N N , m m m , and the ensemble, through P ⋆ = κ 2 m / N P_\star=\kappa_2m/N P ⋆ = κ 2 m / N ; it does not depend on the oracle or on the stored outcomes. The rest of the section proves that the resulting output distribution is close to the collision distribution, which is proportional to p z 2 p_z^2 p z 2 .
Moments of the two ensembles
Lemma 6.2 (Moments). The following hold.
(i) In the Haar ensemble, for all j ≥ 1 j\geq1 j ≥ 1 ,
E M j = N j − 1 j ! ( N + 1 ) ( N + 2 ) ⋯ ( N + j − 1 ) ≤ j ! , \mathbb{E}M_j=\frac{N^{j-1}j!}{(N+1)(N+2)\cdots(N+j-1)}\leq j!, E M j = ( N + 1 ) ( N + 2 ) ⋯ ( N + j − 1 ) N j − 1 j ! ≤ j ! , E M j 2 ≤ ( j ! ) 2 + ( 2 j ) ! N , \mathbb{E}M_j^2\leq(j!)^2+\frac{(2j)!}{N}, E M j 2 ≤ ( j ! ) 2 + N ( 2 j )! , together with
Var M j ≤ ( 2 j ) ! + j 2 ( j ! ) 2 N , \operatorname{Var}M_j\leq\frac{(2j)!+j^2(j!)^2}{N}, Var M j ≤ N ( 2 j )! + j 2 ( j ! ) 2 , and in particular
E M 2 = 2 N N + 1 , E M 3 = 6 N 2 ( N + 1 ) ( N + 2 ) , E M 4 ≤ 24 , \mathbb{E}M_2=\frac{2N}{N+1},\qquad\mathbb{E}M_3=\frac{6N^2}{(N+1)(N+2)},\qquad\mathbb{E}M_4\leq24, E M 2 = N + 1 2 N , E M 3 = ( N + 1 ) ( N + 2 ) 6 N 2 , E M 4 ≤ 24 , and
E ( M 2 − 2 ) 2 = 4 N 2 − 4 N + 24 ( N + 1 ) ( N + 2 ) ( N + 3 ) ≤ 4 N . \mathbb{E}(M_2-2)^2=\frac{4N^2-4N+24}{(N+1)(N+2)(N+3)}\leq\frac{4}{N}. E ( M 2 − 2 ) 2 = ( N + 1 ) ( N + 2 ) ( N + 3 ) 4 N 2 − 4 N + 24 ≤ N 4 . (ii) In the Fourier ensemble, E [ ( N f ^ ( z ) ) 2 j ] ≤ κ j \mathbb{E}[(\sqrt{N}\hat{f}(z))^{2j}]\leq\kappa_j E [( N f ^ ( z ) ) 2 j ] ≤ κ j for every z z z and j ≥ 1 j\geq1 j ≥ 1 , hence E M j ≤ κ j \mathbb{E}M_j\leq\kappa_j E M j ≤ κ j and E M j 2 ≤ κ 2 j \mathbb{E}M_j^2\leq\kappa_{2j} E M j 2 ≤ κ 2 j , and
E M 2 = 3 − 2 N , E M 3 = 15 − 30 N + 16 N 2 , \mathbb{E}M_2=3-\frac{2}{N},\qquad\mathbb{E}M_3=15-\frac{30}{N}+\frac{16}{N^2}, E M 2 = 3 − N 2 , E M 3 = 15 − N 30 + N 2 16 , Var M 2 ≤ 24 N , E ( M 2 − 3 ) 2 ≤ 28 N , Var M 3 ≤ 10 4 N . \operatorname{Var}M_2\leq\frac{24}{N},\qquad\mathbb{E}(M_2-3)^2\leq\frac{28}{N},\qquad\operatorname{Var}M_3\leq\frac{10^4}{N}. Var M 2 ≤ N 24 , E ( M 2 − 3 ) 2 ≤ N 28 , Var M 3 ≤ N 1 0 4 .
The proof is in Appendix A.2.
The two limiting distributions are visible in these values: N p z Np_z N p z is nearly an exponential random variable in the Haar ensemble, with moments j ! j! j ! , and N f ^ ( z ) \sqrt{N}\hat{f}(z) N f ^ ( z ) is nearly a standard Gaussian in the Fourier ensemble, with even moments ( 2 j − 1 ) ! ! (2j-1)!! ( 2 j − 1 )!! .
The output distribution for a fixed stored set
Fix the oracle and the outcomes Y 1 , … , Y m Y_1,\ldots,Y_m Y 1 , … , Y m , and let P S = p ( S ) = ∑ z ∈ S p z P_S=p(S)=\sum_{z\in S}p_z P S = p ( S ) = ∑ z ∈ S p z be the mass of the stored set, in the notation of Lemma 3.7 (iii); it is positive because every stored outcome has positive probability. For a set T T T with p ( T ) > 0 p(T)>0 p ( T ) > 0 let
μ T ( z ) = p z 1 [ z ∈ T ] p ( T ) \mu_T(z)=\frac{p_z\mathbf{1}[z\in T]}{p(T)} μ T ( z ) = p ( T ) p z 1 [ z ∈ T ]
be p p p conditioned on T T T . We use μ S \mu_S μ S and, when P S < 1 P_S<1 P S < 1 , μ S c \mu_{S^c} μ S c , where S c S^c S c is the complement of S S S . Put
g ( P ) = sin 2 ( L arcsin P ) . g(P)=\sin^2\left(L\arcsin\sqrt{P}\right). g ( P ) = sin 2 ( L arcsin P ) .
Lemma 6.3 (Output distribution for a fixed stored set). Conditioned on the oracle and on S S S , the output of S q m \mathrm{Sq}_m Sq m has the distribution
g ( P S ) μ S + ( 1 − g ( P S ) ) μ S c , g(P_S)\mu_S+(1-g(P_S))\mu_{S^c}, g ( P S ) μ S + ( 1 − g ( P S )) μ S c , where the second term is absent if P S = 1 P_S=1 P S = 1 .
Proof. Apply Lemma 3.3 with ψ = ∣ ψ ω ⟩ \psi=\lvert\psi_\omega\rangle ψ = ∣ ψ ω ⟩ and Π = Π S \Pi=\Pi_S Π = Π S , so that P = ∥ Π S ψ ω ∥ 2 = P S P=\lVert\Pi_S\psi_\omega\rVert^2=P_S P = ∥ Π S ψ ω ∥ 2 = P S . If P S = 1 P_S=1 P S = 1 , the state after step 3 of Definition 6.1 is ± ∣ ψ ω ⟩ \pm\lvert\psi_\omega\rangle ± ∣ ψ ω ⟩ and the output has distribution p = μ S p=\mu_S p = μ S . Otherwise the state is sin ( L ϑ ) u + cos ( L ϑ ) u ⊥ \sin(L\vartheta)u+\cos(L\vartheta)u^\perp sin ( L ϑ ) u + cos ( L ϑ ) u ⊥ , where
ϑ = arcsin P S , u = Π S ψ ω P S , u ⊥ = ( I − Π S ) ψ ω 1 − P S . \vartheta=\arcsin\sqrt{P_S},\qquad
u=\frac{\Pi_S\psi_\omega}{\sqrt{P_S}},\qquad
u^\perp=\frac{(I-\Pi_S)\psi_\omega}{\sqrt{1-P_S}}. ϑ = arcsin P S , u = P S Π S ψ ω , u ⊥ = 1 − P S ( I − Π S ) ψ ω . When P S < 1 P_S<1 P S < 1 , measuring this state gives z ∈ S z\in S z ∈ S with probability sin 2 ( L ϑ ) p z / P S \sin^2(L\vartheta)p_z/P_S sin 2 ( L ϑ ) p z / P S and z ∉ S z\notin S z ∈ / S with probability cos 2 ( L ϑ ) p z / ( 1 − P S ) \cos^2(L\vartheta)p_z/(1-P_S) cos 2 ( L ϑ ) p z / ( 1 − P S ) , because u u u and u ⊥ u^\perp u ⊥ are supported on S S S and on its complement.
Lemma 6.4 (Amplification error). Let 0 < P ⋆ ≤ 1 / 4 0<P_\star\le1/4 0 < P ⋆ ≤ 1/4 and let L L L be as in Definition 6.1. Then, for every P ∈ ( 0 , 1 ] P\in(0,1] P ∈ ( 0 , 1 ] ,
1 − g ( P ) ≤ 18 ( P / P ⋆ − 1 ) 2 + 3 P ⋆ . 1-g(P)\le18\left(P/P_\star-1\right)^2+3P_\star. 1 − g ( P ) ≤ 18 ( P / P ⋆ − 1 ) 2 + 3 P ⋆ . The two terms have different origins: the first is the change of the amplification angle when the actual probability P P P differs from the design value P ⋆ P_\star P ⋆ , and the second is the rounding of the number of steps to an integer.
Proof. Step 1: reduction to the error in the angle. Let ϑ = arcsin P ∈ ( 0 , π / 2 ] \vartheta=\arcsin\sqrt{P}\in(0,\pi/2] ϑ = arcsin P ∈ ( 0 , π /2 ] . Then
1 − g ( P ) = cos 2 ( L ϑ ) = sin 2 ( L ϑ − π / 2 ) ≤ ( L ϑ − π / 2 ) 2 , 1-g(P)=\cos^2(L\vartheta)=\sin^2(L\vartheta-\pi/2)
\le(L\vartheta-\pi/2)^2, 1 − g ( P ) = cos 2 ( L ϑ ) = sin 2 ( L ϑ − π /2 ) ≤ ( L ϑ − π /2 ) 2 , and, by the triangle inequality and the property ∣ L ϑ 0 − π / 2 ∣ ≤ ϑ 0 \lvert L\vartheta_0-\pi/2\rvert\le\vartheta_0 ∣ L ϑ 0 − π /2 ∣ ≤ ϑ 0 of Definition 6.1,
∣ L ϑ − π / 2 ∣ ≤ L ∣ ϑ − ϑ 0 ∣ + ∣ L ϑ 0 − π / 2 ∣ ≤ L ∣ ϑ − ϑ 0 ∣ + ϑ 0 , \begin{aligned}
\lvert L\vartheta-\pi/2\rvert
&\le L\lvert\vartheta-\vartheta_0\rvert+\lvert L\vartheta_0-\pi/2\rvert\\
&\le L\lvert\vartheta-\vartheta_0\rvert+\vartheta_0,
\end{aligned} ∣ L ϑ − π /2 ∣ ≤ L ∣ ϑ − ϑ 0 ∣ + ∣ L ϑ 0 − π /2 ∣ ≤ L ∣ ϑ − ϑ 0 ∣ + ϑ 0 , and therefore
1 − g ( P ) ≤ 2 L 2 ( ϑ − ϑ 0 ) 2 + 2 ϑ 0 2 . 1-g(P)\le2L^2(\vartheta-\vartheta_0)^2+2\vartheta_0^2. 1 − g ( P ) ≤ 2 L 2 ( ϑ − ϑ 0 ) 2 + 2 ϑ 0 2 . Step 2: bounds on ϑ 0 \vartheta_0 ϑ 0 and on L L L . Since arcsin \arcsin arcsin is convex on [ 0 , 1 ] [0,1] [ 0 , 1 ] with arcsin ( 1 / 2 ) = π / 6 \arcsin(1/2)=\pi/6 arcsin ( 1/2 ) = π /6 , we have arcsin u ≤ ( π / 3 ) u \arcsin u\le(\pi/3)u arcsin u ≤ ( π /3 ) u for 0 ≤ u ≤ 1 / 2 0\le u\le1/2 0 ≤ u ≤ 1/2 . Hence
ϑ 0 ≤ ( π / 3 ) P ⋆ , 2 ϑ 0 2 ≤ ( 2 π 2 / 9 ) P ⋆ ≤ 3 P ⋆ . \vartheta_0\le(\pi/3)\sqrt{P_\star},\qquad
2\vartheta_0^2\le(2\pi^2/9)P_\star\le3P_\star. ϑ 0 ≤ ( π /3 ) P ⋆ , 2 ϑ 0 2 ≤ ( 2 π 2 /9 ) P ⋆ ≤ 3 P ⋆ .
Moreover, ∣ L ϑ 0 − π / 2 ∣ ≤ ϑ 0 |L\vartheta_0-\pi/2|\le\vartheta_0 ∣ L ϑ 0 − π /2∣ ≤ ϑ 0 gives L ≤ π / ( 2 ϑ 0 ) + 1 L\le\pi/(2\vartheta_0)+1 L ≤ π / ( 2 ϑ 0 ) + 1 , and with P ⋆ ≤ ϑ 0 \sqrt{P_\star}\le\vartheta_0 P ⋆ ≤ ϑ 0 and P ⋆ ≤ 1 / 2 \sqrt{P_\star}\le1/2 P ⋆ ≤ 1/2 this gives L P ⋆ ≤ π / 2 + 1 / 2 L\sqrt{P_\star}\le\pi/2+1/2 L P ⋆ ≤ π /2 + 1/2 .
Step 3: the cases P ≤ 1 / 2 P\le1/2 P ≤ 1/2 and P > 1 / 2 P>1/2 P > 1/2 . If P ≤ 1 / 2 P\le1/2 P ≤ 1/2 , then P \sqrt{P} P and P ⋆ \sqrt{P_\star} P ⋆ lie in [ 0 , 1 / 2 ] [0,1/\sqrt{2}] [ 0 , 1/ 2 ] , where the derivative of arcsin \arcsin arcsin is at most 2 \sqrt{2} 2 , so
∣ ϑ − ϑ 0 ∣ ≤ 2 ∣ P − P ⋆ ∣ = 2 P ⋆ ∣ P / P ⋆ − 1 ∣ ≤ 2 P ⋆ ∣ P / P ⋆ − 1 ∣ . |\vartheta-\vartheta_0|\le\sqrt{2}\left|\sqrt{P}-\sqrt{P_\star}\right|=\sqrt{2P_\star}\left|\sqrt{P/P_\star}-1\right|
\le\sqrt{2P_\star}|P/P_\star-1|. ∣ ϑ − ϑ 0 ∣ ≤ 2 P − P ⋆ = 2 P ⋆ P / P ⋆ − 1 ≤ 2 P ⋆ ∣ P / P ⋆ − 1∣.
using ∣ y − 1 ∣ ≤ ∣ y − 1 ∣ |\sqrt{y}-1|\le|y-1| ∣ y − 1∣ ≤ ∣ y − 1∣ for y ≥ 0 y\ge0 y ≥ 0 . Therefore, by the bound on L P ⋆ L\sqrt{P_\star} L P ⋆ in Step 2,
2 L 2 ( ϑ − ϑ 0 ) 2 ≤ 4 ( L P ⋆ ) 2 ( P / P ⋆ − 1 ) 2 2L^2(\vartheta-\vartheta_0)^2\le4(L\sqrt{P_\star})^2(P/P_\star-1)^2 2 L 2 ( ϑ − ϑ 0 ) 2 ≤ 4 ( L P ⋆ ) 2 ( P / P ⋆ − 1 ) 2
≤ 4 ( π / 2 + 1 / 2 ) 2 ( P / P ⋆ − 1 ) 2 \le4(\pi/2+1/2)^2(P/P_\star-1)^2 ≤ 4 ( π /2 + 1/2 ) 2 ( P / P ⋆ − 1 ) 2
≤ 18 ( P / P ⋆ − 1 ) 2 . \le18(P/P_\star-1)^2. ≤ 18 ( P / P ⋆ − 1 ) 2 .
If instead P > 1 / 2 P>1/2 P > 1/2 , then P / P ⋆ > 2 P/P_\star>2 P / P ⋆ > 2 , so 1 − g ( P ) ≤ 1 ≤ ( P / P ⋆ − 1 ) 2 1-g(P)\le1\le(P/P_\star-1)^2 1 − g ( P ) ≤ 1 ≤ ( P / P ⋆ − 1 ) 2 , and the claim follows in both cases.
The output distribution of the algorithm
We now average over the stored outcomes. Fix the oracle, let Y 1 , … , Y m Y_1,\ldots,Y_m Y 1 , … , Y m be independent with distribution p p p , and put
W i = N p Y i , W ‾ = 1 m ∑ i = 1 m W i . W_i=Np_{Y_i},\qquad\overline{W}=\frac{1}{m}\sum_{i=1}^{m}W_i. W i = N p Y i , W = m 1 i = 1 ∑ m W i .
Let D \mathcal{D} D be the event that Y 1 , … , Y m Y_1,\ldots,Y_m Y 1 , … , Y m are distinct, and let
μ ~ Y ( z ) = ∑ i W i 1 [ Y i = z ] m W ‾ \widetilde{\mu}_Y(z)=\frac{\sum_i W_i\mathbf{1}[Y_i=z]}{m\overline{W}} μ Y ( z ) = m W ∑ i W i 1 [ Y i = z ]
be the probability distribution that gives each stored outcome a weight proportional to its reward; it is well defined because every W i W_i W i is positive. On the event D \mathcal{D} D , μ ~ Y \widetilde{\mu}_Y μ Y equals μ S \mu_S μ S , the output distribution of the algorithm conditioned on the amplified sample lying in S S S (Lemma 6.3).
For a single stored set the normalization W ‾ \overline{W} W has fluctuations of order m − 1 / 2 m^{-1/2} m − 1/2 , but the average of μ ~ Y \widetilde{\mu}_Y μ Y over the stored outcomes is within O ( 1 / m ) O(1/m) O ( 1/ m ) of the collision distribution. The reason, made precise in the proof of the next lemma, is that conditioned on one stored outcome z z z , the normalization m W ‾ m\overline{W} m W is N p z Np_z N p z plus the sum of the rewards of the other m − 1 m-1 m − 1 outcomes, which is independent of z z z , so Jensen’s inequality bounds the average from below in terms of the mean ( m − 1 ) M 2 (m-1)M_2 ( m − 1 ) M 2 of that sum.
Lemma 6.5 (Identities for the stored set). For every distribution p p p :
(i) E Y W ‾ = M 2 \mathbb{E}_Y\overline{W}=M_2 E Y W = M 2 and Var Y ( W ‾ ) ≤ M 3 / m \operatorname{Var}_Y(\overline{W})\le M_3/m Var Y ( W ) ≤ M 3 / m ;
(ii) on D \mathcal{D} D , μ ~ Y = μ S \widetilde{\mu}_Y=\mu_S μ Y = μ S and P S = m W ‾ / N P_S=m\overline{W}/N P S = m W / N ;
(iii) Pr Y [ D c ] ≤ m ( m − 1 ) M 2 / ( 2 N ) \Pr_Y[\mathcal{D}^c]\le m(m-1)M_2/(2N) Pr Y [ D c ] ≤ m ( m − 1 ) M 2 / ( 2 N ) ;
(iv) the average E Y μ ~ Y \mathbb{E}_Y\widetilde{\mu}_Y E Y μ Y satisfies
TV ( E Y μ ~ Y , r p ) ≤ M 3 m M 2 2 , where TV ( a , b ) = 1 2 ∑ z ∣ a ( z ) − b ( z ) ∣ . \operatorname{TV}(\mathbb{E}_Y\widetilde{\mu}_Y,r_p)\le\frac{M_3}{mM_2^2},
\qquad\text{where}\qquad
\operatorname{TV}(a,b)=\frac{1}{2}\sum_z|a(z)-b(z)|. TV ( E Y μ Y , r p ) ≤ m M 2 2 M 3 , where TV ( a , b ) = 2 1 z ∑ ∣ a ( z ) − b ( z ) ∣.
Proof. Part (i) holds because E W 1 = ∑ z p z ⋅ N p z = M 2 \mathbb{E}W_1=\sum_z p_z\cdot Np_z=M_2 E W 1 = ∑ z p z ⋅ N p z = M 2 , Var W 1 ≤ E W 1 2 = ∑ z p z N 2 p z 2 = M 3 \operatorname{Var}W_1\leq\mathbb{E}W_1^2=\sum_z p_zN^2p_z^2=M_3 Var W 1 ≤ E W 1 2 = ∑ z p z N 2 p z 2 = M 3 , and the W i W_i W i are independent. On D D D ,
∑ i W i 1 [ Y i = z ] = N p z 1 [ z ∈ S ] , m W ‾ = N ∑ z ∈ S p z = N P S . \sum_i W_i\mathbf{1}[Y_i=z]=Np_z\mathbf{1}[z\in S],\qquad m\overline{W}=N\sum_{z\in S}p_z=NP_S. i ∑ W i 1 [ Y i = z ] = N p z 1 [ z ∈ S ] , m W = N z ∈ S ∑ p z = N P S .
so μ ~ Y ( z ) = p z 1 [ z ∈ S ] / P S = μ S ( z ) \widetilde{\mu}_Y(z)=p_z\mathbf{1}[z\in S]/P_S=\mu_S(z) μ Y ( z ) = p z 1 [ z ∈ S ] / P S = μ S ( z ) , which proves (ii). Part (iii) follows from the union bound over pairs, since Pr [ Y i = Y j ] = ∑ z p z 2 = M 2 / N \Pr[Y_i=Y_j]=\sum_z p_z^2=M_2/N Pr [ Y i = Y j ] = ∑ z p z 2 = M 2 / N .
For part (iv), write w z = N p z w_z=Np_z w z = N p z and μ ‾ = E Y μ ~ Y \overline{\mu}=\mathbb{E}_Y\widetilde{\mu}_Y μ = E Y μ Y , which is a probability distribution. Since the Y i Y_i Y i are exchangeable,
μ ‾ ( z ) = m E Y [ W 1 1 [ Y 1 = z ] W 1 + W ′ ] = m p z w z E [ 1 w z + W ′ ] , W ′ = ∑ i = 2 m W i , \begin{aligned}
\overline{\mu}(z)=m\mathbb{E}_Y\left[\frac{W_1\mathbf{1}[Y_1=z]}{W_1+W'}\right] \\
&=m p_z w_z\mathbb{E}\left[\frac{1}{w_z+W'}\right],\qquad W'=\sum_{i=2}^{m}W_i,
\end{aligned} μ ( z ) = m E Y [ W 1 + W ′ W 1 1 [ Y 1 = z ] ] = m p z w z E [ w z + W ′ 1 ] , W ′ = i = 2 ∑ m W i ,
where W ′ W' W ′ is independent of Y 1 Y_1 Y 1 and has mean ( m − 1 ) M 2 (m-1)M_2 ( m − 1 ) M 2 by (i). This holds for every z z z with p z > 0 p_z>0 p z > 0 ; if p z = 0 p_z=0 p z = 0 , then μ ‾ ( z ) = r p ( z ) = 0 \overline{\mu}(z)=r_p(z)=0 μ ( z ) = r p ( z ) = 0 .
Since t ↦ 1 / t t\mapsto1/t t ↦ 1/ t is convex on t > 0 t>0 t > 0 , Jensen’s inequality gives
E [ 1 w z + W ′ ] ≥ 1 w z + ( m − 1 ) M 2 . \mathbb{E}\left[\frac{1}{w_z+W'}\right]\geq\frac{1}{w_z+(m-1)M_2}. E [ w z + W ′ 1 ] ≥ w z + ( m − 1 ) M 2 1 .
Substituting this into the display above for μ ‾ ( z ) \overline{\mu}(z) μ ( z ) and using r p ( z ) = p z w z / M 2 r_p(z)=p_zw_z/M_2 r p ( z ) = p z w z / M 2 , we obtain
μ ‾ ( z ) ≥ m p z w z w z + ( m − 1 ) M 2 = r p ( z ) m M 2 w z + ( m − 1 ) M 2 . \begin{aligned}
\overline{\mu}(z)\geq\frac{m p_z w_z}{w_z+(m-1)M_2} \\
&=r_p(z)\frac{mM_2}{w_z+(m-1)M_2}.
\end{aligned} μ ( z ) ≥ w z + ( m − 1 ) M 2 m p z w z = r p ( z ) w z + ( m − 1 ) M 2 m M 2 .
We distinguish two cases.
If w z ≤ M 2 w_z\leq M_2 w z ≤ M 2 , the fraction is at least 1 and μ ‾ ( z ) ≥ r p ( z ) \overline{\mu}(z)\geq r_p(z) μ ( z ) ≥ r p ( z ) .
If w z > M 2 w_z>M_2 w z > M 2 , then
r p ( z ) − μ ‾ ( z ) ≤ r p ( z ) w z − M 2 w z + ( m − 1 ) M 2 ≤ r p ( z ) w z − M 2 m M 2 , \begin{aligned}
r_p(z)-\overline{\mu}(z)\leq r_p(z)\frac{w_z-M_2}{w_z+(m-1)M_2} \\
&\leq r_p(z)\frac{w_z-M_2}{mM_2},
\end{aligned} r p ( z ) − μ ( z ) ≤ r p ( z ) w z + ( m − 1 ) M 2 w z − M 2 ≤ r p ( z ) m M 2 w z − M 2 ,
where the second inequality holds because w z + ( m − 1 ) M 2 > m M 2 w_z+(m-1)M_2>mM_2 w z + ( m − 1 ) M 2 > m M 2 .
Since μ ‾ \overline{\mu} μ and r p r_p r p are probability distributions, TV ( μ ‾ , r p ) \operatorname{TV}(\overline{\mu},r_p) TV ( μ , r p ) is the sum over z z z of the positive parts of r p ( z ) − μ ‾ ( z ) r_p(z)-\overline{\mu}(z) r p ( z ) − μ ( z ) . Moreover,
∑ z r p ( z ) w z = N 2 ∑ z p z 3 N ∑ z p z 2 = M 3 M 2 . (56) \sum_z r_p(z)w_z=\frac{N^2\sum_z p_z^3}{N\sum_z p_z^2}=\frac{M_3}{M_2}. \tag*{(56)} z ∑ r p ( z ) w z = N ∑ z p z 2 N 2 ∑ z p z 3 = M 2 M 3 . (56)
so
TV ( μ ‾ , r p ) ≤ 1 m M 2 ∑ z r p ( z ) w z = M 3 m M 2 2 . \operatorname{TV}(\overline{\mu},r_p)\leq\frac{1}{mM_2}\sum_z r_p(z)w_z=\frac{M_3}{mM_2^2}. TV ( μ , r p ) ≤ m M 2 1 z ∑ r p ( z ) w z = m M 2 2 M 3 .
Theorem 6.6 (Output distribution of the squaring algorithm). For each oracle ω \omega ω let a ω ( z ) = Pr [ Z = z ∣ ω ] a_\omega(z)=\Pr[Z=z\mid\omega] a ω ( z ) = Pr [ Z = z ∣ ω ] be the output distribution of Sq m \operatorname{Sq}_m Sq m , where m ≥ 1 m\ge1 m ≥ 1 satisfies κ 2 m / N ≤ 1 / 4 \kappa_2m/N\le1/4 κ 2 m / N ≤ 1/4 . Then
E ω TV ( a ω , r p ω ) ≤ 1 m E ω [ M 3 M 2 2 ] + ( m 2 ) E M 2 N + 18 κ 2 2 ( E M 3 m + E ( M 2 − κ 2 ) 2 ) + 3 κ 2 m N . (57) \mathbb{E}_\omega\operatorname{TV}(a_\omega,r_{p_\omega})\le\frac{1}{m}\mathbb{E}_\omega\left[\frac{M_3}{M_2^2}\right]+\binom{m}{2}\frac{\mathbb{E}M_2}{N}+\frac{18}{\kappa_2^2}\left(\frac{\mathbb{E}M_3}{m}+\mathbb{E}(M_2-\kappa_2)^2\right)+\frac{3\kappa_2m}{N}. \tag*{(57)} E ω TV ( a ω , r p ω ) ≤ m 1 E ω [ M 2 2 M 3 ] + ( 2 m ) N E M 2 + κ 2 2 18 ( m E M 3 + E ( M 2 − κ 2 ) 2 ) + N 3 κ 2 m . (57) In particular, if N ≥ 64 N\ge64 N ≥ 64 and m = ⌈ N 1 / 3 ⌉ m=\lceil N^{1/3}\rceil m = ⌈ N 1/3 ⌉ , then Sq m \operatorname{Sq}_m Sq m makes at most 3 N 1 / 3 3N^{1/3} 3 N 1/3 queries and
E ω TV ( a ω , r p ω ) ≤ { 40 N − 1 / 3 in the Haar ensemble , 60 N − 1 / 3 in the Fourier ensemble . (58) \mathbb{E}_\omega\operatorname{TV}(a_\omega,r_{p_\omega})\le
\begin{cases}
40N^{-1/3} & \text{in the Haar ensemble},\\
60N^{-1/3} & \text{in the Fourier ensemble}.
\end{cases} \tag*{(58)} E ω TV ( a ω , r p ω ) ≤ { 40 N − 1/3 60 N − 1/3 in the Haar ensemble , in the Fourier ensemble . (58)
Proof. Step 1: the triangle inequality. Fix ω \omega ω , write p = p ω p=p_\omega p = p ω , let a ω , S a_{\omega,S} a ω , S be the output distribution conditioned on S S S , which Lemma 6.3 describes, and let μ ˉ = E Y μ ~ Y \bar{\mu}=\mathbb{E}_Y\tilde{\mu}_Y μ ˉ = E Y μ ~ Y . Since a ω = E Y a ω , S a_\omega=\mathbb{E}_Y a_{\omega,S} a ω = E Y a ω , S and the total variation distance is convex, the triangle inequality and Lemma 6.5 (iv) give
TV ( a ω , r p ) ≤ TV ( a ω , μ ˉ ) + TV ( μ ˉ , r p ) ≤ E Y TV ( a ω , S , μ ~ Y ) + M 3 m M 2 2 . \begin{aligned}
\operatorname{TV}(a_\omega,r_p)\le\operatorname{TV}(a_\omega,\bar{\mu})+\operatorname{TV}(\bar{\mu},r_p) \\
&\le\mathbb{E}_Y\operatorname{TV}(a_{\omega,S},\tilde{\mu}_Y)+\frac{M_3}{mM_2^2}.
\end{aligned} TV ( a ω , r p ) ≤ TV ( a ω , μ ˉ ) + TV ( μ ˉ , r p ) ≤ E Y TV ( a ω , S , μ ~ Y ) + m M 2 2 M 3 .
Step 2: the two events. We bound TV ( a ω , S , μ ~ Y ) \operatorname{TV}(a_{\omega,S},\tilde{\mu}_Y) TV ( a ω , S , μ ~ Y ) separately on D \mathcal{D} D and on D c \mathcal{D}^{\mathrm{c}} D c .
On D \mathcal{D} D we have μ ~ Y = μ S \tilde{\mu}_Y=\mu_S μ ~ Y = μ S by Lemma 6.5 (ii), and
a ω , S − μ S = ( 1 − g ( P S ) ) ( μ S c − μ S ) , a_{\omega,S}-\mu_S=(1-g(P_S))(\mu_{S^{\mathrm{c}}}-\mu_S), a ω , S − μ S = ( 1 − g ( P S )) ( μ S c − μ S ) ,
where μ S \mu_S μ S and μ S c \mu_{S^{\mathrm{c}}} μ S c are distributions with disjoint supports when P S < 1 P_S<1 P S < 1 , and therefore TV ( a ω , S , μ ~ Y ) = 1 − g ( P S ) \operatorname{TV}(a_{\omega,S},\tilde{\mu}_Y)=1-g(P_S) TV ( a ω , S , μ ~ Y ) = 1 − g ( P S ) . When P S = 1 P_S=1 P S = 1 , both sides are 0, because then a ω , S = p = μ S a_{\omega,S}=p=\mu_S a ω , S = p = μ S by Lemma 6.3 and g ( 1 ) = sin 2 ( L π / 2 ) = 1 g(1)=\sin^2(L\pi/2)=1 g ( 1 ) = sin 2 ( L π /2 ) = 1 since L L L is odd.
On D c \mathcal{D}^{\mathrm{c}} D c , the total variation distance is at most 1.
Therefore
TV ( a ω , r p ) ≤ E Y [ 1 D ( 1 − g ( P S ) ) ] + Pr Y [ D c ] + M 3 m M 2 2 . \operatorname{TV}(a_\omega,r_p)\le\mathbb{E}_Y\left[\mathbf{1}_{\mathcal{D}}(1-g(P_S))\right]+\Pr_Y[\mathcal{D}^{\mathrm{c}}]+\frac{M_3}{mM_2^2}. TV ( a ω , r p ) ≤ E Y [ 1 D ( 1 − g ( P S )) ] + Y Pr [ D c ] + m M 2 2 M 3 .
Step 3: the amplification bound and averaging over the oracle. On D \mathcal{D} D we have P S / P ⋆ = W ‾ / κ 2 P_S/P_\star=\overline{W}/\kappa_2 P S / P ⋆ = W / κ 2 by Lemma 6.5 (ii), so Lemma 6.4 gives
1 − g ( P S ) ≤ 18 κ 2 2 ( W ‾ − κ 2 ) 2 + 3 P ⋆ , 1-g(P_S)\le\frac{18}{\kappa_2^2}(\overline{W}-\kappa_2)^2+3P_\star, 1 − g ( P S ) ≤ κ 2 2 18 ( W − κ 2 ) 2 + 3 P ⋆ ,
and
E Y ( W ‾ − κ 2 ) 2 = Var Y ( W ‾ ) + ( M 2 − κ 2 ) 2 ≤ M 3 m + ( M 2 − κ 2 ) 2 \begin{aligned}
\mathbb{E}_Y(\overline{W}-\kappa_2)^2=\operatorname{Var}_Y(\overline{W})+(M_2-\kappa_2)^2 \\
&\le\frac{M_3}{m}+(M_2-\kappa_2)^2
\end{aligned} E Y ( W − κ 2 ) 2 = Var Y ( W ) + ( M 2 − κ 2 ) 2 ≤ m M 3 + ( M 2 − κ 2 ) 2
by Lemma 6.5 (i).
With part (iii) of the same lemma, the bounds of Step 2 and the two bounds above give
TV ( a ω , r p ) ≤ M 3 m M 2 2 + ( m 2 ) M 2 N + 18 κ 2 2 ( M 3 m + ( M 2 − κ 2 ) 2 ) + 3 κ 2 m N . \operatorname{TV}(a_\omega,r_p)\le\frac{M_3}{mM_2^2}+\binom{m}{2}\frac{M_2}{N}+\frac{18}{\kappa_2^2}\left(\frac{M_3}{m}+(M_2-\kappa_2)^2\right)+\frac{3\kappa_2m}{N}. TV ( a ω , r p ) ≤ m M 2 2 M 3 + ( 2 m ) N M 2 + κ 2 2 18 ( m M 3 + ( M 2 − κ 2 ) 2 ) + N 3 κ 2 m .
and averaging over ω \omega ω proves (57) .
Step 4: the parameters of the second statement. Let N ≥ 64 N \ge64 N ≥ 64 and m = ⌈ N 1 / 3 ⌉ m = \lceil N^{1/3}\rceil m = ⌈ N 1/3 ⌉ , so m ≥ N 1 / 3 m \ge N^{1/3} m ≥ N 1/3 and
m ≤ N 1 / 3 + 1 ≤ 5 4 N 1 / 3 , m \le N^{1/3} + 1 \le\frac{5}{4}N^{1/3}, m ≤ N 1/3 + 1 ≤ 4 5 N 1/3 ,
κ 2 m / N ≤ 15 4 N − 2 / 3 ≤ 1 / 4. \kappa_2m/N \le\frac{15}{4}N^{-2/3} \le1/4. κ 2 m / N ≤ 4 15 N − 2/3 ≤ 1/4.
By (55) the number of queries is at most
m + 1 + π 2 N / ( κ 2 m ) ≤ ( 5 4 + π 2 2 ) N 1 / 3 + 1 m + 1 + \frac{\pi}{2}\sqrt{N/(\kappa_2m)} \le\left(\frac{5}{4}+\frac{\pi}{2\sqrt{2}}\right)N^{1/3}+1 m + 1 + 2 π N / ( κ 2 m ) ≤ ( 4 5 + 2 2 π ) N 1/3 + 1
≤ 3 N 1 / 3 , \le3N^{1/3}, ≤ 3 N 1/3 ,
since N 1 / 3 ≥ 4 N^{1/3} \ge4 N 1/3 ≥ 4 . In (57) we use M 2 ≥ 1 M_2 \ge1 M 2 ≥ 1 , the moments of Lemma 6.2, and the bounds
m ≥ N 1 / 3 , m ( m − 1 ) ≤ 25 16 N 2 / 3 , m \ge N^{1/3}, \qquad m(m-1) \le\frac{25}{16}N^{2/3}, m ≥ N 1/3 , m ( m − 1 ) ≤ 16 25 N 2/3 ,
m / N ≤ 5 4 N − 2 / 3 ≤ 5 16 N − 1 / 3 , N − 1 ≤ 1 16 N − 1 / 3 . m/N \le\frac{5}{4}N^{-2/3} \le\frac{5}{16}N^{-1/3}, \qquad N^{-1} \le\frac{1}{16}N^{-1/3}. m / N ≤ 4 5 N − 2/3 ≤ 16 5 N − 1/3 , N − 1 ≤ 16 1 N − 1/3 .
Step 5: the Haar and Fourier ensembles. The four terms of (57) are at most the four summands on the left, in the Haar ensemble (first row) and in the Fourier ensemble (second row):
6 m + m ( m − 1 ) N + ( 27 m + 18 N ) + 6 m N ≤ ( 6 + 25 16 + 27 + 18 16 + 30 16 ) N − 1 / 3 ≤ 40 N − 1 / 3 , \frac{6}{m}+\frac{m(m-1)}{N}+\left(\frac{27}{m}+\frac{18}{N}\right)+\frac{6m}{N}\le\left(6+\frac{25}{16}+27+\frac{18}{16}+\frac{30}{16}\right)N^{-1/3}\le40N^{-1/3}, m 6 + N m ( m − 1 ) + ( m 27 + N 18 ) + N 6 m ≤ ( 6 + 16 25 + 27 + 16 18 + 16 30 ) N − 1/3 ≤ 40 N − 1/3 ,
15 m + 3 m ( m − 1 ) 2 N + ( 30 m + 56 N ) + 9 m N ≤ ( 15 + 75 32 + 30 + 56 16 + 45 16 ) N − 1 / 3 ≤ 60 N − 1 / 3 . \frac{15}{m}+\frac{3m(m-1)}{2N}+\left(\frac{30}{m}+\frac{56}{N}\right)+\frac{9m}{N}\le\left(15+\frac{75}{32}+30+\frac{56}{16}+\frac{45}{16}\right)N^{-1/3}\le60N^{-1/3}. m 15 + 2 N 3 m ( m − 1 ) + ( m 30 + N 56 ) + N 9 m ≤ ( 15 + 32 75 + 30 + 16 56 + 16 45 ) N − 1/3 ≤ 60 N − 1/3 .
For m m m of order N 1 / 3 N^{1/3} N 1/3 the first three terms of (57) are of order N − 1 / 3 N^{-1/3} N − 1/3 and the fourth is of order N − 2 / 3 N^{-2/3} N − 2/3 : the first is the bias of the averaged stored-set distribution, the second the probability of a repeated stored outcome, the third the failure of the amplification caused by the deviation of P S P_S P S from P ⋆ P_\star P ⋆ , and the fourth the rounding of the number of amplification steps.
The score of the output distribution
A small error in total variation does not by itself control the score, since the reward N p z Np_z N p z of a single outcome may be as large as N N N . The score that an output distribution a a a loses relative to r p r_p r p comes from the outcomes to which a a a assigns less probability than r p r_p r p , and the next lemma makes use of this fact.
Lemma 6.7 (Total variation and the score). For all distributions p p p and a a a on { 0 , 1 } n \{0,1\}^n { 0 , 1 } n ,
∑ z a ( z ) N p z ≥ M 3 M 2 − M 4 M 2 TV ( a , r p ) . \sum_z a(z)Np_z \ge\frac{M_3}{M_2}-\sqrt{\frac{M_4}{M_2}}\operatorname{TV}(a,r_p). z ∑ a ( z ) N p z ≥ M 2 M 3 − M 2 M 4 TV ( a , r p ) . Consequently, an algorithm whose output distribution for the oracle ω \omega ω is a ω a_\omega a ω has
B ( A ) ≥ E ω [ M 3 M 2 ] − E ω [ M 4 M 2 ] E ω TV ( a ω , r p ω ) . B(\mathcal{A}) \ge\mathbb{E}_\omega\left[\frac{M_3}{M_2}\right]-\sqrt{\mathbb{E}_\omega\left[\frac{M_4}{M_2}\right]}\mathbb{E}_\omega\operatorname{TV}(a_\omega,r_{p_\omega}). B ( A ) ≥ E ω [ M 2 M 3 ] − E ω [ M 2 M 4 ] E ω TV ( a ω , r p ω ) .
Proof. The score of the collision distribution is M 3 / M 2 M_3/M_2 M 3 / M 2 by (56) .
Step 1: the shortfall of a a a relative to r p r_p r p . Let d z = max { r p ( z ) − a ( z ) , 0 } d_z=\max\{r_p(z)-a(z),0\} d z = max { r p ( z ) − a ( z ) , 0 } , so that
0 ≤ d z ≤ r p ( z ) , ∑ z d z = TV ( a , r p ) , a ( z ) ≥ r p ( z ) − d z . 0\le d_z\le r_p(z),\qquad\sum_z d_z=\operatorname{TV}(a,r_p),\qquad a(z)\ge r_p(z)-d_z. 0 ≤ d z ≤ r p ( z ) , z ∑ d z = TV ( a , r p ) , a ( z ) ≥ r p ( z ) − d z .
Then, since the score of r p r_p r p is M 3 / M 2 M_3/M_2 M 3 / M 2 ,
∑ z a ( z ) N p z ≥ M 3 M 2 − ∑ z N p z d z . \sum_z a(z)Np_z\ge\frac{M_3}{M_2}-\sum_z Np_zd_z. z ∑ a ( z ) N p z ≥ M 2 M 3 − z ∑ N p z d z .
Step 2: the Cauchy–Schwarz bound. By the Cauchy–Schwarz inequality, and then by the properties of d z d_z d z in Step 1,
∑ z N p z d z ≤ ( ∑ z N 2 p z 2 d z ) 1 / 2 ( ∑ z d z ) 1 / 2 ≤ ( ∑ z N 2 p z 2 r p ( z ) ) 1 / 2 TV ( a , r p ) 1 / 2 , \begin{aligned}
\sum_z Np_zd_z\le\left(\sum_z N^2p_z^2d_z\right)^{1/2}\left(\sum_z d_z\right)^{1/2} \\
&\le\left(\sum_z N^2p_z^2r_p(z)\right)^{1/2}\operatorname{TV}(a,r_p)^{1/2},
\end{aligned} z ∑ N p z d z ≤ ( z ∑ N 2 p z 2 d z ) 1/2 ( z ∑ d z ) 1/2 ≤ ( z ∑ N 2 p z 2 r p ( z ) ) 1/2 TV ( a , r p ) 1/2 ,
and
∑ z N 2 p z 2 r p ( z ) = N 3 ∑ z p z 4 N ∑ z p z 2 = M 4 M 2 . \sum_z N^2p_z^2r_p(z)=\frac{N^3\sum_z p_z^4}{N\sum_z p_z^2}=\frac{M_4}{M_2}. z ∑ N 2 p z 2 r p ( z ) = N ∑ z p z 2 N 3 ∑ z p z 4 = M 2 M 4 .
With Step 1, this proves the first claim.
For the second claim, average over ω \omega ω and then bound E ω [ ( M 4 / M 2 ) 1 / 2 TV ( a ω , r p ω ) 1 / 2 ] \mathbb{E}_{\omega}[(M_4/M_2)^{1/2}\operatorname{TV}(a_\omega,r_{p_\omega})^{1/2}] E ω [( M 4 / M 2 ) 1/2 TV ( a ω , r p ω ) 1/2 ] by the Cauchy–Schwarz inequality.
Lemma 6.8 (The limiting scores). Recall that ( κ 3 , κ 4 ) = ( 6 , 24 ) (\kappa_3,\kappa_4)=(6,24) ( κ 3 , κ 4 ) = ( 6 , 24 ) in the Haar ensemble and ( 15 , 105 ) (15,105) ( 15 , 105 ) in the Fourier ensemble, so that κ 3 / κ 2 \kappa_3/\kappa_2 κ 3 / κ 2 equals 3 and 5, and κ 4 / κ 2 \kappa_4/\kappa_2 κ 4 / κ 2 equals 12 and 35. Then
E [ M 3 M 2 ] ≥ κ 3 κ 2 − C l i m N , E [ M 4 M 2 ] ≤ κ 4 κ 2 + C l i m N , \mathbb{E}\left[\frac{M_3}{M_2}\right]\ge\frac{\kappa_3}{\kappa_2}-\frac{C_{\mathrm{lim}}}{\sqrt{N}},\qquad
\mathbb{E}\left[\frac{M_4}{M_2}\right]\le\frac{\kappa_4}{\kappa_2}+\frac{C_{\mathrm{lim}}}{\sqrt{N}}, E [ M 2 M 3 ] ≥ κ 2 κ 3 − N C lim , E [ M 2 M 4 ] ≤ κ 2 κ 4 + N C lim , for an absolute constant C l i m C_{\mathrm{lim}} C lim .
Proof. Step 1: comparison with E M j / κ 2 \mathbb{E}M_j/\kappa_2 E M j / κ 2 . Let j ∈ { 3 , 4 } j\in\{3,4\} j ∈ { 3 , 4 } . Since M 2 ≥ 1 M_2\ge1 M 2 ≥ 1 ,
∣ M j M 2 − M j κ 2 ∣ = M j ∣ M 2 − κ 2 ∣ κ 2 M 2 ≤ M j ∣ M 2 − κ 2 ∣ κ 2 , \left|\frac{M_j}{M_2}-\frac{M_j}{\kappa_2}\right|=\frac{M_j|M_2-\kappa_2|}{\kappa_2M_2}\le\frac{M_j|M_2-\kappa_2|}{\kappa_2}, M 2 M j − κ 2 M j = κ 2 M 2 M j ∣ M 2 − κ 2 ∣ ≤ κ 2 M j ∣ M 2 − κ 2 ∣ ,
so, by the Cauchy–Schwarz inequality,
∣ E [ M j M 2 ] − E M j κ 2 ∣ ≤ ( E M j 2 E ( M 2 − κ 2 ) 2 ) 1 / 2 κ 2 . \left|\mathbb{E}\left[\frac{M_j}{M_2}\right]-\frac{\mathbb{E}M_j}{\kappa_2}\right|\le\frac{\left(\mathbb{E}M_j^2\mathbb{E}(M_2-\kappa_2)^2\right)^{1/2}}{\kappa_2}. E [ M 2 M j ] − κ 2 E M j ≤ κ 2 ( E M j 2 E ( M 2 − κ 2 ) 2 ) 1/2 .
Step 2: the moment bounds. By Lemma 6.2,
E M 3 ≥ κ 3 − 30 / N , E M 4 ≤ κ 4 , E ( M 2 − κ 2 ) 2 ≤ 28 / N , \mathbb{E}M_3\ge\kappa_3-30/N,\qquad\mathbb{E}M_4\le\kappa_4,\qquad\mathbb{E}(M_2-\kappa_2)^2\le28/N, E M 3 ≥ κ 3 − 30/ N , E M 4 ≤ κ 4 , E ( M 2 − κ 2 ) 2 ≤ 28/ N ,
and E M 3 2 \mathbb{E}M_3^2 E M 3 2 and E M 4 2 \mathbb{E}M_4^2 E M 4 2 are bounded by absolute constants, in both ensembles; in the Haar ensemble the first bound holds because κ 3 − E M 3 = 6 ( 3 N + 2 ) / ( ( N + 1 ) ( N + 2 ) ) ≤ 18 / N \kappa_3-\mathbb{E}M_3=6(3N+2)/((N+1)(N+2))\le18/N κ 3 − E M 3 = 6 ( 3 N + 2 ) / (( N + 1 ) ( N + 2 )) ≤ 18/ N . With Step 1, this gives both bounds.
Theorem 6.9 (Scores of the squaring algorithm). Let N ≥ 64 N \ge64 N ≥ 64 and m = ⌈ N 1 / 3 ⌉ m = \lceil N^{1/3} \rceil m = ⌈ N 1/3 ⌉ . Then the squaring algorithm has the following properties.
(i) It makes O ( N 1 / 3 ) O(N^{1/3}) O ( N 1/3 ) queries.
(ii) Its output distribution satisfies E ω TV ( a ω , r p ω ) = O ( N − 1 / 3 ) \mathbb{E}_{\omega}\operatorname{TV}(a_{\omega},r_{p_{\omega}})=O(N^{-1/3}) E ω TV ( a ω , r p ω ) = O ( N − 1/3 ) .
(iii) Its expected score is at least 5 − O ( N − 1 / 6 ) 5-O(N^{-1/6}) 5 − O ( N − 1/6 ) in the Fourier ensemble and at least 3 − O ( N − 1 / 6 ) 3-O(N^{-1/6}) 3 − O ( N − 1/6 ) for either form of Haar access.
Proof. Combine Theorem 6.6 with Lemmas 6.7 and 6.8. The score is then at least
κ 3 κ 2 − O ( N − 1 / 2 ) − ( ( κ 4 / κ 2 + O ( N − 1 / 2 ) ) O ( N − 1 / 3 ) ) 1 / 2 . \frac{\kappa_3}{\kappa_2}-O(N^{-1/2})-\left((\kappa_4/\kappa_2+O(N^{-1/2}))O(N^{-1/3})\right)^{1/2}. κ 2 κ 3 − O ( N − 1/2 ) − ( ( κ 4 / κ 2 + O ( N − 1/2 )) O ( N − 1/3 ) ) 1/2 .
This proves part 3 of Theorem 1.1. The algorithm reaches every fixed score below 5 in the Fourier ensemble and below 3 in the Haar ensemble, which are the limiting scores of the collision distribution. Together with Theorem 4.4 and, for the Haar ensemble, Theorem 5.6, its Corollary 5.7, and Theorem 5.25, it also gives the formal version of Corollary 1.3.
Corollary 6.10 (Sampling the collision distribution). Fix 0 < ν < 4 / 35 0<\nu<4/35 0 < ν < 4/35 in the Fourier ensemble, or 0 < ν < 1 / 12 0<\nu<1/12 0 < ν < 1/12 for either form of Haar access.
(i) Every algorithm with no supplied copies whose output distribution satisfies E ω TV ( a ω , r p ω ) ≤ ν \mathbb{E}_{\omega}\operatorname{TV}(a_{\omega},r_{p_{\omega}})\le\nu E ω TV ( a ω , r p ω ) ≤ ν has expected score at least
κ 3 κ 2 − ( κ 4 / κ 2 ) ν − O ( N − 1 / 2 ) , \frac{\kappa_3}{\kappa_2}-\sqrt{(\kappa_4/\kappa_2)\nu}-O(N^{-1/2}), κ 2 κ 3 − ( κ 4 / κ 2 ) ν − O ( N − 1/2 ) , which exceeds the ideal score by a positive constant for all large N N N , and therefore makes Ω ( N 1 / 3 ) \Omega(N^{1/3}) Ω ( N 1/3 ) queries.
(ii) For N ≥ 64 N\ge64 N ≥ 64 , the squaring algorithm with m = ⌈ N 1 / 3 ⌉ m=\lceil N^{1/3}\rceil m = ⌈ N 1/3 ⌉ makes O ( N 1 / 3 ) O(N^{1/3}) O ( N 1/3 ) queries and has E ω TV ( a ω , r p ω ) = O ( N − 1 / 3 ) \mathbb{E}_{\omega}\operatorname{TV}(a_{\omega},r_{p_{\omega}})=O(N^{-1/3}) E ω TV ( a ω , r p ω ) = O ( N − 1/3 ) .
Proof. The score bound follows from Lemmas 6.7 and 6.8, using
( c + t ) ν − c ν = t ν c + t + c ≤ t ν 2 c . \sqrt{(c+t)\nu}-\sqrt{c\nu}=\frac{t\sqrt{\nu}}{\sqrt{c+t}+\sqrt{c}}\le\frac{t\sqrt{\nu}}{2\sqrt{c}}. ( c + t ) ν − c ν = c + t + c t ν ≤ 2 c t ν .
with c = κ 4 / κ 2 c=\kappa_4/\kappa_2 c = κ 4 / κ 2 and t = C l i m / N t=C_{\mathrm{lim}}/\sqrt{N} t = C lim / N .
The thresholds are where the bound meets the ideal score:
5 − 35 ν > 3 if and only if ν < 4 / 35 , 5-\sqrt{35\nu}>3\quad\text{if and only if}\quad\nu<4/35, 5 − 35 ν > 3 if and only if ν < 4/35 ,
3 − 12 ν > 2 if and only if ν < 1 / 12. 3-\sqrt{12\nu}>2\quad\text{if and only if}\quad\nu<1/12. 3 − 12 ν > 2 if and only if ν < 1/12.
The query lower bound then follows from Theorem 4.4 in the Fourier ensemble and from Corollary 5.7, with no copies, and Theorem 5.25 in the Haar ensemble. Part (ii) restates parts (i) and (ii) of Theorem 6.9.
The lower bounds of this paper concern the expected score, and Section 1.1 explains how they apply to the empirical score of a list of samples. In the other direction, the empirical score of independent runs of the squaring algorithm is, with high probability, at least any fixed value below its limiting score.
Corollary 6.11 (Empirical scores). Let N ≥ 64 N \ge64 N ≥ 64 and m = ⌈ N 1 / 3 ⌉ m = \lceil N^{1/3} \rceil m = ⌈ N 1/3 ⌉ , let Z 1 , … , Z k Z_1,\ldots,Z_k Z 1 , … , Z k be the outputs of k k k independent runs of Sq m \operatorname{Sq}_m Sq m on the same oracle ω \omega ω , each with a fresh stored set, and let
B ^ k = 1 k ∑ i = 1 k N p ω ( Z i ) \widehat{B}_k = \frac{1}{k}\sum_{i=1}^{k} N p_\omega(Z_i) B k = k 1 i = 1 ∑ k N p ω ( Z i ) be their empirical score. Then, for 0 < t ≤ 1 0 < t \le1 0 < t ≤ 1 ,
Pr [ B ^ k ≤ κ 3 κ 2 − t ] ≤ C t 2 ( 1 k + N − 1 / 6 ) \Pr\left[\widehat{B}_k \le\frac{\kappa_3}{\kappa_2} - t\right] \le\frac{C}{t^2}\left(\frac{1}{k}+N^{-1/6}\right) Pr [ B k ≤ κ 2 κ 3 − t ] ≤ t 2 C ( k 1 + N − 1/6 ) for an absolute constant C C C , where the probability is over the oracle and the k k k runs, and κ 3 / κ 2 \kappa_3/\kappa_2 κ 3 / κ 2 is 5 in the Fourier ensemble and 3 for either form of Haar access. In particular, for every fixed b < κ 3 / κ 2 b < \kappa_3/\kappa_2 b < κ 3 / κ 2 and ζ > 0 \zeta> 0 ζ > 0 , k = O ( 1 / ζ ) k = O(1/\zeta) k = O ( 1/ ζ ) runs suffice for the empirical score to be at least b b b with probability at least 1 − ζ 1-\zeta 1 − ζ , for all large N N N .
Proof. Step 1: reduction by Chebyshev’s inequality. Let
B ω = ∑ z a ω ( z ) N p ω ( z ) , Q ω = ∑ z a ω ( z ) N 2 p ω ( z ) 2 . B_\omega= \sum_z a_\omega(z)N p_\omega(z), \qquad Q_\omega= \sum_z a_\omega(z)N^2p_\omega(z)^2. B ω = z ∑ a ω ( z ) N p ω ( z ) , Q ω = z ∑ a ω ( z ) N 2 p ω ( z ) 2 . be the mean and the second moment of the reward of one run conditioned on ω \omega ω . Conditioned on ω \omega ω , the rewards N p ω ( Z i ) N p_\omega(Z_i) N p ω ( Z i ) are independent with mean B ω B_\omega B ω and variance at most Q ω Q_\omega Q ω , so Chebyshev’s inequality gives
Pr [ B ^ k ≤ B ω − t / 2 ∣ ω ] ≤ 4 Q ω k t 2 , \Pr\left[\widehat{B}_k \le B_\omega- t/2 \mid\omega\right] \le\frac{4Q_\omega}{kt^2}, Pr [ B k ≤ B ω − t /2 ∣ ω ] ≤ k t 2 4 Q ω , and therefore
Pr [ B ^ k ≤ κ 3 κ 2 − t ] ≤ Pr [ B ω ≤ κ 3 κ 2 − t 2 ] + 4 E ω Q ω k t 2 . \Pr\left[\widehat{B}_k \le\frac{\kappa_3}{\kappa_2}-t\right]
\le\Pr\left[B_\omega\le\frac{\kappa_3}{\kappa_2}-\frac{t}{2}\right] + \frac{4\mathbb{E}_\omega Q_\omega}{kt^2}. Pr [ B k ≤ κ 2 κ 3 − t ] ≤ Pr [ B ω ≤ κ 2 κ 3 − 2 t ] + k t 2 4 E ω Q ω . Step 2: the second moment. Write X ω ∗ = N max z p ω ( z ) X_\omega^* = N\max_z p_\omega(z) X ω ∗ = N max z p ω ( z ) . Since ∑ z r p ( z ) N 2 p z 2 = M 4 / M 2 ≤ M 4 \sum_z r_p(z)N^2p_z^2 = M_4/M_2 \le M_4 ∑ z r p ( z ) N 2 p z 2 = M 4 / M 2 ≤ M 4 , as in the proof of Lemma 6.7, and ∑ z ∣ a ω ( z ) − r p ( z ) ∣ = 2 TV ( a ω , r p ) \sum_z |a_\omega(z)-r_p(z)| = 2\operatorname{TV}(a_\omega,r_p) ∑ z ∣ a ω ( z ) − r p ( z ) ∣ = 2 TV ( a ω , r p ) , we have
Q ω ≤ M 4 + 2 TV ( a ω , r p ) ( X ω ∗ ) 2 . Q_\omega\le M_4 + 2\operatorname{TV}(a_\omega,r_p)(X_\omega^*)^2. Q ω ≤ M 4 + 2 TV ( a ω , r p ) ( X ω ∗ ) 2 . Since TV ( a ω , r p ) ≤ 1 \operatorname{TV}(a_\omega,r_p) \le1 TV ( a ω , r p ) ≤ 1 , the Cauchy–Schwarz inequality gives
E ω Q ω ≤ κ 4 + 2 E ω TV ( a ω , r p ) E ω ( X ω ∗ ) 4 . \mathbb{E}_\omega Q_\omega\le\kappa_4 + 2\sqrt{\mathbb{E}_\omega\operatorname{TV}(a_\omega,r_p)}\sqrt{\mathbb{E}_\omega(X_\omega^*)^4}. E ω Q ω ≤ κ 4 + 2 E ω TV ( a ω , r p ) E ω ( X ω ∗ ) 4 . In both ensembles, Pr [ X ω ∗ ≥ u ] ≤ 2 N e − u / 2 \Pr[X_\omega^* \ge u] \le2Ne^{-u/2} Pr [ X ω ∗ ≥ u ] ≤ 2 N e − u /2 for u ≥ 0 u \ge0 u ≥ 0 . For Fourier sampling this is part of Lemma 7.7 . For a Haar-random state, Lemma 3.7 (iii) with S = { z } S=\{z\} S = { z } shows that p z p_z p z has the density ( N − 1 ) ( 1 − s ) N − 2 (N-1)(1-s)^{N-2} ( N − 1 ) ( 1 − s ) N − 2 on [ 0 , 1 ] [0,1] [ 0 , 1 ] , so, for 0 ≤ u ≤ N 0 \le u \le N 0 ≤ u ≤ N ,
Pr [ N p z ≥ u ] = ( 1 − u / N ) N − 1 ≤ e − u ( N − 1 ) / N \Pr[Np_z \ge u] = (1-u/N)^{N-1} \le e^{-u(N-1)/N} Pr [ N p z ≥ u ] = ( 1 − u / N ) N − 1 ≤ e − u ( N − 1 ) / N ≤ e − u / 2 since N − 1 ≥ N / 2 , \le e^{-u/2} \qquad\text{since } N-1 \ge N/2, ≤ e − u /2 since N − 1 ≥ N /2 , and Pr [ N p z ≥ u ] = 0 \Pr[Np_z \ge u] = 0 Pr [ N p z ≥ u ] = 0 for u > N u>N u > N ; the union bound over z z z then applies. Hence, with u 0 = 2 ln ( 2 N ) ≤ 2 ( n + 1 ) u_0=2\ln(2N)\le2(n+1) u 0 = 2 ln ( 2 N ) ≤ 2 ( n + 1 ) , the tail bound gives
E ( X ω ∗ ) 4 ≤ u 0 4 + ∫ u 0 ∞ 4 u 3 ⋅ 2 N e − u / 2 d u \mathbb{E}(X_\omega^*)^4 \le u_0^4+\int_{u_0}^{\infty}4u^3\cdot2Ne^{-u/2}\,du E ( X ω ∗ ) 4 ≤ u 0 4 + ∫ u 0 ∞ 4 u 3 ⋅ 2 N e − u /2 d u = u 0 4 + ∫ 0 ∞ 4 ( v + u 0 ) 3 e − v / 2 d v = u_0^4+\int_0^\infty4(v+u_0)^3e^{-v/2}\,dv = u 0 4 + ∫ 0 ∞ 4 ( v + u 0 ) 3 e − v /2 d v ≤ u 0 4 + 32 u 0 3 + 1536 , \le u_0^4+32u_0^3+1536, ≤ u 0 4 + 32 u 0 3 + 1536 ,
using ( v + u 0 ) 3 ≤ 4 ( v 3 + u 0 3 ) (v+u_0)^3 \le4(v^3+u_0^3) ( v + u 0 ) 3 ≤ 4 ( v 3 + u 0 3 ) in the last step. With E ω TV ( a ω , r p ) = O ( N − 1 / 3 ) \mathbb{E}_{\omega}\operatorname{TV}(a_{\omega},r_p)=O(N^{-1/3}) E ω TV ( a ω , r p ) = O ( N − 1/3 ) from Theorem 6.6 , this gives E ω Q ω ≤ κ 4 + O ( n 2 N − 1 / 6 ) \mathbb{E}_{\omega}Q_{\omega}\le\kappa_4+O(n^2N^{-1/6}) E ω Q ω ≤ κ 4 + O ( n 2 N − 1/6 ) , which is bounded by an absolute constant.
Step 3: the conditional mean. By Lemma 6.7 and M 2 ≥ 1 M_2\ge1 M 2 ≥ 1 ,
B ω ≥ M 3 M 2 − M 4 TV ( a ω , r p ) . B_{\omega}\ge\frac{M_3}{M_2}-\sqrt{M_4\operatorname{TV}(a_{\omega},r_p)}. B ω ≥ M 2 M 3 − M 4 TV ( a ω , r p ) .
Let E 1 \mathcal{E}_1 E 1 be the event ∣ M 3 / M 2 − κ 3 / κ 2 ∣ ≥ t / 4 \lvert M_3/M_2-\kappa_3/\kappa_2\rvert\ge t/4 ∣ M 3 / M 2 − κ 3 / κ 2 ∣ ≥ t /4 , and let E 2 \mathcal{E}_2 E 2 be the event M 4 TV ( a ω , r p ) ≥ t 2 / 16 M_4\operatorname{TV}(a_{\omega},r_p)\ge t^2/16 M 4 TV ( a ω , r p ) ≥ t 2 /16 . By this bound on B ω B_{\omega} B ω and the union bound,
Pr [ B ω ≤ κ 3 κ 2 − t 2 ] ≤ Pr [ E 1 ] + Pr [ E 2 ] . \Pr\left[B_{\omega}\le\frac{\kappa_3}{\kappa_2}-\frac{t}{2}\right]\le\Pr[\mathcal{E}_1]+\Pr[\mathcal{E}_2]. Pr [ B ω ≤ κ 2 κ 3 − 2 t ] ≤ Pr [ E 1 ] + Pr [ E 2 ] .
and, by Markov’s inequality for nonnegative random variables,
Pr [ E 1 ] ≤ 4 t E [ ∣ M 3 M 2 − κ 3 κ 2 ∣ ] , \Pr[\mathcal{E}_1]\le\frac{4}{t}\mathbb{E}\left[\left\lvert\frac{M_3}{M_2}-\frac{\kappa_3}{\kappa_2}\right\rvert\right], Pr [ E 1 ] ≤ t 4 E [ M 2 M 3 − κ 2 κ 3 ] ,
Pr [ E 2 ] ≤ 16 t 2 E [ M 4 TV ( a ω , r p ) ] . \Pr[\mathcal{E}_2]\le\frac{16}{t^2}\mathbb{E}[M_4\operatorname{TV}(a_{\omega},r_p)]. Pr [ E 2 ] ≤ t 2 16 E [ M 4 TV ( a ω , r p )] .
Since M 2 ≥ 1 M_2\ge1 M 2 ≥ 1 ,
∣ M 3 M 2 − κ 3 κ 2 ∣ ≤ ∣ M 3 − κ 3 ∣ + κ 3 ∣ M 2 − κ 2 ∣ κ 2 , \left\lvert\frac{M_3}{M_2}-\frac{\kappa_3}{\kappa_2}\right\rvert\le\lvert M_3-\kappa_3\rvert+\frac{\kappa_3\lvert M_2-\kappa_2\rvert}{\kappa_2}, M 2 M 3 − κ 2 κ 3 ≤ ∣ M 3 − κ 3 ∣ + κ 2 κ 3 ∣ M 2 − κ 2 ∣ ,
whose expectation is O ( N − 1 / 2 ) O(N^{-1/2}) O ( N − 1/2 ) , because E ∣ M 3 − κ 3 ∣ ≤ ( Var M 3 + ( E M 3 − κ 3 ) 2 ) 1 / 2 \mathbb{E}\lvert M_3-\kappa_3\rvert\le\left(\operatorname{Var}M_3+(\mathbb{E}M_3-\kappa_3)^2\right)^{1/2} E ∣ M 3 − κ 3 ∣ ≤ ( Var M 3 + ( E M 3 − κ 3 ) 2 ) 1/2 and E ∣ M 2 − κ 2 ∣ ≤ ( E ( M 2 − κ 2 ) 2 ) 1 / 2 \mathbb{E}\lvert M_2-\kappa_2\rvert\le\left(\mathbb{E}(M_2-\kappa_2)^2\right)^{1/2} E ∣ M 2 − κ 2 ∣ ≤ ( E ( M 2 − κ 2 ) 2 ) 1/2 , while Lemma 6.2 gives Var M 3 ≤ 10 4 / N \operatorname{Var}M_3\le10^4/N Var M 3 ≤ 1 0 4 / N , ∣ E M 3 − κ 3 ∣ ≤ 30 / N \lvert\mathbb{E}M_3-\kappa_3\rvert\le30/N ∣ E M 3 − κ 3 ∣ ≤ 30/ N , and E ( M 2 − κ 2 ) 2 ≤ 28 / N \mathbb{E}(M_2-\kappa_2)^2\le28/N E ( M 2 − κ 2 ) 2 ≤ 28/ N in both ensembles. Moreover, using TV ( a ω , r p ) ≤ 1 \operatorname{TV}(a_{\omega},r_p)\le1 TV ( a ω , r p ) ≤ 1 ,
E [ M 4 TV ( a ω , r p ) ] ≤ E M 4 2 E TV ( a ω , r p ) = O ( N − 1 / 6 ) . \mathbb{E}[M_4\operatorname{TV}(a_{\omega},r_p)]\le\sqrt{\mathbb{E}M_4^2\,\mathbb{E}\operatorname{TV}(a_{\omega},r_p)}=O(N^{-1/6}). E [ M 4 TV ( a ω , r p )] ≤ E M 4 2 E TV ( a ω , r p ) = O ( N − 1/6 ) .
Step 4: conclusion. Collecting the bounds and using t ≤ 1 t\le1 t ≤ 1 proves the first claim. The second follows by taking t = min { 1 , κ 3 / κ 2 − b } t=\min\{1,\kappa_3/\kappa_2-b\} t = min { 1 , κ 3 / κ 2 − b } and k ≥ 2 C / ( ζ t 2 ) k\ge2C/(\zeta t^2) k ≥ 2 C / ( ζ t 2 ) , for N N N with C N − 1 / 6 / t 2 ≤ ζ / 2 CN^{-1/6}/t^2\le\zeta/2 C N − 1/6 / t 2 ≤ ζ /2 .
Heavy outputs
The collision distribution also determines the probability of producing a heavy output. The original heavy output generation (HOG) task asks for a list with at least 2 / 3 2/3 2/3 of its outputs above the median ideal probability [5 Problem 1] . Here we study the expected heavy probability for the Haar ensemble. This differs from linear XEB, which weights an output by its ideal probability [6 , 37 ] . Honest sampling already exceeds 2 / 3 2/3 2/3 in the limit; our question is how many queries are needed to improve on its heavy probability by a fixed amount.
Let N = 2 n ≥ 2 N=2^n\ge2 N = 2 n ≥ 2 and p z = ∣ ⟨ z ∣ ϕ ⟩ ∣ 2 p_z=\lvert\langle z\mid\phi\rangle\rvert^2 p z = ∣⟨ z ∣ ϕ ⟩ ∣ 2 , where ∣ ϕ ⟩ \lvert\phi\rangle ∣ ϕ ⟩ is Haar-random, or ∣ ϕ ⟩ = U ∣ 0 n ⟩ \lvert\phi\rangle=U\lvert0^n\rangle ∣ ϕ ⟩ = U ∣ 0 n ⟩ for Haar-random U U U . Queries may be controlled, and unitary queries may also be inverse queries. The other initial registers have a joint state independent of ϕ \phi ϕ or U U U ; supplied copies, when allowed, are ∣ ϕ ⟩ ⊗ s \lvert\phi\rangle^{\otimes s} ∣ ϕ ⟩ ⊗ s in the device registers, tensored with that state. Define
θ N = 1 − 2 − 1 / ( N − 1 ) , B τ h o g ( A ) = Pr [ p Z > τ ] . (59) \theta_N=1-2^{-1/(N-1)},\qquad B_{\tau}^{\mathrm{hog}}(\mathcal{A})=\Pr[p_Z>\tau]. \tag*{(59)} θ N = 1 − 2 − 1/ ( N − 1 ) , B τ hog ( A ) = Pr [ p Z > τ ] . (59)
The probability averages over the oracle and the algorithm’s randomness. The fixed threshold θ N \theta_N θ N is the median of the marginal law Beta ( 1 , N − 1 ) \operatorname{Beta}(1,N-1) Beta ( 1 , N − 1 ) . For comparison, let θ ^ N = ( p ( N / 2 ) + p ( N / 2 + 1 ) ) / 2 \widehat{\theta}_N=(p_{(N/2)}+p_{(N/2+1)})/2 θ N = ( p ( N /2 ) + p ( N /2 + 1 ) ) /2 be the empirical median, where the probabilities are sorted in increasing order. Honest sampling at the fixed threshold has probability
β N h o g = 1 + ( N − 1 ) θ N 2 ≤ h h o n : = 1 + ln 2 2 = 0.84657 … , β N h o g ⟶ h h o n . (60) \beta_N^{\mathrm{hog}}=\frac{1+(N-1)\theta_N}{2}\le h_{\mathrm{hon}}:=\frac{1+\ln2}{2}=0.84657\ldots,\qquad\beta_N^{\mathrm{hog}}\longrightarrow h_{\mathrm{hon}}. \tag*{(60)} β N hog = 2 1 + ( N − 1 ) θ N ≤ h hon := 2 1 + ln 2 = 0.84657 … , β N hog ⟶ h hon . (60)
Theorem 6.12 (Heavy-output query bounds). With Λ s , q \Lambda_{s,q} Λ s , q as in Theorem 5.6 , an algorithm given s s s copies and making at most q q q canonical queries satisfies the first bound below; an algorithm making at most q q q unitary queries, without supplied copies, satisfies the second:
B θ N h o g ( A ) ≤ β N h o g + Λ s , q , (61) B_{\theta_N}^{\mathrm{hog}}(\mathcal{A}) \leq\beta_N^{\mathrm{hog}}+\Lambda_{s,q}, \tag*{(61)} B θ N hog ( A ) ≤ β N hog + Λ s , q , (61) B θ N h o g ( A ) ≤ β N h o g + Λ 0 , 2 q + 5 q + 2 N . (62) B_{\theta_N}^{\mathrm{hog}}(\mathcal{A}) \leq\beta_N^{\mathrm{hog}}+\Lambda_{0,2q}+\frac{5q+2}{\sqrt{N}}. \tag*{(62)} B θ N hog ( A ) ≤ β N hog + Λ 0 , 2 q + N 5 q + 2 . (62) Set
h ⋆ = 2 + 2 ln 2 + ( ln 2 ) 2 4 = 0.96669 … (63) h_{\star}=\frac{2+2\ln2+(\ln2)^2}{4}=0.96669\ldots \tag*{(63)} h ⋆ = 4 2 + 2 ln 2 + ( ln 2 ) 2 = 0.96669 … (63) For either threshold τ = θ N \tau=\theta_N τ = θ N or τ = θ ^ N \tau=\widehat{\theta}_N τ = θ N , and every fixed h ∈ ( h h o n , h ⋆ ) h\in(h_{\mathrm{hon}},h_{\star}) h ∈ ( h hon , h ⋆ ) , achieving B τ h o g ( A ) ≥ h B_{\tau}^{\mathrm{hog}}(\mathcal{A})\geq h B τ hog ( A ) ≥ h without supplied copies has query complexity Θ h ( N 1 / 3 ) \Theta_h(N^{1/3}) Θ h ( N 1/3 ) in either Haar access model. For N ≥ 64 N\geq64 N ≥ 64 , S q m \mathrm{Sq}_m Sq m with m = ⌈ N 1 / 3 ⌉ m=\lceil N^{1/3}\rceil m = ⌈ N 1/3 ⌉ makes at most 3 N 1 / 3 3N^{1/3} 3 N 1/3 queries and its heavy probability tends to h ⋆ h_{\star} h ⋆ under both threshold conventions.
The proof is in Appendix § 17 .§ 11 . The lower bound uses the same progress measure as § 13 , but the heavy-output reward is bounded by one. Its expectation is therefore controlled by the distance from the normalized level-zero part. The upper bound follows from the collision distribution approximation in Theorem 6.6 . The appendix also gives a sharper bound for arbitrary joint processing of supplied copies with no queries.
Certified randomness at the ideal score
In this section we prove Theorem 1.2 . We consider the experiment of Definition 3.1 as a sequence of controlled queries and oracle-independent unitaries, as supplied by Lemma 3.2 , with device register A A A , Eve’s register E E E , and initial state ψ 0 ∈ A ⊗ E \psi_0\in A\otimes E ψ 0 ∈ A ⊗ E , whose reduced state on E E E is ρ E \rho_E ρ E . The final state and its branches are
Ψ ( ω ) = ( V ω ⊗ I E ) ψ 0 , Ψ z ( ω ) = ( Π z ⊗ I E ) Ψ ( ω ) , \Psi(\omega)=(V_\omega\otimes I_E)\psi_0,\qquad\Psi_z(\omega)=(\Pi_z\otimes I_E)\Psi(\omega), Ψ ( ω ) = ( V ω ⊗ I E ) ψ 0 , Ψ z ( ω ) = ( Π z ⊗ I E ) Ψ ( ω ) ,
and the reduced states of the branches on E E E are Eve’s conditional states ρ z ω \rho_z^\omega ρ z ω . The device makes at most q q q queries, and its expected score is at least the ideal score minus δ \delta δ .
Both ensembles are treated by the same three steps.
The score bound of the corresponding lower-bound section, with the terms that its proof discards now retained, shows that the branches Ψ z \Psi_z Ψ z are close to auxiliary vectors G z G_z G z .
For every fixed oracle, the auxiliary vector is the image of ψ 0 \psi_0 ψ 0 under an operator on the device alone whose norm is at most poly ( q ) p ω ( z ) \operatorname{poly}(q)\sqrt{p_\omega(z)} poly ( q ) p ω ( z ) .
The family of auxiliary vectors, normalized, is a state within purified distance η \eta η of the actual one, and in this state Eve’s guessing probability is at most poly ( q ) \operatorname{poly}(q) poly ( q ) times her probability of guessing an ideal sample, provided η ≤ 1 / 2 \eta\leq1/2 η ≤ 1/2 .
The third step is common to both ensembles, and we present it first.
Min-entropy from auxiliary vectors
Proposition 7.1 (Min-entropy from auxiliary vectors). Suppose that for every oracle ω \omega ω and every z z z there is a linear operator K z ( ω ) K_z(\omega) K z ( ω ) on A A A , depending measurably on ω \omega ω , such that the vectors G z ( ω ) = ( K z ( ω ) ⊗ I E ) ψ 0 G_z(\omega) = (K_z(\omega) \otimes I_E)\psi_0 G z ( ω ) = ( K z ( ω ) ⊗ I E ) ψ 0 satisfy
∥ K z ( ω ) ∥ 2 ≤ κ p ω ( z ) for all ω and z , E ω ∑ z ∥ Ψ z ( ω ) − G z ( ω ) ∥ 2 ≤ η 0 2 (64) \lVert K_z(\omega)\rVert^2 \le\kappa p_\omega(z) \quad\text{for all } \omega\text{ and } z,\qquad\mathbb{E}_\omega\sum_z \lVert\Psi_z(\omega)-G_z(\omega)\rVert^2 \le\eta_0^2 \tag*{(64)} ∥ K z ( ω ) ∥ 2 ≤ κ p ω ( z ) for all ω and z , E ω z ∑ ∥ Ψ z ( ω ) − G z ( ω ) ∥ 2 ≤ η 0 2 (64) for some κ > 0 \kappa> 0 κ > 0 and 0 ≤ η 0 < 1 0 \le\eta_0 < 1 0 ≤ η 0 < 1 . Let ξ = E ω ∑ z ∥ G z ( ω ) ∥ 2 \xi= \mathbb{E}_\omega\sum_z \lVert G_z(\omega)\rVert^2 ξ = E ω ∑ z ∥ G z ( ω ) ∥ 2 , which is finite, because ∑ z ∥ G z ( ω ) ∥ 2 ≤ κ ∑ z p ω ( z ) = κ \sum_z \lVert G_z(\omega)\rVert^2 \le\kappa\sum_z p_\omega(z) = \kappa ∑ z ∥ G z ( ω ) ∥ 2 ≤ κ ∑ z p ω ( z ) = κ , and at least ( 1 − η 0 ) 2 > 0 (1-\eta_0)^2 > 0 ( 1 − η 0 ) 2 > 0 by the second hypothesis in (64), and let τ z ω \tau_z^\omega τ z ω be the reduced state of G z ( ω ) G_z(\omega) G z ( ω ) on E E E divided by ξ \xi ξ . Then the following hold.
(i) The family τ \tau τ is a normalized family of conditional states with P ( ρ , τ ) ≤ η 0 P(\rho,\tau) \le\eta_0 P ( ρ , τ ) ≤ η 0 .
(ii) The family τ \tau τ satisfies
τ z ω ⪯ κ ξ p ω ( z ) ρ E for all ω and z , (65) \tau_z^\omega\preceq\frac{\kappa}{\xi}p_\omega(z)\rho_E \quad\text{for all } \omega\text{ and } z, \tag*{(65)} τ z ω ⪯ ξ κ p ω ( z ) ρ E for all ω and z , (65) so that for every ω \omega ω and every measurement ( M z ) z (M_z)_z ( M z ) z on E E E ,
∑ z Tr ( M z τ z ω ) ≤ κ ξ max z p ω ( z ) . (66) \sum_z \operatorname{Tr}(M_z\tau_z^\omega) \le\frac{\kappa}{\xi}\max_z p_\omega(z). \tag*{(66)} z ∑ Tr ( M z τ z ω ) ≤ ξ κ z max p ω ( z ) . (66) (iii) Consequently,
H min η ( Z ∣ R E ) ρ ≥ n − log κ − log ( N E ω max z p ω ( z ) ) − log 1 ξ for every η ∈ [ η 0 , 1 ] . (67) H_{\min}^{\eta}(Z\mid RE)_\rho\ge n-\log\kappa-\log\left(N\mathbb{E}_\omega\max_z p_\omega(z)\right)-\log\frac{1}{\xi}
\quad\text{for every } \eta\in[\eta_0,1]. \tag*{(67)} H m i n η ( Z ∣ R E ) ρ ≥ n − log κ − log ( N E ω z max p ω ( z ) ) − log ξ 1 for every η ∈ [ η 0 , 1 ] . (67) (iv) If E ω ∑ z ⟨ Ψ z ( ω ) , G z ( ω ) ⟩ = ξ \mathbb{E}_\omega\sum_z\langle\Psi_z(\omega),G_z(\omega)\rangle=\xi E ω ∑ z ⟨ Ψ z ( ω ) , G z ( ω )⟩ = ξ , as when, for each z z z , the function ω ↦ G z ( ω ) \omega\mapsto G_z(\omega) ω ↦ G z ( ω ) is the image of ω ↦ Ψ z ( ω ) \omega\mapsto\Psi_z(\omega) ω ↦ Ψ z ( ω ) under an orthogonal projection of the space of square-integrable functions of ω \omega ω , then
ξ = 1 − E ω ∑ z ∥ Ψ z ( ω ) − G z ( ω ) ∥ 2 ≥ 1 − η 0 2 . \xi=1-\mathbb{E}_\omega\sum_z\lVert\Psi_z(\omega)-G_z(\omega)\rVert^2\ge1-\eta_0^2. ξ = 1 − E ω z ∑ ∥ Ψ z ( ω ) − G z ( ω ) ∥ 2 ≥ 1 − η 0 2 .
The family τ \tau τ is normalized by the total weight ξ \xi ξ rather than oracle by oracle. This is what makes it a normalized family in the sense of Definition 3.4, and it allows the fidelity of ρ \rho ρ and τ \tau τ to be bounded from below by a single inner product. It is a comparison family for the smoothing in Definition 3.4 and not the state of another experiment: for a fixed ω \omega ω , the weight ∑ z Tr τ z ω \sum_z\operatorname{Tr}\tau_z^\omega ∑ z Tr τ z ω need not be 1.
Proof. Step 1: the scalar ξ \xi ξ . We have
E ω ∑ z ∥ Ψ z ( ω ) ∥ 2 = 1 , E ω ∑ z ∥ Ψ z ( ω ) − G z ( ω ) ∥ 2 ≤ η 0 2 , \mathbb{E}_\omega\sum_z\lVert\Psi_z(\omega)\rVert^2=1,\qquad
\mathbb{E}_\omega\sum_z\lVert\Psi_z(\omega)-G_z(\omega)\rVert^2\le\eta_0^2, E ω z ∑ ∥ Ψ z ( ω ) ∥ 2 = 1 , E ω z ∑ ∥ Ψ z ( ω ) − G z ( ω ) ∥ 2 ≤ η 0 2 ,
where the second bound is the second hypothesis in (64), and by definition ξ = E ω ∑ z ∥ G z ( ω ) ∥ 2 \xi=\mathbb{E}_\omega\sum_z\lVert G_z(\omega)\rVert^2 ξ = E ω ∑ z ∥ G z ( ω ) ∥ 2 . Hence, by the triangle inequality in the direct sum over z z z and the average over ω \omega ω ,
ξ ≥ ( E ω ∑ z ∥ Ψ z ( ω ) ∥ 2 ) 1 / 2 − ( E ω ∑ z ∥ Ψ z ( ω ) − G z ( ω ) ∥ 2 ) 1 / 2 \sqrt{\xi}\ge\left(\mathbb{E}_\omega\sum_z\lVert\Psi_z(\omega)\rVert^2\right)^{1/2}
-\left(\mathbb{E}_\omega\sum_z\lVert\Psi_z(\omega)-G_z(\omega)\rVert^2\right)^{1/2} ξ ≥ ( E ω z ∑ ∥ Ψ z ( ω ) ∥ 2 ) 1/2 − ( E ω z ∑ ∥ Ψ z ( ω ) − G z ( ω ) ∥ 2 ) 1/2
≥ 1 − η 0 > 0. \ge1-\eta_0>0. ≥ 1 − η 0 > 0.
Thus ξ ≥ ( 1 − η 0 ) 2 > 0 \xi\ge(1-\eta_0)^2>0 ξ ≥ ( 1 − η 0 ) 2 > 0 , as stated, and the rescaled vectors G z ( ω ) / ξ G_z(\omega)/\sqrt{\xi} G z ( ω ) / ξ satisfy E ω ∑ z ∥ G z ( ω ) / ξ ∥ 2 = 1 \mathbb{E}_\omega\sum_z\lVert G_z(\omega)/\sqrt{\xi}\rVert^2=1 E ω ∑ z ∥ G z ( ω ) / ξ ∥ 2 = 1 .
Step 2: the overlap c c c . Let c = ξ − 1 / 2 E ω ∑ z ⟨ G z ( ω ) , Ψ z ( ω ) ⟩ c=\xi^{-1/2}\mathbb{E}_{\omega}\sum_z\langle G_z(\omega),\Psi_z(\omega)\rangle c = ξ − 1/2 E ω ∑ z ⟨ G z ( ω ) , Ψ z ( ω )⟩ be the overlap of the branches with the rescaled vectors. For every scalar t t t , expanding the square and using the two normalizations of Step 1 and the definition of c c c , we obtain
E ω ∑ z ∥ Ψ z ( ω ) − t G z ( ω ) / ξ ∥ 2 = 1 − 2 Re ( t c ‾ ) + ∣ t ∣ 2 = ∣ c − t ∣ 2 + 1 − ∣ c ∣ 2 . \mathbb{E}_{\omega}\sum_z\left\|\Psi_z(\omega)-tG_z(\omega)/\sqrt{\xi}\right\|^2=1-2\operatorname{Re}(t\overline{c})+|t|^2
=|c-t|^2+1-|c|^2. E ω z ∑ Ψ z ( ω ) − t G z ( ω ) / ξ 2 = 1 − 2 Re ( t c ) + ∣ t ∣ 2 = ∣ c − t ∣ 2 + 1 − ∣ c ∣ 2 .
The squared distance on the left is therefore minimized over t t t at t = c t=c t = c , where it equals 1 − ∣ c ∣ 2 1-|c|^2 1 − ∣ c ∣ 2 , so 1 − ∣ c ∣ 2 1-|c|^2 1 − ∣ c ∣ 2 is at most its value at t = ξ t=\sqrt{\xi} t = ξ . That value is the left side of the second hypothesis in (64) , and hence
1 − ∣ c ∣ 2 ≤ E ω ∑ z ∥ Ψ z ( ω ) − G z ( ω ) ∥ 2 ≤ η 0 2 . (68) 1-|c|^2\leq\mathbb{E}_{\omega}\sum_z\|\Psi_z(\omega)-G_z(\omega)\|^2\leq\eta_0^2. \tag*{(68)} 1 − ∣ c ∣ 2 ≤ E ω z ∑ ∥ Ψ z ( ω ) − G z ( ω ) ∥ 2 ≤ η 0 2 . (68)
Step 3: the bound on P ( ρ , τ ) P(\rho,\tau) P ( ρ , τ ) . The family τ \tau τ is normalized by construction, since
E ω ∑ z Tr τ z ω = E ω ∑ z ∥ G z ( ω ) ∥ 2 / ξ = 1. \mathbb{E}_{\omega}\sum_z\operatorname{Tr}\tau_z^\omega=\mathbb{E}_{\omega}\sum_z\|G_z(\omega)\|^2/\xi=1. E ω z ∑ Tr τ z ω = E ω z ∑ ∥ G z ( ω ) ∥ 2 / ξ = 1.
For each ω \omega ω and z z z , the vectors Ψ z ( ω ) \Psi_z(\omega) Ψ z ( ω ) and G z ( ω ) / ξ G_z(\omega)/\sqrt{\xi} G z ( ω ) / ξ in A ⊗ E A\otimes E A ⊗ E have reduced states ρ z ω \rho_z^\omega ρ z ω and τ z ω \tau_z^\omega τ z ω on E E E , so (24) gives
∥ ρ z ω τ z ω ∥ 1 ≥ ∣ ⟨ Ψ z ( ω ) , G z ( ω ) ⟩ ∣ ξ . \left\|\sqrt{\rho_z^\omega}\sqrt{\tau_z^\omega}\right\|_1\geq\frac{\left|\langle\Psi_z(\omega),G_z(\omega)\rangle\right|}{\sqrt{\xi}}. ρ z ω τ z ω 1 ≥ ξ ∣ ⟨ Ψ z ( ω ) , G z ( ω )⟩ ∣ .
Summing over z z z , averaging over ω \omega ω , applying the triangle inequality to the sum and the average, and using (68) , we obtain
F ( ρ , τ ) ≥ 1 ξ ∣ E ω ∑ z ⟨ Ψ z ( ω ) , G z ( ω ) ⟩ ∣ = ∣ c ∣ ≥ 1 − η 0 2 , \begin{aligned}
F(\rho,\tau)\geq\frac{1}{\sqrt{\xi}}\left|\mathbb{E}_{\omega}\sum_z\langle\Psi_z(\omega),G_z(\omega)\rangle\right|=|c| \\
&\geq\sqrt{1-\eta_0^2},
\end{aligned} F ( ρ , τ ) ≥ ξ 1 E ω z ∑ ⟨ Ψ z ( ω ) , G z ( ω )⟩ = ∣ c ∣ ≥ 1 − η 0 2 ,
hence P ( ρ , τ ) ≤ η 0 P(\rho,\tau)\leq\eta_0 P ( ρ , τ ) ≤ η 0 .
Step 4: the domination bound and the entropy bound. For (65) , fix ω \omega ω and z z z . By Lemma 3.6 applied to K z ( ω ) K_z(\omega) K z ( ω ) and the first hypothesis in (64) , the reduced state ρ ~ z ω \widetilde{\rho}_z^\omega ρ z ω of G z ( ω ) G_z(\omega) G z ( ω ) on E E E satisfies
Tr ( M ρ ~ z ω ) ≤ κ p ω ( z ) Tr ( M ρ E ) \operatorname{Tr}(M\widetilde{\rho}_z^\omega)\leq\kappa p_\omega(z)\operatorname{Tr}(M\rho_E) Tr ( M ρ z ω ) ≤ κ p ω ( z ) Tr ( M ρ E )
for every positive semidefinite M M M , which is the operator inequality ρ ~ z ω ⪯ κ p ω ( z ) ρ E \widetilde{\rho}_z^\omega\preceq\kappa p_\omega(z)\rho_E ρ z ω ⪯ κ p ω ( z ) ρ E . Dividing by ξ \xi ξ gives (65) . For a measurement ( M z ) z (M_z)_z ( M z ) z , it follows that
∑ z Tr ( M z τ z ω ) ≤ κ ξ ∑ z p ω ( z ) Tr ( M z ρ E ) ≤ κ ξ max z p ω ( z ) , \sum_z\operatorname{Tr}(M_z\tau_z^\omega)\leq\frac{\kappa}{\xi}\sum_zp_\omega(z)\operatorname{Tr}(M_z\rho_E)\leq\frac{\kappa}{\xi}\max_zp_\omega(z), z ∑ Tr ( M z τ z ω ) ≤ ξ κ z ∑ p ω ( z ) Tr ( M z ρ E ) ≤ ξ κ z max p ω ( z ) ,
because ∑ z Tr ( M z ρ E ) = Tr ρ E = 1 \sum_z\operatorname{Tr}(M_z\rho_E)=\operatorname{Tr}\rho_E=1 ∑ z Tr ( M z ρ E ) = Tr ρ E = 1 .
Taking the supremum over measurements and averaging over ω \omega ω gives
p g u e s s ( Z ∣ R E ) τ ≤ ( κ / ξ ) E ω max z p ω ( z ) , p_{\mathrm{guess}}(Z\mid RE)_\tau\leq(\kappa/\xi)\mathbb{E}_{\omega}\max_zp_\omega(z), p guess ( Z ∣ R E ) τ ≤ ( κ / ξ ) E ω z max p ω ( z ) ,
and (67) follows from Definition 3.4, since P ( ρ , τ ) ≤ η 0 ≤ η P(\rho,\tau)\leq\eta_0\leq\eta P ( ρ , τ ) ≤ η 0 ≤ η and log N = n \log N=n log N = n .
Step 5: part (iv). Finally, assume the hypothesis of (iv), so that E ω ∑ z ⟨ Ψ z ( ω ) , G z ( ω ) ⟩ = ξ \mathbb{E}_{\omega}\sum_z\langle\Psi_z(\omega),G_z(\omega)\rangle=\xi E ω ∑ z ⟨ Ψ z ( ω ) , G z ( ω )⟩ = ξ . Expanding the squares and using E ω ∑ z ∥ Ψ z ( ω ) ∥ 2 = 1 \mathbb{E}_{\omega}\sum_z\|\Psi_z(\omega)\|^2=1 E ω ∑ z ∥ Ψ z ( ω ) ∥ 2 = 1 gives
E ω ∑ z ∥ Ψ z ( ω ) − G z ( ω ) ∥ 2 = 1 − 2 ξ + ξ = 1 − ξ . \mathbb{E}_{\omega}\sum_z\|\Psi_z(\omega)-G_z(\omega)\|^2=1-2\xi+\xi=1-\xi. E ω z ∑ ∥ Ψ z ( ω ) − G z ( ω ) ∥ 2 = 1 − 2 ξ + ξ = 1 − ξ .
Nothing in the proposition or its proof depends on the dimensions of A A A and E E E . The proposition also explains why smoothing is needed: the actual branches need not satisfy a bound like (66) , because a device may output a string known to Eve with a small probability, which changes its score only slightly but makes that branch fully predictable, and the nearby state removes such branches.
Fourier sampling
We use the notation of § 12 : the space F \mathcal{F} F of functions of f f f with values in A ⊗ E A \otimes E A ⊗ E , the expansion (25) in recorded sets, the operators a x a_x a x , b z b_z b z , and D z = b z † b z D_z=b_z^\dagger b_z D z = b z † b z , the final state Ψ \Psi Ψ with branches Ψ z \Psi_z Ψ z , the progress measure λ \lambda λ , and the bound λ ˉ q \bar{\lambda}_q λ ˉ q of Lemma 4.3.
Theorem 7.2 (Certified randomness from Fourier sampling). Let q ≥ 1 q \ge1 q ≥ 1 and δ ≥ 0 \delta\ge0 δ ≥ 0 , and consider an experiment in the Fourier ensemble in which the device makes at most q q q queries and has score B ( A ) ≥ 3 − 2 / N − δ B(\mathcal{A}) \ge3-2/N-\delta B ( A ) ≥ 3 − 2/ N − δ . Let η 0 \eta_0 η 0 and λ ˉ q \bar{\lambda}_q λ ˉ q be given by
η 0 = λ ˉ q + ( δ 2 ( 1 − 1 / N ) + λ ˉ q 1 − 1 / N + λ ˉ q 2 ) 1 / 2 , λ ˉ q = 2 N ∑ t = 0 q − 1 t . (69) \eta_0=\bar{\lambda}_q+\left(\frac{\delta}{2(1-1/N)}+\frac{\bar{\lambda}_q}{1-1/N}+\bar{\lambda}_q^2\right)^{1/2},
\qquad
\bar{\lambda}_q=\frac{2}{\sqrt{N}}\sum_{t=0}^{q-1}\sqrt{t}. \tag*{(69)} η 0 = λ ˉ q + ( 2 ( 1 − 1/ N ) δ + 1 − 1/ N λ ˉ q + λ ˉ q 2 ) 1/2 , λ ˉ q = N 2 t = 0 ∑ q − 1 t . (69) If η 0 < 1 \eta_0<1 η 0 < 1 , then for every η ∈ [ η 0 , 1 ] \eta\in[\eta_0,1] η ∈ [ η 0 , 1 ] ,
H min η ( Z ∣ R E ) ρ ≥ n − 4 log q − log ( n + 2 ) − 3 − 2 log 1 1 − η 0 . (70) H_{\min}^{\eta}(Z\mid RE)_\rho\ge n-4\log q-\log(n+2)-3-2\log\frac{1}{1-\eta_0}. \tag*{(70)} H m i n η ( Z ∣ R E ) ρ ≥ n − 4 log q − log ( n + 2 ) − 3 − 2 log 1 − η 0 1 . (70) Moreover, λ ˉ 1 = 0 \bar{\lambda}_1=0 λ ˉ 1 = 0 , and
η 0 ≤ δ + 2 q 3 / 4 N − 1 / 4 + 3 q 3 / 2 N − 1 / 2 . (71) \eta_0\le\sqrt{\delta}+2q^{3/4}N^{-1/4}+3q^{3/2}N^{-1/2}. \tag*{(71)} η 0 ≤ δ + 2 q 3/4 N − 1/4 + 3 q 3/2 N − 1/2 . (71)
The proof occupies this subsection up to Lemma 7.7. We first identify the auxiliary vectors, then bound the operators that produce them, and finally apply Proposition 7.1.
To identify the auxiliary vectors, we show that a near-ideal score forces each branch to be close to the vector obtained by removing one recorded point in the state ∣ χ z ⟩ \lvert\chi_z\rangle ∣ χ z ⟩ and multiplying by N f ^ ( z ) \sqrt{N}\hat{f}(z) N f ^ ( z ) , which is the structure described in Section 2.3.
Lemma 7.3 (Auxiliary vectors). Assume B ( A ) ≥ 3 − 2 / N − δ B(\mathcal{A})\ge3-2/N-\delta B ( A ) ≥ 3 − 2/ N − δ , let η 0 \eta_0 η 0 be as in (69), and put
G z = ( b z + b z † ) b z Ψ z = b z † Ψ z + D z Ψ z . G_z=(b_z+b_z^\dagger)b_z\Psi_z=b_z^\dagger\Psi_z+D_z\Psi_z. G z = ( b z + b z † ) b z Ψ z = b z † Ψ z + D z Ψ z . Then
∑ z ∥ ( D z − I ) Ψ z ∥ 2 ≤ δ 2 ( 1 − 1 / N ) + λ ˉ q 1 − 1 / N + λ ˉ q 2 , \sum_z\left\|(D_z-I)\Psi_z\right\|^2\le\frac{\delta}{2(1-1/N)}+\frac{\bar{\lambda}_q}{1-1/N}+\bar{\lambda}_q^2, z ∑ ∥ ( D z − I ) Ψ z ∥ 2 ≤ 2 ( 1 − 1/ N ) δ + 1 − 1/ N λ ˉ q + λ ˉ q 2 , ( ∑ z ∥ Ψ z − G z ∥ 2 ) 1 / 2 ≤ η 0 . \left(\sum_z\left\|\Psi_z-G_z\right\|^2\right)^{1/2}\le\eta_0. ( z ∑ ∥ Ψ z − G z ∥ 2 ) 1/2 ≤ η 0 .
Proof. Step 1: the first bound. The hypothesis and (34) give
2 ( 1 − 1 N ) ∑ z ∥ ( D z − I ) Ψ z ∥ 2 ≤ δ + 2 λ + 2 ( 1 − 1 N ) λ 2 , 2\left(1-\frac{1}{N}\right)\sum_z\left\|(D_z-I)\Psi_z\right\|^2\le\delta+2\lambda+2\left(1-\frac{1}{N}\right)\lambda^2, 2 ( 1 − N 1 ) z ∑ ∥ ( D z − I ) Ψ z ∥ 2 ≤ δ + 2 λ + 2 ( 1 − N 1 ) λ 2 ,
where λ = λ ( Ψ ) \lambda=\lambda(\Psi) λ = λ ( Ψ ) satisfies λ ≤ λ ˉ q \lambda\le\bar{\lambda}_q λ ≤ λ ˉ q by Lemma 4.3. Dividing by 2 ( 1 − 1 / N ) 2(1-1/N) 2 ( 1 − 1/ N ) gives the first bound.
Step 2: the second bound. Since G z = b z † Ψ z + D z Ψ z G_z=b_z^\dagger\Psi_z+D_z\Psi_z G z = b z † Ψ z + D z Ψ z , we have Ψ z − G z = − ( D z − I ) Ψ z − b z † Ψ z \Psi_z-G_z=-(D_z-I)\Psi_z-b_z^\dagger\Psi_z Ψ z − G z = − ( D z − I ) Ψ z − b z † Ψ z , and the triangle inequality in the direct sum over z z z gives
( ∑ z ∥ Ψ z − G z ∥ 2 ) 1 / 2 ≤ ( ∑ z ∥ ( D z − I ) Ψ z ∥ 2 ) 1 / 2 + ( ∑ z ∥ b z † Ψ z ∥ 2 ) 1 / 2 . \left(\sum_z\left\|\Psi_z-G_z\right\|^2\right)^{1/2}\le\left(\sum_z\left\|(D_z-I)\Psi_z\right\|^2\right)^{1/2}+\left(\sum_z\left\|b_z^\dagger\Psi_z\right\|^2\right)^{1/2}. ( z ∑ ∥ Ψ z − G z ∥ 2 ) 1/2 ≤ ( z ∑ ∥ ( D z − I ) Ψ z ∥ 2 ) 1/2 + ( z ∑ b z † Ψ z 2 ) 1/2 .
The last sum is at most λ 2 \lambda^2 λ 2 , because Π z \Pi_z Π z commutes with b z 2 b_z^2 b z 2 , so that
∑ z ∥ b z 2 Ψ z ∥ 2 = ∑ z ∥ Π z b z 2 Ψ ∥ 2 ≤ ∑ z ∥ b z 2 Ψ ∥ 2 , \sum_z \lVert b_z^2\Psi_z\rVert^2 = \sum_z \lVert\Pi_z b_z^2\Psi\rVert^2 \leq\sum_z \lVert b_z^2\Psi\rVert^2, z ∑ ∥ b z 2 Ψ z ∥ 2 = z ∑ ∥ Π z b z 2 Ψ ∥ 2 ≤ z ∑ ∥ b z 2 Ψ ∥ 2 ,
and the right side is λ 2 \lambda^2 λ 2 by the definition of λ \lambda λ . Hence, by the first bound and λ ≤ λ ˉ q \lambda\leq\bar{\lambda}_q λ ≤ λ ˉ q , the left side of the triangle inequality is at most η 0 \eta_0 η 0 .
The device as a bounded polynomial. For a fixed f f f , the vector G z ( f ) G_z(f) G z ( f ) can be written in terms of the unitary V f V_f V f of the device. Let ( ∂ x Φ ) ( f ) = ( Φ ( f x , + ) − Φ ( f x , − ) ) / 2 (\partial_x\Phi)(f) = (\Phi(f^{x,+})-\Phi(f^{x,-}))/2 ( ∂ x Φ ) ( f ) = ( Φ ( f x , + ) − Φ ( f x , − )) /2 be the discrete derivative of Section 4.1, which is the operator a x a_x a x , and let ∂ χ z = N − 1 / 2 ∑ x χ z ( x ) ∂ x \partial_{\chi_z}=N^{-1/2}\sum_x\chi_z(x)\partial_x ∂ χ z = N − 1/2 ∑ x χ z ( x ) ∂ x be the derivative along the character χ z \chi_z χ z , which is the operator b z b_z b z . Both act on functions of f f f with values in any vector space, and they commute with the pointwise application of any linear map.
The final state is the pointwise image of the operator-valued function f ↦ V f f\mapsto V_f f ↦ V f under the linear map T ↦ ( T ⊗ I E ) ψ 0 T\mapsto(T\otimes I_E)\psi_0 T ↦ ( T ⊗ I E ) ψ 0 , and Π z \Pi_z Π z commutes with b z b_z b z , so
( b z Ψ z ) ( f ) = ( Π z ( ∂ χ z V ) ( f ) ⊗ I E ) ψ 0 . (b_z\Psi_z)(f)=(\Pi_z(\partial_{\chi_z}V)(f)\otimes I_E)\psi_0. ( b z Ψ z ) ( f ) = ( Π z ( ∂ χ z V ) ( f ) ⊗ I E ) ψ 0 .
Multiplying by N f ^ ( z ) \sqrt{N}\hat{f}(z) N f ^ ( z ) , which is the operator b z + b z † b_z+b_z^\dagger b z + b z † , gives
G z ( f ) = N f ^ ( z ) ( Π z ( ∂ χ z V ) ( f ) ⊗ I E ) ψ 0 = ( K z ( f ) ⊗ I E ) ψ 0 , K z ( f ) = N f ^ ( z ) Π z ( ∂ χ z V ) ( f ) , (72) \begin{aligned}
G_z(f)&=\sqrt{N}\hat{f}(z)(\Pi_z(\partial_{\chi_z}V)(f)\otimes I_E)\psi_0=(K_z(f)\otimes I_E)\psi_0,\\
K_z(f)&=\sqrt{N}\hat{f}(z)\Pi_z(\partial_{\chi_z}V)(f), \tag*{(72)}
\end{aligned} G z ( f ) K z ( f ) = N f ^ ( z ) ( Π z ( ∂ χ z V ) ( f ) ⊗ I E ) ψ 0 = ( K z ( f ) ⊗ I E ) ψ 0 , = N f ^ ( z ) Π z ( ∂ χ z V ) ( f ) , (72)
where ( ∂ χ z V ) ( f ) (\partial_{\chi_z}V)(f) ( ∂ χ z V ) ( f ) is an operator on A A A . We now bound its norm, for every f f f , by Markov’s inequality for polynomials.
Lemma 7.4 (The multilinear extension). Write V f = ∑ ∣ S ∣ ≤ q V ^ S χ S ( f ) V_f=\sum_{|S|\leq q}\widehat{V}_S\chi_S(f) V f = ∑ ∣ S ∣ ≤ q V S χ S ( f ) for the expansion (25) of the operator-valued function f ↦ V f f\mapsto V_f f ↦ V f . The coefficients V ^ S \widehat{V}_S V S vanish for ∣ S ∣ > q |S|>q ∣ S ∣ > q because V f V_f V f is a product of fixed unitaries and of q q q factors P ∅ + ∑ x f ( x ) P x c P_{\varnothing}+\sum_x f(x)P_x^c P ∅ + ∑ x f ( x ) P x c , each affine in the values of f f f . Define
V ~ ( u ) = ∑ ∣ S ∣ ≤ q V ^ S ∏ y ∈ S u y for u ∈ R { 0 , 1 } n . \widetilde{V}(u)=\sum_{|S|\leq q}\widehat{V}_S\prod_{y\in S}u_y\qquad\text{for }u\in\mathbb{R}^{\{0,1\}^n}. V ( u ) = ∣ S ∣ ≤ q ∑ V S y ∈ S ∏ u y for u ∈ R { 0 , 1 } n . Then:
(i) V ~ ( f ) = V f \widetilde{V}(f)=V_f V ( f ) = V f for every f f f ;
(ii) ∥ V ~ ( u ) ∥ ≤ 1 \lVert\widetilde{V}(u)\rVert\leq1 ∥ V ( u )∥ ≤ 1 for every u ∈ [ − 1 , 1 ] { 0 , 1 } n u\in[-1,1]^{\{0,1\}^n} u ∈ [ − 1 , 1 ] { 0 , 1 } n ;
(iii) ( ∂ V ~ / ∂ u x ) ( f ) = ( ∂ x V ) ( f ) (\partial\widetilde{V}/\partial u_x)(f)=(\partial_xV)(f) ( ∂ V / ∂ u x ) ( f ) = ( ∂ x V ) ( f ) for every f f f and x x x .
Proof. Part (i) is the expansion.
For (ii), let f ~ \widetilde{f} f be a random function whose values are independent signs with E f ~ ( y ) = u y \mathbb{E}\widetilde{f}(y)=u_y E f ( y ) = u y . Then E χ S ( f ~ ) = ∏ y ∈ S u y \mathbb{E}\chi_S(\widetilde{f})=\prod_{y\in S}u_y E χ S ( f ) = ∏ y ∈ S u y , so V ~ ( u ) = E V f ~ \widetilde{V}(u)=\mathbb{E}V_{\widetilde{f}} V ( u ) = E V f is an average of unitaries and has norm at most 1.
For (iii), V ~ \widetilde{V} V is affine in each coordinate: V ~ ( u ) = V ~ 0 ( u ) + u x V ~ 1 ( u ) \widetilde{V}(u)=\widetilde{V}_0(u)+u_x\widetilde{V}_1(u) V ( u ) = V 0 ( u ) + u x V 1 ( u ) with V ~ 0 , V ~ 1 \widetilde{V}_0,\widetilde{V}_1 V 0 , V 1 independent of u x u_x u x , so ∂ V ~ / ∂ u x = V ~ 1 \partial\widetilde{V}/\partial u_x=\widetilde{V}_1 ∂ V / ∂ u x = V 1 , while, by (i),
( ∂ x V ) ( f ) = 1 2 ( V ~ ( f x , + ) − V ~ ( f x , − ) ) = V ~ 1 ( f ) . (\partial_xV)(f)=\frac{1}{2}\left(\widetilde{V}(f^{x,+})-\widetilde{V}(f^{x,-})\right)=\widetilde{V}_1(f). ( ∂ x V ) ( f ) = 2 1 ( V ( f x , + ) − V ( f x , − ) ) = V 1 ( f ) .
The extension must be the multilinear one: another polynomial that agrees with V V V on the signs, such as the product of the operators P ∅ + ∑ x u x P x c P_{\varnothing}+\sum_xu_xP_x^c P ∅ + ∑ x u x P x c , is also bounded on the cube, but its partial derivatives at the signs need not equal ∂ x V \partial_xV ∂ x V .
Lemma 7.5 (Markov’s inequality at an endpoint). Let Y \mathcal{Y} Y be a finite-dimensional normed space, and let g ( t ) = ∑ k = 0 d y k t k g(t)=\sum_{k=0}^{d}y_k t^k g ( t ) = ∑ k = 0 d y k t k with y k ∈ Y y_k\in\mathcal{Y} y k ∈ Y . Then
∥ g ′ ( 1 ) ∥ ≤ d 2 max − 1 ≤ t ≤ 1 ∥ g ( t ) ∥ . \lVert g'(1)\rVert\le d^2\max_{-1\le t\le1}\lVert g(t)\rVert. ∥ g ′ ( 1 )∥ ≤ d 2 − 1 ≤ t ≤ 1 max ∥ g ( t )∥ . Proof. For d = 0 d=0 d = 0 there is nothing to prove, so we let d ≥ 1 d\ge1 d ≥ 1 .
Step 1: interpolation at the Chebyshev nodes. Let t j = cos ( j π / d ) t_j=\cos(j\pi/d) t j = cos ( j π / d ) for j = 0 , … , d j=0,\ldots,d j = 0 , … , d , so that 1 = t 0 > t 1 > ⋯ > t d = − 1 1=t_0>t_1>\cdots>t_d=-1 1 = t 0 > t 1 > ⋯ > t d = − 1 , and let
ℓ j ( t ) = ∏ k ≠ j t − t k t j − t k . \ell_j(t)=\prod_{k\ne j}\frac{t-t_k}{t_j-t_k}. ℓ j ( t ) = k = j ∏ t j − t k t − t k . be the Lagrange polynomials for these nodes. Interpolation at d + 1 d+1 d + 1 nodes is exact for polynomials of degree at most d d d , coordinate by coordinate, so
g = ∑ j ℓ j g ( t j ) g=\sum_j\ell_jg(t_j) g = j ∑ ℓ j g ( t j ) and
∥ g ′ ( 1 ) ∥ ≤ ( ∑ j ∣ ℓ j ′ ( 1 ) ∣ ) max j ∥ g ( t j ) ∥ . \lVert g'(1)\rVert\le\left(\sum_j\lvert\ell_j'(1)\rvert\right)\max_j\lVert g(t_j)\rVert. ∥ g ′ ( 1 )∥ ≤ ( j ∑ ∣ ℓ j ′ ( 1 )∣ ) j max ∥ g ( t j )∥ . Step 2: the signs of the derivatives ℓ j ′ ( 1 ) \ell_j'(1) ℓ j ′ ( 1 ) . We claim that ( − 1 ) j ℓ j ′ ( 1 ) > 0 (-1)^j\ell_j'(1)>0 ( − 1 ) j ℓ j ′ ( 1 ) > 0 for every j j j .
For j = 0 j=0 j = 0 , we have ℓ 0 ( 1 ) = 1 \ell_0(1)=1 ℓ 0 ( 1 ) = 1 and ℓ 0 ′ ( 1 ) = ∑ k ≥ 1 ( 1 − t k ) − 1 > 0 \ell_0'(1)=\sum_{k\ge1}(1-t_k)^{-1}>0 ℓ 0 ′ ( 1 ) = ∑ k ≥ 1 ( 1 − t k ) − 1 > 0 .
For j ≥ 1 j\ge1 j ≥ 1 , ℓ j \ell_j ℓ j vanishes at t 0 = 1 t_0=1 t 0 = 1 , so
ℓ j ′ ( 1 ) = ∏ k ∉ { 0 , j } ( 1 − t k ) ∏ k ≠ j ( t j − t k ) , \ell_j'(1)=\frac{\prod_{k\notin\{0,j\}}(1-t_k)}{\prod_{k\ne j}(t_j-t_k)}, ℓ j ′ ( 1 ) = ∏ k = j ( t j − t k ) ∏ k ∈ / { 0 , j } ( 1 − t k ) , whose numerator is positive and whose denominator has exactly j j j negative factors, namely those with k < j k<j k < j .
Hence ∑ j ∣ ℓ j ′ ( 1 ) ∣ = ∑ j ( − 1 ) j ℓ j ′ ( 1 ) \sum_j\lvert\ell_j'(1)\rvert=\sum_j(-1)^j\ell_j'(1) ∑ j ∣ ℓ j ′ ( 1 )∣ = ∑ j ( − 1 ) j ℓ j ′ ( 1 ) .
Step 3: the value of this sum. The Chebyshev polynomial T d T_d T d , defined by T d ( cos ϑ ) = cos ( d ϑ ) T_d(\cos\vartheta)=\cos(d\vartheta) T d ( cos ϑ ) = cos ( d ϑ ) , has degree d d d and satisfies T d ( t j ) = ( − 1 ) j T_d(t_j)=(-1)^j T d ( t j ) = ( − 1 ) j , so interpolation gives
T d = ∑ j ( − 1 ) j ℓ j T_d=\sum_j(-1)^j\ell_j T d = j ∑ ( − 1 ) j ℓ j and
∑ j ( − 1 ) j ℓ j ′ ( 1 ) = T d ′ ( 1 ) . \sum_j(-1)^j\ell_j'(1)=T_d'(1). j ∑ ( − 1 ) j ℓ j ′ ( 1 ) = T d ′ ( 1 ) . Differentiating T d ( cos ϑ ) = cos ( d ϑ ) T_d(\cos\vartheta)=\cos(d\vartheta) T d ( cos ϑ ) = cos ( d ϑ ) gives T d ′ ( cos ϑ ) = d sin ( d ϑ ) / sin ϑ T_d'(\cos\vartheta)=d\sin(d\vartheta)/\sin\vartheta T d ′ ( cos ϑ ) = d sin ( d ϑ ) / sin ϑ for 0 < ϑ < π 0<\vartheta<\pi 0 < ϑ < π , and letting ϑ → 0 \vartheta\to0 ϑ → 0 gives T d ′ ( 1 ) = d 2 T_d'(1)=d^2 T d ′ ( 1 ) = d 2 .
Lemma 7.6 (Derivative bound). For every f f f and z z z ,
∥ ( ∂ χ z V ) ( f ) ∥ ≤ 2 q 2 / N . \lVert(\partial_{\chi_z}V)(f)\rVert\le2q^2/\sqrt{N}. ∥( ∂ χ z V ) ( f )∥ ≤ 2 q 2 / N . Consequently, ∥ K z ( f ) ∥ 2 ≤ 4 q 4 p f ( z ) \lVert K_z(f)\rVert^2\le4q^4p_f(z) ∥ K z ( f ) ∥ 2 ≤ 4 q 4 p f ( z ) .
Proof. Step 1: two polynomials in one variable. Fix f f f and z z z , and split the addresses into
I + = { x : χ z ( x ) = f ( x ) } , I − = { x : χ z ( x ) = − f ( x ) } . I_+=\{x:\chi_z(x)=f(x)\},\qquad I_-=\{x:\chi_z(x)=-f(x)\}. I + = { x : χ z ( x ) = f ( x )} , I − = { x : χ z ( x ) = − f ( x )} . For real t t t , let u ± ( t ) u^\pm(t) u ± ( t ) be the point of R { 0 , 1 } n \mathbb{R}^{\{0,1\}^n} R { 0 , 1 } n with coordinates t f ( x ) tf(x) t f ( x ) for x ∈ I ± x\in I_\pm x ∈ I ± and f ( x ) f(x) f ( x ) otherwise, and let g ± ( t ) = V ~ ( u ± ( t ) ) g_\pm(t)=\widetilde{V}(u^\pm(t)) g ± ( t ) = V ( u ± ( t )) . Each monomial ∏ y ∈ S u y \prod_{y\in S}u_y ∏ y ∈ S u y with ∣ S ∣ ≤ q \lvert S\rvert\le q ∣ S ∣ ≤ q becomes a constant multiple
of ∣ S ∩ I ± ∣ |S\cap\mathcal{I}_{\pm}| ∣ S ∩ I ± ∣ , so g ± g_{\pm} g ± is a polynomial in t t t of degree at most q q q with operator coefficients. Moreover, ∥ g ± ( t ) ∥ ≤ 1 \lVert g_{\pm}(t)\rVert\leq1 ∥ g ± ( t )∥ ≤ 1 for ∣ t ∣ ≤ 1 |t|\leq1 ∣ t ∣ ≤ 1 by Lemma 7.4 (ii), because u ± ( t ) u^{\pm}(t) u ± ( t ) then lies in the cube.
Step 2: the derivative along χ z \chi_z χ z . By the chain rule and Lemma 7.4 (iii),
g ± ′ ( 1 ) = ∑ x ∈ I ± f ( x ) ∂ V ~ ∂ u x ( f ) = ∑ x ∈ I ± f ( x ) ( ∂ x V ) ( f ) . g_{\pm}'(1)=\sum_{x\in\mathcal{I}_{\pm}}f(x)\frac{\partial\widetilde{V}}{\partial u_x}(f)=\sum_{x\in\mathcal{I}_{\pm}}f(x)(\partial_xV)(f). g ± ′ ( 1 ) = x ∈ I ± ∑ f ( x ) ∂ u x ∂ V ( f ) = x ∈ I ± ∑ f ( x ) ( ∂ x V ) ( f ) .
Since f ( x ) = χ z ( x ) f(x)=\chi_z(x) f ( x ) = χ z ( x ) on I + \mathcal{I}_{+} I + and f ( x ) = − χ z ( x ) f(x)=-\chi_z(x) f ( x ) = − χ z ( x ) on I − \mathcal{I}_{-} I − , we obtain
N ( ∂ χ z V ) ( f ) = ∑ x χ z ( x ) ( ∂ x V ) ( f ) = g + ′ ( 1 ) − g − ′ ( 1 ) . \sqrt{N}(\partial_{\chi_z}V)(f)=\sum_x\chi_z(x)(\partial_xV)(f)=g_+'(1)-g_-'(1). N ( ∂ χ z V ) ( f ) = x ∑ χ z ( x ) ( ∂ x V ) ( f ) = g + ′ ( 1 ) − g − ′ ( 1 ) .
Step 3: Markov’s inequality. By Lemma 7.5 , applied in the space of operators on A A A with the operator norm, we have ∥ g ± ′ ( 1 ) ∥ ≤ q 2 \lVert g_{\pm}'(1)\rVert\leq q^2 ∥ g ± ′ ( 1 )∥ ≤ q 2 . The second claim follows from (72) , ∥ Π z ∥ ≤ 1 \lVert\Pi_z\rVert\leq1 ∥ Π z ∥ ≤ 1 , and N f ^ ( z ) 2 = N p f ( z ) N\widehat{f}(z)^2=Np_f(z) N f ( z ) 2 = N p f ( z ) .
The splitting into two directions is needed because the normalized character direction χ z / N \chi_z/\sqrt{N} χ z / N , whose coordinates are ± N − 1 / 2 \pm N^{-1/2} ± N − 1/2 , does not stay inside the cube when followed from f f f , whereas each of u ± ( t ) u^{\pm}(t) u ± ( t ) does for ∣ t ∣ ≤ 1 |t|\leq1 ∣ t ∣ ≤ 1 . Apart from the score bound and the growth bound of Lemma 4.3 , the bound on the number of queries enters the proof only here.
Finally, we bound E f max z p f ( z ) \mathbb{E}_f\max_z p_f(z) E f max z p f ( z ) , the expected probability of the most likely outcome, which is Eve’s probability of guessing an ideal sample.
Lemma 7.7 (Maximal Fourier weight). For a uniformly random f f f ,
E f max z p f ( z ) ≤ ( 2 ln ( 2 N ) + 2 ) / N ≤ 2 ( n + 2 ) / N . \mathbb{E}_f\max_z p_f(z)\leq(2\ln(2N)+2)/N\leq2(n+2)/N. E f z max p f ( z ) ≤ ( 2 ln ( 2 N ) + 2 ) / N ≤ 2 ( n + 2 ) / N . Moreover, for every u ≥ 0 u\geq0 u ≥ 0 ,
Pr [ max z N p f ( z ) ≥ u ] ≤ 2 N e − u / 2 . \Pr\left[\max_z Np_f(z)\geq u\right]\leq2Ne^{-u/2}. Pr [ z max N p f ( z ) ≥ u ] ≤ 2 N e − u /2 . Proof. Fix z z z . The signs r x = χ z ( x ) f ( x ) r_x=\chi_z(x)f(x) r x = χ z ( x ) f ( x ) are independent and uniform, and
N p f ( z ) = N − 1 ( ∑ x r x ) 2 . Np_f(z)=N^{-1}\left(\sum_x r_x\right)^2. N p f ( z ) = N − 1 ( x ∑ r x ) 2 . For ϑ ≥ 0 \vartheta\geq0 ϑ ≥ 0 ,
E e ϑ ∑ x r x = ( cosh ϑ ) N ≤ e N ϑ 2 / 2 , \mathbb{E}e^{\vartheta\sum_x r_x}=(\cosh\vartheta)^N\leq e^{N\vartheta^2/2}, E e ϑ ∑ x r x = ( cosh ϑ ) N ≤ e N ϑ 2 /2 , because cosh ϑ ≤ e ϑ 2 / 2 \cosh\vartheta\leq e^{\vartheta^2/2} cosh ϑ ≤ e ϑ 2 /2 , since ( 2 k ) ! ≥ 2 k k ! (2k)!\geq2^k k! ( 2 k )! ≥ 2 k k ! . By Markov’s inequality with ϑ = s / N \vartheta=s/N ϑ = s / N ,
Pr [ ∑ x r x ≥ s ] ≤ e − ϑ s ( cosh ϑ ) N ≤ e − s 2 / ( 2 N ) , \Pr\left[\sum_x r_x\geq s\right]\leq e^{-\vartheta s}(\cosh\vartheta)^N\leq e^{-s^2/(2N)}, Pr [ x ∑ r x ≥ s ] ≤ e − ϑ s ( cosh ϑ ) N ≤ e − s 2 / ( 2 N ) , Pr [ ∣ ∑ x r x ∣ ≥ s ] ≤ 2 e − s 2 / ( 2 N ) \Pr\left[\left|\sum_x r_x\right|\geq s\right]\leq2e^{-s^2/(2N)} Pr [ x ∑ r x ≥ s ] ≤ 2 e − s 2 / ( 2 N ) by symmetry.
With s = u N s=\sqrt{uN} s = u N , where u ≥ 0 u\geq0 u ≥ 0 , this reads Pr [ N p f ( z ) ≥ u ] ≤ 2 e − u / 2 \Pr[Np_f(z)\geq u]\leq2e^{-u/2} Pr [ N p f ( z ) ≥ u ] ≤ 2 e − u /2 , and the union bound over z z z gives the second assertion.
The first assertion follows by integrating this tail bound. For every u 0 ≥ 0 u_0\geq0 u 0 ≥ 0 ,
E max z N p f ( z ) = ∫ 0 ∞ Pr [ max z N p f ( z ) ≥ u ] d u \mathbb{E}\max_z Np_f(z)=\int_0^\infty\Pr\left[\max_z Np_f(z)\geq u\right]\,du E z max N p f ( z ) = ∫ 0 ∞ Pr [ z max N p f ( z ) ≥ u ] d u ≤ u 0 + ∫ u 0 ∞ 2 N e − u / 2 d u = u 0 + 4 N e − u 0 / 2 , \leq u_0+\int_{u_0}^\infty2Ne^{-u/2}\,du=u_0+4Ne^{-u_0/2}, ≤ u 0 + ∫ u 0 ∞ 2 N e − u /2 d u = u 0 + 4 N e − u 0 /2 , and u 0 = 2 ln ( 2 N ) u_0=2\ln(2N) u 0 = 2 ln ( 2 N ) gives
2 ln ( 2 N ) + 2 = 2 ( n + 1 ) ln 2 + 2 ≤ 2 ( n + 2 ) . 2\ln(2N)+2=2(n+1)\ln2+2\leq2(n+2). 2 ln ( 2 N ) + 2 = 2 ( n + 1 ) ln 2 + 2 ≤ 2 ( n + 2 ) .
Proof of Theorem 7.2 . Step 1: the hypotheses and the entropy bound. By Lemma 7.3 , the hypotheses (64) of Proposition 7.1 hold with G z ( f ) G_z(f) G z ( f ) given by (72) , with κ = 4 q 4 \kappa= 4q^4 κ = 4 q 4 by Lemma 7.6 , and with the stated η 0 \eta_0 η 0 . Here ∑ f ∑ z ∥ Ψ z ( f ) − G z ( f ) ∥ 2 = ∑ z ∥ Ψ z − G z ∥ 2 \sum_f \sum_z \lVert\Psi_z(f)-G_z(f)\rVert^2 = \sum_z \lVert\Psi_z-G_z\rVert^2 ∑ f ∑ z ∥ Ψ z ( f ) − G z ( f ) ∥ 2 = ∑ z ∥ Ψ z − G z ∥ 2 , with the norm of F \mathcal{F} F on the right. The proposition, with its divisor ξ ≥ ( 1 − η 0 ) 2 \xi\ge(1-\eta_0)^2 ξ ≥ ( 1 − η 0 ) 2 , and Lemma 7.7 give (70) , since
log ( 4 q 4 ) = 2 + 4 log q , log ( N E f max z p f ( z ) ) ≤ 1 + log ( n + 2 ) . \log(4q^4)=2+4\log q,\qquad\log\left(N\mathbb{E}_f\max_z p_f(z)\right)\le1+\log(n+2). log ( 4 q 4 ) = 2 + 4 log q , log ( N E f z max p f ( z ) ) ≤ 1 + log ( n + 2 ) .
Step 2: the parameters. The only term of the sum defining λ ˉ 1 \bar{\lambda}_1 λ ˉ 1 is 0 = 0 \sqrt{0}=0 0 = 0 , and, by Lemma 4.3 , λ ˉ q ≤ ( 4 / 3 ) q 3 / 2 N − 1 / 2 \bar{\lambda}_q\le(4/3)q^{3/2}N^{-1/2} λ ˉ q ≤ ( 4/3 ) q 3/2 N − 1/2 . Using a + b + c ≤ a + b + c \sqrt{a+b+c}\le\sqrt{a}+\sqrt{b}+\sqrt{c} a + b + c ≤ a + b + c and 1 / ( 1 − 1 / N ) ≤ 2 1/(1-1/N)\le2 1/ ( 1 − 1/ N ) ≤ 2 , we obtain
η 0 ≤ δ + 2 λ ˉ q + 2 λ ˉ q ≤ δ + 8 3 q 3 / 4 N − 1 / 4 + 8 3 q 3 / 2 N − 1 / 2 , \begin{aligned}
\eta_0\le\sqrt{\delta}+\sqrt{2\bar{\lambda}_q}+2\bar{\lambda}_q \\
&\le\sqrt{\delta}+\sqrt{\frac{8}{3}}q^{3/4}N^{-1/4}+\frac{8}{3}q^{3/2}N^{-1/2},
\end{aligned} η 0 ≤ δ + 2 λ ˉ q + 2 λ ˉ q ≤ δ + 3 8 q 3/4 N − 1/4 + 3 8 q 3/2 N − 1/2 ,
and 8 / 3 ≤ 2 \sqrt{8/3}\le2 8/3 ≤ 2 and 8 / 3 ≤ 3 8/3\le3 8/3 ≤ 3 give (71) .
For q = 1 q=1 q = 1 the polynomial V ~ \widetilde{V} V is affine, so the operator
( ∂ χ z V ) ( f ) = N − 1 / 2 U 1 ( ∑ x χ z ( x ) P x c ) U 0 (\partial_{\chi_z}V)(f)=N^{-1/2}U_1\left(\sum_x\chi_z(x)P_x^c\right)U_0 ( ∂ χ z V ) ( f ) = N − 1/2 U 1 ( x ∑ χ z ( x ) P x c ) U 0
has norm at most N − 1 / 2 N^{-1/2} N − 1/2 because the P x c P_x^c P x c are mutually orthogonal projections, and the factor 4 q 4 4q^4 4 q 4 may be replaced by 1. If moreover δ = 0 \delta=0 δ = 0 , then η 0 = 0 \eta_0=0 η 0 = 0 , the branches equal the auxiliary vectors, and the conditional states satisfy
Tr ( M ρ z f ) ≤ p f ( z ) Tr ( M ρ E ) for all positive semidefinite M . \operatorname{Tr}(M\rho_z^f)\le p_f(z)\operatorname{Tr}(M\rho_E)\qquad\text{for all positive semidefinite }M. Tr ( M ρ z f ) ≤ p f ( z ) Tr ( M ρ E ) for all positive semidefinite M .
Since ∑ z ρ z f = ρ E = ∑ z p f ( z ) ρ E \sum_z\rho_z^f=\rho_E=\sum_zp_f(z)\rho_E ∑ z ρ z f = ρ E = ∑ z p f ( z ) ρ E , all these inequalities are equalities. This recovers the exact privacy statement of Proposition 4.6 for arbitrary one-query devices, not only for phase queries.
For one phase query, a near-ideal score forces the actual family of conditional states to be close to the ideal family ρ ∘ \rho^\circ ρ ∘ with ( ρ ∘ ) z f = p f ( z ) ρ E (\rho^\circ)_z^f=p_f(z)\rho_E ( ρ ∘ ) z f = p f ( z ) ρ E , in which the output is an exact sample from p f p_f p f and is independent of Eve’s register. This is the robust form of Proposition 4.6 , and it does not pass through a comparison family.
Proposition 7.8 (Closeness to the ideal family). Let the device make a single phase query, as defined in Section 4.5, with Eve’s register arbitrary, and let δ = 3 − 2 / N − B ( A ) \delta=3-2/N-B(A) δ = 3 − 2/ N − B ( A ) be its deficit, so that 0 ≤ δ ≤ 2 0\le\delta\le2 0 ≤ δ ≤ 2 by Proposition 4.6 . Write η δ = δ − δ 2 / 4 \eta_\delta=\sqrt{\delta-\delta^2/4} η δ = δ − δ 2 /4 . Then
P ( ρ , ρ ∘ ) ≤ η δ , and consequently H min η δ ( Z ∣ R E ) ρ ≥ n − log ( 2 ( n + 2 ) ) . P(\rho,\rho^\circ)\le\eta_\delta,\qquad\text{and consequently}\qquad H_{\min}^{\eta_\delta}(Z\mid RE)_\rho\ge n-\log(2(n+2)). P ( ρ , ρ ∘ ) ≤ η δ , and consequently H m i n η δ ( Z ∣ R E ) ρ ≥ n − log ( 2 ( n + 2 )) .
Proof. Step 1: the score. By (41) , Ψ ( f ) = ∑ w f ^ ( w ) Ψ ( χ w ) \Psi(f)=\sum_w\widehat{f}(w)\Psi(\chi_w) Ψ ( f ) = ∑ w f ( w ) Ψ ( χ w ) , and by Proposition 4.6 ,
B ( A ) = 1 − 2 / N + 2 σ with σ = 1 N ∑ w ∥ Π w Ψ ( χ w ) ∥ 2 , B(A)=1-2/N+2\sigma\qquad\text{with}\qquad\sigma=\frac{1}{N}\sum_w\lVert\Pi_w\Psi(\chi_w)\rVert^2, B ( A ) = 1 − 2/ N + 2 σ with σ = N 1 w ∑ ∥ Π w Ψ ( χ w ) ∥ 2 ,
so δ = 2 ( 1 − σ ) \delta=2(1-\sigma) δ = 2 ( 1 − σ ) . Put g w = Π w Ψ ( χ w ) g_w=\Pi_w\Psi(\chi_w) g w = Π w Ψ ( χ w ) and G z ∘ ( f ) = f ^ ( z ) g z G_z^\circ(f)=\widehat{f}(z)g_z G z ∘ ( f ) = f ( z ) g z .
Step 2: the fidelity with the ideal family. The vector f ^ ( z ) Ψ ( χ z ) \widehat{f}(z)\Psi(\chi_z) f ( z ) Ψ ( χ z ) has reduced state p f ( z ) ρ E = ( ρ ∘ ) z f p_f(z)\rho_E=(\rho^\circ)_z^f p f ( z ) ρ E = ( ρ ∘ ) z f on E E E , because Ψ ( χ z ) = ( V χ z ⊗ I E ) ψ 0 \Psi(\chi_z)=(V_{\chi_z}\otimes I_E)\psi_0 Ψ ( χ z ) = ( V χ z ⊗ I E ) ψ 0 with V χ z V_{\chi_z} V χ z unitary on A A A . Hence (24) gives, for every f f f and z z z ,
∥ ρ z f ( ρ ∘ ) z f ∥ 1 ≥ ∣ ⟨ Ψ z ( f ) , f ^ ( z ) Ψ ( χ z ) ⟩ ∣ = ∣ ⟨ Ψ z ( f ) , G z ∘ ( f ) ⟩ ∣ . \left\lVert\sqrt{\rho_z^f}\sqrt{(\rho^\circ)_z^f}\right\rVert_1\ge\left|\left\langle\Psi_z(f),\widehat{f}(z)\Psi(\chi_z)\right\rangle\right|=\left|\left\langle\Psi_z(f),G_z^\circ(f)\right\rangle\right|. ρ z f ( ρ ∘ ) z f 1 ≥ ⟨ Ψ z ( f ) , f ( z ) Ψ ( χ z ) ⟩ = ∣ ⟨ Ψ z ( f ) , G z ∘ ( f ) ⟩ ∣ .
where the equality holds because Π z \Pi_z Π z is an orthogonal projection and Ψ z ( f ) = Π z Ψ ( f ) \Psi_z(f)=\Pi_z\Psi(f) Ψ z ( f ) = Π z Ψ ( f ) . Since
Ψ z ( f ) = ∑ w f ^ ( w ) Π z Ψ ( χ w ) and E f f ^ ( w ) f ^ ( z ) = 1 [ w = z ] / N , \Psi_z(f)=\sum_w \widehat{f}(w)\Pi_z\Psi(\chi_w)\qquad\text{and}\qquad\mathbb{E}_f\widehat{f}(w)\widehat{f}(z)=1[w=z]/N, Ψ z ( f ) = w ∑ f ( w ) Π z Ψ ( χ w ) and E f f ( w ) f ( z ) = 1 [ w = z ] / N ,
we have
E f ∑ z ⟨ Ψ z ( f ) , G z ∘ ( f ) ⟩ = 1 N ∑ z ∥ g z ∥ 2 = σ , \mathbb{E}_f\sum_z\langle\Psi_z(f),G_z^\circ(f)\rangle=\frac{1}{N}\sum_z\lVert g_z\rVert^2=\sigma, E f z ∑ ⟨ Ψ z ( f ) , G z ∘ ( f )⟩ = N 1 z ∑ ∥ g z ∥ 2 = σ ,
F ( ρ , ρ ∘ ) ≥ E f ∑ z ∣ ⟨ Ψ z ( f ) , G z ∘ ( f ) ⟩ ∣ ≥ σ = 1 − δ / 2 , \begin{aligned}
F(\rho,\rho^\circ)\geq\mathbb{E}_f\sum_z\left|\langle\Psi_z(f),G_z^\circ(f)\rangle\right| \\
&\geq\sigma=1-\delta/2,
\end{aligned} F ( ρ , ρ ∘ ) ≥ E f z ∑ ∣ ⟨ Ψ z ( f ) , G z ∘ ( f )⟩ ∣ ≥ σ = 1 − δ /2 ,
P ( ρ , ρ ∘ ) ≤ 1 − ( 1 − δ / 2 ) 2 = η δ . P(\rho,\rho^\circ)\leq\sqrt{1-(1-\delta/2)^2}=\eta_\delta. P ( ρ , ρ ∘ ) ≤ 1 − ( 1 − δ /2 ) 2 = η δ .
where the second line follows by summing the first display of this step over z z z and averaging over f f f , the third uses the first line, the triangle inequality, and Step 1, and the last uses the definition of P P P .
Step 3: the min-entropy of the ideal family. In the family ρ ∘ \rho^\circ ρ ∘ , Eve’s state does not depend on z z z , so for every measurement
∑ z Tr ( M z p f ( z ) ρ E ) ≤ max z p f ( z ) , \sum_z\operatorname{Tr}(M_zp_f(z)\rho_E)\leq\max_z p_f(z), z ∑ Tr ( M z p f ( z ) ρ E ) ≤ z max p f ( z ) ,
with equality for the measurement that always outputs a heaviest z z z . Hence, by Lemma 7.7 ,
p g u e s s ( Z ∣ R E ) ρ ∘ = E f max z p f ( z ) ≤ 2 ( n + 2 ) / N , p_{\mathrm{guess}}(Z\mid RE)_{\rho^\circ}=\mathbb{E}_f\max_z p_f(z)\leq2(n+2)/N, p guess ( Z ∣ R E ) ρ ∘ = E f z max p f ( z ) ≤ 2 ( n + 2 ) / N ,
and H min ( Z ∣ R E ) ρ ∘ ≥ n − log ( 2 ( n + 2 ) ) H_{\min}(Z\mid RE)_{\rho^\circ}\geq n-\log(2(n+2)) H m i n ( Z ∣ R E ) ρ ∘ ≥ n − log ( 2 ( n + 2 )) . The claim follows from Definition 3.4 , since ρ ∘ \rho^\circ ρ ∘ is a normalized family.
The case q = 1 q=1 q = 1 of Theorem 7.2 , specialized as above, gives δ / 2 ( 1 − 1 / N ) \sqrt{\delta/2(1-1/N)} δ /2 ( 1 − 1/ N ) as the smoothing parameter. For large N N N and small positive deficit δ \delta δ , this is smaller than the ideal-family parameter by a factor approaching 2 \sqrt{2} 2 . The exact ratio is [ 2 ( 1 − 1 / N ) ( 1 − δ / 4 ) ] − 1 / 2 [2(1-1/N)(1-\delta/4)]^{-1/2} [ 2 ( 1 − 1/ N ) ( 1 − δ /4 ) ] − 1/2 . It certifies closeness to a comparison family rather than to the ideal family itself.
Haar-random states
We use the notation of § 13 : vector-valued polynomials, patterns, the level operator C C C , the progress measure λ \lambda λ , the operator X X X of the score, and the bound λ ( Ψ ) ≤ Λ q \lambda(\Psi)\leq\Lambda_q λ ( Ψ ) ≤ Λ q of Theorem 5.6 , where Λ q : = Λ 0 , q \Lambda_q:=\Lambda_{0,q} Λ q := Λ 0 , q . The oracle is O ϕ O_\phi O ϕ , the device may make controlled queries, and Eve learns ϕ \phi ϕ .
Theorem 7.9 (Certified randomness from Haar-random states). Let q ≥ 1 q\geq1 q ≥ 1 and δ ≥ 0 \delta\geq0 δ ≥ 0 , and consider an experiment with the canonical oracle in which the device makes at most q q q queries and has score B ( A ) ≥ β N − δ B(A)\geq\beta_N-\delta B ( A ) ≥ β N − δ . Let η 0 \eta_0 η 0 and Λ q \Lambda_q Λ q be given by
η 0 = ( 3 ( δ + 2 2 Λ q + 72 Λ q 2 ) + Λ q 2 ) 1 / 2 , \eta_0=\left(3(\delta+2\sqrt{2}\Lambda_q+72\Lambda_q^2)+\Lambda_q^2\right)^{1/2}, η 0 = ( 3 ( δ + 2 2 Λ q + 72 Λ q 2 ) + Λ q 2 ) 1/2 , Λ q = c 0 N ∑ t = 0 q − 1 2 t + 1 ≤ 3 c 0 q 3 / 2 N . (73) \Lambda_q=\frac{c_0}{\sqrt{N}}\sum_{t=0}^{q-1}\sqrt{2t+1}\leq\sqrt{3}c_0\frac{q^{3/2}}{\sqrt{N}}. \tag*{(73)} Λ q = N c 0 t = 0 ∑ q − 1 2 t + 1 ≤ 3 c 0 N q 3/2 . (73) If η 0 < 1 \eta_0<1 η 0 < 1 , then for every η ∈ [ η 0 , 1 ] \eta\in[\eta_0,1] η ∈ [ η 0 , 1 ] ,
H min η ( Z ∣ R E ) ρ ≥ n − 2 log q − log H N − 2 − log 1 1 − η 0 2 , (74) H_{\min}^{\eta}(Z\mid RE)_\rho\geq n-2\log q-\log H_N-2-\log\frac{1}{1-\eta_0^2}, \tag*{(74)} H m i n η ( Z ∣ R E ) ρ ≥ n − 2 log q − log H N − 2 − log 1 − η 0 2 1 , (74) where H N ≤ ln N + 1 H_N\leq\ln N+1 H N ≤ ln N + 1 is the harmonic number of Lemma 5.24 . Moreover, for every q q q ,
η 0 ≤ 3 δ + 4 c 0 q 3 / 4 N − 1 / 4 + 26 c 0 q 3 / 2 N − 1 / 2 . (75) \eta_0\leq3\delta+4\sqrt{c_0}\,q^{3/4}N^{-1/4}+26c_0q^{3/2}N^{-1/2}. \tag*{(75)} η 0 ≤ 3 δ + 4 c 0 q 3/4 N − 1/4 + 26 c 0 q 3/2 N − 1/2 . (75)
The three steps are as in the Fourier case, with the phase θ z \theta_z θ z of the amplitude α z \alpha_z α z in the role of the Fourier coefficient. For z ∈ [ N ] z \in[N] z ∈ [ N ] and real t t t , let Θ z , t \Theta_{z,t} Θ z , t be the map on the sphere that multiplies the z z z -th coordinate by e i t e^{it} e i t , and for a vector-valued polynomial F F F define the phase average
( Q z F ) ( ϕ ) = 1 2 π ∫ 0 2 π F ( Θ z , t ϕ ) d t . (Q_zF)(\phi)=\frac{1}{2\pi}\int_{0}^{2\pi}F(\Theta_{z,t}\phi)\,\mathrm{d}t. ( Q z F ) ( ϕ ) = 2 π 1 ∫ 0 2 π F ( Θ z , t ϕ ) d t .
Lemma 7.10 (Phase averaging). The operator Q z Q_z Q z is the orthogonal projection onto the sum of the blocks whose pattern satisfies γ z = 0 \gamma_z=0 γ z = 0 . It commutes with every P k P_k P k , with C C C , with every ϕ \phi ϕ -independent operator on V \mathcal{V} V , and with Q z ′ Q_{z'} Q z ′ for every z ′ z' z ′ .
Proof. Since Θ z , t \Theta_{z,t} Θ z , t replaces α z \alpha_z α z by e i t α z e^{it}\alpha_z e i t α z and leaves p p p unchanged, we have u γ ( Θ z , t ϕ ) = e i γ z t u γ ( ϕ ) u_\gamma(\Theta_{z,t}\phi)=e^{i\gamma_zt}u_\gamma(\phi) u γ ( Θ z , t ϕ ) = e i γ z t u γ ( ϕ ) , so
Q z ( u γ h ⊗ v ) = 1 [ γ z = 0 ] u γ h ⊗ v Q_z(u_\gamma h\otimes v)=\mathbf{1}[\gamma_z=0]\,u_\gamma h\otimes v Q z ( u γ h ⊗ v ) = 1 [ γ z = 0 ] u γ h ⊗ v
for polynomials h ( p ) h(p) h ( p ) and v ∈ V v\in\mathcal{V} v ∈ V .
By Lemma 5.2 , Q z Q_z Q z acts on each block as 0 or 1, which proves the first claim, and the operators in the second claim all map each block to itself. □ \square □
Lemma 7.11 (The phase-independent part of the branches). Let F ∈ P ≤ d ( H ) F\in\mathcal{P}_{\leq d}(\mathcal{H}) F ∈ P ≤ d ( H ) be a unit vector with ⟨ F , X F ⟩ ≥ β N − δ \langle F,XF\rangle\geq\beta_N-\delta ⟨ F , X F ⟩ ≥ β N − δ , and let F z = Π z F F_z=\Pi_zF F z = Π z F . Then
∑ z ∥ Q z F z ∥ 2 ≤ δ + 2 2 λ ( F ) + 72 λ ( F ) 2 β N − 1 + λ ( F ) 2 \sum_z\lVert Q_zF_z\rVert^2\leq\frac{\delta+2\sqrt{2}\lambda(F)+72\lambda(F)^2}{\beta_N-1}+\lambda(F)^2 z ∑ ∥ Q z F z ∥ 2 ≤ β N − 1 δ + 2 2 λ ( F ) + 72 λ ( F ) 2 + λ ( F ) 2 ≤ 3 ( δ + 2 2 λ ( F ) + 72 λ ( F ) 2 ) + λ ( F ) 2 . \leq3\bigl(\delta+2\sqrt{2}\lambda(F)+72\lambda(F)^2\bigr)+\lambda(F)^2. ≤ 3 ( δ + 2 2 λ ( F ) + 72 λ ( F ) 2 ) + λ ( F ) 2 .
Proof. Step 1: the positive-level part. Write F = F 0 + F + F=F_0+F_+ F = F 0 + F + with F 0 = P 0 F F_0=P_0F F 0 = P 0 F . Since Q z Π z Q_z\Pi_z Q z Π z commutes with P 0 P_0 P 0 (Lemma 7.10 ), we have Q z F z = Q z Π z F 0 + Q z Π z F + Q_zF_z=Q_z\Pi_zF_0+Q_z\Pi_zF_+ Q z F z = Q z Π z F 0 + Q z Π z F + with orthogonal summands, and, by Lemma 5.11 ,
∑ z ∥ Q z Π z F + ∥ 2 ≤ ∑ z ∥ Π z F + ∥ 2 = ∥ F + ∥ 2 ≤ λ ( F ) 2 . \begin{aligned}
\sum_z\lVert Q_z\Pi_zF_+\rVert^2\leq\sum_z\lVert\Pi_zF_+\rVert^2=\lVert F_+\rVert^2 \\
&\leq\lambda(F)^2.
\end{aligned} z ∑ ∥ Q z Π z F + ∥ 2 ≤ z ∑ ∥ Π z F + ∥ 2 = ∥ F + ∥ 2 ≤ λ ( F ) 2 .
Step 2: the level-zero part. Let w 0 = ∑ z ∥ Q z Π z F 0 ∥ 2 w_0=\sum_z\lVert Q_z\Pi_zF_0\rVert^2 w 0 = ∑ z ∥ Q z Π z F 0 ∥ 2 be the weight of the level-zero terms whose pattern has γ z = 0 \gamma_z=0 γ z = 0 at their own output z z z . By the exact ratio computed in Proposition 5.4 , a level-zero term with γ z = 0 \gamma_z=0 γ z = 0 has ratio N / ( N + ∣ γ ∣ 1 ) ≤ 1 N/(N+\lvert\gamma\rvert_1)\leq1 N / ( N + ∣ γ ∣ 1 ) ≤ 1 on its own branch, and a term with ∣ γ z ∣ = 1 \lvert\gamma_z\rvert=1 ∣ γ z ∣ = 1 has ratio at most β N \beta_N β N , so
⟨ F 0 , X F 0 ⟩ ≤ w 0 + β N ( ∥ F 0 ∥ 2 − w 0 ) = β N ∥ F 0 ∥ 2 − ( β N − 1 ) w 0 . \begin{aligned}
\langle F_0,XF_0\rangle\leq w_0+\beta_N(\lVert F_0\rVert^2-w_0) \\
&=\beta_N\lVert F_0\rVert^2-(\beta_N-1)w_0.
\end{aligned} ⟨ F 0 , X F 0 ⟩ ≤ w 0 + β N (∥ F 0 ∥ 2 − w 0 ) = β N ∥ F 0 ∥ 2 − ( β N − 1 ) w 0 .
Step 3: solving for w 0 w_0 w 0 . By Lemmas 5.11 and 5.12 , using ∥ F 0 ∥ ≤ 1 \lVert F_0\rVert\leq1 ∥ F 0 ∥ ≤ 1 ,
β N − δ ≤ ⟨ F , X F ⟩ ≤ β N − ( β N − 1 ) w 0 + 2 2 λ ( F ) + 72 λ ( F ) 2 . \begin{aligned}
\beta_N-\delta\leq\langle F,XF\rangle\\
&\leq\beta_N-(\beta_N-1)w_0+2\sqrt{2}\lambda(F)+72\lambda(F)^2.
\end{aligned} β N − δ ≤ ⟨ F , X F ⟩ ≤ β N − ( β N − 1 ) w 0 + 2 2 λ ( F ) + 72 λ ( F ) 2 .
Solving for w 0 w_0 w 0 and adding the positive-level part gives the first inequality, and the second follows from β N − 1 = ( N − 1 ) / ( N + 1 ) ≥ 1 / 3 \beta_N-1=(N-1)/(N+1)\geq1/3 β N − 1 = ( N − 1 ) / ( N + 1 ) ≥ 1/3 for N ≥ 2. □ N\geq2. \square N ≥ 2. □
Thus a level-zero term that does not depend on the phase of α z \alpha_z α z scores at most 1 on the branch z z z , which is less than the ideal score by a constant, so a near-ideal score forces the branches to be almost entirely phase-dependent.
Lemma 7.12 (Changing one phase of the oracle). For every ϕ \phi ϕ , z z z , and t t t ,
∥ O ϕ − O Θ z , t ϕ ∥ = 2 ∣ sin ( t / 2 ) ∣ p z ( 2 − p z ) ≤ 2 2 ∣ sin ( t / 2 ) ∣ p z . \lVert O_{\phi}-O_{\Theta_{z,t}\phi}\rVert= 2\lvert\sin(t/2)\rvert\sqrt{p_z(2-p_z)} \le2\sqrt{2}\lvert\sin(t/2)\rvert\sqrt{p_z}. ∥ O ϕ − O Θ z , t ϕ ∥ = 2 ∣ sin ( t /2 )∣ p z ( 2 − p z ) ≤ 2 2 ∣ sin ( t /2 )∣ p z . and the same holds for the controlled queries.
Proof. For unit vectors u , v u,v u , v , the operator ∣ u ⟩ ⟨ u ∣ − ∣ v ⟩ ⟨ v ∣ \lvert u\rangle\langle u\rvert-\lvert v\rangle\langle v\rvert ∣ u ⟩ ⟨ u ∣ − ∣ v ⟩ ⟨ v ∣ vanishes on the orthogonal complement of their span, and on the span it has trace 0 0 0 and determinant − ( 1 − ∣ ⟨ u , v ⟩ ∣ 2 ) -(1-\lvert\langle u,v\rangle\rvert^2) − ( 1 − ∣⟨ u , v ⟩ ∣ 2 ) , so its norm is 1 − ∣ ⟨ u , v ⟩ ∣ 2 \sqrt{1-\lvert\langle u,v\rangle\rvert^2} 1 − ∣⟨ u , v ⟩ ∣ 2 .
Step 1: the overlap of the two oracle vectors. Let ϕ ′ = Θ z , t ϕ \phi'=\Theta_{z,t}\phi ϕ ′ = Θ z , t ϕ , and write u = η ϕ u=\eta_\phi u = η ϕ and v = η ϕ ′ v=\eta_{\phi'} v = η ϕ ′ for the vectors of (16) , so that O ϕ − O ϕ ′ = − 2 ( ∣ u ⟩ ⟨ u ∣ − ∣ v ⟩ ⟨ v ∣ ) O_\phi-O_{\phi'}=-2(\lvert u\rangle\langle u\rvert-\lvert v\rangle\langle v\rvert) O ϕ − O ϕ ′ = − 2 (∣ u ⟩ ⟨ u ∣ − ∣ v ⟩ ⟨ v ∣) . Since ϕ ′ \phi' ϕ ′ differs from ϕ \phi ϕ only in the phase of the z z z -th coordinate, we have, with w = ( p z / 2 ) ( 1 − e i t ) w=(p_z/2)(1-e^{it}) w = ( p z /2 ) ( 1 − e i t ) ,
⟨ ϕ , ϕ ′ ⟩ = 1 − p z + p z e i t , \langle\phi,\phi'\rangle=1-p_z+p_ze^{it}, ⟨ ϕ , ϕ ′ ⟩ = 1 − p z + p z e i t ,
⟨ u , v ⟩ = 1 2 ( 1 + ⟨ ϕ , ϕ ′ ⟩ ) = 1 − w , \langle u,v\rangle=\frac{1}{2}(1+\langle\phi,\phi'\rangle)=1-w, ⟨ u , v ⟩ = 2 1 ( 1 + ⟨ ϕ , ϕ ′ ⟩) = 1 − w ,
and therefore
1 − ∣ ⟨ u , v ⟩ ∣ 2 = 2 Re w − ∣ w ∣ 2 = p z ( 1 − cos t ) − p z 2 2 ( 1 − cos t ) = sin 2 ( t / 2 ) p z ( 2 − p z ) . \begin{aligned}
1-\lvert\langle u,v\rangle\rvert^2=2\operatorname{Re}w-\lvert w\rvert^2=p_z(1-\cos t)-\frac{p_z^2}{2}(1-\cos t) \\
&=\sin^2(t/2)p_z(2-p_z).
\end{aligned} 1 − ∣⟨ u , v ⟩ ∣ 2 = 2 Re w − ∣ w ∣ 2 = p z ( 1 − cos t ) − 2 p z 2 ( 1 − cos t ) = sin 2 ( t /2 ) p z ( 2 − p z ) .
Step 2: the norm and the controlled queries. Taking the square root and multiplying by 2 2 2 gives the norm of O ϕ − O ϕ ′ O_\phi-O_{\phi'} O ϕ − O ϕ ′ . For the controlled queries,
O ϕ c − O ϕ ′ c = ∣ 1 ⟩ ⟨ 1 ∣ ⊗ ( O ϕ − O ϕ ′ ) . O_\phi^{\mathrm{c}}-O_{\phi'}^{\mathrm{c}}=\lvert1\rangle\langle1\rvert\otimes(O_\phi-O_{\phi'}). O ϕ c − O ϕ ′ c = ∣ 1 ⟩ ⟨ 1 ∣ ⊗ ( O ϕ − O ϕ ′ ) .
Proof of Theorem 7.9. Step 1: the auxiliary vectors. By Lemma 5.1, the final state Ψ \Psi Ψ is a unit vector in P ≤ 2 q ( H ) P_{\leq2q}(\mathcal{H}) P ≤ 2 q ( H ) , its score is B ( A ) = ⟨ Ψ , X Ψ ⟩ B(\mathcal{A})=\langle\Psi,X\Psi\rangle B ( A ) = ⟨ Ψ , X Ψ ⟩ by (46) , and λ ( Ψ ) ≤ Λ q \lambda(\Psi)\leq\Lambda_q λ ( Ψ ) ≤ Λ q by Theorem 5.6 with s = 0 s=0 s = 0 . As auxiliary vectors we take G z = ( I − Q z ) Ψ z G_z=(I-Q_z)\Psi_z G z = ( I − Q z ) Ψ z , where Ψ z = Π z Ψ \Psi_z=\Pi_z\Psi Ψ z = Π z Ψ . Since the right side of Lemma 7.11 increases with λ ( F ) \lambda(F) λ ( F ) ,
∑ z ∥ Ψ z − G z ∥ 2 = ∑ z ∥ Q z Ψ z ∥ 2 \sum_z\lVert\Psi_z-G_z\rVert^2=\sum_z\lVert Q_z\Psi_z\rVert^2 z ∑ ∥ Ψ z − G z ∥ 2 = z ∑ ∥ Q z Ψ z ∥ 2
≤ 3 ( δ + 2 2 Λ q + 72 Λ q 2 ) + Λ q 2 = η 0 2 . \leq3(\delta+2\sqrt{2}\Lambda_q+72\Lambda_q^2)+\Lambda_q^2=\eta_0^2. ≤ 3 ( δ + 2 2 Λ q + 72 Λ q 2 ) + Λ q 2 = η 0 2 .
Step 2: the operators K z K_z K z and their norms. Pointwise, since Π z \Pi_z Π z does not depend on ϕ \phi ϕ ,
G z ( ϕ ) = Π z Ψ ( ϕ ) − 1 2 π ∫ 0 2 π Π z Ψ ( Θ z , t ϕ ) d t = ( K z ( ϕ ) ⊗ I E ) ψ 0 , G_z(\phi)=\Pi_z\Psi(\phi)-\frac{1}{2\pi}\int_0^{2\pi}\Pi_z\Psi(\Theta_{z,t}\phi)\,dt=(K_z(\phi)\otimes I_E)\psi_0, G z ( ϕ ) = Π z Ψ ( ϕ ) − 2 π 1 ∫ 0 2 π Π z Ψ ( Θ z , t ϕ ) d t = ( K z ( ϕ ) ⊗ I E ) ψ 0 ,
K z ( ϕ ) = Π z 2 π ∫ 0 2 π ( V ϕ − V Θ z , t ϕ ) d t . K_z(\phi)=\frac{\Pi_z}{2\pi}\int_0^{2\pi}(V_\phi-V_{\Theta_{z,t}\phi})\,dt. K z ( ϕ ) = 2 π Π z ∫ 0 2 π ( V ϕ − V Θ z , t ϕ ) d t .
For products of unitaries,
W q ⋯ W 1 − W q ′ ⋯ W 1 ′ = ∑ j W q ⋯ W j + 1 ( W j − W j ′ ) W j − 1 ′ ⋯ W 1 ′ , W_q\cdots W_1-W'_q\cdots W'_1=\sum_j W_q\cdots W_{j+1}(W_j-W'_j)W'_{j-1}\cdots W'_1, W q ⋯ W 1 − W q ′ ⋯ W 1 ′ = j ∑ W q ⋯ W j + 1 ( W j − W j ′ ) W j − 1 ′ ⋯ W 1 ′ ,
and the unitaries U j U_j U j do not depend on ϕ \phi ϕ , so Lemma 7.12 gives
∥ V ϕ − V Θ z , t ϕ ∥ ≤ 2 q ∣ sin ( t / 2 ) ∣ p z ( 2 − p z ) . \lVert V_\phi-V_{\Theta_{z,t}\phi}\rVert\leq2q\lvert\sin(t/2)\rvert\sqrt{p_z(2-p_z)}. ∥ V ϕ − V Θ z , t ϕ ∥ ≤ 2 q ∣ sin ( t /2 )∣ p z ( 2 − p z ) .
Averaging over t t t , with ( 2 π ) − 1 ∫ 0 2 π 2 ∣ sin ( t / 2 ) ∣ d t = 4 / π (2\pi)^{-1}\int_{0}^{2\pi}2|\sin(t/2)|\,dt=4/\pi ( 2 π ) − 1 ∫ 0 2 π 2∣ sin ( t /2 ) ∣ d t = 4/ π , we obtain
∥ K z ( ϕ ) ∥ ≤ 4 π q p z ( 2 − p z ) ≤ 4 2 π q p z , \lVert K_z(\phi)\rVert\le\frac{4}{\pi}q\sqrt{p_z(2-p_z)}\le\frac{4\sqrt{2}}{\pi}q\sqrt{p_z}, ∥ K z ( ϕ )∥ ≤ π 4 q p z ( 2 − p z ) ≤ π 4 2 q p z ,
and hence ∥ K z ( ϕ ) ∥ 2 ≤ ( 32 / π 2 ) q 2 p z \lVert K_z(\phi)\rVert^2\le(32/\pi^2)q^2p_z ∥ K z ( ϕ ) ∥ 2 ≤ ( 32/ π 2 ) q 2 p z . This hybrid argument plays the role that Markov’s inequality for polynomials played in Lemma 7.6, as explained in Section 2.5.
Step 3: the entropy bound. The hypotheses (64) therefore hold with κ = 32 q 2 / π 2 ≤ 4 q 2 \kappa=32q^2/\pi^2\le4q^2 κ = 32 q 2 / π 2 ≤ 4 q 2 , and K z K_z K z depends continuously on ϕ \phi ϕ . By Lemma 7.10, I − Q z I-Q_z I − Q z is an orthogonal projection of the space of vector-valued polynomials, so E ϕ ⟨ Ψ z ( ϕ ) , G z ( ϕ ) ⟩ = E ϕ ∥ G z ( ϕ ) ∥ 2 \mathbb{E}_{\phi}\langle\Psi_z(\phi),G_z(\phi)\rangle=\mathbb{E}_{\phi}\lVert G_z(\phi)\rVert^2 E ϕ ⟨ Ψ z ( ϕ ) , G z ( ϕ )⟩ = E ϕ ∥ G z ( ϕ ) ∥ 2 for every z z z . This identity holds on average over ϕ \phi ϕ and not pointwise, because Q z Q_z Q z averages over the phase of α z \alpha_z α z , but the average is what part (iv) of Proposition 7.1 requires, so that part applies with ξ ≥ 1 − η 0 2 \xi\ge1-\eta_0^2 ξ ≥ 1 − η 0 2 , and together with Lemma 5.24 it gives (74).
Step 4: the parameters. Since x ↦ 2 x + 1 x\mapsto\sqrt{2x+1} x ↦ 2 x + 1 is increasing,
∑ t = 0 q − 1 2 t + 1 ≤ ∫ 0 q 2 x + 1 d x ≤ 1 3 ( 2 q + 1 ) 3 / 2 ≤ 3 q 3 / 2 \begin{aligned}
\sum_{t=0}^{q-1}\sqrt{2t+1}\le\int_{0}^{q}\sqrt{2x+1}\,dx\le\frac{1}{3}(2q+1)^{3/2} \\
&\le\sqrt{3}q^{3/2}
\end{aligned} t = 0 ∑ q − 1 2 t + 1 ≤ ∫ 0 q 2 x + 1 d x ≤ 3 1 ( 2 q + 1 ) 3/2 ≤ 3 q 3/2
for q ≥ 1 q\ge1 q ≥ 1 , which gives the bound on Λ q \Lambda_q Λ q . Hence η 0 2 = 3 δ + 6 2 Λ q + 217 Λ q 2 \eta_0^2=3\delta+6\sqrt{2}\Lambda_q+217\Lambda_q^2 η 0 2 = 3 δ + 6 2 Λ q + 217 Λ q 2 with
6 2 Λ q ≤ 6 6 c 0 q 3 / 2 N − 1 / 2 ≤ 16 c 0 q 3 / 2 N − 1 / 2 , 6\sqrt{2}\Lambda_q\le6\sqrt{6}\,c_0q^{3/2}N^{-1/2}\le16c_0q^{3/2}N^{-1/2}, 6 2 Λ q ≤ 6 6 c 0 q 3/2 N − 1/2 ≤ 16 c 0 q 3/2 N − 1/2 ,
217 Λ q 2 ≤ 651 c 0 2 q 3 / N ≤ ( 26 c 0 ) 2 q 3 / N , 217\Lambda_q^2\le651c_0^2q^3/N\le(26c_0)^2q^3/N, 217 Λ q 2 ≤ 651 c 0 2 q 3 / N ≤ ( 26 c 0 ) 2 q 3 / N ,
and x + y + z ≤ x + y + z \sqrt{x+y+z}\le\sqrt{x}+\sqrt{y}+\sqrt{z} x + y + z ≤ x + y + z gives (75).
Tightness of the parameters
The first device shows that the term δ / ( 2 ( 1 − 1 / N ) ) \sqrt{\delta/(2(1-1/N))} δ / ( 2 ( 1 − 1/ N )) in (69) is of the right order, including its constant, whenever many bits are to be certified. The second shows that the losses 4 log q 4\log q 4 log q in Theorem 7.2 and 2 log q 2\log q 2 log q in Theorem 7.9 cannot be brought below 2 log q − O ( 1 ) 2\log q-O(1) 2 log q − O ( 1 ) : it uses amplitude amplification to raise the probability that one ideal sample lies in a fixed set of about N / q 2 N/q^2 N / q 2 strings, which costs q q q queries and only O ( q − 2 + q 4 N − 1 / 2 ) O(q^{-2}+q^4N^{-1/2}) O ( q − 2 + q 4 N − 1/2 ) in score.
Proposition 7.13 (Mixing a fixed output with honest sampling). Let 0 < μ < 1 0<\mu<1 0 < μ < 1 and z 0 ∈ { 0 , 1 } n z_0\in\{0,1\}^n z 0 ∈ { 0 , 1 } n , and consider the one-query device in the Fourier ensemble that, using a private coin, outputs z 0 z_0 z 0 with probability μ \mu μ and otherwise runs the honest sampler, with Eve’s register trivial. Then the following hold.
(i) The score of the device is B ( A ) = 3 − 2 / N − 2 ( 1 − 1 / N ) μ B(\mathcal{A})=3-2/N-2(1-1/N)\mu B ( A ) = 3 − 2/ N − 2 ( 1 − 1/ N ) μ , so Theorem 7.2 applies with q = 1 q=1 q = 1 , δ = 2 ( 1 − 1 / N ) μ \delta=2(1-1/N)\mu δ = 2 ( 1 − 1/ N ) μ , and η 0 = μ \eta_0=\sqrt{\mu} η 0 = μ .
(ii) The conditional min-entropy satisfies H min ( Z ∣ R ) ρ ≤ log ( 1 / μ ) H_{\min}(Z\mid R)_\rho\le\log(1/\mu) H m i n ( Z ∣ R ) ρ ≤ log ( 1/ μ ) .
(iii) Every normalized family τ \tau τ with H min ( Z ∣ R ) τ ≥ h H_{\min}(Z\mid R)_\tau\ge h H m i n ( Z ∣ R ) τ ≥ h satisfies
P ( ρ , τ ) ≥ ( 1 − min { 1 , 1 − μ + 2 − h / 2 } 2 ) 1 / 2 , P(\rho,\tau)\ge\left(1-\min\left\{1,\sqrt{1-\mu}+2^{-h/2}\right\}^{2}\right)^{1/2}, P ( ρ , τ ) ≥ ( 1 − min { 1 , 1 − μ + 2 − h /2 } 2 ) 1/2 , which tends to μ = η 0 \sqrt{\mu}=\eta_0 μ = η 0 as h → ∞ h\to\infty h → ∞ .
Proof. Step 1: the score and η 0 \eta_0 η 0 . For a fixed z 0 z_0 z 0 , we have E f N p f ( z 0 ) = 1 \mathbb{E}_f Np_f(z_0)=1 E f N p f ( z 0 ) = 1 , and the honest sampler scores 3 − 2 / N 3-2/N 3 − 2/ N , so B ( A ) = ( 1 − μ ) ( 3 − 2 / N ) + μ B(\mathcal{A})=(1-\mu)(3-2/N)+\mu B ( A ) = ( 1 − μ ) ( 3 − 2/ N ) + μ , which is the stated value. With q = 1 q=1 q = 1 we have λ ˉ 1 = 0 \bar{\lambda}_1=0 λ ˉ 1 = 0 , and (69) gives
η 0 = δ 2 ( 1 − 1 / N ) = μ . \eta_0=\sqrt{\frac{\delta}{2(1-1/N)}}=\sqrt{\mu}. η 0 = 2 ( 1 − 1/ N ) δ = μ .
Step 2: the min-entropy of ρ \rho ρ . Since E E E is trivial, a family of conditional states is a function τ ( f , z ) ≥ 0 \tau(f,z)\ge0 τ ( f , z ) ≥ 0 with E f ∑ z τ ( f , z ) = 1 \mathbb{E}_f\sum_z\tau(f,z)=1 E f ∑ z τ ( f , z ) = 1 , the guessing probability is E f max z τ ( f , z ) \mathbb{E}_f\max_z\tau(f,z) E f max z τ ( f , z ) , and
F ( ρ , τ ) = E f ∑ z ρ ( f , z ) τ ( f , z ) . F(\rho,\tau)=\mathbb{E}_f\sum_z\sqrt{\rho(f,z)\tau(f,z)}. F ( ρ , τ ) = E f z ∑ ρ ( f , z ) τ ( f , z ) .
The actual family is ρ ( f , z ) = ( 1 − μ ) p f ( z ) + μ 1 [ z = z 0 ] \rho(f,z)=(1-\mu)p_f(z)+\mu\mathbf{1}[z=z_0] ρ ( f , z ) = ( 1 − μ ) p f ( z ) + μ 1 [ z = z 0 ] , whose guessing probability is at least μ \mu μ ; hence H min ( Z ∣ R ) ρ ≤ log ( 1 / μ ) H_{\min}(Z\mid R)_\rho\le\log(1/\mu) H m i n ( Z ∣ R ) ρ ≤ log ( 1/ μ ) .
Step 3: the bound on P ( ρ , τ P(\rho,\tau P ( ρ , τ ). Now let E f max z τ ( f , z ) ≤ 2 − h \mathbb{E}_f\max_z\tau(f,z)\le2^{-h} E f max z τ ( f , z ) ≤ 2 − h . We split the sum over z z z according to whether z = z 0 z=z_0 z = z 0 and apply the Cauchy–Schwarz inequality to each part, with E f ρ ( f , z 0 ) ≤ 1 \mathbb{E}_f\rho(f,z_0)\le1 E f ρ ( f , z 0 ) ≤ 1 and E f ∑ z τ ( f , z ) = 1 \mathbb{E}_f\sum_z\tau(f,z)=1 E f ∑ z τ ( f , z ) = 1 . This gives
E f ρ ( f , z 0 ) τ ( f , z 0 ) ≤ ( E f τ ( f , z 0 ) ) 1 / 2 ≤ ( E f max z τ ( f , z ) ) 1 / 2 ≤ 2 − h / 2 . \mathbb{E}_f\sqrt{\rho(f,z_0)\tau(f,z_0)}
\le\left(\mathbb{E}_f\tau(f,z_0)\right)^{1/2}
\le\left(\mathbb{E}_f\max_z\tau(f,z)\right)^{1/2}
\le2^{-h/2}. E f ρ ( f , z 0 ) τ ( f , z 0 ) ≤ ( E f τ ( f , z 0 ) ) 1/2 ≤ ( E f z max τ ( f , z ) ) 1/2 ≤ 2 − h /2 .
and
E f ∑ z ≠ z 0 ρ ( f , z ) τ ( f , z ) ≤ ( 1 − E f ρ ( f , z 0 ) ) 1 / 2 . \mathbb{E}_f\sum_{z\ne z_0}\sqrt{\rho(f,z)\tau(f,z)}
\le\left(1-\mathbb{E}_f\rho(f,z_0)\right)^{1/2}. E f z = z 0 ∑ ρ ( f , z ) τ ( f , z ) ≤ ( 1 − E f ρ ( f , z 0 ) ) 1/2 .
Finally, E f ρ ( f , z 0 ) = μ + ( 1 − μ ) / N ≥ μ \mathbb{E}_f\rho(f,z_0)=\mu+(1-\mu)/N\ge\mu E f ρ ( f , z 0 ) = μ + ( 1 − μ ) / N ≥ μ , so
F ( ρ , τ ) ≤ min { 1 , 1 − μ + 2 − h / 2 } . F(\rho,\tau)\le\min\left\{1,\sqrt{1-\mu}+2^{-h/2}\right\}. F ( ρ , τ ) ≤ min { 1 , 1 − μ + 2 − h /2 } .
which gives the stated bound on P ( ρ , τ ) P(\rho,\tau) P ( ρ , τ ) .
The second device uses amplitude amplification to raise the probability that one ideal sample lies in a fixed set of outcomes, as the squaring algorithm does for its stored set. Let T T T be the set of strings whose first k k k bits are zero, so that ∣ T ∣ = N ′ |T|=N' ∣ T ∣ = N ′ with N ′ = N / 2 k N'=N/2^k N ′ = N / 2 k , and let Π T = ∑ z ∈ T ∣ z ⟩ ⟨ z ∣ \Pi_T=\sum_{z\in T}|z\rangle\langle z| Π T = ∑ z ∈ T ∣ z ⟩ ⟨ z ∣ . For an oracle ω \omega ω , write p ω ( T ) = ∑ z ∈ T p ω ( z ) p_\omega(T)=\sum_{z\in T}p_\omega(z) p ω ( T ) = ∑ z ∈ T p ω ( z ) and P ⋆ = N ′ / N = 2 − k P_\star=N'/N=2^{-k} P ⋆ = N ′ / N = 2 − k , where P ⋆ P_\star P ⋆ is the mean of p ω ( T ) p_\omega(T) p ω ( T ) in both ensembles.
Proposition 7.14 (Amplitude amplification onto a fixed set of outputs). Let k ≥ 4 k\ge4 k ≥ 4 be an integer with 2 k + 10 ≤ N 2^{k+10}\le N 2 k + 10 ≤ N , and consider the device that prepares the state ∣ ψ ω ⟩ |\psi_\omega\rangle ∣ ψ ω ⟩ of Section 6.1 with one query, applies ℓ \ell ℓ times the operator ( 2 ∣ ψ ω ⟩ ⟨ ψ ω ∣ − I ) ( I − 2 Π T ) (2|\psi_\omega\rangle\langle\psi_\omega|-I)(I-2\Pi_T) ( 2∣ ψ ω ⟩ ⟨ ψ ω ∣ − I ) ( I − 2 Π T ) , where ℓ \ell ℓ is chosen as in Definition 6.1 for the value P ⋆ = 2 − k P_\star=2^{-k} P ⋆ = 2 − k , and measures; Eve’s register is trivial. Then the following hold.
(i) The device makes q = L = 2 ℓ + 1 q=L=2\ell+1 q = L = 2 ℓ + 1 queries, where 2 k / 2 ≤ q ≤ 2 k / 2 + 1 2^{k/2}\le q\le2^{k/2+1} 2 k /2 ≤ q ≤ 2 k /2 + 1 .
(ii) Its output lies in T T T with probability at least 3 / 4 3/4 3/4 , so that
H min η ( Z ∣ R ) ρ ≤ n − k + 3 ≤ n − 2 log q + 5 for every 0 ≤ η ≤ 1 / 2. H_{\min}^{\eta}(Z\mid R)_\rho\le n-k+3\le n-2\log q+5\qquad\text{for every }0\le\eta\le1/2. H m i n η ( Z ∣ R ) ρ ≤ n − k + 3 ≤ n − 2 log q + 5 for every 0 ≤ η ≤ 1/2. (iii) Its expected score is at least the ideal score minus C a m p ( q − 2 + q 4 N − 1 / 2 ) C_{\mathrm{amp}}(q^{-2}+q^4N^{-1/2}) C amp ( q − 2 + q 4 N − 1/2 ) , in both ensembles, for an absolute constant C a m p C_{\mathrm{amp}} C amp .
(iv) In particular, for q → ∞ q\to\infty q → ∞ with q ≤ N 1 / 9 q\le N^{1/9} q ≤ N 1/9 and N N N large, the device scores within o ( 1 ) o(1) o ( 1 ) of the ideal score and its output has at most n − 2 log q + 5 n-2\log q+5 n − 2 log q + 5 bits of smooth min-entropy for every smoothing parameter $0\le\eta\le 1/2.
Proof. Step 1: the number of queries and the output distribution. Fix ω \omega ω , write p = p ω p=p_\omega p = p ω and P = p ( T ) P=p(T) P = p ( T ) , and put Y = P / P ⋆ Y=P/P_\star Y = P / P ⋆ , so that E ω Y = 1 \mathbb{E}_\omega Y=1 E ω Y = 1 . By Definition 6.1 , L = 2 ℓ + 1 L=2\ell+1 L = 2 ℓ + 1 satisfies ∣ L ϑ 0 − π / 2 ∣ ≤ ϑ 0 \lvert L\vartheta_0-\pi/2\rvert\le\vartheta_0 ∣ L ϑ 0 − π /2 ∣ ≤ ϑ 0 , where ϑ 0 = arcsin P ⋆ = arcsin 2 − k / 2 \vartheta_0=\arcsin\sqrt{P_\star}=\arcsin2^{-k/2} ϑ 0 = arcsin P ⋆ = arcsin 2 − k /2 , and, as in the proof of Lemma 6.4 , 2 − k / 2 ≤ ϑ 0 ≤ ( π / 3 ) 2 − k / 2 2^{-k/2}\le\vartheta_0\le(\pi/3)2^{-k/2} 2 − k /2 ≤ ϑ 0 ≤ ( π /3 ) 2 − k /2 . Hence
3 2 2 k / 2 − 1 ≤ q ≤ 1 + π 2 2 k / 2 , \frac{3}{2}2^{k/2}-1\le q\le1+\frac{\pi}{2}2^{k/2}, 2 3 2 k /2 − 1 ≤ q ≤ 1 + 2 π 2 k /2 ,
and both stated bounds on q q q follow for k ≥ 4 k\ge4 k ≥ 4 .
If P = 0 P=0 P = 0 , the marked projection annihilates ∣ ψ ω ⟩ \lvert\psi_\omega\rangle ∣ ψ ω ⟩ , every amplification step fixes this state, and g ( 0 ) = 0 g(0)=0 g ( 0 ) = 0 . For P > 0 P>0 P > 0 , by Lemma 3.3 with Π = Π T \Pi=\Pi_T Π = Π T , as in the proof of Lemma 6.3 , the output has the distribution
g ( P ) μ T + ( 1 − g ( P ) ) μ T c with g ( P ) = sin 2 ( L arcsin P ) , g(P)\,\mu_T+(1-g(P))\,\mu_{T^c}\qquad\text{with}\qquad g(P)=\sin^2\left(L\arcsin\sqrt{P}\right), g ( P ) μ T + ( 1 − g ( P )) μ T c with g ( P ) = sin 2 ( L arcsin P ) ,
where the first term is absent if P = 0 P=0 P = 0 and the second if P = 1 P=1 P = 1 . In particular, Pr [ Z ∈ T ∣ ω ] = g ( P ) \Pr[Z\in T\mid\omega]=g(P) Pr [ Z ∈ T ∣ ω ] = g ( P ) , and Lemma 6.4 , which applies because P ⋆ ≤ 1 / 4 P_\star\le1/4 P ⋆ ≤ 1/4 , gives
1 − g ( P ) ≤ 18 ( Y − 1 ) 2 + 3 P ⋆ , (76) 1-g(P)\le18(Y-1)^2+3P_\star, \tag*{(76)} 1 − g ( P ) ≤ 18 ( Y − 1 ) 2 + 3 P ⋆ , (76)
also when P = 0 P=0 P = 0 , where the left side is 1.
Step 2: the moments of Y Y Y . In the Haar ensemble, P P P has the Beta distribution with parameters ( N ′ , N − N ′ ) (N',N-N') ( N ′ , N − N ′ ) by Lemma 3.7 (iii), so
Var ( P ) = N ′ ( N − N ′ ) N 2 ( N + 1 ) ≤ N ′ N 2 \operatorname{Var}(P)=\frac{N'(N-N')}{N^2(N+1)}\le\frac{N'}{N^2} Var ( P ) = N 2 ( N + 1 ) N ′ ( N − N ′ ) ≤ N 2 N ′
by Lemma 3.7 (i) applied to the two-component vector ( P , 1 − P ) (P,1-P) ( P , 1 − P ) , and Var ( Y ) ≤ 1 / N ′ = 2 k / N \operatorname{Var}(Y)\le1/N'=2^k/N Var ( Y ) ≤ 1/ N ′ = 2 k / N .
In the Fourier ensemble, let T ⊥ T^\perp T ⊥ be the set of the 2 k 2^k 2 k strings whose last n − k n-k n − k bits are zero, and let C C C run over the N ′ N' N ′ cosets of T ⊥ T^\perp T ⊥ in { 0 , 1 } n \{0,1\}^n { 0 , 1 } n . With X z = N f ^ ( z ) X_z=\sqrt{N}\,\hat f(z) X z = N f ^ ( z ) as in the proof of Lemma 6.2 ,
Y = 1 N ′ ∑ z ∈ T X z 2 = 1 N ∑ C ( ∑ x ∈ C f ( x ) ) 2 = 1 N ′ ∑ C Y C , Y C = 1 2 k ( ∑ x ∈ C f ( x ) ) 2 , (77) \begin{aligned}
Y&=\frac{1}{N'}\sum_{z\in T}X_z^2=\frac{1}{N}\sum_C\left(\sum_{x\in C}f(x)\right)^2\\
&=\frac{1}{N'}\sum_CY_C,\qquad Y_C=\frac{1}{2^k}\left(\sum_{x\in C}f(x)\right)^2, \tag*{(77)}
\end{aligned} Y = N ′ 1 z ∈ T ∑ X z 2 = N 1 C ∑ ( x ∈ C ∑ f ( x ) ) 2 = N ′ 1 C ∑ Y C , Y C = 2 k 1 ( x ∈ C ∑ f ( x ) ) 2 , (77)
where the second equality follows from
X z 2 = 1 N ∑ x , y χ z ( x ⊕ y ) f ( x ) f ( y ) , X_z^2=\frac{1}{N}\sum_{x,y}\chi_z(x\oplus y)f(x)f(y), X z 2 = N 1 x , y ∑ χ z ( x ⊕ y ) f ( x ) f ( y ) ,
∑ z ∈ T χ z ( x ⊕ y ) = N ′ 1 [ x ⊕ y ∈ T ⊥ ] , \sum_{z\in T}\chi_z(x\oplus y)=N'\mathbf{1}[x\oplus y\in T^\perp], z ∈ T ∑ χ z ( x ⊕ y ) = N ′ 1 [ x ⊕ y ∈ T ⊥ ] ,
since x ⊕ y ∈ T ⊥ x\oplus y\in T^\perp x ⊕ y ∈ T ⊥ exactly when x x x and y y y lie in the same coset.
The Y C Y_C Y C are independent, because distinct cosets use disjoint sets of values of f f f , and each is the normalized square of a sum of 2 k 2^k 2 k independent uniform signs, so E Y C = 1 \mathbb{E}Y_C=1 E Y C = 1 , E Y C 2 = 3 − 2 / 2 k ≤ 3 \mathbb{E}Y_C^2=3-2/2^k\le3 E Y C 2 = 3 − 2/ 2 k ≤ 3 , and E Y C 4 ≤ 105 \mathbb{E}Y_C^4\le105 E Y C 4 ≤ 105 by the pairing bound in the proof of Lemma 6.2 (ii). Hence
Var ( Y ) = 1 N ′ 2 ∑ C Var ( Y C ) ≤ 2 N ′ = 2 ⋅ 2 k N , \begin{aligned}
\operatorname{Var}(Y)=\frac{1}{N'^2}\sum_C\operatorname{Var}(Y_C)\le\frac{2}{N'} \\
&=2\cdot\frac{2^k}{N},
\end{aligned} Var ( Y ) = N ′2 1 C ∑ Var ( Y C ) ≤ N ′ 2 = 2 ⋅ N 2 k ,
and, since the summands Y C − 1 Y_C-1 Y C − 1 are independent with mean zero,
E ( Y − 1 ) 4 = 1 N ′ 4 ( ∑ C E ( Y C − 1 ) 4 + 3 ∑ C ≠ C ′ Var ( Y C ) Var ( Y C ′ ) ) ≤ 8 ⋅ 10 6 N ′ 3 + 12 N ′ 2 ≤ 900 N ′ 2 = 900 ⋅ 2 2 k N 2 , \mathbb{E}(Y-1)^4=\frac{1}{N'^4}\left(\sum_C\mathbb{E}(Y_C-1)^4+3\sum_{C\ne C'}\operatorname{Var}(Y_C)\operatorname{Var}(Y_{C'})\right)
\le\frac{8\cdot10^6}{N'^3}+\frac{12}{N'^2}\le\frac{900}{N'^2}
=\frac{900\cdot2^{2k}}{N^2}, E ( Y − 1 ) 4 = N ′4 1 C ∑ E ( Y C − 1 ) 4 + 3 C = C ′ ∑ Var ( Y C ) Var ( Y C ′ ) ≤ N ′3 8 ⋅ 1 0 6 + N ′2 12 ≤ N ′2 900 = N 2 900 ⋅ 2 2 k ,
using ( y − 1 ) 4 ≤ 8 ( y 4 + 1 ) (y-1)^4\le8(y^4+1) ( y − 1 ) 4 ≤ 8 ( y 4 + 1 ) . In both ensembles, therefore, Var ( Y ) ≤ 2 ⋅ 2 k / N \operatorname{Var}(Y)\le2\cdot2^k/N Var ( Y ) ≤ 2 ⋅ 2 k / N .
Step 3: the min-entropy. By (76) and the variance bound,
ε T : = Pr [ Z ∉ T ] = E ω [ 1 − g ( P ) ] ≤ 18 Var ( Y ) + 3 P ⋆ ≤ 36 ⋅ 2 k N + 3 2 k ≤ 1 4 , \varepsilon_{\mathcal{T}}:=\Pr[Z\notin\mathcal{T}]=\mathbb{E}_{\omega}[1-g(P)]
\le18\operatorname{Var}(Y)+3P_{\star}
\le\frac{36\cdot2^k}{N}+\frac{3}{2^k}\le\frac{1}{4}, ε T := Pr [ Z ∈ / T ] = E ω [ 1 − g ( P )] ≤ 18 Var ( Y ) + 3 P ⋆ ≤ N 36 ⋅ 2 k + 2 k 3 ≤ 4 1 ,
using 2 k + 10 ≤ N 2^{k+10}\le N 2 k + 10 ≤ N and k ≥ 4 k\ge4 k ≥ 4 .
Let τ \tau τ be a normalized family within purified distance η \eta η of ρ \rho ρ , where η ≤ 1 / 2 \eta\le1/2 η ≤ 1/2 , and write m T m_{\mathcal{T}} m T for the weight E ω ∑ z ∈ T τ ( ω , z ) \mathbb{E}_{\omega}\sum_{z\in\mathcal{T}}\tau(\omega,z) E ω ∑ z ∈ T τ ( ω , z ) of τ \tau τ on T \mathcal{T} T . Since E E E is trivial,
F ( ρ , τ ) = E ω ∑ z ρ ( ω , z ) τ ( ω , z ) , F(\rho,\tau)=\mathbb{E}_{\omega}\sum_z\sqrt{\rho(\omega,z)\tau(\omega,z)}, F ( ρ , τ ) = E ω z ∑ ρ ( ω , z ) τ ( ω , z ) ,
and the Cauchy–Schwarz inequality, applied separately to the pairs ( ω , z ) (\omega,z) ( ω , z ) with z ∈ T z\in\mathcal{T} z ∈ T and with z ∉ T z\notin\mathcal{T} z ∈ / T , gives
1 − η 2 ≤ F ( ρ , τ ) ≤ m T + ε T ≤ m T + 1 2 , \sqrt{1-\eta^2}\le F(\rho,\tau)\le\sqrt{m_{\mathcal{T}}}+\sqrt{\varepsilon_{\mathcal{T}}}
\le\sqrt{m_{\mathcal{T}}}+\frac{1}{2}, 1 − η 2 ≤ F ( ρ , τ ) ≤ m T + ε T ≤ m T + 2 1 ,
so m T ≥ ( 3 / 2 − 1 / 2 ) 2 ≥ 1 / 8 m_{\mathcal{T}}\ge(\sqrt{3}/2-1/2)^2\ge1/8 m T ≥ ( 3 /2 − 1/2 ) 2 ≥ 1/8 . Since
max z τ ( ω , z ) ≥ 1 N ′ ∑ z ∈ T τ ( ω , z ) for every ω , \max_z\tau(\omega,z)\ge\frac{1}{N'}\sum_{z\in\mathcal{T}}\tau(\omega,z)\qquad\text{for every }\omega, z max τ ( ω , z ) ≥ N ′ 1 z ∈ T ∑ τ ( ω , z ) for every ω ,
the guessing probability of τ \tau τ is at least m T / N ′ ≥ 1 / ( 8 N ′ ) m_{\mathcal{T}}/N'\ge1/(8N') m T / N ′ ≥ 1/ ( 8 N ′ ) , so H min ( Z ∣ R ) τ ≤ n − k + 3 H_{\min}(Z\mid R)_{\tau}\le n-k+3 H m i n ( Z ∣ R ) τ ≤ n − k + 3 , and n − k + 3 ≤ n − 2 log q + 5 n-k+3\le n-2\log q+5 n − k + 3 ≤ n − 2 log q + 5 because k ≥ 2 log q − 2 k\ge2\log q-2 k ≥ 2 log q − 2 .
Step 4: the score in the Haar ensemble. By Lemma 3.7 (iii), the vector p ~ = ( p z / P ) z ∈ T \widetilde{p}=(p_z/P)_{z\in\mathcal{T}} p = ( p z / P ) z ∈ T is independent of P P P and uniform on the simplex of dimension N ′ − 1 N'-1 N ′ − 1 , so E ∑ z ∈ T p ~ z 2 = 2 / ( N ′ + 1 ) \mathbb{E}\sum_{z\in\mathcal{T}}\widetilde{p}_z^2=2/(N'+1) E ∑ z ∈ T p z 2 = 2/ ( N ′ + 1 ) by Lemma 3.7 (i). The score of the device is at least the contribution of the outputs in T \mathcal{T} T , which is
E ϕ [ g ( P ) N ∑ z ∈ T p z 2 P ] = N E ϕ [ g ( P ) P ] E [ ∑ z ∈ T p ~ z 2 ] = 2 N N ′ + 1 E ϕ [ g ( P ) P ] = 2 N ′ N ′ + 1 ( 1 − E ϕ [ ( 1 − g ( P ) ) Y ] ) , \mathbb{E}_{\phi}\left[g(P)N\sum_{z\in\mathcal{T}}\frac{p_z^2}{P}\right]
=N\mathbb{E}_{\phi}[g(P)P]\mathbb{E}\left[\sum_{z\in\mathcal{T}}\widetilde{p}_z^2\right]
=\frac{2N}{N'+1}\mathbb{E}_{\phi}[g(P)P]
=\frac{2N'}{N'+1}\left(1-\mathbb{E}_{\phi}[(1-g(P))Y]\right), E ϕ [ g ( P ) N z ∈ T ∑ P p z 2 ] = N E ϕ [ g ( P ) P ] E [ z ∈ T ∑ p z 2 ] = N ′ + 1 2 N E ϕ [ g ( P ) P ] = N ′ + 1 2 N ′ ( 1 − E ϕ [( 1 − g ( P )) Y ] ) ,
where we used P = P ⋆ Y P=P_{\star}Y P = P ⋆ Y , N P ⋆ = N ′ NP_{\star}=N' N P ⋆ = N ′ , and E Y = 1 \mathbb{E}Y=1 E Y = 1 . By (76) , the bound Y ≤ 1 / P ⋆ = 2 k Y \le1/P_\star= 2^k Y ≤ 1/ P ⋆ = 2 k , and Var ( Y ) ≤ 2 k / N \operatorname{Var}(Y) \le2^k/N Var ( Y ) ≤ 2 k / N , we obtain
E ϕ [ ( 1 − g ( P ) ) Y ] ≤ 18 E ϕ [ ( Y − 1 ) 2 Y ] + 3 P ⋆ E ϕ Y \mathbb{E}_{\phi}[(1-g(P))Y] \le18\mathbb{E}_{\phi}[(Y-1)^2Y] + 3P_\star\mathbb{E}_{\phi}Y E ϕ [( 1 − g ( P )) Y ] ≤ 18 E ϕ [( Y − 1 ) 2 Y ] + 3 P ⋆ E ϕ Y
≤ 18 ⋅ 2 k Var ( Y ) + 3 2 k ≤ 18 ⋅ 2 2 k N + 3 2 k . \le18\cdot2^k\operatorname{Var}(Y) + \frac{3}{2^k} \le\frac{18\cdot2^{2k}}{N}+\frac{3}{2^k}. ≤ 18 ⋅ 2 k Var ( Y ) + 2 k 3 ≤ N 18 ⋅ 2 2 k + 2 k 3 .
Since 2 N ′ / ( N ′ + 1 ) ≤ 2 2N'/(N'+1)\le2 2 N ′ / ( N ′ + 1 ) ≤ 2 and
2 N ′ / ( N ′ + 1 ) = β N − 2 / ( N ′ + 1 ) + 2 / ( N + 1 ) ≥ β N − 2 ⋅ 2 k / N , 2N'/(N'+1)=\beta_N-2/(N'+1)+2/(N+1)\ge\beta_N-2\cdot2^k/N, 2 N ′ / ( N ′ + 1 ) = β N − 2/ ( N ′ + 1 ) + 2/ ( N + 1 ) ≥ β N − 2 ⋅ 2 k / N ,
the score is at least
β N − 2 ⋅ 2 k / N − 36 ⋅ 2 2 k / N − 6 ⋅ 2 − k ≥ β N − 38 q 4 / N − 24 q − 2 , \beta_N-2\cdot2^k/N-36\cdot2^{2k}/N-6\cdot2^{-k}\ge\beta_N-38q^4/N-24q^{-2}, β N − 2 ⋅ 2 k / N − 36 ⋅ 2 2 k / N − 6 ⋅ 2 − k ≥ β N − 38 q 4 / N − 24 q − 2 ,
using 2 k ≤ q 2 2^k\le q^2 2 k ≤ q 2 and 2 − k ≤ 4 q − 2 2^{-k}\le4q^{-2} 2 − k ≤ 4 q − 2 .
Step 5: the score in the Fourier ensemble. Write
X ‾ 4 = 1 N ∑ z ∈ T X z 4 , so that N ∑ z ∈ T p z 2 / P = X ‾ 4 / Y , \overline{X}_4=\frac{1}{N}\sum_{z\in\mathcal{T}}X_z^4,
\qquad\text{so that}\qquad
N\sum_{z\in\mathcal{T}}p_z^2/P=\overline{X}_4/Y, X 4 = N 1 z ∈ T ∑ X z 4 , so that N z ∈ T ∑ p z 2 / P = X 4 / Y ,
with the value 0 0 0 when Y = 0 Y=0 Y = 0 . Since 1 / y ≥ 2 − y 1/y\ge2-y 1/ y ≥ 2 − y for y > 0 y>0 y > 0 , we have X ‾ 4 / Y ≥ X ‾ 4 ( 2 − Y ) \overline{X}_4/Y\ge\overline{X}_4(2-Y) X 4 / Y ≥ X 4 ( 2 − Y ) , also when Y = 0 Y=0 Y = 0 , where both sides vanish. The score is therefore at least
E f [ g ( P ) X ‾ 4 ( 2 − Y ) ] ≥ E f [ X ‾ 4 ( 2 − Y ) ] − 2 E f [ ( 1 − g ( P ) ) X ‾ 4 ] , \mathbb{E}_f[g(P)\overline{X}_4(2-Y)]\ge\mathbb{E}_f[\overline{X}_4(2-Y)]-2\mathbb{E}_f[(1-g(P))\overline{X}_4], E f [ g ( P ) X 4 ( 2 − Y )] ≥ E f [ X 4 ( 2 − Y )] − 2 E f [( 1 − g ( P )) X 4 ] ,
because ( 1 − g ( P ) ) X ‾ 4 ( 2 − Y ) ≤ 2 ( 1 − g ( P ) ) X ‾ 4 (1-g(P))\overline{X}_4(2-Y)\le2(1-g(P))\overline{X}_4 ( 1 − g ( P )) X 4 ( 2 − Y ) ≤ 2 ( 1 − g ( P )) X 4 .
Here E f X ‾ 4 = 3 − 2 / N \mathbb{E}_f\overline{X}_4=3-2/N E f X 4 = 3 − 2/ N , and
E f X ‾ 4 2 ≤ 1 N ∑ z ∈ T E f X z 8 ≤ 105 \mathbb{E}_f\overline{X}_4^2\le\frac{1}{N}\sum_{z\in\mathcal{T}}\mathbb{E}_fX_z^8\le105 E f X 4 2 ≤ N 1 z ∈ T ∑ E f X z 8 ≤ 105
by Lemma 6.2 (ii), so, using E f Y = 1 \mathbb{E}_fY=1 E f Y = 1 ,
E f [ X ‾ 4 ( 2 − Y ) ] = E f X ‾ 4 − Cov ( X ‾ 4 , Y ) \mathbb{E}_f[\overline{X}_4(2-Y)]=\mathbb{E}_f\overline{X}_4-\operatorname{Cov}(\overline{X}_4,Y) E f [ X 4 ( 2 − Y )] = E f X 4 − Cov ( X 4 , Y )
≥ 3 − 2 N − 105 Var ( Y ) ≥ 3 − 2 N − 15 2 k / 2 N , \ge3-\frac{2}{N}-\sqrt{105\operatorname{Var}(Y)}\ge3-\frac{2}{N}-15\frac{2^{k/2}}{\sqrt{N}}, ≥ 3 − N 2 − 105 Var ( Y ) ≥ 3 − N 2 − 15 N 2 k /2 ,
and by (76) and the Cauchy–Schwarz inequality,
E f [ ( 1 − g ( P ) ) X ‾ 4 ] ≤ 18 E f ( Y − 1 ) 4 E f X ‾ 4 2 + 3 P ⋆ E f X ‾ 4 \mathbb{E}_f[(1-g(P))\overline{X}_4]\le18\sqrt{\mathbb{E}_f(Y-1)^4\mathbb{E}_f\overline{X}_4^2+3P_\star\mathbb{E}_f\overline{X}_4} E f [( 1 − g ( P )) X 4 ] ≤ 18 E f ( Y − 1 ) 4 E f X 4 2 + 3 P ⋆ E f X 4
≤ 18 ⋅ 30 105 2 k N + 9 2 k ≤ 5600 ⋅ 2 k N + 9 2 k . \le18\cdot30\sqrt{105}\frac{2^k}{N}+\frac{9}{2^k}\le\frac{5600\cdot2^k}{N}+\frac{9}{2^k}. ≤ 18 ⋅ 30 105 N 2 k + 2 k 9 ≤ N 5600 ⋅ 2 k + 2 k 9 .
Hence the score is at least
3 − 2 / N − 15 ⋅ 2 k / 2 N − 1 / 2 − 11200 ⋅ 2 k N − 1 − 18 ⋅ 2 − k , 3-2/N-15\cdot2^{k/2}N^{-1/2}-11200\cdot2^kN^{-1}-18\cdot2^{-k}, 3 − 2/ N − 15 ⋅ 2 k /2 N − 1/2 − 11200 ⋅ 2 k N − 1 − 18 ⋅ 2 − k ,
which, with 2 k / 2 ≤ q 2^{k/2}\le q 2 k /2 ≤ q , 2 k ≤ q 2 2^k\le q^2 2 k ≤ q 2 , and 2 − k ≤ 4 q − 2 2^{-k}\le4q^{-2} 2 − k ≤ 4 q − 2 , is at least
3 − 2 / N − 15 q N − 1 / 2 − 11200 q 2 N − 1 − 72 q − 2 . 3-2/N-15qN^{-1/2}-11200q^2N^{-1}-72q^{-2}. 3 − 2/ N − 15 q N − 1/2 − 11200 q 2 N − 1 − 72 q − 2 .
Step 6: the deficit in both ensembles, and part (iv). In both ensembles the deficit is at most C a m p ( q − 2 + q 4 N − 1 / 2 ) C_{\mathrm{amp}}(q^{-2}+q^4N^{-1/2}) C amp ( q − 2 + q 4 N − 1/2 ) for an absolute constant C a m p C_{\mathrm{amp}} C amp , because
q 2 N − 1 ≤ q N − 1 / 2 ≤ q 4 N − 1 / 2 for q ≤ N . q^2N^{-1}\le qN^{-1/2}\le q^4N^{-1/2}\qquad\text{for }q\le\sqrt{N}. q 2 N − 1 ≤ q N − 1/2 ≤ q 4 N − 1/2 for q ≤ N .
where q ≤ N q\le\sqrt{N} q ≤ N holds because q ≤ 2 k / 2 + 1 ≤ N / 16 q\le2^{k/2+1}\le\sqrt{N}/16 q ≤ 2 k /2 + 1 ≤ N /16 . For q → ∞ q\to\infty q → ∞ with q ≤ N 1 / 9 q\le N^{1/9} q ≤ N 1/9 , this deficit tends to zero. The upper score bounds of Theorems 4.4 and 5.6 , with s = 0 s=0 s = 0 in the Haar case, also give an excess above the ideal score of at most O ( q 3 / 2 N − 1 / 2 + q 3 / N ) = o ( 1 ) O(q^{3/2}N^{-1/2}+q^3/N)=o(1) O ( q 3/2 N − 1/2 + q 3 / N ) = o ( 1 ) . Thus the score is within o ( 1 ) o(1) o ( 1 ) of the ideal score on both sides. Part (iv) follows, since 2 k + 10 ≤ N 2^{k+10}\le N 2 k + 10 ≤ N holds for q ≤ N 1 / 9 q\le N^{1/9} q ≤ N 1/9 and N N N large, as 2 k ≤ q 2 2^k\le q^2 2 k ≤ q 2 .
Remark 7.15 (Standard smooth min-entropy). Propositions 7.13 and 7.14 also bound the standard smooth min-entropy of Remark 3.5, in the Haar ensemble for every finite discretization of ϕ \phi ϕ , since the arguments do not use the value of R R R .
The pinching map that measures R R R and Z Z Z in their bases leaves ρ \rho ρ fixed and does not increase the purified distance. It also does not decrease H min ( Z ∣ R ) H_{\min}(Z\mid R) H m i n ( Z ∣ R ) , because it is unital on Z Z Z and a channel on R R R : if τ Z R ≤ I Z ⊗ σ R \tau_{ZR}\le I_Z\otimes\sigma_R τ Z R ≤ I Z ⊗ σ R , then the pinched state satisfies the same inequality with the pinched σ R \sigma_R σ R , which has the same trace. Hence the standard smoothing may be restricted to families that are classical on R Z RZ R Z and have total mass at most 1.
Since ρ \rho ρ is normalized, the generalized fidelity of ρ \rho ρ and such a family τ \tau τ equals F ( ρ , τ ) F(\rho,\tau) F ( ρ , τ ) . The proofs of both propositions use only F ( ρ , τ ) F(\rho,\tau) F ( ρ , τ ) together with the bound E ω ∑ z τ ( ω , z ) ≤ 1 \mathbb{E}_{\omega}\sum_z\tau(\omega,z)\le1 E ω ∑ z τ ( ω , z ) ≤ 1 , so they apply to these families without change.
Proof of Theorem 1.2
Proof of Theorem 1.2. Let η 0 \eta_0 η 0 be as in Theorem 7.2 for Fourier sampling and as in Theorem 7.9 for Haar-random states, and put η = min { 1 , η 0 } \eta=\min\{1,\eta_0\} η = min { 1 , η 0 } if q 3 ≤ N q^3\le N q 3 ≤ N and η = 1 \eta=1 η = 1 otherwise.
Step 1: the bound on η \eta η . If q 3 ≤ N q^3\le N q 3 ≤ N , then q 3 / 2 N − 1 / 2 ≤ q 3 / 4 N − 1 / 4 q^{3/2}N^{-1/2}\le q^{3/4}N^{-1/4} q 3/2 N − 1/2 ≤ q 3/4 N − 1/4 , so (71) gives
η 0 ≤ δ + 5 q 3 / 4 N − 1 / 4 . \eta_0\le\sqrt{\delta}+5q^{3/4}N^{-1/4}. η 0 ≤ δ + 5 q 3/4 N − 1/4 .
and (75) gives
η 0 ≤ 3 δ + ( 4 c 0 + 26 c 0 ) q 3 / 4 N − 1 / 4 , \eta_0\le\sqrt{3\delta}+(4\sqrt{c_0}+26c_0)q^{3/4}N^{-1/4}, η 0 ≤ 3 δ + ( 4 c 0 + 26 c 0 ) q 3/4 N − 1/4 ,
while if q 3 > N q^3>N q 3 > N , then q 3 / 4 N − 1 / 4 > 1 = η q^{3/4}N^{-1/4}>1=\eta q 3/4 N − 1/4 > 1 = η . In both cases η = O ( δ + q 3 / 4 N − 1 / 4 ) \eta=O(\sqrt{\delta}+q^{3/4}N^{-1/4}) η = O ( δ + q 3/4 N − 1/4 ) , as stated.
Step 2: the two entropy bounds. The hypothesis η ≤ 1 / 2 \eta\le1/2 η ≤ 1/2 forces q 3 ≤ N q^3\le N q 3 ≤ N and η = η 0 ≤ 1 / 2 \eta=\eta_0\le1/2 η = η 0 ≤ 1/2 , so that 2 log ( 1 / ( 1 − η 0 ) ) ≤ 2 2\log(1/(1-\eta_0))\le2 2 log ( 1/ ( 1 − η 0 )) ≤ 2 and log ( 1 / ( 1 − η 0 2 ) ) ≤ 1 \log(1/(1-\eta_0^2))\le1 log ( 1/ ( 1 − η 0 2 )) ≤ 1 . Then (70) gives
H min η 0 ( Z ∣ R E ) ρ ≥ n − 4 log q − log ( n + 2 ) − 5 for Fourier sampling . H_{\min}^{\eta_0}(Z\mid RE)_\rho\ge n-4\log q-\log(n+2)-5\qquad\text{for Fourier sampling}. H m i n η 0 ( Z ∣ R E ) ρ ≥ n − 4 log q − log ( n + 2 ) − 5 for Fourier sampling .
and (74) with log H N ≤ log ( n + 1 ) \log H_N\le\log(n+1) log H N ≤ log ( n + 1 ) gives
H min η 0 ( Z ∣ R E ) ρ ≥ n − 2 log q − log ( n + 1 ) − 3 for Haar-random states . H_{\min}^{\eta_0}(Z\mid RE)_\rho\ge n-2\log q-\log(n+1)-3\qquad\text{for Haar-random states}. H m i n η 0 ( Z ∣ R E ) ρ ≥ n − 2 log q − log ( n + 1 ) − 3 for Haar-random states .
Finally, if q ≤ n O ( 1 ) q\le n^{O(1)} q ≤ n O ( 1 ) and δ = o ( 1 ) \delta=o(1) δ = o ( 1 ) , then η 0 = o ( 1 ) \eta_0=o(1) η 0 = o ( 1 ) in both cases, and η 0 \eta_0 η 0 is negligible when δ \delta δ is.
Remark 7.16 (Scope of the theorems). The hypotheses of Theorems 7.2 and 7.9 concern the expected score of the experiment; estimating this score from finitely many runs, and conditioning on the acceptance of such a test, are not addressed here.
The theorems do not require δ → 0 \delta\to0 δ → 0 : they give n − O ( log n ) n-O(\log n) n − O ( log n ) bits whenever q ≤ n O ( 1 ) q \le n^{O(1)} q ≤ n O ( 1 ) and 1 − η 0 ≥ n − O ( 1 ) 1-\eta_0 \ge n^{-O(1)} 1 − η 0 ≥ n − O ( 1 ) , and ( 1 − o ( 1 ) ) n (1-o(1))n ( 1 − o ( 1 )) n bits for q = 2 o ( n ) q=2^{o(n)} q = 2 o ( n ) when 1 − η 0 ≥ 2 − o ( n ) 1-\eta_0 \ge2^{-o(n)} 1 − η 0 ≥ 2 − o ( n ) . They are vacuous when η 0 ≥ 1 \eta_0 \ge1 η 0 ≥ 1 , in particular when q ≥ N 1 / 3 + 1 q \ge N^{1/3}+1 q ≥ N 1/3 + 1 in the Fourier case, because then
λ ˉ q ≥ 4 3 ( q − 1 ) 3 / 2 N − 1 / 2 ≥ 4 3 \bar{\lambda}_q \ge\frac{4}{3}(q-1)^{3/2}N^{-1/2} \ge\frac{4}{3} λ ˉ q ≥ 3 4 ( q − 1 ) 3/2 N − 1/2 ≥ 3 4
and η 0 ≥ 2 λ ˉ q \eta_0 \ge2\bar{\lambda}_q η 0 ≥ 2 λ ˉ q ; accordingly, the proof of Theorem 1.2 sets η = 1 \eta=1 η = 1 when q 3 > N q^3>N q 3 > N .
The losses 4 log q 4\log q 4 log q and 2 log q 2\log q 2 log q come only from Lemma 7.6 and from the hybrid argument in the proof of Theorem 7.9 ; by Proposition 7.14 neither loss can be brought below 2 log q − O ( 1 ) 2\log q-O(1) 2 log q − O ( 1 ) , so the coefficient 2 in the Haar case is optimal and the correct coefficient for Fourier sampling lies between 2 and 4. By Proposition 7.13 the leading term of η 0 \eta_0 η 0 in the Fourier case cannot be improved by a constant factor if ω ( 1 ) \omega(1) ω ( 1 ) bits are to be certified; we do not claim that the terms involving λ ˉ q \bar{\lambda}_q λ ˉ q or Λ q \Lambda_q Λ q are optimal.
Finally, for Haar-random states the result is for the canonical oracle; the obstacle for an Eve who learns a Haar-random unitary is explained at the end of Section 2.5.
Quantum Hadamard products
The squaring algorithm measures its stored samples. Keeping them coherent and retaining the match index in the reversible computation gives a related algorithm that preserves the phases needed to prepare a quantum Hadamard product. For two unit vectors ∣ α ⟩ = ∑ z α z ∣ z ⟩ |\alpha\rangle=\sum_z\alpha_z|z\rangle ∣ α ⟩ = ∑ z α z ∣ z ⟩ and ∣ β ⟩ = ∑ z β z ∣ z ⟩ |\beta\rangle=\sum_z\beta_z|z\rangle ∣ β ⟩ = ∑ z β z ∣ z ⟩ in C N \mathbb{C}^N C N whose coordinatewise product is not zero, the quantum Hadamard product is the normalized state
∣ α ∘ β ⟩ = ∑ z α z β z ∣ z ⟩ ( ∑ y ∣ α y β y ∣ 2 ) 1 / 2 . |\alpha\circ\beta\rangle=\frac{\sum_z\alpha_z\beta_z|z\rangle}{\left(\sum_y|\alpha_y\beta_y|^2\right)^{1/2}}. ∣ α ∘ β ⟩ = ( ∑ y ∣ α y β y ∣ 2 ) 1/2 ∑ z α z β z ∣ z ⟩ .
and preparing it is a task studied in [32 , 35 ] .
We assume oracle access for state preparation and reflection, as in Section 6.1: one query prepares each input state, and two queries reflect about it. This is the case for the canonical oracles O α O_\alpha O α and O β O_\beta O β , and for unitaries that prepare the two states from ∣ 0 N ⟩ |0^N\rangle ∣ 0 N ⟩ , when their inverses may also be applied.
The direct approach prepares ∣ α ⟩ ∣ β ⟩ |\alpha\rangle|\beta\rangle ∣ α ⟩ ∣ β ⟩ and amplifies the component in which the two registers agree. When all amplitudes have magnitude N − 1 / 2 N^{-1/2} N − 1/2 , that component has weight ∑ z ∣ α z β z ∣ 2 = 1 / N \sum_z|\alpha_z\beta_z|^2=1/N ∑ z ∣ α z β z ∣ 2 = 1/ N , so the amplification takes about N \sqrt{N} N reflections, each of which costs queries to both oracles. Our algorithm instead prepares m m m coherent copies of ∣ α ⟩ |\alpha\rangle ∣ α ⟩ and amplifies a copy of ∣ β ⟩ |\beta\rangle ∣ β ⟩ onto their stored labels. It uses m + 1 + O ( N / m ) m+1+O(\sqrt{N/m}) m + 1 + O ( N / m ) queries, and reversible deletion retains the product phases. Taking m = ⌈ N 1 / 3 ⌉ m=\lceil N^{1/3}\rceil m = ⌈ N 1/3 ⌉ gives O ( N 1 / 3 ) O(N^{1/3}) O ( N 1/3 ) queries and trace-distance error O ( N − 1 / 6 ) O(N^{-1/6}) O ( N − 1/6 ) , as proved below.
Theorem 8.1 (Hadamard products of states with uniform magnitudes). Let ∣ α ⟩ , ∣ β ⟩ ∈ C N |\alpha\rangle,|\beta\rangle\in\mathbb{C}^N ∣ α ⟩ , ∣ β ⟩ ∈ C N satisfy ∣ α z ∣ = ∣ β z ∣ = N − 1 / 2 |\alpha_z|=|\beta_z|=N^{-1/2} ∣ α z ∣ = ∣ β z ∣ = N − 1/2 for all z z z , so that ∣ α ∘ β ⟩ = N ∑ z α z β z ∣ z ⟩ |\alpha\circ\beta\rangle=\sqrt{N}\sum_z\alpha_z\beta_z|z\rangle ∣ α ∘ β ⟩ = N ∑ z α z β z ∣ z ⟩ , and let 1 ≤ m ≤ N / 4 1\le m\le N/4 1 ≤ m ≤ N /4 . There is an algorithm with oracle access for state preparation and reflection to ∣ α ⟩ |\alpha\rangle ∣ α ⟩ and ∣ β ⟩ |\beta\rangle ∣ β ⟩ that makes m m m preparations of ∣ α ⟩ |\alpha\rangle ∣ α ⟩ , one preparation of ∣ β ⟩ |\beta\rangle ∣ β ⟩ , and at most π N / m / 2 \pi\sqrt{N/m}/2 π N / m /2 further queries, and outputs a state ρ \rho ρ on C N \mathbb{C}^N C N with
1 2 ∥ ρ − ∣ α ∘ β ⟩ ⟨ α ∘ β ∣ ∥ 1 ≤ 1 3 m N + 2 m N . \frac{1}{2}\lVert\rho-|\alpha\circ\beta\rangle\langle\alpha\circ\beta|\rVert_1\le\frac{1}{3}\sqrt{\frac{m}{N}}+\sqrt{2}\frac{m}{\sqrt{N}}. 2 1 ∥ ρ − ∣ α ∘ β ⟩ ⟨ α ∘ β ∣ ∥ 1 ≤ 3 1 N m + 2 N m . For N ≥ 8 N\ge8 N ≥ 8 and m = ⌈ N 1 / 3 ⌉ m=\lceil N^{1/3}\rceil m = ⌈ N 1/3 ⌉ , the algorithm makes O ( N 1 / 3 ) O(N^{1/3}) O ( N 1/3 ) queries and the error is O ( N − 1 / 6 ) O(N^{-1/6}) O ( N − 1/6 ) .
Proof. The algorithm. Let S 1 , … , S m S_1,\ldots,S_m S 1 , … , S m and Y Y Y be registers of the type on which the oracles act, and let J J J be a register with basis ∣ 0 ⟩ , ∣ 1 ⟩ , … , ∣ m ⟩ |0\rangle,|1\rangle,\ldots,|m\rangle ∣0 ⟩ , ∣1 ⟩ , … , ∣ m ⟩ , initially in ∣ 0 ⟩ |0\rangle ∣0 ⟩ . Write P ⋆ = m / N P_\star=m/N P ⋆ = m / N and ϑ 0 = arcsin P ⋆ \vartheta_0=\arcsin\sqrt{P_\star} ϑ 0 = arcsin P ⋆ , let ℓ \ell ℓ be a nonnegative integer nearest to π / ( 4 ϑ 0 ) − 1 / 2 \pi/(4\vartheta_0)-1/2 π / ( 4 ϑ 0 ) − 1/2 and L = 2 ℓ + 1 L=2\ell+1 L = 2 ℓ + 1 , as in Definition 6.1 , so that
∣ L ϑ 0 − π / 2 ∣ ≤ ϑ 0 , |L\vartheta_0-\pi/2|\leq\vartheta_0, ∣ L ϑ 0 − π /2∣ ≤ ϑ 0 ,
2 ℓ ≤ π / ( 2 ϑ 0 ) ≤ π N / m / 2 , 2\ell\leq\pi/(2\vartheta_0)\leq\pi\sqrt{N/m}/2, 2 ℓ ≤ π / ( 2 ϑ 0 ) ≤ π N / m /2 ,
where the second line follows from the first and from ϑ 0 ≥ P ⋆ \vartheta_0\geq\sqrt{P_\star} ϑ 0 ≥ P ⋆ . The algorithm consists of the following four steps.
Prepare ∣ α ⟩ |\alpha\rangle ∣ α ⟩ in each of S 1 , … , S m S_1,\ldots,S_m S 1 , … , S m and ∣ β ⟩ |\beta\rangle ∣ β ⟩ in Y Y Y .
Let Π \Pi Π be the projection onto the span of the basis states ∣ x 1 , … , x m ⟩ ∣ y ⟩ |x_1,\ldots,x_m\rangle|y\rangle ∣ x 1 , … , x m ⟩ ∣ y ⟩ with y ∈ { x 1 , … , x m } y\in\{x_1,\ldots,x_m\} y ∈ { x 1 , … , x m } , which is implemented by a reversible comparison of Y Y Y with each S i S_i S i and uses no query. Apply ℓ \ell ℓ times the operator ( 2 ∣ β ⟩ ⟨ β ∣ Y − I ) ( I − 2 Π ) (2|\beta\rangle\langle\beta|_Y-I)(I-2\Pi) ( 2∣ β ⟩ ⟨ β ∣ Y − I ) ( I − 2Π ) .
Compute into J J J the smallest index j j j with x j = y x_j=y x j = y , or 0 0 0 if there is none. For j ≥ 1 j\geq1 j ≥ 1 , swap S j S_j S j with S m S_m S m , controlled by J J J ; for j = 0 j=0 j = 0 , perform no swap. Then add the contents of Y Y Y bitwise into S m S_m S m , so that ∣ y ⟩ S m ∣ y ⟩ Y |y\rangle_{S_m}|y\rangle_Y ∣ y ⟩ S m ∣ y ⟩ Y becomes ∣ 0 n ⟩ S m ∣ y ⟩ Y |0^n\rangle_{S_m}|y\rangle_Y ∣ 0 n ⟩ S m ∣ y ⟩ Y . All of this is a fixed reversible computation on the basis states and uses no query.
Output the register Y Y Y .
The query count is m + 1 + 2 ℓ m+1+2\ell m + 1 + 2 ℓ , which is as claimed.
The state after amplification. Write x = ( x 1 , … , x m ) x=(x_1,\ldots,x_m) x = ( x 1 , … , x m ) , α x = α x 1 ⋯ α x m \alpha_x=\alpha_{x_1}\cdots\alpha_{x_m} α x = α x 1 ⋯ α x m , and let S ( x ) S(x) S ( x ) be the set { x 1 , … , x m } \{x_1,\ldots,x_m\} { x 1 , … , x m } of entries of $x. After step 1, the state is ∑ x α x ∣ x ⟩ ⊗ ∣ β ⟩ \sum_x\alpha_x|x\rangle\otimes|\beta\rangle ∑ x α x ∣ x ⟩ ⊗ ∣ β ⟩ . The projection Π \Pi Π and the reflection about ∣ β ⟩ |\beta\rangle ∣ β ⟩ are both block diagonal with respect to the basis of S 1 ⋯ S m S_1\cdots S_m S 1 ⋯ S m . Indeed,
Π = ∑ x ∣ x ⟩ ⟨ x ∣ ⊗ Π S ( x ) with Π S = ∑ z ∈ S ∣ z ⟩ ⟨ z ∣ , \Pi=\sum_x|x\rangle\langle x|\otimes\Pi_{S(x)}
\qquad\text{with}\qquad
\Pi_S=\sum_{z\in S}|z\rangle\langle z|, Π = x ∑ ∣ x ⟩ ⟨ x ∣ ⊗ Π S ( x ) with Π S = z ∈ S ∑ ∣ z ⟩ ⟨ z ∣ ,
and the reflection acts on Y Y Y alone. Hence, after step 2, the state is
∑ x α x ∣ x ⟩ ⊗ G x ℓ ∣ β ⟩ with G x = ( 2 ∣ β ⟩ ⟨ β ∣ − I ) ( I − 2 Π S ( x ) ) . \sum_x\alpha_x|x\rangle\otimes G_x^\ell|\beta\rangle
\qquad\text{with}\qquad
G_x=(2|\beta\rangle\langle\beta|-I)(I-2\Pi_{S(x)}). x ∑ α x ∣ x ⟩ ⊗ G x ℓ ∣ β ⟩ with G x = ( 2∣ β ⟩ ⟨ β ∣ − I ) ( I − 2 Π S ( x ) ) .
Call x x x distinct if its entries are distinct. For distinct x x x ,
∥ Π S ( x ) ∣ β ⟩ ∥ 2 = ∑ z ∈ S ( x ) ∣ β z ∣ 2 = m / N = P ⋆ \begin{aligned}
\|\Pi_{S(x)}|\beta\rangle\|^2=\sum_{z\in S(x)}|\beta_z|^2 \\
&=m/N=P_\star
\end{aligned} ∥ Π S ( x ) ∣ β ⟩ ∥ 2 = z ∈ S ( x ) ∑ ∣ β z ∣ 2 = m / N = P ⋆
holds exactly, because S ( x ) S(x) S ( x ) has m m m elements and ∣ β z ∣ 2 = 1 / N |\beta_z|^2=1/N ∣ β z ∣ 2 = 1/ N for every z z z . Therefore Lemma 3.3 gives
G x ℓ ∣ β ⟩ = sin ( L ϑ 0 ) ∣ u x ⟩ + cos ( L ϑ 0 ) ∣ u x ⊥ ⟩ , G_x^\ell|\beta\rangle=\sin(L\vartheta_0)|u_x\rangle+\cos(L\vartheta_0)|u_x^\perp\rangle, G x ℓ ∣ β ⟩ = sin ( L ϑ 0 ) ∣ u x ⟩ + cos ( L ϑ 0 ) ∣ u x ⊥ ⟩ ,
∣ u x ⟩ = Π S ( x ) ∣ β ⟩ P ⋆ = N m ∑ j = 1 m β x j ∣ x j ⟩ , |u_x\rangle=\frac{\Pi_{S(x)}|\beta\rangle}{\sqrt{P_\star}}
=\sqrt{\frac{N}{m}}\sum_{j=1}^{m}\beta_{x_j}|x_j\rangle, ∣ u x ⟩ = P ⋆ Π S ( x ) ∣ β ⟩ = m N j = 1 ∑ m β x j ∣ x j ⟩ ,
where ∣ u x ⊥ ⟩ |u_x^\perp\rangle ∣ u x ⊥ ⟩ is a unit vector supported outside S ( x ) S(x) S ( x ) . The terms with x x x not distinct have total squared norm
p r e p = ∑ x not distinct ∣ α x ∣ 2 , p_{\mathrm{rep}}=\sum_{x\text{ not distinct}}|\alpha_x|^2, p rep = x not distinct ∑ ∣ α x ∣ 2 ,
which is the probability that m m m independent uniformly random outcomes are not all distinct. Hence, by the union bound,
p r e p ≤ m ( m − 1 ) 2 N ≤ m 2 2 N . p_{\mathrm{rep}} \le\frac{m(m-1)}{2N} \le\frac{m^2}{2N}. p rep ≤ 2 N m ( m − 1 ) ≤ 2 N m 2 .
Let
Φ g o o d = ∑ x d i s t i n c t α x ∣ x ⟩ ⊗ ∣ u x ⟩ , ∥ Φ g o o d ∥ 2 = 1 − p r e p . \Phi_{\mathrm{good}}=\sum_{x\ \mathrm{distinct}}\alpha_x|x\rangle\otimes|u_x\rangle,\qquad\|\Phi_{\mathrm{good}}\|^2=1-p_{\mathrm{rep}}. Φ good = x distinct ∑ α x ∣ x ⟩ ⊗ ∣ u x ⟩ , ∥ Φ good ∥ 2 = 1 − p rep .
Put a = sin ( L ϑ 0 ) a=\sin(L\vartheta_0) a = sin ( L ϑ 0 ) , b = cos ( L ϑ 0 ) b=\cos(L\vartheta_0) b = cos ( L ϑ 0 ) , and let
Φ o u t = ∑ x d i s t i n c t α x ∣ x ⟩ ⊗ ∣ u x ⊥ ⟩ . \Phi_{\mathrm{out}}=\sum_{x\ \mathrm{distinct}}\alpha_x|x\rangle\otimes|u_x^\perp\rangle. Φ out = x distinct ∑ α x ∣ x ⟩ ⊗ ∣ u x ⊥ ⟩ .
Let Φ r e p \Phi_{\mathrm{rep}} Φ rep be the terms of the amplified state Φ \Phi Φ with repeated table entries. The vectors Φ g o o d \Phi_{\mathrm{good}} Φ good , Φ o u t \Phi_{\mathrm{out}} Φ out , and Φ r e p \Phi_{\mathrm{rep}} Φ rep are mutually orthogonal: the first two have disjoint marked and unmarked support for each distinct x x x , and the last has disjoint table support. Their squared norms are respectively 1 − p r e p 1-p_{\mathrm{rep}} 1 − p rep , 1 − p r e p 1-p_{\mathrm{rep}} 1 − p rep , and p r e p p_{\mathrm{rep}} p rep . Thus
∥ Φ − Φ g o o d ∥ 2 = ( ( a − 1 ) 2 + b 2 ) ( 1 − p r e p ) + p r e p = 2 ( 1 − a ) ( 1 − p r e p ) + p r e p . \|\Phi-\Phi_{\mathrm{good}}\|^2=((a-1)^2+b^2)(1-p_{\mathrm{rep}})+p_{\mathrm{rep}}=2(1-a)(1-p_{\mathrm{rep}})+p_{\mathrm{rep}}. ∥Φ − Φ good ∥ 2 = (( a − 1 ) 2 + b 2 ) ( 1 − p rep ) + p rep = 2 ( 1 − a ) ( 1 − p rep ) + p rep .
Writing Δ = L ϑ 0 − π / 2 \Delta=L\vartheta_0-\pi/2 Δ = L ϑ 0 − π /2 , we have a = cos Δ a=\cos\Delta a = cos Δ and ∣ Δ ∣ ≤ ϑ 0 |\Delta|\le\vartheta_0 ∣Δ∣ ≤ ϑ 0 , so 2 ( 1 − a ) = 4 sin 2 ( Δ / 2 ) ≤ ϑ 0 2 2(1-a)=4\sin^2(\Delta/2)\le\vartheta_0^2 2 ( 1 − a ) = 4 sin 2 ( Δ/2 ) ≤ ϑ 0 2 . Consequently,
∥ Φ − Φ g o o d ∥ ≤ ϑ 0 2 ( 1 − p r e p ) + p r e p ≤ ϑ 0 + p r e p ≤ π 3 m / N + p r e p . \|\Phi-\Phi_{\mathrm{good}}\|\le\sqrt{\vartheta_0^2(1-p_{\mathrm{rep}})+p_{\mathrm{rep}}}\le\vartheta_0+\sqrt{p_{\mathrm{rep}}}\le\frac{\pi}{3}\sqrt{m/N}+\sqrt{p_{\mathrm{rep}}}. ∥Φ − Φ good ∥ ≤ ϑ 0 2 ( 1 − p rep ) + p rep ≤ ϑ 0 + p rep ≤ 3 π m / N + p rep .
The last inequality follows from m / N ≤ 1 / 4 m/N\le1/4 m / N ≤ 1/4 and the convexity bound for arcsin used in Lemma 6.4.
Deletion. The operation of step 3 is a unitary U d e l U_{\mathrm{del}} U del . For m = 2 m=2 m = 2 and distinct x 1 ≠ x 2 x_1\ne x_2 x 1 = x 2 , the vector Φ g o o d \Phi_{\mathrm{good}} Φ good contains the terms
N / 2 α x 1 α x 2 ∣ x 1 , x 2 ⟩ ( β x 1 ∣ x 1 ⟩ + β x 2 ∣ x 2 ⟩ ) ∣ 0 ⟩ . \sqrt{N/2}\,\alpha_{x_1}\alpha_{x_2}|x_1,x_2\rangle(\beta_{x_1}|x_1\rangle+\beta_{x_2}|x_2\rangle)|0\rangle. N /2 α x 1 α x 2 ∣ x 1 , x 2 ⟩ ( β x 1 ∣ x 1 ⟩ + β x 2 ∣ x 2 ⟩) ∣0 ⟩ .
The first term has index j = 1 j=1 j = 1 in J J J , so the swap moves x 2 x_2 x 2 into S 1 S_1 S 1 and the bitwise addition clears S 2 S_2 S 2 . The second term has index j = 2 j=2 j = 2 . Writing w w w for the remaining entry and z z z for the output, both terms become
N / 2 α w α z β z ∣ w ⟩ ∣ 0 n ⟩ ∣ z ⟩ ∣ j ⟩ with j ∈ { 1 , 2 } , \sqrt{N/2}\,\alpha_w\alpha_z\beta_z|w\rangle|0^n\rangle|z\rangle|j\rangle\qquad\text{with }j\in\{1,2\}, N /2 α w α z β z ∣ w ⟩ ∣ 0 n ⟩ ∣ z ⟩ ∣ j ⟩ with j ∈ { 1 , 2 } ,
and summing over w ≠ z w\ne z w = z gives the projection of
∣ α ⟩ ⊗ ∣ 0 n ⟩ ⊗ ∣ α ∘ β ⟩ ⊗ 1 2 ( ∣ 1 ⟩ + ∣ 2 ⟩ ) |\alpha\rangle\otimes|0^n\rangle\otimes|\alpha\circ\beta\rangle\otimes\frac{1}{\sqrt{2}}(|1\rangle+|2\rangle) ∣ α ⟩ ⊗ ∣ 0 n ⟩ ⊗ ∣ α ∘ β ⟩ ⊗ 2 1 ( ∣1 ⟩ + ∣2 ⟩)
onto the basis states with w ≠ z w\ne z w = z . The general case is the same computation: on a basis state ∣ x ⟩ ∣ x j ⟩ ∣ 0 ⟩ J |x\rangle|x_j\rangle|0\rangle_J ∣ x ⟩ ∣ x j ⟩ ∣0 ⟩ J with x x x distinct, the index computed into J J J is j j j , and U d e l U_{\mathrm{del}} U del maps the state to
∣ x ( j ) ⟩ ∣ 0 n ⟩ S m ∣ x j ⟩ Y ∣ j ⟩ J , |x^{(j)}\rangle|0^n\rangle_{S_m}|x_j\rangle_Y|j\rangle_J, ∣ x ( j ) ⟩ ∣ 0 n ⟩ S m ∣ x j ⟩ Y ∣ j ⟩ J ,
where x ( j ) ∈ [ N ] m − 1 x^{(j)}\in[N]^{m-1} x ( j ) ∈ [ N ] m − 1 lists the entries of x x x other than x j x_j x j in the order in which they appear in S 1 , … , S m − 1 S_1,\ldots,S_{m-1} S 1 , … , S m − 1 after the swap.
For fixed j j j , the map [ N ] m → [ N ] m − 1 × [ N ] [N]^m\to[N]^{m-1}\times[N] [ N ] m → [ N ] m − 1 × [ N ] , x ↦ ( x ( j ) , x j ) x\mapsto(x^{(j)},x_j) x ↦ ( x ( j ) , x j ) , is a bijection, and α x = α x ( j ) α x j \alpha_x=\alpha_{x^{(j)}}\alpha_{x_j} α x = α x ( j ) α x j , with α x ( j ) \alpha_{x^{(j)}} α x ( j ) the product of the amplitudes of the entries of x ( j ) x^{(j)} x ( j ) . Therefore
U d e l Φ g o o d = N m ∑ j = 1 m ∑ x d i s t i n c t α x ( j ) α x j β x j ∣ x ( j ) ⟩ ∣ 0 n ⟩ ∣ x j ⟩ ∣ j ⟩ = Π d i s t Φ ∘ . \begin{aligned}
U_{\mathrm{del}}\Phi_{\mathrm{good}}=\sqrt{\frac{N}{m}}\sum_{j=1}^{m}\sum_{x\ \mathrm{distinct}}\alpha_{x^{(j)}}\alpha_{x_j}\beta_{x_j}|x^{(j)}\rangle|0^n\rangle|x_j\rangle|j\rangle\\
&=\Pi_{\mathrm{dist}}\Phi_\circ.
\end{aligned} U del Φ good = m N j = 1 ∑ m x distinct ∑ α x ( j ) α x j β x j ∣ x ( j ) ⟩ ∣ 0 n ⟩ ∣ x j ⟩ ∣ j ⟩ = Π dist Φ ∘ .
where
Φ ∘ = ∣ α ⟩ ⊗ ( m − 1 ) ⊗ ∣ 0 n ⟩ S m ⊗ ∣ α ∘ β ⟩ Y ⊗ 1 m ∑ j = 1 m ∣ j ⟩ J \Phi_\circ= |\alpha\rangle^{\otimes(m-1)} \otimes|0^n\rangle_{S_m} \otimes|\alpha\circ\beta\rangle_Y \otimes\frac{1}{\sqrt{m}}\sum_{j=1}^{m}|j\rangle_J Φ ∘ = ∣ α ⟩ ⊗ ( m − 1 ) ⊗ ∣ 0 n ⟩ S m ⊗ ∣ α ∘ β ⟩ Y ⊗ m 1 j = 1 ∑ m ∣ j ⟩ J
and Π d i s t \Pi_{\mathrm{dist}} Π dist is the projection onto the basis states ∣ w ⟩ ∣ 0 n ⟩ ∣ y ⟩ ∣ j ⟩ |w\rangle|0^n\rangle|y\rangle|j\rangle ∣ w ⟩ ∣ 0 n ⟩ ∣ y ⟩ ∣ j ⟩ in which the m m m entries of ( w , y ) ∈ [ N ] m − 1 × [ N ] (w,y) \in[N]^{m-1}\times[N] ( w , y ) ∈ [ N ] m − 1 × [ N ] are distinct. Indeed, expanding Φ ∘ \Phi_\circ Φ ∘ in the basis gives the amplitude m − 1 / 2 α w N α y β y m^{-1/2}\alpha_w\sqrt{N}\alpha_y\beta_y m − 1/2 α w N α y β y at ∣ w ⟩ ∣ 0 n ⟩ ∣ y ⟩ ∣ j ⟩ |w\rangle|0^n\rangle|y\rangle|j\rangle ∣ w ⟩ ∣ 0 n ⟩ ∣ y ⟩ ∣ j ⟩ , and the terms of U d e l Φ g o o d U_{\mathrm{del}}\Phi_{\mathrm{good}} U del Φ good are exactly those in which ( w , y ) (w,y) ( w , y ) comes from a distinct x x x , with the same amplitude.
The squared norm of Φ ∘ − Π d i s t Φ ∘ \Phi_\circ-\Pi_{\mathrm{dist}}\Phi_\circ Φ ∘ − Π dist Φ ∘ is the total weight of the basis states in which the entries of ( w , y ) (w,y) ( w , y ) are not distinct. Since ∣ α w ∣ 2 ∣ N α y β y ∣ 2 / m = N − m / m |\alpha_w|^2| \sqrt{N}\alpha_y\beta_y|^2/m=N^{-m}/m ∣ α w ∣ 2 ∣ N α y β y ∣ 2 / m = N − m / m for every basis state, this weight is again the probability that m m m uniformly random outcomes are not distinct, which is p r e p p_{\mathrm{rep}} p rep . Hence
∥ U d e l Φ − Φ ∘ ∥ ≤ ∥ Φ − Φ g o o d ∥ + p r e p ≤ π 3 m / N + 2 p r e p . \begin{aligned}
\|U_{\mathrm{del}}\Phi-\Phi_\circ\| \le\|\Phi-\Phi_{\mathrm{good}}\|+\sqrt{p_{\mathrm{rep}}} \\
&\le\frac{\pi}{3}\sqrt{m/N}+2\sqrt{p_{\mathrm{rep}}}.
\end{aligned} ∥ U del Φ − Φ ∘ ∥ ≤ ∥Φ − Φ good ∥ + p rep ≤ 3 π m / N + 2 p rep .
where the first step uses the triangle inequality and the unitarity of U d e l U_{\mathrm{del}} U del , and the second uses the improved orthogonality bound on ∥ Φ − Φ g o o d ∥ \|\Phi-\Phi_{\mathrm{good}}\| ∥Φ − Φ good ∥ proved above.
The output. For unit vectors u , v u,v u , v , the trace distance satisfies
1 2 ∥ ∣ u ⟩ ⟨ u ∣ − ∣ v ⟩ ⟨ v ∣ ∥ 1 = 1 − ∣ ⟨ u , v ⟩ ∣ 2 ≤ ∥ u − v ∥ , \frac{1}{2}\bigl\||u\rangle\langle u|-|v\rangle\langle v|\bigr\|_1=\sqrt{1-|\langle u,v\rangle|^2}\le\|u-v\|, 2 1 ∣ u ⟩ ⟨ u ∣ − ∣ v ⟩ ⟨ v ∣ 1 = 1 − ∣ ⟨ u , v ⟩ ∣ 2 ≤ ∥ u − v ∥ ,
where the inequality holds because
1 − ∣ ⟨ u , v ⟩ ∣ 2 ≤ ( 1 − Re ⟨ u , v ⟩ ) ( 1 + Re ⟨ u , v ⟩ ) 1-|\langle u,v\rangle|^2\le(1-\operatorname{Re}\langle u,v\rangle)(1+\operatorname{Re}\langle u,v\rangle) 1 − ∣ ⟨ u , v ⟩ ∣ 2 ≤ ( 1 − Re ⟨ u , v ⟩) ( 1 + Re ⟨ u , v ⟩)
≤ 2 ( 1 − Re ⟨ u , v ⟩ ) = ∥ u − v ∥ 2 . \le2(1-\operatorname{Re}\langle u,v\rangle)=\|u-v\|^2. ≤ 2 ( 1 − Re ⟨ u , v ⟩) = ∥ u − v ∥ 2 .
The partial trace does not increase the trace distance, and the reduced state of Y Y Y in Φ ∘ \Phi_\circ Φ ∘ is ∣ α ∘ β ⟩ ⟨ α ∘ β ∣ |\alpha\circ\beta\rangle\langle\alpha\circ\beta| ∣ α ∘ β ⟩ ⟨ α ∘ β ∣ . Therefore the output ρ \rho ρ satisfies
1 2 ∥ ρ − ∣ α ∘ β ⟩ ⟨ α ∘ β ∣ ∥ 1 ≤ π 3 m / N + 2 p r e p , \frac{1}{2}\|\rho-|\alpha\circ\beta\rangle\langle\alpha\circ\beta|\|_1\le\frac{\pi}{3}\sqrt{m/N}+2\sqrt{p_{\mathrm{rep}}}, 2 1 ∥ ρ − ∣ α ∘ β ⟩ ⟨ α ∘ β ∣ ∥ 1 ≤ 3 π m / N + 2 p rep ,
and 2 p r e p ≤ 2 m / N 2\sqrt{p_{\mathrm{rep}}}\le\sqrt{2}m/\sqrt{N} 2 p rep ≤ 2 m / N because p r e p ≤ m 2 / ( 2 N ) p_{\mathrm{rep}}\le m^2/(2N) p rep ≤ m 2 / ( 2 N ) .
The theorem holds for every fixed pair of input states with uniform magnitudes, not only on average over an ensemble, and the algorithm does not need to know the phases. With the canonical oracles, the registers are copies of Q = C ∣ ⊥ ⟩ ⊕ C N Q=\mathbb{C}|\perp\rangle\oplus\mathbb{C}^N Q = C ∣ ⊥ ⟩ ⊕ C N , the prepared states lie in C N \mathbb{C}^N C N , and the reflection about ∣ β ⟩ |\beta\rangle ∣ β ⟩ maps C N \mathbb{C}^N C N to itself, so the component along ∣ ⊥ ⟩ |\perp\rangle ∣ ⊥ ⟩ is never populated and the computation above applies without change.
A lower bound for Hadamard squares of Haar-random states
When both inputs are the same Haar-random state, we call their normalized coordinatewise product its Hadamard square. We have only a lower bound for this case, which follows from Corollary 6.10 by measuring the output.
Proposition 8.2 (Hadamard squares of Haar-random states). Fix 0 < ν < 1 / 12 0<\nu<1/12 0 < ν < 1/12 . Let ω \omega ω be either a Haar-random state ϕ \phi ϕ , accessed through O ϕ O_\phi O ϕ , or a Haar-random unitary U U U , accessed through U U U and
U † U^\dagger U † . Write ϕ ω = ϕ \phi_\omega=\phi ϕ ω = ϕ in the first case and ϕ ω = U ∣ 0 n ⟩ \phi_\omega=U|0^n\rangle ϕ ω = U ∣ 0 n ⟩ in the second. Suppose an algorithm with no supplied copies of ∣ ϕ ω ⟩ |\phi_\omega\rangle ∣ ϕ ω ⟩ outputs a state ρ ω \rho_\omega ρ ω on C N \mathbb{C}^N C N with
E ω 1 2 ∥ ρ ω − ∣ ϕ ω ∘ ϕ ω ⟩ ⟨ ϕ ω ∘ ϕ ω ∣ ∥ 1 ≤ ν , \mathbb{E}_\omega\frac{1}{2}\left\|\rho_\omega-|\phi_\omega\circ\phi_\omega\rangle\langle\phi_\omega\circ\phi_\omega|\right\|_1\le\nu, E ω 2 1 ∥ ρ ω − ∣ ϕ ω ∘ ϕ ω ⟩ ⟨ ϕ ω ∘ ϕ ω ∣ ∥ 1 ≤ ν ,
where, writing ∣ ϕ ω ⟩ = ∑ z α z ∣ z ⟩ |\phi_\omega\rangle=\sum_z\alpha_z|z\rangle ∣ ϕ ω ⟩ = ∑ z α z ∣ z ⟩ and p z = ∣ α z ∣ 2 p_z=|\alpha_z|^2 p z = ∣ α z ∣ 2 ,
∣ ϕ ω ∘ ϕ ω ⟩ = ∑ z α z 2 ∣ z ⟩ ( ∑ y p y 2 ) 1 / 2 . |\phi_\omega\circ\phi_\omega\rangle=\frac{\sum_z\alpha_z^2|z\rangle}{\left(\sum_y p_y^2\right)^{1/2}}. ∣ ϕ ω ∘ ϕ ω ⟩ = ( ∑ y p y 2 ) 1/2 ∑ z α z 2 ∣ z ⟩ .
Then the algorithm makes Ω ( N 1 / 3 ) \Omega(N^{1/3}) Ω ( N 1/3 ) queries, with a constant that depends on ν \nu ν .
Proof. For either oracle model, measuring ∣ ϕ ω ∘ ϕ ω ⟩ |\phi_\omega\circ\phi_\omega\rangle ∣ ϕ ω ∘ ϕ ω ⟩ in the computational basis gives z z z with probability
∣ α z ∣ 4 ∑ y p y 2 = r p ω ( z ) , \frac{|\alpha_z|^4}{\sum_y p_y^2}=r_{p_\omega}(z), ∑ y p y 2 ∣ α z ∣ 4 = r p ω ( z ) ,
where r p ω r_{p_\omega} r p ω is the collision distribution. Measuring ρ ω \rho_\omega ρ ω instead gives a distribution a ω a_\omega a ω with
TV ( a ω , r p ω ) ≤ 1 2 ∥ ρ ω − ∣ ϕ ω ∘ ϕ ω ⟩ ⟨ ϕ ω ∘ ϕ ω ∣ ∥ 1 , \operatorname{TV}(a_\omega,r_{p_\omega})\le\frac{1}{2}\left\|\rho_\omega-|\phi_\omega\circ\phi_\omega\rangle\langle\phi_\omega\circ\phi_\omega|\right\|_1, TV ( a ω , r p ω ) ≤ 2 1 ∥ ρ ω − ∣ ϕ ω ∘ ϕ ω ⟩ ⟨ ϕ ω ∘ ϕ ω ∣ ∥ 1 ,
because a measurement does not increase the trace distance. Hence E ω TV ( a ω , r p ω ) ≤ ν \mathbb{E}_\omega\operatorname{TV}(a_\omega,r_{p_\omega})\le\nu E ω TV ( a ω , r p ω ) ≤ ν , and Corollary 6.10 gives the claim in the corresponding oracle model.
Deferred proofs
Proofs for the Haar lower bound
We give the proofs deferred from § 13 . We use its notation throughout. In the Dirichlet calculations, a i ≥ 1 a_i \ge1 a i ≥ 1 , ∣ a ∣ = ∑ i a i |a| = \sum_i a_i ∣ a ∣ = ∑ i a i , and the derivatives act on polynomial expressions in p 1 , … , p N p_1,\ldots,p_N p 1 , … , p N before restriction to the simplex. The tangent derivatives T i T_i T i are defined in (47) .
The level of the supplied copies
Proof of Lemma 5.5. Step 1: the level of one string. Expand
∣ ϕ ⟩ ⊗ s = ∑ x ∈ [ N ] s α x 1 ⋯ α x s ∣ x 1 , … , x s ⟩ |\phi\rangle^{\otimes s} = \sum_{x\in[N]^s} \alpha_{x_1}\cdots\alpha_{x_s}|x_1,\ldots,x_s\rangle ∣ ϕ ⟩ ⊗ s = x ∈ [ N ] s ∑ α x 1 ⋯ α x s ∣ x 1 , … , x s ⟩
The monomial of the string x x x contains no conjugates, so its pattern is ( n j ) j (n_j)_j ( n j ) j , where n j n_j n j is the number of occurrences of j j j in x x x , and its polynomial factor is constant. Its level is
∑ j max ( n j − 1 , 0 ) = s − dist ( x ) , \sum_j \max(n_j-1,0)=s-\operatorname{dist}(x), j ∑ max ( n j − 1 , 0 ) = s − dist ( x ) ,
where dist ( x ) \operatorname{dist}(x) dist ( x ) is the number of distinct entries of $x.
Step 2: the expected number of distinct samples. Distinct strings are orthogonal in the register basis and the squared amplitude of x x x is p x 1 ⋯ p x s p_{x_1}\cdots p_{x_s} p x 1 ⋯ p x s , so
λ ( ∣ ϕ ⟩ ⊗ s ) 2 = E ϕ ∑ x p x 1 ⋯ p x s ( s − dist ( x ) ) = s − E [ dist ] , \begin{aligned}
\lambda\left(|\phi\rangle^{\otimes s}\right)^2
=\mathbb{E}_{\phi}\sum_x p_{x_1}\cdots p_{x_s}\left(s-\operatorname{dist}(x)\right) \\
&=s-\mathbb{E}[\operatorname{dist}],
\end{aligned} λ ( ∣ ϕ ⟩ ⊗ s ) 2 = E ϕ x ∑ p x 1 ⋯ p x s ( s − dist ( x ) ) = s − E [ dist ] ,
where in the last expression p p p is uniform on the simplex and, conditional on p p p , the entries of x x x are independent samples from p p p .
By linearity,
E [ dist ] = ∑ i Pr [ i appears ] = N ( 1 − E ϕ ( 1 − p i ) s ) . \begin{aligned}
\mathbb{E}[\operatorname{dist}]
=\sum_i\Pr[i\text{ appears}] \\
&=N\left(1-\mathbb{E}_{\phi}(1-p_i)^s\right).
\end{aligned} E [ dist ] = i ∑ Pr [ i appears ] = N ( 1 − E ϕ ( 1 − p i ) s ) .
By Lemma 3.7(iii), 1 − p i 1-p_i 1 − p i has the Beta distribution with parameters ( N − 1 , 1 ) (N-1,1) ( N − 1 , 1 ) , so
E ( 1 − p i ) s = ( N − 1 ) ∫ 0 1 t N − 2 + s d t = N − 1 N + s − 1 . \begin{aligned}
\mathbb{E}(1-p_i)^s=(N-1)\int_0^1 t^{N-2+s}\,dt \\
&=\frac{N-1}{N+s-1}.
\end{aligned} E ( 1 − p i ) s = ( N − 1 ) ∫ 0 1 t N − 2 + s d t = N + s − 1 N − 1 .
Hence
E [ dist ] = N s N + s − 1 and s − E [ dist ] = s ( s − 1 ) N + s − 1 . \mathbb{E}[\operatorname{dist}]=\frac{Ns}{N+s-1}
\qquad\text{and}\qquad
s-\mathbb{E}[\operatorname{dist}]=\frac{s(s-1)}{N+s-1}. E [ dist ] = N + s − 1 N s and s − E [ dist ] = N + s − 1 s ( s − 1 ) .
Integration by parts
Proof of Lemma 5.9 . Step 1: reduction to monomials. Both sides of (48) are bilinear in ( g , v ) (g,v) ( g , v ) , so it suffices to take g = p b g=p^b g = p b and v = p c v=p^c v = p c for vectors b , c b,c b , c of nonnegative integers, where p b = ∏ j p j b j p^b=\prod_j p_j^{b_j} p b = ∏ j p j b j . Put
ν = E a [ p b + c ] , ν i = E a [ p b + c + e i ] . (78) \nu=\mathbb{E}_a[p^{b+c}],\qquad\nu_i=\mathbb{E}_a[p^{b+c+e_i}]. \tag*{(78)} ν = E a [ p b + c ] , ν i = E a [ p b + c + e i ] . (78)
Step 2: the two sides. The partial derivatives of p b p^b p b are ∂ i p b = b i p b − e i \partial_i p^b=b_i p^{b-e_i} ∂ i p b = b i p b − e i , read as 0 when b i = 0 b_i=0 b i = 0 . Since moreover ∑ j p j ∂ j p b = ∣ b ∣ p b \sum_j p_j\partial_j p^b=|b|p^b ∑ j p j ∂ j p b = ∣ b ∣ p b by Euler’s identity, and in the same way for p c p^c p c , we have
p i T i p b = b i p b − ∣ b ∣ p b + e i and p i T i p c = c i p c − ∣ c ∣ p c + e i p_iT_i p^b=b_i p^b-|b|p^{b+e_i}
\qquad\text{and}\qquad
p_iT_i p^c=c_i p^c-|c|p^{c+e_i} p i T i p b = b i p b − ∣ b ∣ p b + e i and p i T i p c = c i p c − ∣ c ∣ p c + e i
so the left side of (48) equals b i ν − ∣ b ∣ ν i b_i\nu-|b|\nu_i b i ν − ∣ b ∣ ν i , and the right side equals ( ∣ a ∣ + ∣ c ∣ ) ν i − ( a i + c i ) ν (|a|+|c|)\nu_i-(a_i+c_i)\nu ( ∣ a ∣ + ∣ c ∣ ) ν i − ( a i + c i ) ν .
Step 3: comparison of the two sides. After rearrangement, the two agree because
( ∣ a ∣ + ∣ b ∣ + ∣ c ∣ ) ν i = ( a i + b i + c i ) ν (|a|+|b|+|c|)\nu_i=(a_i+b_i+c_i)\nu ( ∣ a ∣ + ∣ b ∣ + ∣ c ∣ ) ν i = ( a i + b i + c i ) ν
which is Lemma 3.7 (i). Indeed, the formulas for the two moments differ only by the factors
( a i ) b i + c i + 1 ( a i ) b i + c i = a i + b i + c i and ( ∣ a ∣ ) ∣ b ∣ + ∣ c ∣ + 1 ( ∣ a ∣ ) ∣ b ∣ + ∣ c ∣ = ∣ a ∣ + ∣ b ∣ + ∣ c ∣ \frac{(a_i)_{b_i+c_i+1}}{(a_i)_{b_i+c_i}}=a_i+b_i+c_i
\qquad\text{and}\qquad
\frac{(|a|)_{|b|+|c|+1}}{(|a|)_{|b|+|c|}}=|a|+|b|+|c| ( a i ) b i + c i ( a i ) b i + c i + 1 = a i + b i + c i and ( ∣ a ∣ ) ∣ b ∣ + ∣ c ∣ ( ∣ a ∣ ) ∣ b ∣ + ∣ c ∣ + 1 = ∣ a ∣ + ∣ b ∣ + ∣ c ∣
in the numerator and in the denominator, respectively. □
The expression for the operator
Verification of (50). Indeed, the terms involving a a a agree, since ∑ i a i T i g = ∑ i ( a i − ∣ a ∣ p i ) ∂ i g \sum_i a_iT_i g=\sum_i(a_i-|a|p_i)\partial_i g ∑ i a i T i g = ∑ i ( a i − ∣ a ∣ p i ) ∂ i g . For the others, write E = ∑ j p j ∂ j \mathcal{E}=\sum_jp_j\partial_j E = ∑ j p j ∂ j , so that T i = ∂ i − E T_i=\partial_i-\mathcal{E} T i = ∂ i − E by (47). Then
T i 2 g = ∂ i 2 g − ∂ i ( E g ) − E ( ∂ i g ) + E ( E g ) , T_i^2g=\partial_i^2g-\partial_i(\mathcal{E}g)-\mathcal{E}(\partial_i g)+\mathcal{E}(\mathcal{E}g), T i 2 g = ∂ i 2 g − ∂ i ( E g ) − E ( ∂ i g ) + E ( E g ) ,
∂ i ( E g ) = ∂ i g + E ( ∂ i g ) , \partial_i(\mathcal{E}g)=\partial_i g+\mathcal{E}(\partial_i g), ∂ i ( E g ) = ∂ i g + E ( ∂ i g ) ,
E ( E g ) = E g + ∑ j , k p j p k ∂ j ∂ k g , \mathcal{E}(\mathcal{E}g)=\mathcal{E}g+\sum_{j,k}p_jp_k\partial_j\partial_k g, E ( E g ) = E g + j , k ∑ p j p k ∂ j ∂ k g ,
and therefore
∑ i p i T i 2 g = ∑ i p i ∂ i 2 g − 2 ∑ i , j p i p j ∂ i ∂ j g − E g + ( ∑ i p i ) ( E g + ∑ j , k p j p k ∂ j ∂ k g ) = ∑ i , j p i ( δ i j − p j ) ∂ i ∂ j g on the simplex. \begin{aligned}
\sum_i p_iT_i^2g
&=\sum_i p_i\partial_i^2g-2\sum_{i,j}p_ip_j\partial_i\partial_jg-\mathcal{E}g\\
&\quad+\left(\sum_i p_i\right)\left(\mathcal{E}g+\sum_{j,k}p_jp_k\partial_j\partial_k g\right)\\
&=\sum_{i,j}p_i(\delta_{ij}-p_j)\partial_i\partial_jg
\end{aligned}
\qquad\text{on the simplex.} i ∑ p i T i 2 g = i ∑ p i ∂ i 2 g − 2 i , j ∑ p i p j ∂ i ∂ j g − E g + ( i ∑ p i ) E g + j , k ∑ p j p k ∂ j ∂ k g = i , j ∑ p i ( δ ij − p j ) ∂ i ∂ j g on the simplex.
□
Symmetry and eigenvalues
Proof of Lemma 5.10 . Part (i). Apply Lemma 5.9 with f ˉ \bar f f ˉ in place of g g g and T i g T_i g T i g in place of v v v . Since T i T_i T i has real coefficients, T i f ˉ = T i f ‾ T_i\bar f=\overline{T_i f} T i f ˉ = T i f , and the identity reads
E a [ p i T i f ‾ T i g ] = E a [ f ˉ ( ( ∣ a ∣ p i − a i ) T i g − p i T i 2 g ) ] . \mathbb{E}_a\left[p_i\overline{T_i f}T_i g\right]
=\mathbb{E}_a\left[\bar f\left((|a|p_i-a_i)T_i g-p_iT_i^2g\right)\right]. E a [ p i T i f T i g ] = E a [ f ˉ ( ( ∣ a ∣ p i − a i ) T i g − p i T i 2 g ) ] .
Summing over i i i , using the identity ∑ i p i T i g = 0 \sum_i p_iT_i g=0 ∑ i p i T i g = 0 on the simplex, and comparing with (50) gives
E a Γ ( f , g ) = − E a [ f ˉ ∑ i ( a i T i g + p i T i 2 g ) ] = − ⟨ f , L a g ⟩ a . \begin{aligned}
\mathbb{E}_a\Gamma(f,g)=-\mathbb{E}_a\left[\bar f\sum_i(a_iT_i g+p_iT_i^2g)\right] \\
&=-\langle f,L_a g\rangle_a.
\end{aligned} E a Γ ( f , g ) = − E a [ f ˉ i ∑ ( a i T i g + p i T i 2 g ) ] = − ⟨ f , L a g ⟩ a .
Since Γ ( f , g ) = Γ ( g , f ) \Gamma(f,g)=\Gamma(g,f) Γ ( f , g ) = Γ ( g , f ) , the operator L a L_a L a is symmetric, and
⟨ g , L a g ⟩ a = − E a Γ ( g , g ) ≤ 0. \langle g,L_ag\rangle_a=-\mathbb{E}_a\Gamma(g,g)\le0. ⟨ g , L a g ⟩ a = − E a Γ ( g , g ) ≤ 0.
Part (ii). Each term of L a L_a L a maps polynomials of degree at most m m m to such polynomials. Let g ∈ R r a g\in\mathbb{R}^a_r g ∈ R r a , choose a representative of degree at most r r r , and let g r g_r g r be its homogeneous part of degree r r r . The terms of L a L_a L a that do not lower the degree are − ∑ i , j p i p j ∂ i ∂ j − ∣ a ∣ ∑ i p i ∂ i -\sum_{i,j}p_ip_j\partial_i\partial_j-|a|\sum_i p_i\partial_i − ∑ i , j p i p j ∂ i ∂ j − ∣ a ∣ ∑ i p i ∂ i , and two applications of Euler’s identity evaluate them on g r g_r g r to − r ( r − 1 ) g r − ∣ a ∣ r g r -r(r-1)g_r-|a|rg_r − r ( r − 1 ) g r − ∣ a ∣ r g r . Hence Δ = L a g + r ( ∣ a ∣ + r − 1 ) g \Delta=L_ag+r(|a|+r-1)g Δ = L a g + r ( ∣ a ∣ + r − 1 ) g has degree at most r − 1 r-1 r − 1 .
For every v v v of degree at most r − 1 r-1 r − 1 , we have ⟨ v , g ⟩ a = 0 \langle v,g\rangle_a=0 ⟨ v , g ⟩ a = 0 and, by the symmetry in (i),
⟨ v , L a g ⟩ a = ⟨ L a v , g ⟩ a = 0 \langle v,L_ag\rangle_a=\langle L_av,g\rangle_a=0 ⟨ v , L a g ⟩ a = ⟨ L a v , g ⟩ a = 0
because L a v L_av L a v has degree at most r − 1 r-1 r − 1 . Hence ⟨ v , Δ ⟩ a = 0 \langle v,\Delta\rangle_a=0 ⟨ v , Δ ⟩ a = 0 , and taking v = Δ v=\Delta v = Δ gives Δ = 0 \Delta=0 Δ = 0 .
Part (iii). Decompose h = ∑ j ≤ r h j h=\sum_{j\le r}h_j h = ∑ j ≤ r h j with h j ∈ R j a h_j\in\mathbb{R}^a_j h j ∈ R j a . By (i) and (ii),
E a Γ ( h , h ) = − ⟨ h , L a h ⟩ a = ∑ j j ( ∣ a ∣ + j − 1 ) ∥ h j ∥ a 2 . \mathbb{E}_a\Gamma(h,h)=-\langle h,L_ah\rangle_a=\sum_j j(|a|+j-1)\lVert h_j\rVert_a^2. E a Γ ( h , h ) = − ⟨ h , L a h ⟩ a = j ∑ j ( ∣ a ∣ + j − 1 ) ∥ h j ∥ a 2 .
because the h j h_j h j are orthogonal and L a L_a L a maps each R j a \mathbb{R}^a_j R j a to itself, and the coefficient j ( ∣ a ∣ + j − 1 ) j(|a|+j-1) j ( ∣ a ∣ + j − 1 ) is at most r ( ∣ a ∣ + r − 1 ) r(|a|+r-1) r ( ∣ a ∣ + r − 1 ) .
The mass of a set of outcomes
Proof of Lemma 5.8. Step 1: reductions. Since ∣ h ∣ 2 = ( Re h ) 2 + ( Im h ) 2 |h|^2=(\operatorname{Re}h)^2+(\operatorname{Im}h)^2 ∣ h ∣ 2 = ( Re h ) 2 + ( Im h ) 2 and both parts have degree at most r r r , it suffices to treat real h h h . Write y 2 = E a [ p ( S ) h 2 ] y^2=\mathbb{E}_a[p(S)h^2] y 2 = E a [ p ( S ) h 2 ] and b = a ( S ) b=a(S) b = a ( S ) . If r > ∣ a ∣ r>|a| r > ∣ a ∣ , then the claim holds because y 2 ≤ ∥ h ∥ a 2 y^2\le\lVert h\rVert_a^2 y 2 ≤ ∥ h ∥ a 2 and ( b + r ) / ∣ a ∣ > 1 (b+r)/|a|>1 ( b + r ) /∣ a ∣ > 1 . We may therefore assume r ≤ ∣ a ∣ r\le|a| r ≤ ∣ a ∣ , whence r ( ∣ a ∣ + r − 1 ) ≤ 2 r ∣ a ∣ r(|a|+r-1)\le2r|a| r ( ∣ a ∣ + r − 1 ) ≤ 2 r ∣ a ∣ .
Step 2: an identity for y 2 y^2 y 2 . We combine three facts:
the formula L a p ( S ) = b − ∣ a ∣ p ( S ) L_ap(S)=b-|a|p(S) L a p ( S ) = b − ∣ a ∣ p ( S ) ;
the identity E a Γ ( f , g ) = − ⟨ f , L a g ⟩ a \mathbb{E}_a\Gamma(f,g)=-\langle f,L_ag\rangle_a E a Γ ( f , g ) = − ⟨ f , L a g ⟩ a of Lemma 5.10(i), with f = h 2 f=h^2 f = h 2 and g = p ( S ) g=p(S) g = p ( S ) ;
the product rule Γ ( h 2 , p ( S ) ) = 2 h Γ ( h , p ( S ) ) \Gamma(h^2,p(S))=2h\Gamma(h,p(S)) Γ ( h 2 , p ( S )) = 2 h Γ ( h , p ( S )) , which holds because the form Γ \Gamma Γ is built from first derivatives.
Together they give
∣ a ∣ y 2 − b ∥ h ∥ a 2 = − E a [ h 2 L a p ( S ) ] = E a Γ ( h 2 , p ( S ) ) = 2 E a [ h Γ ( h , p ( S ) ) ] . |a|y^2-b\lVert h\rVert_a^2=-\mathbb{E}_a[h^2L_ap(S)]
=\mathbb{E}_a\Gamma(h^2,p(S))=2\mathbb{E}_a[h\Gamma(h,p(S))]. ∣ a ∣ y 2 − b ∥ h ∥ a 2 = − E a [ h 2 L a p ( S )] = E a Γ ( h 2 , p ( S )) = 2 E a [ h Γ ( h , p ( S ))] .
Step 3: a bound on the right side of Step 2. At every point of the simplex, Γ \Gamma Γ is a positive semidefinite form, so
∣ Γ ( h , p ( S ) ) ∣ ≤ Γ ( h , h ) Γ ( p ( S ) , p ( S ) ) , |\Gamma(h,p(S))|\le\sqrt{\Gamma(h,h)}\sqrt{\Gamma(p(S),p(S))}, ∣Γ ( h , p ( S )) ∣ ≤ Γ ( h , h ) Γ ( p ( S ) , p ( S )) ,
Γ ( p ( S ) , p ( S ) ) = ∑ i , j ∈ S p i ( δ i j − p j ) = p ( S ) ( 1 − p ( S ) ) ≤ p ( S ) . \Gamma(p(S),p(S))=\sum_{i,j\in S}p_i(\delta_{ij}-p_j)
=p(S)(1-p(S))\le p(S). Γ ( p ( S ) , p ( S )) = i , j ∈ S ∑ p i ( δ ij − p j ) = p ( S ) ( 1 − p ( S )) ≤ p ( S ) .
Taking expectations, applying the Cauchy–Schwarz inequality, and using Lemma 5.10(iii) together with the bound r ( ∣ a ∣ + r − 1 ) ≤ 2 r ∣ a ∣ r(|a|+r-1)\le2r|a| r ( ∣ a ∣ + r − 1 ) ≤ 2 r ∣ a ∣ of Step 1, we obtain
2 E a [ h Γ ( h , p ( S ) ) ] ≤ 2 E a [ p ( S ) ∣ h ∣ Γ ( h , h ) ] ≤ 2 y E a Γ ( h , h ) ≤ 2 y 2 r ∣ a ∣ ∥ h ∥ a . 2\mathbb{E}_a[h\mathop{\Gamma}(h,p(S))]\le2\mathbb{E}_a\left[\sqrt{p(S)}|h|\sqrt{\mathop{\Gamma}(h,h)}\right]
\le2y\sqrt{\mathbb{E}_a\mathop{\Gamma}(h,h)}\le2y\sqrt{2r|a|}\,\lVert h\rVert_a. 2 E a [ h Γ ( h , p ( S ))] ≤ 2 E a [ p ( S ) ∣ h ∣ Γ ( h , h ) ] ≤ 2 y E a Γ ( h , h ) ≤ 2 y 2 r ∣ a ∣ ∥ h ∥ a .
Finally, by Steps 2 and 3 for the first inequality and by the arithmetic–geometric mean inequality for the second,
∣ a ∣ y 2 − b ∥ h ∥ a 2 ≤ 2 y 2 r ∣ a ∣ ∥ h ∥ a ≤ ∣ a ∣ 2 y 2 + 4 r ∥ h ∥ a 2 , \begin{aligned}
|a|y^2-b\lVert h\rVert_a^2\le2y\sqrt{2r|a|}\,\lVert h\rVert_a \\
&\le\frac{|a|}{2}y^2+4r\lVert h\rVert_a^2,
\end{aligned} ∣ a ∣ y 2 − b ∥ h ∥ a 2 ≤ 2 y 2 r ∣ a ∣ ∥ h ∥ a ≤ 2 ∣ a ∣ y 2 + 4 r ∥ h ∥ a 2 ,
that is,
y 2 ≤ ( 2 b + 8 r ) ∥ h ∥ a 2 ∣ a ∣ ≤ 8 ( b + r ) ∥ h ∥ a 2 ∣ a ∣ . y^2\le\frac{(2b+8r)\lVert h\rVert_a^2}{|a|}\le\frac{8(b+r)\lVert h\rVert_a^2}{|a|}. y 2 ≤ ∣ a ∣ ( 2 b + 8 r ) ∥ h ∥ a 2 ≤ ∣ a ∣ 8 ( b + r ) ∥ h ∥ a 2 .
Raising the level by one
Proof of Lemma 5.18. Write G G G for the input of L + L_+ L + and F = F ⊥ ⊗ ∣ ⊥ ⟩ + ∑ i F i ⊗ ∣ i ⟩ F=F_\perp\otimes|\perp\rangle+\sum_iF_i\otimes|i\rangle F = F ⊥ ⊗ ∣ ⊥ ⟩ + ∑ i F i ⊗ ∣ i ⟩ for the input of L − L_- L − . Norms without subscripts are norms of vector-valued polynomials; (44) and (45) convert them to Dirichlet norms. For L + L_+ L + we consider pairs consisting of a block of G G G and an outcome i i i . For L − L_- L − we consider pairs consisting of an outcome i i i and a block of F i F_i F i . We first identify the output blocks and then bound their contributions.
Step 1: the output blocks. By the table, the part of each pair that raises the level lies in at most one output block.
For L + L_+ L + , the output records i i i in the appended register, and the output pattern is the input pattern plus e i e_i e i . The upward cases are the following two, which are rows one and three of the table with the signs of the entries reversed:
the case γ i ≥ 1 \gamma_i\ge1 γ i ≥ 1 , in which the degree under the Dirichlet measure is unchanged;
the case γ i = − 1 \gamma_i=-1 γ i = − 1 , in which the degree under the Dirichlet measure rises by one.
The two are distinguished by the value of the output pattern at i i i . Hence the output block and the outcome determine the input block, so the contributions of distinct pairs for L + L_+ L + are pairwise orthogonal.
Step 2: the map L + L_+ L + . Let u γ h u_\gamma h u γ h , with h ∈ R a h\in\mathbb{R}^{a} h ∈ R a , a = a ( γ ) a=a(\gamma) a = a ( γ ) , and ∣ γ ∣ 1 + 2 r ≤ d |\gamma|_1+2r\le d ∣ γ ∣ 1 + 2 r ≤ d , be a block of G G G . Only the outcomes i i i in the occupied set S = { i : γ i ≠ 0 } S=\{i:\gamma_i\ne0\} S = { i : γ i = 0 } receive a contribution one level up from it, and projecting onto that level does not increase norms, so its contribution is at most
∑ i ∈ S ∥ α i u γ h ∥ 2 = M γ E a [ p ( S ) ∣ h ∣ 2 ] \sum_{i\in S}\lVert\alpha_i u_\gamma h\rVert^2=M_\gamma\mathbb{E}_a[p(S)|h|^2] i ∈ S ∑ ∥ α i u γ h ∥ 2 = M γ E a [ p ( S ) ∣ h ∣ 2 ]
≤ 8 a ( S ) + r ∣ a ∣ M γ ∥ h ∥ a 2 ≤ 16 d N ∥ u γ h ∥ 2 , \le8\frac{a(S)+r}{|a|}M_\gamma\lVert h\rVert_a^2\le16\frac{d}{N}\lVert u_\gamma h\rVert^2, ≤ 8 ∣ a ∣ a ( S ) + r M γ ∥ h ∥ a 2 ≤ 16 N d ∥ u γ h ∥ 2 ,
by (44) and Lemma 5.8, where the last step uses
a ( S ) = ∣ S ∣ + ∣ γ ∣ 1 ≤ 2 ∣ γ ∣ 1 , a(S)=|S|+|\gamma|_1\le2|\gamma|_1, a ( S ) = ∣ S ∣ + ∣ γ ∣ 1 ≤ 2∣ γ ∣ 1 ,
hence
a ( S ) + r ≤ 2 ( ∣ γ ∣ 1 + 2 r ) ≤ 2 d , a(S)+r\le2(|\gamma|_1+2r)\le2d, a ( S ) + r ≤ 2 ( ∣ γ ∣ 1 + 2 r ) ≤ 2 d ,
and ∣ a ∣ ≥ N |a| \ge N ∣ a ∣ ≥ N . Summing over the blocks of G G G , whose contributions are orthogonal, gives the bound 16 d / N ≤ 36 ( d + 1 ) / N 16d/N \le36(d+1)/N 16 d / N ≤ 36 ( d + 1 ) / N for L + L_+ L + .
For L − L_- L − , fix an output block ( γ , r ) (\gamma,r) ( γ , r ) . The contributions to it from one level below come from pairs of two types, which can be read off the output pattern.
In type I , γ i ≤ − 2 \gamma_i \le-2 γ i ≤ − 2 and the input block is ( γ + e i , r ) (\gamma+e_i,r) ( γ + e i , r ) , which is the first row of the table.
In type II , γ i = 0 \gamma_i=0 γ i = 0 and the input block is ( γ + e i , r − 1 ) (\gamma+e_i,r-1) ( γ + e i , r − 1 ) , which is the third row.
Each pair for L − L_- L − belongs to at most one type and contributes to at most one output block.
For output block ( γ , r ) = ( 0 , 1 ) (\gamma,r)=(0,1) ( γ , r ) = ( 0 , 1 ) , the inputs α i v i ⊗ ∣ i ⟩ \alpha_i v_i \otimes|i\rangle α i v i ⊗ ∣ i ⟩ , with v i v_i v i constant, contribute ( p i − 1 / N ) v i (p_i-1/N)v_i ( p i − 1/ N ) v i . We bound their sum in each output block, then add the squared norms of the orthogonal output blocks. Each pair contributes to at most one such block.
Step 3: repeated unpaired factors in L − L_- L − . * Fix an output block ( γ , r ) (\gamma,r) ( γ , r ) with a = a ( γ ) a=a(\gamma) a = a ( γ ) , and let S = { i : γ i ≤ − 2 } S=\{i:\gamma_i\le-2\} S = { i : γ i ≤ − 2 } . For i ∈ S i\in S i ∈ S , the relevant block of F i F_i F i is u γ + e i h i u_{\gamma+e_i}h_i u γ + e i h i , with h i ∈ R a − e i h_i\in R^{a-e_i} h i ∈ R a − e i . Multiplication by α i ‾ \overline{\alpha_i} α i gives u γ h i u_\gamma h_i u γ h i . Before projection onto R a R^a R a , these contributions add to u γ ∑ i ∈ S h i u_\gamma\sum_{i\in S}h_i u γ ∑ i ∈ S h i . The projection does not increase norms.
By the Cauchy–Schwarz inequality, pointwise,
∣ ∑ i ∈ S h i ∣ 2 ≤ p ( S ) ∑ i ∈ S ∣ h i ∣ 2 p i . \left|\sum_{i\in S}h_i\right|^2\le p(S)\sum_{i\in S}\frac{|h_i|^2}{p_i}. i ∈ S ∑ h i 2 ≤ p ( S ) i ∈ S ∑ p i ∣ h i ∣ 2 .
so by (45) in the direction of decreasing magnitude,
∥ u γ ∑ i ∈ S h i ∥ a 2 ≤ M γ E a [ p ( S ) ∑ i ∈ S ∣ h i ∣ 2 p i ] = ∑ i ∈ S M γ + e i E a − e i [ p ( S ) ∣ h i ∣ 2 ] . \left\|u_\gamma\sum_{i\in S}h_i\right\|_a^2
\le M_\gamma\mathbb{E}_a\left[p(S)\sum_{i\in S}\frac{|h_i|^2}{p_i}\right]
=\sum_{i\in S}M_{\gamma+e_i}\mathbb{E}_{a-e_i}\left[p(S)|h_i|^2\right]. u γ i ∈ S ∑ h i a 2 ≤ M γ E a [ p ( S ) i ∈ S ∑ p i ∣ h i ∣ 2 ] = i ∈ S ∑ M γ + e i E a − e i [ p ( S ) ∣ h i ∣ 2 ] .
Each input block lies in P ≤ d \mathcal{P}_{\le d} P ≤ d , and therefore ∣ γ ∣ 1 − 1 + 2 r ≤ d |\gamma|_1-1+2r\le d ∣ γ ∣ 1 − 1 + 2 r ≤ d . In the measure a − e i a-e_i a − e i , whose total is ∣ a ∣ − 1 ≥ N |a|-1\ge N ∣ a ∣ − 1 ≥ N , we have
( a − e i ) ( S ) + r ≤ a ( S ) + r ≤ 2 ( ∣ γ ∣ 1 + 2 r ) ≤ 2 ( d + 1 ) . (a-e_i)(S)+r\le a(S)+r
\le2(|\gamma|_1+2r)\le2(d+1). ( a − e i ) ( S ) + r ≤ a ( S ) + r ≤ 2 ( ∣ γ ∣ 1 + 2 r ) ≤ 2 ( d + 1 ) .
Lemma 5.8 therefore gives
E a − e i [ p ( S ) ∣ h i ∣ 2 ] ≤ 16 d + 1 N ∥ h i ∥ a − e i 2 , \mathbb{E}_{a-e_i}\left[p(S)|h_i|^2\right]\le16\frac{d+1}{N}\|h_i\|_{a-e_i}^2, E a − e i [ p ( S ) ∣ h i ∣ 2 ] ≤ 16 N d + 1 ∥ h i ∥ a − e i 2 ,
and the type I contribution has squared norm at most ( 16 ( d + 1 ) / N ) ∑ i ∈ S ∥ u γ + e i h i ∥ 2 (16(d+1)/N)\sum_{i\in S}\|u_{\gamma+e_i}h_i\|^2 ( 16 ( d + 1 ) / N ) ∑ i ∈ S ∥ u γ + e i h i ∥ 2 .
Step 4: paired conjugate factors in L − L_- L − . * For r = 0 r=0 r = 0 there is no contribution of this type, so assume r ≥ 1 r\ge1 r ≥ 1 . For each i i i with γ i = 0 \gamma_i=0 γ i = 0 , the relevant block of F i F_i F i is u γ + e i h i u_{\gamma+e_i}h_i u γ + e i h i , with h i ∈ R a + e i h_i\in R^{a+e_i} h i ∈ R a + e i . Set h i = 0 h_i=0 h i = 0 for the other outcomes. Multiplication by α i ‾ \overline{\alpha_i} α i gives u γ p i h i u_\gamma p_i h_i u γ p i h i . After summation and projection onto R a R^a R a , the contribution is u γ Π r a ∑ i p i h i u_\gamma\Pi_r^a\sum_i p_i h_i u γ Π r a ∑ i p i h i .
This is the situation of Lemma 5.17 with r − 1 r-1 r − 1 in place of r r r , which gives
∥ Π r a ∑ i p i h i ∥ a 2 ≤ r ∣ a ∣ + 2 r − 1 ∑ i E a [ p i ∣ h i ∣ 2 ] ≤ d + 1 2 N ∑ i E a [ p i ∣ h i ∣ 2 ] . \left\|\Pi_r^a\sum_i p_i h_i\right\|_a^2
\le\frac{r}{|a|+2r-1}\sum_i\mathbb{E}_a[p_i|h_i|^2]
\le\frac{d+1}{2N}\sum_i\mathbb{E}_a[p_i|h_i|^2]. Π r a i ∑ p i h i a 2 ≤ ∣ a ∣ + 2 r − 1 r i ∑ E a [ p i ∣ h i ∣ 2 ] ≤ 2 N d + 1 i ∑ E a [ p i ∣ h i ∣ 2 ] .
using ∣ a ∣ ≥ N |a| \ge N ∣ a ∣ ≥ N and r ≤ ( d + 1 ) / 2 r \le(d+1)/2 r ≤ ( d + 1 ) /2 , the latter from the degree constraint ∣ γ ∣ 1 + 1 + 2 ( r − 1 ) ≤ d |\gamma|_1 + 1 + 2(r-1) \le d ∣ γ ∣ 1 + 1 + 2 ( r − 1 ) ≤ d of the input blocks.
By (45) in the direction of increasing magnitude, M γ E a [ p i ∣ h i 2 ] = ∥ u γ + e i h i ∥ 2 M_\gamma\mathbb{E}_a[p_i\mid h_i^2] = \lVert u_{\gamma+e_i h_i}\rVert^2 M γ E a [ p i ∣ h i 2 ] = ∥ u γ + e i h i ∥ 2 , so multiplying by M γ M_\gamma M γ shows that the type II contribution has squared norm at most ( ( d + 1 ) / ( 2 N ) ) ∑ i ∥ u γ + e i h i ∥ 2 ((d+1)/(2N))\sum_i \lVert u_{\gamma+e_i h_i}\rVert^2 (( d + 1 ) / ( 2 N )) ∑ i ∥ u γ + e i h i ∥ 2 .
Step 5: adding the contributions. Within one output block, add the contributions of the two types and apply ∥ x + y ∥ 2 ≤ 2 ∥ x ∥ 2 + 2 ∥ y ∥ 2 \lVert x+y\rVert^2 \le2\lVert x\rVert^2+2\lVert y\rVert^2 ∥ x + y ∥ 2 ≤ 2 ∥ x ∥ 2 + 2 ∥ y ∥ 2 . Its squared norm is at most 2 ( 16 + 1 / 2 ) ( d + 1 ) / N ≤ 36 ( d + 1 ) / N 2(16+1/2)(d+1)/N \le36(d+1)/N 2 ( 16 + 1/2 ) ( d + 1 ) / N ≤ 36 ( d + 1 ) / N times the sum of the squared norms of its input components. We then sum over the orthogonal output blocks. Each pair contributes to at most one block and one type, so each input component is counted at most once. Their total squared norm is at most ∑ i ∥ F i ∥ 2 ≤ ∥ F ∥ 2 \sum_i \lVert F_i\rVert^2 \le\lVert F\rVert^2 ∑ i ∥ F i ∥ 2 ≤ ∥ F ∥ 2 , proving the bound for L − L_- L − .
Lowering the level by one
Proof of Lemma 5.19. Step 1: reformulation. Let
L ↓ = ∑ k ≥ 0 P k L P k + 1 L_\downarrow= \sum_{k\ge0} P_k L P_{k+1} L ↓ = k ≥ 0 ∑ P k L P k + 1
be the part of L L L that lowers the level. Since its terms lie at distinct levels, the claim is
∥ L ↓ F ∥ 2 ≤ 36 d + 2 N ∥ F ∥ 2 . \lVert L_\downarrow F\rVert^2 \le36\frac{d+2}{N}\lVert F\rVert^2. ∥ L ↓ F ∥ 2 ≤ 36 N d + 2 ∥ F ∥ 2 .
Step 2: duality. The state L ↓ F L_\downarrow F L ↓ F lies in P ≤ d + 1 P_{\le d+1} P ≤ d + 1 , because L L L raises the degree by at most one, so
∥ L ↓ F ∥ = sup G ∈ P ≤ d + 1 , ∥ G ∥ = 1 ∣ ⟨ G , L ↓ F ⟩ ∣ . \lVert L_\downarrow F\rVert= \sup_{\substack{G\in P_{\le d+1},\ \lVert G\rVert=1}} |\langle G,L_\downarrow F\rangle|. ∥ L ↓ F ∥ = G ∈ P ≤ d + 1 , ∥ G ∥ = 1 sup ∣ ⟨ G , L ↓ F ⟩ ∣.
Since the P k P_k P k are self-adjoint,
⟨ G , L ↓ F ⟩ = ∑ k ⟨ P k + 1 L † P k G , F ⟩ = ⟨ ( L † ) ↑ G , F ⟩ , \langle G,L_\downarrow F\rangle= \sum_k \langle P_{k+1}L^\dagger P_kG,F\rangle= \langle(L^\dagger)_\uparrow G,F\rangle, ⟨ G , L ↓ F ⟩ = k ∑ ⟨ P k + 1 L † P k G , F ⟩ = ⟨( L † ) ↑ G , F ⟩ ,
( L † ) ↑ = ∑ k P k + 1 L † P k . (L^\dagger)_\uparrow= \sum_k P_{k+1}L^\dagger P_k. ( L † ) ↑ = k ∑ P k + 1 L † P k .
Step 3: the bound. Since L ↑ + = L − L^+_\uparrow=L_- L ↑ + = L − and L − † = L + L^\dagger_-=L_+ L − † = L + , we can apply Lemma 5.18 to L † L^\dagger L † at degree d + 1 d+1 d + 1 . This gives ∥ ( L † ) ↑ G ∥ 2 ≤ 36 ( d + 2 ) / N \lVert(L^\dagger)_\uparrow G\rVert^2 \le36(d+2)/N ∥( L † ) ↑ G ∥ 2 ≤ 36 ( d + 2 ) / N . The Cauchy–Schwarz inequality bounds the pairing:
∣ ⟨ ( L † ) ↑ G , F ⟩ ∣ ≤ ∥ ( L † ) ↑ G ∥ ∥ F ∥ . |\langle(L^\dagger)_\uparrow G,F\rangle| \le\lVert(L^\dagger)_\uparrow G\rVert\lVert F\rVert. ∣ ⟨( L † ) ↑ G , F ⟩ ∣ ≤ ∥( L † ) ↑ G ∥ ∥ F ∥ .
The heaviest outcome
Proof of Lemma 5.24 . For p p p uniform on the simplex and 0 < t < 1 0<t<1 0 < t < 1 , the joint tail satisfies
Pr [ p i 1 > t , … , p i k > t ] = ( 1 − k t ) + N − 1 , \Pr[p_{i_1}>t,\ldots,p_{i_k}>t] = (1-kt)_+^{N-1}, Pr [ p i 1 > t , … , p i k > t ] = ( 1 − k t ) + N − 1 ,
since the set in question is a copy of the simplex scaled by 1 − k t 1-kt 1 − k t . Inclusion–exclusion therefore gives
Pr [ max z p z > t ] = ∑ k ≥ 1 ( − 1 ) k + 1 ( N k ) ( 1 − k t ) + N − 1 . \Pr[\max_z p_z>t] = \sum_{k\ge1}(-1)^{k+1}\binom{N}{k}(1-kt)_+^{N-1}. Pr [ z max p z > t ] = k ≥ 1 ∑ ( − 1 ) k + 1 ( k N ) ( 1 − k t ) + N − 1 .
Integrating over t ∈ ( 0 , 1 ) t \in(0,1) t ∈ ( 0 , 1 ) gives
E max z p z = ∑ k = 1 N ( − 1 ) k + 1 ( N k ) 1 k N = 1 N ∫ 0 1 1 − ( 1 − x ) N x d x = 1 N ∫ 0 1 ∑ j = 0 N − 1 ( 1 − x ) j d x = H N N , \begin{aligned}
\mathbb{E}\max_z p_z=\sum_{k=1}^{N}(-1)^{k+1}\binom{N}{k}\frac{1}{kN} \\
&=\frac{1}{N}\int_0^1\frac{1-(1-x)^N}{x}\,dx \\
&=\frac{1}{N}\int_0^1\sum_{j=0}^{N-1}(1-x)^j\,dx=\frac{H_N}{N},
\end{aligned} E z max p z = k = 1 ∑ N ( − 1 ) k + 1 ( k N ) k N 1 = N 1 ∫ 0 1 x 1 − ( 1 − x ) N d x = N 1 ∫ 0 1 j = 0 ∑ N − 1 ( 1 − x ) j d x = N H N ,
where the second equality expands ( 1 − ( 1 − x ) N ) / x (1-(1-x)^N)/x ( 1 − ( 1 − x ) N ) / x by the binomial theorem and integrates term by term.
Moments of the ideal distribution
Proof of Lemma 6.2. Steps 1–3 prove part (i), and Steps 4–7 prove part (ii).
Step 1: the mean and the second moment in the Haar ensemble. By Lemma 3.7(i) with all parameters equal to 1,
E p x k = k ! ( N ) k , E p x k p y l = k ! l ! ( N ) k + l for x ≠ y . \mathbb{E}p_x^k=\frac{k!}{(N)_k},\qquad\mathbb{E}p_x^k p_y^l=\frac{k!l!}{(N)_{k+l}}\qquad\text{for }x\ne y. E p x k = ( N ) k k ! , E p x k p y l = ( N ) k + l k ! l ! for x = y .
Hence E M j = N j j ! / ( N ) j \mathbb{E}M_j=N^j j!/(N)_j E M j = N j j ! / ( N ) j , which is the stated value, and it is at most j ! j! j ! because ( N ) j ≥ N j (N)_j\ge N^j ( N ) j ≥ N j .
For the second moment, the two expectations above give
E M j 2 = N 2 j − 2 ( N E p x 2 j + N ( N − 1 ) E p x j p y j ) = N 2 j − 1 ( 2 j ) ! + ( N − 1 ) ( j ! ) 2 ( N ) 2 j ≤ ( j ! ) 2 + ( 2 j ) ! N , \begin{aligned}
\mathbb{E}M_j^2=N^{2j-2}\left(N\mathbb{E}p_x^{2j}+N(N-1)\mathbb{E}p_x^j p_y^j\right) \\
&=N^{2j-1}\frac{(2j)!+(N-1)(j!)^2}{(N)_{2j}} \\
&\le(j!)^2+\frac{(2j)!}{N},
\end{aligned} E M j 2 = N 2 j − 2 ( N E p x 2 j + N ( N − 1 ) E p x j p y j ) = N 2 j − 1 ( N ) 2 j ( 2 j )! + ( N − 1 ) ( j ! ) 2 ≤ ( j ! ) 2 + N ( 2 j )! ,
where the last step holds again because ( N ) 2 j ≥ N 2 j (N)_{2j}\ge N^{2j} ( N ) 2 j ≥ N 2 j .
Step 2: the variance of M j M_j M j in the Haar ensemble. We have
E M j ≥ j ! ( 1 − j ( j − 1 ) 2 N ) , \mathbb{E}M_j\ge j!\left(1-\frac{j(j-1)}{2N}\right), E M j ≥ j ! ( 1 − 2 N j ( j − 1 ) ) ,
because
∏ i < j ( 1 + i N ) − 1 ≥ 1 − ∑ i < j i N , \prod_{i<j}\left(1+\frac{i}{N}\right)^{-1}\ge1-\sum_{i<j}\frac{i}{N}, i < j ∏ ( 1 + N i ) − 1 ≥ 1 − i < j ∑ N i ,
so that ( E M j ) 2 ≥ ( j ! ) 2 ( 1 − j 2 / N ) (\mathbb{E}M_j)^2\ge(j!)^2(1-j^2/N) ( E M j ) 2 ≥ ( j ! ) 2 ( 1 − j 2 / N ) , which holds trivially when j 2 ≥ N j^2\ge N j 2 ≥ N . With Step 1, the bound on Var M j = E M j 2 − ( E M j ) 2 \operatorname{Var}M_j=\mathbb{E}M_j^2-(\mathbb{E}M_j)^2 Var M j = E M j 2 − ( E M j ) 2 follows.
Step 3: the value of E ( M 2 − 2 ) 2 \mathbb{E}(M_2-2)^2 E ( M 2 − 2 ) 2 . We have E ( M 2 − 2 ) 2 = E M 2 2 − 4 E M 2 + 4 \mathbb{E}(M_2-2)^2=\mathbb{E}M_2^2-4\mathbb{E}M_2+4 E ( M 2 − 2 ) 2 = E M 2 2 − 4 E M 2 + 4 , and its value follows from
E M 2 2 = N 2 ( 4 N + 20 ) ( N + 1 ) ( N + 2 ) ( N + 3 ) , \mathbb{E}M_2^2=\frac{N^2(4N+20)}{(N+1)(N+2)(N+3)}, E M 2 2 = ( N + 1 ) ( N + 2 ) ( N + 3 ) N 2 ( 4 N + 20 ) ,
which is the case j = 2 j=2 j = 2 of Step 1 before the last inequality. The bound 4 / N 4/N 4/ N follows from
N ( 4 N 2 − 4 N + 24 ) ≤ 4 ( N + 1 ) ( N + 2 ) ( N + 3 ) . N(4N^2-4N+24)\le4(N+1)(N+2)(N+3). N ( 4 N 2 − 4 N + 24 ) ≤ 4 ( N + 1 ) ( N + 2 ) ( N + 3 ) .
Step 4: the pairing bound in the Fourier ensemble. Let
X z = N f ^ ( z ) = N − 1 / 2 ∑ x χ z ( x ) f ( x ) , so that M j = 1 N ∑ z X z 2 j , X_z=\sqrt{N}\,\widehat{f}(z)=N^{-1/2}\sum_x\chi_z(x)f(x),\qquad\text{so that}\qquad M_j=\frac{1}{N}\sum_z X_z^{2j}, X z = N f ( z ) = N − 1/2 x ∑ χ z ( x ) f ( x ) , so that M j = N 1 z ∑ X z 2 j ,
and write r x = χ z ( x ) f ( x ) r_x=\chi_z(x)f(x) r x = χ z ( x ) f ( x ) . The r x r_x r x are independent uniform signs. In the expansion
X z 2 j = N − j ∑ x 1 , … , x 2 j r x 1 ⋯ r x 2 j , X_z^{2j}=N^{-j}\sum_{x_1,\ldots,x_{2j}}r_{x_1}\cdots r_{x_{2j}}, X z 2 j = N − j x 1 , … , x 2 j ∑ r x 1 ⋯ r x 2 j ,
the expectation of a term is 1 if every address occurs an even number of times in the tuple ( x 1 , … , x 2 j ) (x_1,\ldots,x_{2j}) ( x 1 , … , x 2 j ) and 0 otherwise. Every tuple of the first kind is constant on the pairs of at least one partition of its 2 j 2j 2 j positions into j j j pairs, obtained by pairing up the positions of each address. There are ( 2 j − 1 ) ! ! (2j-1)!! ( 2 j − 1 )!! partitions of the 2 j 2j 2 j positions into j j j pairs, and each is compatible with exactly N j N^j N j tuples, namely those constant on each of its pairs, so there are at most ( 2 j − 1 ) ! ! N j (2j-1)!!\,N^j ( 2 j − 1 )!! N j tuples of the first kind, and E X z 2 j ≤ ( 2 j − 1 ) ! ! = κ j \mathbb{E}X_z^{2j}\leq(2j-1)!!=\kappa_j E X z 2 j ≤ ( 2 j − 1 )!! = κ j . Hence E M j ≤ κ j \mathbb{E}M_j\leq\kappa_j E M j ≤ κ j . By the Cauchy–Schwarz inequality,
E [ X z 2 j X w 2 j ] ≤ ( E X z 4 j E X w 4 j ) 1 / 2 ≤ κ 2 j , \mathbb{E}[X_z^{2j}X_w^{2j}]\leq(\mathbb{E}X_z^{4j}\,\mathbb{E}X_w^{4j})^{1/2}\leq\kappa_{2j}, E [ X z 2 j X w 2 j ] ≤ ( E X z 4 j E X w 4 j ) 1/2 ≤ κ 2 j ,
hence E M j 2 ≤ κ 2 j \mathbb{E}M_j^2\leq\kappa_{2j} E M j 2 ≤ κ 2 j .
For N ≥ j N\geq j N ≥ j , the tuples with exactly j j j distinct addresses, each occurring twice, number κ j N ( N − 1 ) ⋯ ( N − j + 1 ) \kappa_jN(N-1)\cdots(N-j+1) κ j N ( N − 1 ) ⋯ ( N − j + 1 ) : their pairs of equal positions determine a unique pairing. Thus
κ j N ( N − 1 ) ⋯ ( N − j + 1 ) N j ≤ E M j ≤ κ j , \kappa_j\frac{N(N-1)\cdots(N-j+1)}{N^j}\leq\mathbb{E}M_j\leq\kappa_j, κ j N j N ( N − 1 ) ⋯ ( N − j + 1 ) ≤ E M j ≤ κ j ,
which proves E M j → κ j \mathbb{E}M_j\to\kappa_j E M j → κ j as N → ∞ N\to\infty N → ∞ for every fixed j j j .
Step 5: the exact fourth and sixth moments. The exact values are obtained by counting the tuples of the first kind exactly. For 2 j = 4 2j=4 2 j = 4 , they are the 3 N ( N − 1 ) 3N(N-1) 3 N ( N − 1 ) tuples that consist of two distinct addresses, each twice, and the N N N constant tuples, so
E X z 4 = 3 N 2 − 2 N N 2 = 3 − 2 N . \mathbb{E}X_z^4=\frac{3N^2-2N}{N^2}=3-\frac{2}{N}. E X z 4 = N 2 3 N 2 − 2 N = 3 − N 2 .
For 2 j = 6 2j=6 2 j = 6 , the tuples of the first kind are the 15 N ( N − 1 ) ( N − 2 ) 15N(N-1)(N-2) 15 N ( N − 1 ) ( N − 2 ) tuples with three distinct addresses, each twice; the 15 N ( N − 1 ) 15N(N-1) 15 N ( N − 1 ) tuples with one address four times and another twice; and the N N N constant tuples. Hence
E X z 6 = 15 N 2 − 30 N + 16 N 2 . \mathbb{E}X_z^6=\frac{15N^2-30N+16}{N^2}. E X z 6 = N 2 15 N 2 − 30 N + 16 .
Step 6: the variance of M 2 M_2 M 2 in the Fourier ensemble. Summing over z z z first and using (12), we obtain
M 2 = 1 N 3 ∑ z ∑ x , y , u , v χ z ( x ⊕ y ⊕ u ⊕ v ) f ( x ) f ( y ) f ( u ) f ( v ) = 1 N 2 ∑ x , y , u f ( x ) f ( y ) f ( u ) f ( x ⊕ y ⊕ u ) . \begin{aligned}
M_2=\frac{1}{N^3}\sum_z\sum_{x,y,u,v}\chi_z(x\oplus y\oplus u\oplus v)f(x)f(y)f(u)f(v) \\
&=\frac{1}{N^2}\sum_{x,y,u}f(x)f(y)f(u)f(x\oplus y\oplus u).
\end{aligned} M 2 = N 3 1 z ∑ x , y , u , v ∑ χ z ( x ⊕ y ⊕ u ⊕ v ) f ( x ) f ( y ) f ( u ) f ( v ) = N 2 1 x , y , u ∑ f ( x ) f ( y ) f ( u ) f ( x ⊕ y ⊕ u ) .
The triples ( x , y , u ) (x,y,u) ( x , y , u ) in the last sum are of two kinds.
If two of x , y , u x,y,u x , y , u coincide, the summand equals 1, and there are 3 N 2 − 2 N 3N^2-2N 3 N 2 − 2 N such triples.
Otherwise x , y , u x,y,u x , y , u and v = x ⊕ y ⊕ u v=x\oplus y\oplus u v = x ⊕ y ⊕ u are four distinct points, and the summand is a product of four independent signs with mean zero. There are N ( N − 1 ) ( N − 2 ) N(N-1)(N-2) N ( N − 1 ) ( N − 2 ) such triples.
The product of two summands of the second kind has mean 1 if their four-element sets coincide and mean 0 otherwise, since otherwise some sign occurs an odd number of times. Each four-element set { a , b , c , d } \{a,b,c,d\} { a , b , c , d } with a ⊕ b ⊕ c ⊕ d = 0 a\oplus b\oplus c\oplus d=0 a ⊕ b ⊕ c ⊕ d = 0 arises from exactly 4 ! = 24 4!=24 4 ! = 24 ordered triples ( x , y , u ) (x,y,u) ( x , y , u ) , one for each ordering of its elements. Hence each of the N ( N − 1 ) ( N − 2 ) N(N-1)(N-2) N ( N − 1 ) ( N − 2 ) triples of the second kind has a product of mean 1 with exactly 24 triples, itself included, and
Var M 2 = N − 4 ⋅ 24 ⋅ N ( N − 1 ) ( N − 2 ) ≤ 24 N . \operatorname{Var} M_2 = N^{-4} \cdot24 \cdot N(N-1)(N-2) \le\frac{24}{N}. Var M 2 = N − 4 ⋅ 24 ⋅ N ( N − 1 ) ( N − 2 ) ≤ N 24 .
Since E M 2 = 3 − 2 / N \mathbb{E}M_2 = 3 - 2/N E M 2 = 3 − 2/ N , this gives E ( M 2 − 3 ) 2 = Var M 2 + ( 2 / N ) 2 ≤ 28 / N \mathbb{E}(M_2-3)^2 = \operatorname{Var} M_2 + (2/N)^2 \le28/N E ( M 2 − 3 ) 2 = Var M 2 + ( 2/ N ) 2 ≤ 28/ N .
Step 7: the variance of M 3 M_3 M 3 in the Fourier ensemble. The variance of M 3 M_3 M 3 is bounded in the same way. Summing over z z z first gives
M 3 = N − 3 ∑ f ( x 1 ) ⋯ f ( x 6 ) , M_3 = N^{-3}\sum f(x_1)\cdots f(x_6), M 3 = N − 3 ∑ f ( x 1 ) ⋯ f ( x 6 ) ,
the sum running over the 6-tuples with x 1 ⊕ ⋯ ⊕ x 6 = 0 x_1 \oplus\cdots\oplus x_6 = 0 x 1 ⊕ ⋯ ⊕ x 6 = 0 . For such a tuple, let Y \mathcal{Y} Y be the set of addresses that occur an odd number of times in it. The product then equals ∏ y ∈ Y f ( y ) \prod_{y\in\mathcal{Y}} f(y) ∏ y ∈ Y f ( y ) , and the set Y \mathcal{Y} Y satisfies ⨁ y ∈ Y y = 0 \bigoplus_{y\in\mathcal{Y}} y = 0 ⨁ y ∈ Y y = 0 . Moreover, ∣ Y ∣ ∈ { 0 , 4 , 6 } |\mathcal{Y}| \in\{0,4,6\} ∣ Y ∣ ∈ { 0 , 4 , 6 } , because ∣ Y ∣ |\mathcal{Y}| ∣ Y ∣ has the parity of the total multiplicity 6, and the sum of two distinct addresses is not 0. We use three facts:
the tuples with Y = ∅ \mathcal{Y} = \varnothing Y = ∅ contribute E M 3 \mathbb{E}M_3 E M 3 ;
a product with Y ≠ ∅ \mathcal{Y} \ne\varnothing Y = ∅ has mean zero;
two products with distinct sets Y \mathcal{Y} Y are uncorrelated.
Hence
Var M 3 = N − 6 ∑ Y ≠ ∅ c Y 2 , \operatorname{Var} M_3 = N^{-6}\sum_{\mathcal{Y}\ne\varnothing} c_{\mathcal{Y}}^2, Var M 3 = N − 6 Y = ∅ ∑ c Y 2 ,
where c Y c_{\mathcal{Y}} c Y is the number of tuples with odd set Y \mathcal{Y} Y . We count these tuples for ∣ Y ∣ = 6 |\mathcal{Y}| = 6 ∣ Y ∣ = 6 and ∣ Y ∣ = 4 |\mathcal{Y}| = 4 ∣ Y ∣ = 4 .
A set of size 6 arises from its 720 orderings, so c Y = 720 c_{\mathcal{Y}} = 720 c Y = 720 , and there are at most N 5 / 720 N^5/720 N 5 /720 such sets, because an ordering of such a set is determined by its first five entries.
A set of size 4 arises from the 480 tuples in which one of its elements occurs three times and from the 360 ( N − 4 ) 360(N-4) 360 ( N − 4 ) tuples that contain one further address twice, so c Y ≤ 400 N c_{\mathcal{Y}} \le400N c Y ≤ 400 N , and there are at most N 3 / 24 N^3/24 N 3 /24 such sets, because an ordering is determined by its first three entries.
Hence
Var M 3 ≤ N − 6 ( 720 N 5 + N 3 24 ( 400 N ) 2 ) ≤ 10 4 N . \operatorname{Var} M_3 \le N^{-6}\left(720N^5+\frac{N^3}{24}(400N)^2\right)\le\frac{10^4}{N}. Var M 3 ≤ N − 6 ( 720 N 5 + 24 N 3 ( 400 N ) 2 ) ≤ N 1 0 4 .
Heavy outputs
We use the Haar L 2 L^2 L 2 inner product, the patterns, and the projections P k P_k P k of Section 5.1. All auxiliary initial registers are independent of the oracle, and any mixed state or measurement can be purified as in Lemma 3.2 . For a measurable w : [ 0 , 1 ] → [ 0 , 1 ] w : [0,1] \to[0,1] w : [ 0 , 1 ] → [ 0 , 1 ] , define the multiplication operator
( X w F ) ( ϕ ) = ∑ z w ( p z ) Π z F ( ϕ ) . (X_wF)(\phi)=\sum_z w(p_z)\Pi_zF(\phi). ( X w F ) ( ϕ ) = z ∑ w ( p z ) Π z F ( ϕ ) .
It is a positive contraction on the space of all square-integrable vector-valued functions. Its expectation in a final state is the expected payoff w ( p Z ) w(p_Z) w ( p Z ) .
Lemma A.1 (Bounded output rewards). Let N ≥ 2 N \ge2 N ≥ 2 and define
κ w = max { max N ≤ A ≤ 2 N − 1 E w ( Beta ( 1 , A − 1 ) ) , max N + 1 ≤ A ≤ 2 N E w ( Beta ( 2 , A − 2 ) ) } (79) \kappa_w=\max\left\{
\begin{aligned}
&\max_{N\le A\le2N-1}\mathbb{E}\,w(\operatorname{Beta}(1,A-1)),\\
&\max_{N+1\le A\le2N}\mathbb{E}\,w(\operatorname{Beta}(2,A-2))
\end{aligned}
\right\} \tag*{(79)} κ w = max ⎩ ⎨ ⎧ N ≤ A ≤ 2 N − 1 max E w ( Beta ( 1 , A − 1 )) , N + 1 ≤ A ≤ 2 N max E w ( Beta ( 2 , A − 2 )) ⎭ ⎬ ⎫ (79) where A A A ranges over integers. This is the largest value of ⟨ G , X w G ⟩ \langle G,X_wG\rangle ⟨ G , X w G ⟩ over unit vectors G G G of level zero. Every unit vector-valued polynomial F F F satisfies
⟨ F , X w F ⟩ ≤ κ w + λ ( F ) . (80) \langle F,X_wF\rangle\le\kappa_w+\lambda(F). \tag*{(80)} ⟨ F , X w F ⟩ ≤ κ w + λ ( F ) . (80) For w ( x ) = 1 { x > θ } w(x)=\mathbf{1}_{\{x>\theta\}} w ( x ) = 1 { x > θ } , 0 < θ < 1 0<\theta<1 0 < θ < 1 ,
κ w = ( 1 − θ ) N − 1 ( 1 + ( N − 1 ) θ ) . (81) \kappa_w=(1-\theta)^{N-1}(1+(N-1)\theta). \tag*{(81)} κ w = ( 1 − θ ) N − 1 ( 1 + ( N − 1 ) θ ) . (81) Proof. Step 1: level zero. A level-zero block has a square-free pattern γ \gamma γ and a constant polynomial factor. By (44) , its normalized inner product uses Dir ( α ( γ ) ) \operatorname{Dir}(\alpha(\gamma)) Dir ( α ( γ )) , where a i = 1 + ∣ γ i ∣ a_i=1+|\gamma_i| a i = 1 + ∣ γ i ∣ and A = N + ∣ γ ∣ 1 A=N+|\gamma|_1 A = N + ∣ γ ∣ 1 . On output branch z z z , p z p_z p z has law Beta ( 1 , A − 1 ) \operatorname{Beta}(1,A-1) Beta ( 1 , A − 1 ) if γ z = 0 \gamma_z=0 γ z = 0 , and Beta ( 2 , A − 2 ) \operatorname{Beta}(2,A-2) Beta ( 2 , A − 2 ) if ∣ γ z ∣ = 1 |\gamma_z|=1 ∣ γ z ∣ = 1 . In the first case 0 ≤ ∣ γ ∣ 1 ≤ N − 1 0\le|\gamma|_1\le N-1 0 ≤ ∣ γ ∣ 1 ≤ N − 1 ; in the second 1 ≤ ∣ γ ∣ 1 ≤ N 1\le|\gamma|_1\le N 1 ≤ ∣ γ ∣ 1 ≤ N . Multiplication by w ( p z ) w(p_z) w ( p z ) preserves the pattern and the output branch, so cross terms between distinct patterns or branches vanish. Thus ⟨ G , X w G ⟩ ≤ κ w ∥ G ∥ 2 \langle G,X_wG\rangle\le\kappa_w\|G\|^2 ⟨ G , X w G ⟩ ≤ κ w ∥ G ∥ 2 for every level-zero G G G . Every integer A A A in either range is realized by a square-free pattern and a constant vector supported on the specified output branch. After normalization, this vector attains the corresponding expectation. Hence the finite maximum in (79) is exact.
Step 2: the other levels. Write F 0 = P 0 F F_0=P_0F F 0 = P 0 F and F + = F − F 0 F_+=F-F_0 F + = F − F 0 . If F 0 ≠ 0 F_0\ne0 F 0 = 0 , put G = F 0 / ∥ F 0 ∥ G=F_0/\|F_0\| G = F 0 /∥ F 0 ∥ . Orthogonality and ∥ F ∥ = 1 \|F\|=1 ∥ F ∥ = 1 give
1 2 ∥ ∣ F ⟩ ⟨ F ∣ − ∣ G ⟩ ⟨ G ∣ ∥ 1 = 1 − ∣ ⟨ F , G ⟩ ∣ 2 = ∥ F + ∥ ≤ λ ( F ) . \frac{1}{2}\left\lVert|F\rangle\langle F|-|G\rangle\langle G|\right\rVert_1
=\sqrt{1-|\langle F,G\rangle|^2}=\|F_+\|\le\lambda(F). 2 1 ∥ ∣ F ⟩ ⟨ F ∣ − ∣ G ⟩ ⟨ G ∣ ∥ 1 = 1 − ∣ ⟨ F , G ⟩ ∣ 2 = ∥ F + ∥ ≤ λ ( F ) . These are rank-one operators on the Haar L 2 L^2 L 2 Hilbert space. In particular, G G G need not be normalized for each ϕ \phi ϕ or be an algorithm state. Since 0 ≤ X w ≤ I 0\le X_w\le I 0 ≤ X w ≤ I , its expectations differ by at most this trace distance. Together with Step 1, this proves (80) , including all cross terms. If F 0 = 0 F_0=0 F 0 = 0 , then λ ( F ) ≥ 1 \lambda(F)\ge1 λ ( F ) ≥ 1 and the bound follows from ⟨ F , X w F ⟩ ≤ 1 \langle F,X_wF\rangle\le1 ⟨ F , X w F ⟩ ≤ 1 .
Step 3: indicator rewards. Write v = 1 − θ v=1-\theta v = 1 − θ . The Beta ( 1 , A − 1 ) \operatorname{Beta}(1,A-1) Beta ( 1 , A − 1 ) tail is v A − 1 v^{A-1} v A − 1 , whose maximum is v N − 1 v^{N-1} v N − 1 . For b ≥ 1 b\ge1 b ≥ 1 , integrating the density b ( b + 1 ) x ( 1 − x ) b − 1 b(b+1)x(1-x)^{b-1} b ( b + 1 ) x ( 1 − x ) b − 1 gives
Pr [ Beta ( 2 , b ) > θ ] = v b ( 1 + b θ ) . (82) \Pr[\operatorname{Beta}(2,b)>\theta]=v^b(1+b\theta). \tag*{(82)} Pr [ Beta ( 2 , b ) > θ ] = v b ( 1 + b θ ) . (82) For S ( A ) = v A − 2 ( 1 + ( A − 2 ) θ ) S(A)=v^{A-2}(1+(A-2)\theta) S ( A ) = v A − 2 ( 1 + ( A − 2 ) θ ) ,
S ( A + 1 ) S ( A ) = 1 − ( A − 1 ) θ 2 1 + ( A − 2 ) θ < 1. \frac{S(A+1)}{S(A)}
=1-\frac{(A-1)\theta^2}{1+(A-2)\theta}<1. S ( A ) S ( A + 1 ) = 1 − 1 + ( A − 2 ) θ ( A − 1 ) θ 2 < 1. The second maximum in (79) is therefore attained at A = N + 1 A=N+1 A = N + 1 and dominates the first. This proves (81) .
Proof of Theorem 6.12. Step 1: the calibration and finite bounds. Under Haar measure, p z ∼ Beta ( 1 , N − 1 ) p_z\sim\operatorname{Beta}(1,N-1) p z ∼ Beta ( 1 , N − 1 ) and Pr [ p z > θ ] = ( 1 − θ ) N − 1 \Pr[p_z>\theta]=(1-\theta)^{N-1} Pr [ p z > θ ] = ( 1 − θ ) N − 1 . Thus θ N \theta_N θ N in (59) is its median, and an output independent of ϕ \phi ϕ has heavy probability 1 / 2 1/2 1/2 . Honest sampling weights this marginal by N p z Np_z N p z , giving Beta ( 2 , N − 1 ) \operatorname{Beta}(2,N-1) Beta ( 2 , N − 1 ) . Equation (82) and ( 1 − θ N ) N − 1 = 1 / 2 (1-\theta_N)^{N-1}=1/2 ( 1 − θ N ) N − 1 = 1/2 give (60) . Writing a = ln 2 a=\ln2 a = ln 2 ,
( N − 1 ) θ N = ( N − 1 ) ( 1 − e − a / ( N − 1 ) ) ≤ a , ( N − 1 ) θ N ⟶ a , (N-1)\theta_N=(N-1)(1-e^{-a/(N-1)})\le a,\qquad(N-1)\theta_N\longrightarrow a, ( N − 1 ) θ N = ( N − 1 ) ( 1 − e − a / ( N − 1 ) ) ≤ a , ( N − 1 ) θ N ⟶ a ,
which proves the stated inequality and limit.
For canonical access with s s s supplied copies, Theorem 5.6 gives λ ( Ψ ) ≤ Λ s , q \lambda(\Psi) \le\Lambda_{s,q} λ ( Ψ ) ≤ Λ s , q . Apply Lemma A.1 to the unit vector Ψ \Psi Ψ with w ( x ) = 1 { x > θ N } w(x)=1_{\{x>\theta_N\}} w ( x ) = 1 { x > θ N } to obtain (61). For unitary access, Theorem 5.23 gives a single oracle-independent simulator using 2 q 2q 2 q canonical queries. For each fixed ϕ \phi ϕ , its output law and the output law of the unitary algorithm, averaged over U ϕ U_\phi U ϕ , differ in total variation by at most ( 5 q ~ + 2 ) / N (5\widetilde{q}+2)/\sqrt{N} ( 5 q + 2 ) / N . A reward in [ 0 , 1 ] [0,1] [ 0 , 1 ] changes by at most that distance. Averaging over ϕ \phi ϕ and applying the canonical bound with s = 0 s=0 s = 0 proves (62). The same argument holds for every deterministic threshold 0 < θ < 1 0<\theta<1 0 < θ < 1 , with baseline (80).
Step 2: the lower bound at the fixed threshold. If B θ N h o g ( A ) ≥ h h o n + ε B^{\mathrm{hog}}_{\theta_N}(\mathcal{A}) \ge h_{\mathrm{hon}}+\varepsilon B θ N hog ( A ) ≥ h hon + ε for ε > 0 \varepsilon>0 ε > 0 , canonical access requires Λ s , q ≥ ε \Lambda_{s,q}\ge\varepsilon Λ s , q ≥ ε . The budget obeys
Λ s , q ≤ s + c 0 q s + 2 q + 1 N ≤ ( 1 + 2 c 0 ) ( s + q s + q + 1 ) N . (83) \begin{aligned}
\Lambda_{s,q} &\le\frac{s+c_0q\sqrt{s+2q+1}}{\sqrt{N}}\\
&\le\frac{(1+\sqrt{2c_0})(s+q\sqrt{s+q+1})}{\sqrt{N}}. \tag*{(83)}
\end{aligned} Λ s , q ≤ N s + c 0 q s + 2 q + 1 ≤ N ( 1 + 2 c 0 ) ( s + q s + q + 1 ) . (83)
Consequently s + q s + q + 1 ≥ ε N / ( 1 + 2 c 0 ) s+q\sqrt{s+q+1}\ge\varepsilon\sqrt{N}/(1+\sqrt{2c_0}) s + q s + q + 1 ≥ ε N / ( 1 + 2 c 0 ) . With s = 0 s=0 s = 0 , q = 0 q=0 q = 0 cannot achieve the target; for q ≥ 1 q\ge1 q ≥ 1 ,
Λ 0 , q ≤ 2 c 0 q 3 / 2 N , q ≥ ( ε 2 c 0 ) 2 / 3 N 1 / 3 . \Lambda_{0,q}\le\frac{\sqrt{2}c_0q^{3/2}}{\sqrt{N}},\qquad q\ge\left(\frac{\varepsilon}{\sqrt{2}c_0}\right)^{2/3}N^{1/3}. Λ 0 , q ≤ N 2 c 0 q 3/2 , q ≥ ( 2 c 0 ε ) 2/3 N 1/3 .
For unitary access without supplied copies, we may assume q ≤ N 1 / 3 q\le N^{1/3} q ≤ N 1/3 , since otherwise the desired lower bound already holds. The simulation error is then at most ( 5 N 1 / 3 + 2 ) / N = o ( 1 ) (5N^{1/3}+2)/\sqrt{N}=o(1) ( 5 N 1/3 + 2 ) / N = o ( 1 ) . For all sufficiently large N N N it is at most ε / 2 \varepsilon/2 ε /2 , so (62) gives Λ 0 , 2 q ≥ ε / 2 \Lambda_{0,2q}\ge\varepsilon/2 Λ 0 , 2 q ≥ ε /2 . Since Λ 0 , 2 q ≤ 4 c 0 q 3 / 2 / N \Lambda_{0,2q}\le4c_0q^{3/2}/\sqrt{N} Λ 0 , 2 q ≤ 4 c 0 q 3/2 / N , this also forces Ω ε ( N 1 / 3 ) \Omega_\varepsilon(N^{1/3}) Ω ε ( N 1/3 ) queries.
Step 3: the squaring algorithm. Let a ω a_\omega a ω be the output distribution of Sqm \operatorname{Sqm} Sqm , where ω \omega ω is either form of Haar oracle, and let r p ( z ) = p z 2 / ∑ y p y 2 r_p(z)=p_z^2/\sum_y p_y^2 r p ( z ) = p z 2 / ∑ y p y 2 . For N ≥ 64 N\ge64 N ≥ 64 and m = ⌈ N 1 / 3 ⌉ m=\lceil N^{1/3}\rceil m = ⌈ N 1/3 ⌉ , Theorem 6.6 gives at most 3 N 1 / 3 3N^{1/3} 3 N 1/3 queries and E ω TV ( a ω , r p ) ≤ 40 N − 1 / 3 \mathbb{E}_\omega\operatorname{TV}(a_\omega,r_p)\le40N^{-1/3} E ω TV ( a ω , r p ) ≤ 40 N − 1/3 . For any threshold τ ϕ \tau_\phi τ ϕ , including one depending on the state, this implies
∣ B τ ϕ h o g ( Sqm ) − E ϕ ∑ z p z 2 1 { p z > τ ϕ } ∑ z p z 2 ∣ ≤ 40 N − 1 / 3 . (84) \left|B^{\mathrm{hog}}_{\tau_\phi}(\operatorname{Sqm})-\mathbb{E}_\phi\frac{\sum_z p_z^2 1_{\{p_z>\tau_\phi\}}}{\sum_z p_z^2}\right|\le40N^{-1/3}. \tag*{(84)} B τ ϕ hog ( Sqm ) − E ϕ ∑ z p z 2 ∑ z p z 2 1 { p z > τ ϕ } ≤ 40 N − 1/3 . (84)
No independence between the threshold and the state is needed here: for each fixed oracle, the heavy outcomes form a subset of the output space.
Use the exponential representation p z = G z / S p_z=G_z/S p z = G z / S , where the G z G_z G z are independent exponential random variables of mean one and S = ∑ z G z S=\sum_zG_z S = ∑ z G z . If S τ ϕ → t > 0 S\tau_\phi\to t>0 S τ ϕ → t > 0 in probability, the ratio in (83) is
N − 1 ∑ z G z 2 1 { G z > S τ ϕ } N − 1 ∑ z G z 2 . \frac{N^{-1}\sum_zG_z^2 1_{\{G_z>S\tau_\phi\}}}{N^{-1}\sum_zG_z^2}. N − 1 ∑ z G z 2 N − 1 ∑ z G z 2 1 { G z > S τ ϕ } .
The denominator tends to 2 2 2 by the law of large numbers. For each fixed u > 0 u>0 u > 0 , the numerator with threshold u u u tends to ∫ u ∞ x 2 e − x d x \int_u^\infty x^2e^{-x}\,dx ∫ u ∞ x 2 e − x d x . On the event ∣ S τ ϕ − t ∣ < δ |S\tau_\phi-t|<\delta ∣ S τ ϕ − t ∣ < δ , the numerator at the random threshold lies between those at t + δ t+\delta t + δ and t − δ t-\delta t − δ , for 0 < δ < t 0<\delta<t 0 < δ < t . Letting δ ↓ 0 \delta\downarrow0 δ ↓ 0 proves convergence in probability of the ratio to
1 2 ∫ t ∞ x 2 e − x d x = e − t ( 1 + t + t 2 2 ) . (85) \frac{1}{2}\int_t^\infty x^2e^{-x}\,dx=e^{-t}\left(1+t+\frac{t^2}{2}\right). \tag*{(85)} 2 1 ∫ t ∞ x 2 e − x d x = e − t ( 1 + t + 2 t 2 ) . (85)
The ratio lies in [ 0 , 1 ] [0,1] [ 0 , 1 ] , so its expectation converges as well. Since S / N → 1 S/N\to1 S / N → 1 and N θ N → ln 2 N\theta_N\to\ln2 N θ N → ln 2 , taking τ ϕ = θ N \tau_\phi=\theta_N τ ϕ = θ N proves the fixed-threshold limit h ⋆ h_\star h ⋆ .
For the empirical median, write G ( j ) G_{(j)} G ( j ) for the increasing order statistics. At every fixed u u u , the fraction of samples at most u u u tends to 1 − e − u 1-e^{-u} 1 − e − u . For u < ln 2 u<\ln2 u < ln 2 this limit is below 1 / 2 1/2 1/2 , and for u > ln 2 u>\ln2 u > ln 2 it is above 1 / 2 1/2 1/2 . It follows that both G ( N / 2 ) G_{(N/2)} G ( N /2 ) and G ( N / 2 + 1 ) G_{(N/2+1)} G ( N /2 + 1 ) tend to ln 2 \ln2 ln 2 in probability. Scaling preserves their order, and hence
S θ ^ N = G ( N / 2 ) + G ( N / 2 + 1 ) 2 ⟶ ln 2 , N θ ^ N ⟶ ln 2. S\hat{\theta}_N=\frac{G_{(N/2)}+G_{(N/2+1)}}{2}\longrightarrow\ln2,\qquad N\hat{\theta}_N\longrightarrow\ln2. S θ ^ N = 2 G ( N /2 ) + G ( N /2 + 1 ) ⟶ ln 2 , N θ ^ N ⟶ ln 2.
Equation (85) therefore gives the same limit h ⋆ h_\star h ⋆ for the empirical median. Applying the same sandwich argument with G z G_z G z in place of G z 2 G_z^2 G z 2 , and denominator S / N → 1 S/N\to1 S / N → 1 , shows that honest sampling has limiting empirical-median heavy probability ∫ ln 2 ∞ x e − x d x = h h o n \int_{\ln2}^{\infty} xe^{-x}\,dx=h_{\mathrm{hon}} ∫ l n 2 ∞ x e − x d x = h hon .
Step 4: the lower bound for the empirical median. Fix a target h > h h o n h>h_{\mathrm{hon}} h > h hon . Choose 0 < δ < ln 2 0<\delta<\ln2 0 < δ < ln 2 small enough that
e − ( ln 2 − δ ) ( 1 + ln 2 − δ ) < h , e^{-(\ln2-\delta)}(1+\ln2-\delta)<h, e − ( l n 2 − δ ) ( 1 + ln 2 − δ ) < h ,
and set τ N = ( ln 2 − δ ) / N \tau_N=(\ln2-\delta)/N τ N = ( ln 2 − δ ) / N . For every algorithm,
B θ ^ N h o g ( A ) ≤ B τ N h o g ( A ) + Pr [ θ ^ N < τ N ] . (86) B_{\hat{\theta}_N}^{\mathrm{hog}}(\mathcal{A})\leq B_{\tau_N}^{\mathrm{hog}}(\mathcal{A})+\Pr[\hat{\theta}_N<\tau_N]. \tag*{(86)} B θ ^ N hog ( A ) ≤ B τ N hog ( A ) + Pr [ θ ^ N < τ N ] . (86)
The last probability is o ( 1 ) o(1) o ( 1 ) by Step 3 and is independent of the algorithm. The deterministic-threshold version of Step 1 bounds the first term with baseline
( 1 − τ N ) N − 1 ( 1 + ( N − 1 ) τ N ) ⟶ e − ( ln 2 − δ ) ( 1 + ln 2 − δ ) . (1-\tau_N)^{N-1}(1+(N-1)\tau_N)\longrightarrow e^{-(\ln2-\delta)}(1+\ln2-\delta). ( 1 − τ N ) N − 1 ( 1 + ( N − 1 ) τ N ) ⟶ e − ( l n 2 − δ ) ( 1 + ln 2 − δ ) .
This leaves a fixed positive gap below h h h . The no-copy query estimates of Step 2 therefore give Ω h ( N 1 / 3 ) \Omega_h(N^{1/3}) Ω h ( N 1/3 ) in both access models, uniformly over algorithms. Step 3 supplies the matching upper bound whenever h < h ⋆ h<h_\star h < h ⋆ . These arguments concern fixed targets and ensemble-averaged heavy probabilities; they assert no rate for a target approaching h h o n h_{\mathrm{hon}} h hon with N N N .
Proposition A.2 (Heavy outputs from copies without queries). Let an algorithm receive ∣ ϕ ⟩ ⊗ s |\phi\rangle^{\otimes s} ∣ ϕ ⟩ ⊗ s , tensored with an oracle-independent joint state of its other registers, and make no oracle queries. It may apply arbitrary joint operations on its copies and device registers. Put
R s = { 1 − ∏ j = 0 s − 1 N − j N + j , 0 ≤ s ≤ N , 1 , s > N , R s ≤ min { 1 , s ( s − 1 ) N + s − 1 } . (87) R_s=
\begin{cases}
1-\prod_{j=0}^{s-1}\frac{N-j}{N+j}, & 0\leq s\leq N,\\
1, & s>N,
\end{cases}
\qquad
R_s\leq\min\left\{1,\frac{s(s-1)}{N+s-1}\right\}. \tag*{(87)} R s = { 1 − ∏ j = 0 s − 1 N + j N − j , 1 , 0 ≤ s ≤ N , s > N , R s ≤ min { 1 , N + s − 1 s ( s − 1 ) } . (87) where the empty product is one. For every w w w as in Lemma A.1 ,
E w ( p Z ) ≤ κ w + ( 1 − κ w ) R s . (88) \mathbb{E}\,w(p_Z)\leq\kappa_w+(1-\kappa_w)R_s. \tag*{(88)} E w ( p Z ) ≤ κ w + ( 1 − κ w ) R s . (88) In particular,
B θ ^ N h o g ( A ) ≤ β N h o g + ( 1 − β N h o g ) R s . B_{\hat{\theta}_N}^{\mathrm{hog}}(\mathcal{A})\leq\beta_N^{\mathrm{hog}}+(1-\beta_N^{\mathrm{hog}})R_s. B θ ^ N hog ( A ) ≤ β N hog + ( 1 − β N hog ) R s . For s = 0 s=0 s = 0 , the heavy probability is exactly 1 / 2 1/2 1/2 . A heavy probability of at least β N h o g + ε \beta_N^{\mathrm{hog}}+\varepsilon β N hog + ε , for ε > 0 \varepsilon>0 ε > 0 , requires
s ( s − 1 ) ≥ ε ( N + s − 1 ) 1 − β N h o g , (89) s(s-1)\geq\frac{\varepsilon(N+s-1)}{1-\beta_N^{\mathrm{hog}}}, \tag*{(89)} s ( s − 1 ) ≥ 1 − β N hog ε ( N + s − 1 ) , (89) and in particular s = Ω ( ε N ) s=\Omega(\sqrt{\varepsilon N}) s = Ω ( εN ) .
Proof. Purify the initial state and defer measurements. With no queries, every operation is ϕ \phi ϕ -independent. Before these operations the state is
Φ s ( ϕ ) = ∑ x ∈ [ N ] s α x 1 ⋯ α x s ∣ x ⟩ ⊗ ψ 0 . \Phi_s(\phi)=\sum_{\mathbf{x}\in[N]^s}\alpha_{x_1}\cdots\alpha_{x_s}\lvert\mathbf{x}\rangle\otimes\psi_0. Φ s ( ϕ ) = x ∈ [ N ] s ∑ α x 1 ⋯ α x s ∣ x ⟩ ⊗ ψ 0 .
Every monomial has a nonnegative pattern γ \gamma γ with ∣ γ ∣ 1 = s \lvert\gamma\rvert_1=s ∣ γ ∣ 1 = s and a constant polynomial factor. Its level is zero precisely when all entries of the tuple are distinct. Fixed operations preserve the pattern and the constant polynomial factor. Consequently the final state’s parts F 0 = P 0 F F_0=P_0F F 0 = P 0 F and F + = F − F 0 F_+=F-F_0 F + = F − F 0 have disjoint patterns. Because X w X_w X w preserves patterns,
⟨ F 0 , X w F + ⟩ = 0. \langle F_0,X_wF_+\rangle=0. ⟨ F 0 , X w F + ⟩ = 0.
This is an orthogonality statement in the Haar L 2 L^2 L 2 space and requires no measurement of, or access to, the pattern.
The copy-register basis vectors are orthogonal. For a distinct tuple, Lemma 3.7 (i) gives E ϕ p x 1 ⋯ p x s = 1 / ( N ) s \mathbb{E}_{\phi}p_{x_1}\cdots p_{x_s}=1/(N)_s E ϕ p x 1 ⋯ p x s = 1/ ( N ) s , where ( N ) s = N ( N + 1 ) ⋯ ( N + s − 1 ) (N)_s=N(N+1)\cdots(N+s-1) ( N ) s = N ( N + 1 ) ⋯ ( N + s − 1 ) . There are N ( N − 1 ) ⋯ ( N − s + 1 ) N(N-1)\cdots(N-s+1) N ( N − 1 ) ⋯ ( N − s + 1 ) such tuples when s ≤ N s\le N s ≤ N , and none when s > N s>N s > N . Thus ∥ F + ∥ 2 = R s \lVert F_+\rVert^2=R_s ∥ F + ∥ 2 = R s in (87) ; a fixed isometry preserves this norm. Equivalently, R s R_s R s is the Haar-averaged probability of a repeat among s s s independent samples conditional on p p p . Every positive level is at least one, so Lemma 5.5 gives
R s = ∥ F + ∥ 2 ≤ λ ( F ) 2 = s ( s − 1 ) N + s − 1 . R_s=\lVert F_+\rVert^2\le\lambda(F)^2=\frac{s(s-1)}{N+s-1}. R s = ∥ F + ∥ 2 ≤ λ ( F ) 2 = N + s − 1 s ( s − 1 ) .
Together with R s ≤ 1 R_s\le1 R s ≤ 1 , this proves the displayed bound.
The level-zero calibration in Lemma A.1 , the vanishing cross term, and 0 ≤ X w ≤ I 0\le X_w\le I 0 ≤ X w ≤ I now give
⟨ F , X w F ⟩ ≤ κ w ∥ F 0 ∥ 2 + ∥ F + ∥ 2 = κ w + ( 1 − κ w ) R s . \langle F,X_wF\rangle\le\kappa_w\lVert F_0\rVert^2+\lVert F_+\rVert^2=\kappa_w+(1-\kappa_w)R_s. ⟨ F , X w F ⟩ ≤ κ w ∥ F 0 ∥ 2 + ∥ F + ∥ 2 = κ w + ( 1 − κ w ) R s .
The indicator calibration gives the HOG bound, and rearranging it gives (89) . A positive advantage forces s ≥ 2 s\ge2 s ≥ 2 , so N + s − 1 ≥ N N+s-1\ge N N + s − 1 ≥ N and 1 − β N 2 ≤ 1 1-\beta_N^2\le1 1 − β N 2 ≤ 1 imply s ≥ ϵ N s\ge\sqrt{\epsilon N} s ≥ ϵ N . For s = 0 s=0 s = 0 , the final output is independent of ϕ \phi ϕ , giving heavy probability 1 / 2 1/2 1/2 by the marginal median calculation above.