Manuscript Offprint
arXiv:2609.03628Random Garbage Separates XOR from Forward-Only Queries
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
We give exponential quantum query separations between the standard XOR interface and two forward-only interfaces that supply neither an adjoint nor an inverse oracle. Let , , and , where is promised to be either a permutation or a Simon two-to-one function, and is a fixed table of -bit tags, unrestricted by the promise and reused on every query. The resulting problem is solvable with at most standard XOR queries, but has forward-erasing query complexity . This answers affirmatively open question 11 in [Aar21]. We also embed these instances into permutations. The detailed construction retains the copy of in each prescribed output, but for these promises that copy can be replaced by one bit that distinguishes the two inputs in every Simon pair. This gives a permutation domain of size and a permutation problem with the same standard-query upper bound and forward-only in-place query complexity . Both lower bounds remain valid with a clean coherent bypass.
The common lower bound uses an analysis-only recording replacement. In the replacement computation, tracing out the fixed random tag table after calls gives a sum of positive-semidefinite operator contributions, each depending on at no more than addresses. On such a set, the restrictions induced by random permutations and random Simon functions differ only if the set contains a hidden Simon pair, an event of probability .
1 Introduction
The standard quantum query interface to a classical function preserves the query input and XORs the function value into a target register. An injective function also admits a smaller forward interface that replaces the input by the function value. This interface is an isometry when the codomain is larger and an in-place unitary when the function is a permutation. We show that these interfaces can have exponentially different query complexity when only forward calls are supplied.
Aaronson asked whether a Boolean property of injective functions can require asymptotically fewer standard queries than forward-erasing queries, and suggested a Simon function padded by fixed random garbage as a candidate [Aar21]. Here the garbage is a table of tags sampled once for the oracle instance and reused on every call. A quantum algorithm may therefore revisit the same entries in superposition and coherently combine amplitudes from different visits. Refreshing the tags on each call would define a different oracle model.
The tags are essential to the lower bound, rather than merely a device for making the oracle injective: the explicit copy of already guarantees injectivity. If the tag table were constant, a forward query would still preserve the interference needed for ordinary Simon sampling. Under the random hard distribution, the independently sampled fixed tags instead give the proof one purifying table cell for each address. The recording comparison organizes the state into orthogonal components indexed by the addresses whose cells have left their initial uniform subspaces. This structure ultimately converts forward queries into a birthday bound.
We establish the separation first for an injection into a larger codomain, where the recording argument is most transparent, and then for a permutation. The formal query interfaces appear in Section 2. They do not supply the adjoint or inverse oracle: if the inverse were also available, two forward/inverse calls would implement one standard XOR query.
The resulting separations are summarized by the following theorem. Here , , and denote bounded-error query complexity in the standard XOR, forward-erasing, and forward in-place models, respectively.
Theorem 1.1 (Combined separation). For every ,
Moreover, replacing the returned copy of by the one-bit separator in Remark 7.11 gives a permutation problem on points with standard XOR query complexity at most and forward in-place query complexity . These lower bounds remain valid with a clean coherent bypass control.
The forward lower bounds do not conflict with the -query Brassard–Høyer–Tapp (BHT) collision-finding algorithm [BHT98]. With standard XOR access to the visible -coordinate, BHT tabulates values and Grover-searches for another input whose value occurs in the table. In the usual coherent implementation, the Grover predicate computes the oracle output, marks a match, and uncomputes the output before the diffusion step. A standard XOR oracle permits this uncomputation by applying the same self-inverse query again. The forward-erasing interface does not supply the adjoint isometry, and the forward in-place interface does not supply the inverse permutation unitary. Thus this implementation of BHT is not an algorithm in either forward-only model. The lower bounds below establish the stronger conclusion that no alternative forward-only strategy attains the BHT query scale on these promise problems.
For the detailed permutation family, let denote the domain size. Its forward bound is , since . We retain the explicit input copy in this construction because it makes the candidate index visible in every prescribed output. Remark 7.11 replaces that copy by one bit and obtains a domain of size , improving the dependence on the permutation-domain size to . The standard-query algorithm reduces each sample to an ordinary Simon sample; the matching forward upper bound searches for a collision among sampled -values. We formulate the primary models without a control register. A clean coherent bypass control selects in superposition between applying and skipping the oracle, and Remark 2.4 shows that allowing this additional control does not affect the lower bounds.
1.2 Proof strategy
For the lower bounds, we sample one uniformly random tag table and use that same table on every oracle call. A proof-only purification stores its cells in inaccessible registers. We replace each genuine query, only for the analysis, by a nearby contraction with a useful recording property. After calls, the recording computation is an orthogonal sum of sectors indexed by sets with , and the contribution in sector depends on the hidden function only through . Once the table registers are traced out, the sector contributions are positive operators. The hard distributions on random permutations and random Simon functions have identical local behavior unless contains a hidden Simon pair; the probability of this event is governed by the birthday bound. Section 5 isolates these steps as the recording-to-birthday theorem, and Section 6 applies it to the forward-erasing query.
The permutation extension requires additional work because an in-place algorithm may also query outside the special inputs on which the embedded instance is specified. A reverse coupling rewrites the random completion using a uniform reference permutation independent of the hidden instance and a sparse relocation. A signed-oracle hybrid controls the sparse change. The resulting comparison for one original query slot is then replaced by a permutation-specific recording contraction. Its locality and approximation properties verify the hypotheses of the same recording-to-birthday theorem for arbitrary superpositions of special and background inputs.
Methodologically, the query-by-query replacements use a hybrid or telescoping argument in the tradition of Bennett, Bernstein, Brassard, and Vazirani [BBBV97]. The purification and cell-recording viewpoint is related to Zhandry's query-recording and compressed-oracle method and its subsequent development in query lower bounds [Zha19, CFHL21, HM23]. Here the recorded random object is a fixed tag table belonging to a structured oracle, and the replacement query is a nearby contraction rather than an exact compressed simulation.
Figure 1 summarizes the dependencies between the common recording theorem and its two applications.

Figure 1: Proof dependencies for the lower bounds. The upper bounds are proved separately.
2 Preliminaries
This section states the notation, model conventions, and standard facts used in the proof.
2.1 Notation and queries
Fix , let and , and write the group operation in as bitwise XOR . For , let denote their inner product over . For a function and , the restriction is the partial function , . Saying that an expression depends only on means that changing outside does not change it. We write for the state stored in the named quantum register ; the subscript labels the register and is not part of . Juxtaposed kets denote tensor products, and register labels are omitted when the intended subsystem is clear. A displayed ket lists its tensor factors in the order stated immediately before the formula; we normally rely on this order and add a register subscript only when the subsystem would otherwise be ambiguous. If is a bit string, denotes the corresponding computational-basis state.
For nonzero , write
Thus is the uniform superposition in one -qubit, -valued register. For a permutation of a finite set , its support is .
A tag table is a function , written , with ; we write for the set of all such tables. For any , define
The three coordinates are, respectively, the promise-bearing value, a copy of the input, and an n-bit tag. The input copy makes injective for every h and r.
Definition 2.1 (Standard XOR oracle). For , the standard oracle is the unitary
Definition 2.2 (Forward-erasing oracle). For an injection , the forward-erasing oracle is the isometry
Only forward calls to are supplied: neither nor a unitary extension of is available.
Injectivity makes an isometry because distinct input basis states map to distinct, hence orthogonal, output basis states. The term erasing refers to the interface replacing its input register; a particular function may, as ours does, include an explicit copy of x in its output.
Definition 2.3 (Forward in-place oracle). For a permutation of a finite set, the forward in-place oracle is the unitary on determined by
Only forward calls to are supplied, not calls to .
The forward-only convention is essential to the comparison. If both and were supplied, one standard XOR query could be implemented with two oracle calls:
The same construction uses and for a permutation.
Between queries, an algorithm may apply arbitrary oracle-independent quantum channels, introduce ancillas, and perform adaptive measurements. By purification and deferred measurement, these operations may be treated as isometries on a sufficiently large workspace [Wat18]. We include all Stinespring and deferred-measurement registers in Alg, together with the query registers and the algorithm's private workspace. Thus Alg denotes the complete system on which the algorithm may act.
Remark 2.4 (Coherent bypass). Let be a query isometry, and let be a fixed oracle-independent isometry. A clean coherent bypass supplies the direct-sum query. If an analytical comparison replaces by a contraction , use the corresponding direct sum:
Here the last equality follows because the two control blocks are orthogonal, , and . The same orthogonality, together with the fact that and are isometries, shows that is an isometry.
For completeness, consider the recording hypotheses and sector projectors defined in Section 5. Extend by the identity on the table register . If is an active sector block, then the corresponding bypass sector block is
Here equals one when and zero otherwise. The bypass branch leaves unchanged, while the active branch retains its original sector-transition rule. The active blocks retain their original locality property, and the bypass blocks are the same for every hidden function because is oracle independent. Thus the approximation bound retains the same , the direct sum remains a contraction, and the sector-transition and locality conditions hold unchanged. The fixed-table condition also survives: on a basis table , use , whose two branches both leave the table label unchanged. If the active comparison appends an auxiliary register, adjoin the same fixed zero-output register to the bypass map . Every lower bound below therefore holds for the coherent-bypass extension. We omit the bypass register from the proofs.
2.2 Simon distributions
Definition 2.5 (Simon function). A function is a Simon function with nonzero shift if
Every value in the image of has exactly two preimages, namely one pair .
The following standard calculation is the only property of Simon's algorithm needed in the upper bound [Sim97]. It identifies the precise distribution of one Fourier sample in each promise class.
Lemma 2.6 (Simon sampling). Prepare , measure the second register, apply the -qubit Hadamard transform to the first, and measure a vector . If is a permutation, then is uniform on . If is a Simon function with shift , then is uniform on .
Proof. For a permutation, measuring the second register selects one basis state , whose Hadamard measurement is uniform on X. For a Simon function, the measurement selects . Its Hadamard transform is
which gives the stated uniform distribution.
2.3 Trace distance and norms
For an operator , write for its trace norm and for its operator norm, or largest singular value. If is positive semidefinite, then . We use the unhalved trace norm throughout; the conventional trace distance is . If equally likely density operators are presented, Helstrom's theorem gives optimal discrimination probability [Wat18]
Partial trace, averaging, and quantum channels do not increase the trace norm of a Hermitian operator. We also use . Consequently, if , , and , then
Finally, if an algorithm succeeds with a stated probability on every promised input, it succeeds with at least that probability after averaging over any input distribution. This elementary distributional implication is the only direction of Yao's principle used below.
3 Injective problem
The injective oracle is . Its tag table is fixed for the entire oracle instance: every query to the same x returns the same tag . The promise permits every r, including tables with repeated entries; randomness is introduced later only to define a hard input distribution.
The output registers are ordered as the h-value register , the returned input register X, and the tag register Z. On its input space the forward-erasing oracle acts as
Equivalently,
The displayed three-register realization is defined on the subspace in which and begin in .
The promise problem GarbageSimon has two classes. In the NO class, h is a permutation of X. In the YES class, h is a Simon function with some nonzero shift. The table r is unrestricted in both classes. Let and denote bounded-error query complexity with the standard and forward-erasing interfaces, respectively; success probability is required to be at least 2/3 on every promised input.
After the two upper bounds, Section 5 proves the recording-to-birthday theorem, and Section 6 applies it to the injective problem.
4 Injective upper bounds
The standard oracle can suppress output coordinates by a choice of target state. This makes one query to produce exactly one ordinary Simon sample, independently of the tag table.
Proposition 4.1 (Standard-query upper bound). The problem GarbageSimon is solvable with at most standard queries.
Proof. In the register order (query, H-target, X-target, Z-target), prepare
A query to produces
because XOR translation merely permutes the basis labels in and therefore leaves it invariant. Lemma 2.6 therefore gives one sample from X in the permutation case and from in the Simon case.
Take independent samples and output “permutation” exactly when they span . Simon samples lie in the proper subspace , so they never span . For uniform samples from , failure to span implies that some nonzero vector is orthogonal to all samples. A union bound gives
Thus the worst-case success probability is greater than 3/4.
The matching forward-erasing upper bound is classical birthday sampling. It is included to identify the correct scale and to make the final statement self-contained.
Proposition 4.2 (Forward-erasing upper bound). The problem GarbageSimon is solvable with forward-erasing queries.
Proof. Choose distinct inputs uniformly, query them in the computational basis, and measure the register containing . The complete outputs of never collide, because they include ; this test compares only the values in the register. A permutation produces no collision there. For a Simon function, the input set is partitioned into Simon pairs. When , the probability that a uniform -subset contains no complete pair is
For , take ; the last expression is at most . For , query all inputs.
5 Recording theorem
This section isolates the lower-bound argument shared by the two oracle models. Section 6 applies the theorem first to the forward-erasing query; Section 7 later applies it to a permutation-specific comparison map.
The lower bound formalizes the following picture. We represent the random tag table coherently by inaccessible cells, one for each address. In both applications, a genuine query is compared with a contraction that suppresses any component whose retained output depends on while cell i remains unrecorded. In the resulting comparison computation, one query can record at most one new address and cannot erase an earlier record. After T queries, each orthogonal component therefore records a set D of at most T addresses and depends on h only through . Tracing out the table cells turns these components into positive-semidefinite operator summands. For a fixed D, the two hard distributions induce the same distribution on unless D contains both x and for the hidden Simon shift s. The probability of this exception is bounded by the usual birthday calculation. The theorem below isolates these statements and the accompanying hybrid estimate.
Let and be the following distributions on functions . Under , the map is a uniformly random permutation of . Under , first choose a shift uniformly from . Let
be the resulting set of disjoint unordered pairs. Choose a uniformly random injection and set . Thus a sample from satisfies
Four-point example. Let and fix the two-address set . Under , the shift is uniform over . If , the two points of lie in distinct Simon pairs, so is a uniformly random injection, exactly as under . If , they form one Simon pair and their values are equal, with the common value uniform in . Thus the two restriction distributions differ for exactly one of the three possible shifts. The exceptional probability is , which equals here. This is a concrete instance of the birthday comparison used below.
Independently of , sample the tag table uniformly from and keep it fixed throughout the computation. To represent the resulting classical mixture by a single pure global evolution, introduce one inaccessible table-cell register for each address. For , let have computational basis . Using the state defined above, let
Expanding in the computational basis gives
On a branch labelled by a basis table , the coherent extension of a fixed-table query behaves as the classical oracle with table r and leaves the label unchanged. It may nevertheless use that label as a coherent control and entangle with the algorithm system. Tracing out after all queries removes cross terms between distinct basis tables and gives exactly the classical average over one uniformly random table sampled at the beginning and reused on every query. In particular, repeated queries to address i use the same cell and the same value ; purification does not refresh the tag.
On one cell define
We call im the unrecorded subspace and im the recorded subspace of . The projectors define the analytical decomposition used below. For , define the table sector
The sectors give the orthogonal decomposition , and lies in the empty sector . The set is the index of one direct-sum component.
We now state the hypotheses of the recording-to-birthday theorem. At each time, let S denote all retained registers other than the table-purification register . The system S always includes the algorithm system Alg and may also include auxiliary registers appended only by the comparison map. Its dimension may therefore grow from one query slot to the next. If the comparison map appends an auxiliary register that is absent from the genuine interface, we include that register in for both maps and follow the genuine query by the fixed zero-state embedding into that register. Thus the genuine and comparison maps always have the same domain and codomain. Let be an auxiliary random parameter, independent of h and r, whose distribution is the same in both hard classes. The injective application has no additional randomness and takes to be deterministic; in the permutation application, is the independent uniform reference permutation . For a particular query slot, write and for the retained systems before and after the query. For fixed h and , let
be the query map being approximated, and assume that it is an isometry. For each basis table , assume there is a fixed-table query isometry such that, for every ,
Thus the query may use coherently but does not change its basis label. Input and output systems may have different dimensions, and spectator registers are suppressed. The notation also suppresses the query-slot index; the conditions below must hold at every slot with the same bound . The query map need not respect the sector decomposition: it may place in an algorithm-output register while cell still has an unrecorded component. The proof therefore compares it with a linear map that is close enough to control the hybrid error while satisfying the sector-transition and locality conditions below. Throughout the recording arguments, a tilde marks a map, vector, or operator obtained from this analysis-only replacement. We call such a map a recording contraction when it satisfies the following three conditions.
- For some independent of , , and the query slot,
- For sectors , define the sector block
This block vanishes unless
- The nonzero sector block ending in uses no value of outside . Formally, whenever ,
The algorithm may interleave the queries with arbitrary oracle-independent channels. We purify all such channels, so every inter-query map is an isometry on S tensored with the identity on . Only the table-purification register is traced out in the theorem.
Theorem 5.1 (Recording-to-birthday theorem). Assume conditions 1–3, initialize in , and let the strategy make queries. For fixed and , run the purified computation, trace out , and denote the resulting retained density operator by . As explained above, this operator is the classical average over one uniformly sampled table that is held fixed for all queries. For , define
Let . If , then
The conclusion follows from four ingredients. First, replacing all queries by the recording contraction costs at most in Euclidean norm. Second, the transition rule confines the recording vector to sectors with , while locality makes the -sector depend only on . Third, tracing out deletes cross terms between orthogonal sectors and leaves a positive sum of sector contributions. Fourth, the two hard distributions induce the same probability distribution for unless contains a pair separated by the hidden Simon shift, an event of birthday probability at most . The proof below makes these four steps quantitative.
Proof. Fix , and for let . Let be the final global pure state obtained with the query maps , and let be obtained by replacing every query by . A telescoping hybrid over the query positions gives
Indeed, in each hybrid term the maps before the changed query are contractions and the maps after it are isometries or contractions. The query computation is normalized, while the recording computation is a composition of contractions. Hence
The simultaneous induction in Appendix A proves that, for every fixed ,
Moreover, if , then
After tracing out the table-purification register, the cross terms between distinct sectors vanish. Fix and suppress it from the notation. If occurs as for some in the support of either hard distribution, define
This is well defined by locality. For a function that is not an attainable restriction in either hard distribution, set ; such values never enter the averages below. For every pair , the value is a positive semidefinite operator on the final retained system S. The recording computation has retained operator
The only use of the sampling rule for is the following comparison of its restrictions. For fixed , the two hard distributions induce the same distribution on unless contains a complete Simon pair. Define . The set , and hence , is fixed before the random shift is drawn. Under , the restriction is a uniformly random injection . Under , condition on . If , no pair in contains two distinct points of . Hence is injective on , and the random injection again makes a uniformly random injection . Consequently, if and are the two restriction distributions, then
for some probability distribution . If , the choice of is immaterial.
This is the birthday effect in the theorem's name: among addresses there are at most nonzero pairwise XOR differences, while the shift is uniform among the nonzero strings.
For the remainder of the proof, every sum over ranges over subsets of of size at most . Define the positive operators
Thus is the average contribution of the -sector under the common nonexceptional restriction distribution; it need not have trace one. Its trace is the expected weight of that sector in the -averaged recording operator for the fixed value of .
Let
Equation (3) implies
Define
Taking traces in (5) and summing over gives , and therefore
Since , positivity and the triangle inequality yield
In the penultimate line we used .
It remains to return from the recording computation to the Q-computation. Inequality (1) and (2), followed by partial trace and averaging, therefore contributes at most in each hard class. Adding the two hybrid errors to (6) proves, for fixed ,
Finally average over . Its distribution is identical in the two hard classes, and convexity of the trace norm preserves the same bound.
6 Injective lower bound
We first apply the recording-to-birthday theorem to the injective forward-erasing query. It remains to verify the three hypotheses for its purified query map; Theorem 5.1 then supplies the trace-distance and birthday estimates.
The injective oracle is ; it is injective because its output contains . Let be the purified forward-erasing query, acting coherently on the table register . With input order and output order , its basis action is
The table label is preserved basiswise but can become entangled with the algorithm-output tag register Z on a superposition of tables.
The output of a query to decomposes into recorded and unrecorded components of . The unrecorded component violates locality: the algorithm output contains while is absent from the sector label. The recording contraction removes this component.
Use the returned address in X to define the projector
where identities on , , the other table cells, and the algorithm workspace are implicit. Define
This contraction appears only in the analysis; the algorithm continues to use the original query . In the notation of Theorem 5.1, , , and is deterministic.
To compute the approximation error, fix and write and . For an arbitrary reference system , a vector on has the form . With output order , copying the tag value to and projecting the table cell by gives
Its squared norm is , exactly times the input squared norm. Hence the discarded component has operator norm . The algorithm-output copy of makes the error ranges for different addresses orthogonal, so the same norm holds for a coherent superposition of addresses. Therefore
On a basis query branch , the projector forces cell into its recorded subspace and acts as the identity on every other cell. It therefore maps a table sector into ; no recorded cell becomes unrecorded. The query's dependence on is only through , and the output sector contains . Consequently, the sector-transition and locality conditions 2 and 3 hold. Together with the norm estimate, these observations verify all three conditions with .
Corollary 6.1 (Injective trace-distance bound and separation). Let and be the average final states on the algorithm system Alg of any -query forward-erasing strategy under and , respectively, with one uniformly random tag table sampled at the beginning and reused on every query. If , then
Every bounded-error forward-erasing algorithm for GarbageSimon therefore uses more than queries. Consequently, for every ,
Proof. The one-cell calculation above and the sector transition rule verify the hypotheses of Theorem 5.1 with . Since , that theorem gives (7).
Suppose a strategy succeeds with probability at least 2/3 on every promised injection. It then distinguishes the two equal-prior hard distributions with success probability at least 2/3. If , then, for every ,
Here we used and . Helstrom's bound then limits the average success probability to less than , a contradiction. Hence . Proposition 4.2 supplies the matching upper bound, and Proposition 4.1 supplies the standard-query bound.
The permutation proof uses Theorem 5.1 itself, not merely Corollary 6.1. A permutation algorithm can query background inputs that do not occur in the injective interface, so the recording hypotheses must also be verified for those queries.
7 Permutation problem
The permutation promise embeds the injective map on a set of special inputs. A permutation algorithm may also query the rest of the domain, where the completion depends on the hidden image set. We couple a uniform completion to a uniform permutation and show that the corresponding query processes differ only on a sparse random set. The remaining lower bound then follows from the recording-to-birthday theorem.
Let and . We write its elements as tuples , where is a bit and . Under the identification with , denotes bitwise XOR, acting componentwise on these tuples. For an -valued register denotes the corresponding basis state. For , define
and let and . In a prescribed output , the last three coordinates contain the -value, address, and tag. The tuples are pairwise distinct because they contain , and because their marker bits differ. Elements of are special inputs; elements of are background inputs. A permutation algorithm may query both sets in superposition.
Remark 7.1 (Input copy). The explicit -coordinate makes the values visibly distinct and lets the candidate-branch analysis read the relevant index directly from an output tuple. It is convenient but not necessary for these two promise classes. Remark 7.11, after the detailed proof, replaces it by a single bit and improves the exponent measured in terms of the permutation-domain size. We retain here to keep the construction transparent.
Figure 2 summarizes which values are prescribed by the promise and which are chosen by a completion.

Figure 2: The permutation promise fixes the map on the special inputs. A completion maps the background inputs bijectively to the remaining outputs.
A promised permutation satisfies
and is arbitrary on the remaining inputs subject to being a permutation. In the NO class, is a permutation; in the YES class, is a Simon function with a nonzero shift. The tag table is unrestricted. Since is a bijection from to , every pair admits a completion: choose an arbitrary bijection . For fixed , a completion is any such permutation ; a uniform completion is sampled uniformly from the choices. We call this promise problem PermutationGarbageSimon.
Definition 2.1 specializes to
The forward in-place interface is from Definition 2.3.
The upper bounds are the same as for the injective problem. Use the register order (query, marker target, -value target, input-copy target, tag target). Prepare the query in the uniform superposition of the states , initialize the -value target to , and initialize the marker, input-copy, and tag targets to , , and , respectively. After one XOR query, omit the target fields that remain invariant and identify the query label with its address . The relevant state is
As in Proposition 4.1, repeating the usual Simon sampling procedure times distinguishes the two cases with error less than 1/4: in the Simon case every sample lies in , whereas in the permutation case the samples are independent and uniform in , and a union bound gives . A matching forward in-place upper bound follows by querying a uniformly random set of distinct special inputs and looking for a repeated -value; see Proposition 4.2.
Proof outline. The lower bound first couples a uniform completion to a uniform permutation independent of . It then represents each in-place query by two XOR queries and applies a hybrid over their sparse random disagreement set. The resulting one-slot comparison map admits a recording contraction, so Theorem 5.1 applies. Every random object is sampled once and remains fixed throughout the computation.
7.1 Reverse coupling
For each , the real hard distribution samples , a uniformly random tag table , and then a uniform completion satisfying (8). These three objects remain fixed throughout the computation. We call the resulting execution the real experiment. The distribution of on background inputs depends on the hidden set . The following construction couples to a uniform permutation independent of the hidden instance.
Let be the set of ordered -tuples of distinct elements of , and write . For every , fix a deterministic permutation such that
The sets and may overlap, so the assignments cannot in general be implemented by independent pairwise swaps. A suitable permutation nevertheless always exists. The directed edges decompose into vertex-disjoint directed cycles and directed paths. Retain the cycle edges, close each nontrivial path by mapping its final vertex to its initial vertex, and fix every point outside . We fix one such permutation for each .
The purpose of is to relocate the inputs at which the outputs are prescribed. If , then
Thus the prescribed outputs are attached to the uniformly random ordered tuple rather than to the fixed set . The next lemma shows that this random relocation makes uniform without changing the conditional distribution required for .
Lemma 7.2 (Reverse coupling). Fix a family arising from some pair . Sample uniformly from the permutations satisfying (8), and independently sample uniformly from . Define
For every such fixed and every permutation of , . Consequently, is uniform and, when is generated from , independent of . We call the reference permutation.
Proof. Fix a permutation . If , then . Evaluating this identity at gives
so necessarily
Conversely, these choices are valid: the points are distinct because the are distinct, and
They also satisfy . Hence exactly one pair in the support of the sampling experiment produces each . There are completions and
ordered distinct tuples. Therefore
which is independent of F.
Equivalently, , where is uniform and is supported on at most points. This identity is used only in the analysis: the algorithm continues to query , while and remain fixed throughout the coupled execution. The signed hybrid below converts the sparse modification into a bound on the final states.
7.2 Signed simulation
The two functions compared below are fixed throughout an execution. Their disagreement set depends on the random coupling, and every fixed signed input belongs to it with probability at most .
For a permutation , define the signed function
We identify the two signs with one bit. Since , the signed input is thereby encoded as an element of , as required by the standard XOR model. The sign is an input of the XOR oracle used in this simulation. The ordered registers are the sign , the -valued query register , and an -valued cleanup register that serves as the XOR target. Thus
Sparse-disagreement hybrids are most naturally stated for standard XOR oracles. We therefore represent one forward in-place call by two XOR calls: the first computes , the swap makes it the new query value, and the second computes and removes the old input from G. The sign is fixed to + for the first call and to - for the second, so is suppressed. The exact representation is
The lower-bound analysis applies this identity to each supplied forward call; the algorithm's oracle access remains . Hence a -query forward strategy has an exact representation using signed XOR queries.
Under the reverse coupling of Lemma 7.2, define the comparison signed function
(11)
Although the two directions in g need not be inverses, each is a classical function and therefore defines a unitary XOR transformation. We call the computation that uses g in both signed calls of every query slot the ideal experiment.
Conditioning on P fixes the real oracle and every real pre-query state, while W remains independent and uniform. The next lemma bounds the marginal probability that a fixed signed input lies in the resulting disagreement set.
Lemma 7.3 (Sparse disagreement). Fix and use the reverse coupling of Lemma 7.2. Condition on the completion , and let be the set on which and differ. Because was sampled independently of , it remains uniform in after this conditioning. Then
Proof. On a forward input , both functions output . If , then
Since is injective, disagreement implies that . A permutation and its inverse have the same support, so (9) and imply .
On an inverse input , both functions output . If , then
Disagreement implies . It cannot lie in , because . Hence .
After is fixed, both and in the preceding two cases are fixed points of . Every fixed point belongs to the underlying set of a uniform ordered distinct -tuple with probability . The disagreement probability is zero on and and at most on every other signed input, proving (12).
The next lemma permits arbitrary replacement values on a random disagreement set; only its pointwise marginal matters.
Lemma 7.4 (Sparse-disagreement hybrid). Let be fixed, and let a random seed determine a function and a set such that for . Suppose
For a fixed algorithm making standard XOR queries, let be its final state with oracle , let be its final state with oracle , and set . Then
Proof. Purify the algorithm. For , define a hybrid in which the first oracle calls use and the remaining calls use . Compare the hybrids with and base-oracle calls. Immediately before their th query, both have used the fixed oracle for their first calls. Their common pre-query state is therefore independent of .
Let project the query-input register onto . Since the two XOR oracles agree outside and are both unitary, their action changes by Euclidean norm at most
Write . Independence gives
By Jensen's inequality, the expected contribution of one hybrid step is at most . A telescoping sum therefore bounds the expected Euclidean distance between the two final pure states by .
For normalized vectors ,
Taking expectations and using convexity of the trace norm proves (13).
Corollary 7.5 (Completion-to-ideal reduction). Fix and , and consider a -query forward in-place strategy. In the signed representation, let be the fresh cleanup register used for query slot , and retain all of these registers in
After query slot , extend every later inter-query operation by the identity on . Let be the final state of the original strategy, averaged over a uniform completion and augmented by . Let be the final state obtained by replacing the signed function by in every simulated query, retaining every , and averaging over the coupled pair from Lemma 7.2. Both states act on , and
Proof. Fixing and fixes . Condition on . By the sampling rule in Lemma 7.2, remains uniform in . Lemma 7.3 therefore gives pointwise disagreement marginal at most . The exact representation (10) uses signed XOR calls. Lemma 7.4 gives
The estimate is uniform in . Averaging over the uniform-completion marginal and using convexity therefore preserves the bound.
7.3 Query macro
Let denote the -valued algorithm query register, both before and after a query. Each query slot uses a fresh -valued cleanup register , initially in . It temporarily stores the old query value between the two signed calls. For , the second call returns to ; for the comparison function , it may leave a nonzero value, which is retained as part of the output.
We call the three-step composition consisting of the positive signed call, the swap, and the negative signed call a query macro. When both calls use , the composition is the ideal query macro . It maps to the ordered output . The original algorithm continues on and its private workspace; later operations act as the identity on this slot's . Retaining makes the comparison map isometric, and discarding all cleanup registers at the end can only decrease trace distance.
Combining the two comparison signed calls and the intervening swap in (10) gives the following forward linear map:
Substituting (11) gives
In the first line, the main output reproduces the embedded injective instance on a special input. In the third, a background input is mapped by the reference permutation , whose distribution is uniform and independent of . The second line is the only place where a background query depends on the prescribed family , and hence on . This dependence is forced by the attempted inverse cleanup. If a background input and a special input have the same main-output value , then in makes their complete outputs orthogonal. Thus retains the residual information that makes the map an isometry.
Lemma 7.6 (Isometry of the ideal macro). The map M in (14) is an isometry.
Proof. We show that distinct standard-basis inputs have orthogonal outputs. If and their main-output values in are the distinct strings and . If are special inputs, their main-output values and are distinct because those strings contain and respectively.
It remains to compare a special input with a background input . If , their -values are different. If , their outputs are
Since , the two G-labels are distinct. Thus all images of standard-basis inputs are orthonormal, and .
By Lemma 7.2, is uniform and independent of . Nevertheless, the condition in the third line of (14) depends on the pair through . Thus Corollary 6.1 is not directly applicable: it concerns the injective query interface, which has no background inputs. We next construct a nearby contraction for the full ideal macro and verify the hypotheses of Theorem 5.1.
7.4 Recording contraction
Fix and . Purify the uniformly random fixed tag table using the registers and the state from Section 5. For a basis table , the ideal macro uses the same on every call and preserves that basis label. With input order and output order , the coherently extended map acts as
For each , the projectors and act on and select its unrecorded and recorded subspaces, respectively. The algorithm workspace is an unchanged tensor factor. Thus does not overwrite a computational-basis table label, but it is coherently controlled by that label and may entangle with . Basiswise preservation of therefore does not imply that preserves the decomposition im im on a superposition of table values. This distinction will explain the post-projection in (17).
Let
is the subset of whose marker bit is one. Every has a unique parsing , and
Let and set . We call the branch labelled by a candidate branch for index if
The index i is parsed from the main output y, not from w: a general background input carries no designated address. For every background branch, define the table-independent baseline isometry
This is the action of the macro when no equality is detected.
The ideal macro tests whether . Once is parsed, membership is the conjunction of the equalities and . If , no value of can make , and for every table. If , membership reduces to the coherent equality test . This is the candidate case modified below. We will define so that its action on im is equal to the baseline in both cases, so the unrecorded component cannot acquire dependence on or .
We define a linear map separately on each standard-basis query-input branch; it is used only in the lower-bound hybrid. Formally, let and set . We now specify maps from the table system to the ordered output . Since the states form a basis, the relations uniquely determine . All other registers are spectators.
- If the input is the special input , set
- Let the input be and set . If , or if with , set
In this case y cannot be a prescribed output, so .
- Suppose that and
Using the baseline from (15), define
On the unrecorded component , this rule retains the table-independent baseline and suppresses the equality test . On the recorded component , it permits the unmodified map , because cell is recorded on that component. The right-hand restricts to an input component in which cell is already recorded. The left-hand keeps the resulting output in the recorded subspace. This output projection is needed because uses as a coherent control and can change the interference between basis values. For example, choose , let , and suppress the common factor and all table cells other than . Then
The equality-controlled action has moved part of a recorded input into the unrecorded subspace. The left projector removes this leakage. Since acts trivially on the table, , so (17) is block diagonal in .
Projectors in these formulas act on the selected table-cell register and are tensored with the identity on all other registers.
The action on a basis table makes all three cases explicit. For the special and candidate displays we regroup and use the output order . Write
On a special input,
On a noncandidate background input with ,
Finally, on a candidate branch , let . Then
The projectors may therefore produce a superposition inside even when the input table is a basis state.
The baseline term on the unrecorded subspace is essential. For , with all other table cells suppressed, the unmodified candidate-branch map agrees with , so
Thus the output component whose factor lies in can have norm close to one. Only its table-dependent defect from the baseline is small:
Equation (17) retains this baseline component and removes only its table-dependent defect. This is the essential difference from the injective recording projection.
The next lemma verifies two logically separate facts. The approximation bound controls the cost of replacing one ideal macro by the recording map. The contraction bound ensures that this cost can be telescoped over many queries. The second fact is not implied by proving that every fixed branch is a contraction: different input branches can have overlapping output ranges and interfere coherently.
Lemma 7.7 (One-query recording estimate). For every fixed h and ,
Proof. Approximation. On a special input , the macro copies the basis value of the table-cell register into the tag field of the main output . The same one-cell calculation used in Section 6 gives
Now consider a candidate branch labelled by with . Let on . The difference is supported on and changes the -register from to the distinct basis state . Explicitly, on a basis table,
Hence and
Since acts trivially on the table, . Moreover, is the tensor product of the output vector , of norm , with on . The rank-one operator has norm . Therefore
Using
we obtain
Distinct background inputs have distinct main-output values in Y, so their error maps form a direct sum and the same bound holds for all background branches together. Likewise, the special error branches for distinct i have orthogonal address fields in Y. The special and background error ranges need not be mutually orthogonal, so the triangle inequality between those two aggregate maps gives
Contraction. The only possible coherent overlap is between the special branch and candidate background branches whose main output is . The projection on the special branch and the modification of the candidate branches reduce their diagonal squared norms. The four Gram identities below show that these losses dominate the cross terms for an arbitrary coherent superposition. A separate contraction estimate for each branch would not establish this. Fix . For , let and , and define the candidate set
For , write . Define the associated query-input subspace
We call , tensored with the table and spectator registers, the -block. Let and . The basis actions above give, for ,
The first identity measures the uniform component removed from the special branch. The second measures the loss caused by keeping the candidate branch block diagonal, the third is the remaining special–candidate overlap, and the fourth follows from the distinct main outputs . All four identities remain valid after censoring with the algorithm workspace and the other table cells. Appendix B derives them directly from the basis actions.
An arbitrary input supported on this block has the form
where and the are vectors on the table and spectator registers. Define
The orthogonality of the gives . The four Gram identities show that the squared output norm minus the squared input norm on this entire block is
Thus the norm removed by the recording projections dominates every special-candidate interference term. The complete norm expansion and completed-square calculation appear in Appendix C.
Blocks with different addresses have orthogonal Y-outputs. Every remaining background branch also has a Y-output orthogonal to these blocks; on those branches , and distinct inputs have distinct Y-outputs because is a permutation. The full map is therefore an orthogonal sum of contractions, which proves .
7.5 Locality
We now verify the two structural hypotheses of Theorem 5.1. For , the table subspace consists of states in which exactly the cells indexed by lie in their recorded subspaces, and denotes its projector. After query slots the retained system is
The recording global vector lies in . Every below acts on , while the identity in acts on . Tracing out retains the algorithm system and all retained cleanup registers.
Lemma 7.8 (Monotone recording and local dependence). Fix . After queries in which every ideal macro is replaced by , the final vector has a decomposition
For every , this vector depends on only through .
Proof. The table starts in the empty sector, and inter-query operations do not act on it. Consider one application of .
A special query to ends with by (16). It therefore changes a sector to . Its dependence on is only through . If was already in , the sector remains and the same dependence is allowed because is part of .
Consider a background branch whose main output parses as . If , this is a noncandidate branch: is the table-independent baseline and preserves the sector. If , it is a candidate branch and is block diagonal in by (17), so it also preserves the sector. When , the cell lies in its subspace, and both alternatives use the same baseline action there. Thus changing cannot change the action on a sector not containing . When , the branch may depend on , but that value is contained in .
Every remaining background branch is table independent and cannot introduce dependence on an unrecorded value of . Consequently, one query adds at most one index, and any dependence on occurs only in a sector containing . Induction over the query slots proves both assertions. The induction is linear, so the same conclusion holds for the coherent sum of all contributions to a sector. Appendix D writes out the sector blocks and the induction in full.
After tracing out the table, sectors with different labels have no cross terms. For fixed , equation (4) therefore defines positive operators on the retained system , which includes all fresh registers. Lemmas 7.7 and 7.8 verify the hypotheses of Theorem 5.1 with
The parameter is uniform and independent of h and r, exactly as required by that theorem.
The next theorem records the resulting trace-distance estimate.
Theorem 7.9 (Ideal trace-distance estimate). For , define by sampling , a uniformly random tag table, and an independent uniform permutation ; running the T-query strategy with the ideal macro (14); tracing out ; and classically averaging the resulting operators. This is a state on , with every fresh register retained. If , then
Proof. Apply Theorem 5.1 with and average over the uniform permutation , sampled independently of h and r.
7.6 Final comparison
For , let be the classical average of the strategy's original final state on for , one uniformly random tag table sampled once, and one uniformly random completion sampled once. Define the augmented real state on by
We represent this distribution by sampling the actual uniform completion , independently sampling a uniform ordered distinct tuple , and setting as in Lemma 7.2. Thus the marginal of is exactly the required real distribution, while the derived reference permutation is uniform and independent of . Equation (10) justifies the displayed augmentation: in the real simulation every returns to the same unentangled state . Consequently and
Corollary 7.5 holds for every fixed . After averaging within each promise class, it gives
The ideal state in this equation has exactly the distribution used in Theorem 7.9, because the reverse-coupling lemma makes the derived uniform and independent of h and r.
The final triangle inequality uses the real-to-ideal estimate once for each hard class.
Theorem 7.10 (Permutation lower-bound estimate). Every T-query forward in-place strategy satisfies
whenever .
Proof. Use the triangle inequality, equation (18) for the two promise classes, and Theorem 7.9. □
For the present construction , so
Suppose . The condition of Theorem 7.10 then holds, and for every the three terms in (19) are at most
respectively. Their sum is strictly less than 2/3.
On the other hand, an algorithm that succeeds with probability at least 2/3 on every promised permutation also distinguishes the two equal-prior hard distributions with success probability at least 2/3. Helstrom's bound would then require
a contradiction. Therefore every bounded-error forward in-place algorithm uses more than queries. Together with the collision-sampling upper bound, this proves
The XOR upper bound is at most . Since the permutation universe has points, these bounds are versus .
Remark 7.11 (One-bit compression). For the present promise, the explicit copy of can be replaced by one bit. Let
and use the special inputs and prescribed outputs
For every promised , allow any bit table for which
is injective. If is a permutation, every bit table is allowed. If has Simon shift , this condition is exactly for every . The values are therefore distinct, and their marker bits separate them from the special inputs. Define the compressed promise exactly as before: allow every permutation satisfying for all , and sample the completion uniformly in the hard distributions.
In the hard distributions, choose the independently and uniformly in the permutation case. In the Simon case, independently orient each pair , assigning bit 0 to one endpoint and bit 1 to the other. If contains no complete Simon pair, then is a uniform injection in both hard distributions, while the bits are independent and uniform. Thus has the same distribution in the two cases, and the exceptional event in the recording-to-birthday argument is still precisely that contains a Simon pair.
The permutation-specific parts of the proof require only a corresponding change in how a candidate index is identified. The new candidate outputs are
Their prefixes are distinct, so a candidate output determines a unique index . In a sector , a candidate with acts by the same baseline map as a noncandidate branch, whereas a candidate with is determined by . This gives the same block locality. The reverse coupling uses only the distinctness of the prescribed outputs, and the contraction and Gram calculations use only the distinctness of the candidate labels and the unchanged -bit tag states. Consequently the preceding proof applies with the hidden local data and with replaced by .
In particular, the last term in Theorem 7.10 becomes
The same choice therefore keeps the trace distance below and gives an lower bound. The standard-query and collision-sampling upper bounds are unchanged because they use only the -coordinate. Hence the compressed permutation problem has query complexities and in the standard and forward in-place models, respectively.
This completes the proof of Theorem 1.1.
8 Discussion
Kashefi, Kent, Vedral, and Banaszek initiated the systematic comparison of standard and minimal oracle interfaces [KKVB02]. Aaronson's Set Comparison construction gives a separation in the opposite direction [Aar02]; his later Problem 11 asks whether a property of injective functions can be learned with asymptotically fewer standard queries than forward-erasing queries [Aar21]. The injective construction answers this question directly for a map , and the permutation construction realizes the same phenomenon for a Boolean promise problem on permutations.
Restricting a promised permutation to its special inputs recovers the injection , but the injective corollary does not control queries outside that set. The reverse coupling and candidate-branch recording estimate handle these background queries. Once those permutation-specific steps are established, the sector, positivity, and birthday argument is reused through Theorem 5.1.
The separation relies on the forward-only convention. As explained in Section 2.1, supplying both a map and its inverse would implement one XOR query with two calls and eliminate the separation. The in-place model studied by Holman, Ramachandran, and Yirka is also forward-only [HRY25]. Their work establishes separations for simulation and coherent state conversion and poses a different decision problem. The promise problem here proves an existential bounded-error decision separation; it does not prove the conjectured lower bound for their particular total problem.
Two fixed sources of randomness appear in the permutation hard distribution. The tag table is sampled once and reused coherently on every query. The permutation completion is likewise sampled once and fixed. Neither source is refreshed during the computation. The table purification and the reverse coupling are analytical representations of these fixed classical choices, not changes to the oracle model. Likewise, the recording maps are linear contractions used in a hybrid argument; they are neither physical measurements nor postselected and renormalized queries.
Finally, the explicit copy of in each special output of the detailed construction makes injectivity and the candidate index immediate from the output tuple. Remark 7.11 shows that it is not essential: a one-bit separator suffices for these promise classes. In either version, this coordinate does not itself destroy Simon interference; with a constant tag table the usual Simon samples can still be recovered. The lower bound comes from the fixed random tags and the positive-semidefinite contributions obtained from the sector decomposition.
Theorem 5.1 separates this reusable part of the argument from the interface-specific construction of a recording contraction. It applies directly to other forward-only interfaces built on the same hard distributions whenever the fixed oracle randomness has a cellwise purification and each query has a nearby contraction with the stated sector-transition and locality properties. For different hard distributions, the proof gives the same template, but the comparison of local restrictions and the resulting exceptional-set probability must be proved for those distributions.
The full sector induction, Gram identities, contraction calculation, and permutation-locality induction appear in Appendices A–D.
Use of generative AI. The authors used ChatGPT iteratively in developing the results presented in this paper. Especially for the results in the second part of the paper, ChatGPT was extensively used to try out various alternatives before settling on the proof presented here. The ideas in the initial draft were corrected, simplified and substantially rewritten by the authors. Claude was also used to review the entire paper. The authors have checked all the proofs and take full responsibility for the correctness of results presented here.
References
[Aar02] Scott Aaronson. Quantum lower bound for the collision problem. Proceedings of the 34th Annual ACM Symposium on Theory of Computing, pages 635–642, 2002.
[Aar21] Scott Aaronson. Open problems related to quantum query complexity. ACM Transactions on Quantum Computing, 2(4):14:1–14:9, 2021.
[BBBV97] Charles H. Bennett, Ethan Bernstein, Gilles Brassard, and Umesh V. Vazirani. Strengths and weaknesses of quantum computing. SIAM Journal on Computing, 26(5):1510–1523, 1997.
[BHT98] Gilles Brassard, Peter Høyer, and Alain Tapp. Quantum cryptanalysis of hash and claw-free functions. In LATIN'98: Theoretical Informatics, volume 1380 of Lecture Notes in Computer Science, pages 163–169. Springer, 1998.
[CFHL21] Kai-Min Chung, Serge Fehr, Yu-Hsuan Huang, and Tai-Ning Liao. On the compressed-oracle technique, and post-quantum security of proofs of sequential work. In Advances in Cryptology—EUROCRYPT 2021, Part II, volume 12697 of Lecture Notes in Computer Science, pages 598–629. Springer, 2021.
[HM23] Yassine Hamoudi and Frédéric Magniez. Quantum time-space tradeoff for finding multiple collision pairs. ACM Transactions on Computation Theory, 15(1–2):3:1–3:22, 2023.
[HRY25] Blake Holman, Ronak Ramachandran, and Justin Yirka. Quantum search with in-place queries. In 20th Conference on the Theory of Quantum Computation, Communication and Cryptography (TQC 2025), volume 350 of Leibniz International Proceedings in Informatics, pages 1:1–1:18, 2025.
[KKVB02] Elham Kashefi, Adrian Kent, Vlatko Vedral, and Konrad Banaszek. A comparison of quantum oracles. Physical Review A, 65(5):050304, 2002.
[Sim97] Daniel R. Simon. On the power of quantum computation. SIAM Journal on Computing, 26(5):1474–1483, 1997.
[Wat18] John Watrous. The Theory of Quantum Information. Cambridge University Press, 2018.
[Zha19] Mark Zhandry. How to record quantum queries, and applications to quantum indifferentiability. In Advances in Cryptology—CRYPTO 2019, Part II, volume 11693 of Lecture Notes in Computer Science, pages 239–268. Springer, 2019.
A Sector induction
Here we provide the two inductions and the algebraic identities used in the conceptual proofs in the main text. These arguments introduce no additional assumptions and use the same register order and notation as the main text.
This section proves the sector-support and locality claims used in Theorem 5.1. Only Conditions 2 and 3 are needed.
Proof of the sector and locality claims. Fix . For , let denote the complete global vector after applications of the recording contraction, including the oracle-independent isometry following the th query slot. The initial oracle-independent preparation is included in the checkpoint . Let be the retained system at this checkpoint, and define
We prove simultaneously that
and that, for every ,
The first assertion says that at most cells are recorded after queries. The second states locality as equality of complete sector vectors, including every register retained by the comparison computation.
The sector projectors resolve the identity:
Thus is equivalent to the vanishing of every component with .
At checkpoint 0, the retained vector is independent of h, and the table-purification register is in
Since and , the table vector lies entirely in . Hence holds. The empty-sector vector is independent of , and every other sector vector is zero, so also holds.
Suppose and hold. Let be the oracle-independent isometry following query slot , with its identity action on understood. At this step, denotes the recording contraction for slot ; as in the theorem statement, the slot index is suppressed. Let be the retained system immediately after that query and before . Although the retained input and output spaces of may differ, its identity action on preserves every sector label:
The component in an output sector is therefore
Here supplies the predecessor sectors, and inserting the input and output sector projectors gives the blocks in Condition 2.
Every nonzero summand in (20) satisfies
Since , such a summand can occur only when . This proves .
For locality, fix and suppose . Only predecessors can contribute. For each such , the two functions also agree on , so gives
Condition 3 gives
Finally, is independent of h. Every summand in (20), and hence their coherent sum, is therefore unchanged when h is replaced by . This proves .
Taking yields the sector decomposition and locality statement used in the proof of Theorem 5.1.
B Gram identities
We derive the four identities used in the contraction part of Lemma 7.7. Fix and, for , let and . Define
Let . Since and , we have , so . We suppress the identity on all table cells other than . On the selected cell, the relevant unmodified maps act as
and
The two branch maps of the recording contraction in the i-block are
We begin with products of the unmodified maps. For ,
Therefore
For the candidate branch, the main output is always . After the output table cell is projected with , two basis inputs have nonzero overlap exactly when their labels agree. Consequently,
Equivalently,
Since
sandwiching (22) between on both sides gives
For the mixed product, the main outputs of and agree only when . In that case their labels agree only when . Hence
The identity
then yields
We also need
To verify it, first consider unequal table-basis inputs; their unchanged table labels are orthogonal. For equal inputs , the main outputs and are distinct. For , the main outputs agree, but the G labels are 0 and , which are distinct.
We can now establish the four Gram identities. First, using (21) and the fact that is an isometry,
Second, the two summands of have output table factors in the orthogonal subspaces im and im . Moreover, is an isometry and acts trivially on the table. It follows from (23) that
Third, the baseline part of has output table factor in , so it is killed by the in . Using (24) and (25),
The sign in the last line is positive because the subtraction in the second line is applied to the negative operator in (24).
Finally, every vector in the range of has its Y register in the basis state . For , these basis states are orthogonal, so
These calculations prove all four identities in the main text. Tensoring the maps with the identity on and on the algorithm workspace does not change them.
C Contraction calculation
We now use the Gram identities to prove the contraction estimate on an arbitrary coherent input, including interference between the special input and all candidate background inputs associated with i.
An arbitrary input supported on the i-block has the form
where and the are arbitrary vectors on the table and all spectator registers. The input basis states in Y are orthogonal, so
The output of the recording map is
Expanding the squared norm and inserting the four identities from Appendix B gives
There are no off-diagonal candidate-candidate terms because for .
Define
If
then . The computational-basis states are orthonormal, even though the vectors need not be. Therefore
Subtracting the input norm from the output norm and completing the square now gives
Thus is a contraction on every i-block.
It remains to combine the blocks. Blocks with different indices have orthogonal supports because the address field is part of . A remaining background branch cannot have output equal to an output in a candidate block: if for a background input , then it is the candidate branch indexed by . On every remaining background branch , and distinct inputs have distinct outputs because is a permutation. The complete input space therefore decomposes into orthogonal blocks whose output spaces are also orthogonal. Since the map is contractive on each block,
D Permutation locality
We give the full sector-block verification and induction for Lemma 7.8. In this section we write when the dependence of the recording map on h and needs to be explicit. For a basis input w, let denote its branch map, in the notation of Section 7.4.
For one query slot, define
We first prove the following two one-query facts:
(A)
(B)
Because the query-input states form a basis, it suffices to verify both claims on each input branch.
Consider first the special input . By (16), its output table component lies in , while every other table cell is unchanged. It can therefore take sector only to . This either leaves the sector unchanged, when , or adds the single index . The branch depends on only through , and belongs to the output sector in either case. Thus, if this branch contributes to a block ending in and , then and the two branch maps are equal.
Now let and set . If , the map is the table-independent baseline and preserves every sector. Suppose instead that . Its classification as a candidate branch is determined by whether . Two cases cover every input sector.
If , then contains . In the candidate case, the rightmost in the second summand of (17) kills that input component, while the first summand acts as the baseline:
The same equality holds in the noncandidate case by definition. Thus the action on sector is independent of even if changing changes whether the branch is called a candidate. It also preserves the table sector, so only can occur.
If , then contains . A candidate branch acts through and hence stays in the recorded subspace of cell ; a noncandidate branch uses the baseline and also preserves that subspace. All other cells are unchanged, so again . The two actions can differ, but this causes no violation of locality: if , then , so the branch has the same classification and the same action for both functions.
This branchwise analysis proves (A) and (B). It also isolates the reason for the baseline term in (17): on an input sector not containing i, candidate and noncandidate branches must act identically.
We finish with the induction over query slots. Let be the complete global vector after applications of and the following oracle-independent isometry, and let
At , the table is in , so only the empty sector is present; that vector is independent of . Suppose after queries that only sectors of size at most are present and that the vector in sector depends on only through . If is the next oracle-independent isometry, then
The slot index on is suppressed. By (A), every nonzero summand has and , and hence .
For locality, suppose . Every contributing predecessor satisfies , so the induction hypothesis makes the two predecessor vectors equal. Equation (B) makes the corresponding query blocks equal, and is independent of . The complete coherent sum in sector is therefore the same for and . This establishes both induction claims at . Taking proves Lemma 7.8.