Manuscript Offprint
arXiv:2609.10808Tight Time-Space Lower Bounds for Collision Finding and Element Distinctness under Label Symmetry
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
How much memory is needed to retain the quantum speedup for collision finding? For a uniformly random function , the BHT algorithm [BHT97] finds a collision using queries and a quantumly accessible classical table containing input-output pairs, whereas a logarithmic-space Grover search uses queries. Determining the optimal query-space tradeoff between these extremes remains a major open problem.
We resolve this equation within the class of label-symmetric algorithms, which treat the function 's output labels as interchangeable. We prove that such algorithm that makes queries, uses qubits, and finds a collision in a uniformly random function with constant probability satisfies
For the setting where , these bounds are matched by a space-efficient implementation of the BHT algorithm. As a consequence of our tradeoff, any label-symmetric algorithm for the search version of Element Distinctness on must satisfy
matching Ambainis's quantum walk [Amb07]. Thus, both tradeoffs are optimal within the class of label-symmetric algorithms.
To prove these results, we develop a space-sensitive version of the compressed oracle technique. The compressed oracle records the information learned by the algorithm in an evolving superposition of databases. Using label symmetry and representation theory, we show that an algorithm using S qubits can effectively retain information about only collision-free database entries. Substituting this estimate into the compressed oracle technique yields the stated tradeoffs. The key step identifies the relevant subspace of collision-free compressed databases with the least eigenspace of an arrangement graph, whose vertices are injective tuples and whose edges join tuples that differ in precisely a single coordinate. Of separate technical interest, we sharpen the previous analyses of the bottom of the spectrum of these arrangement graphs, identifying the exact spectral gap above the least eigenvalue.
*Email:frederic.magniez@irif.fr
Email:zursebastian@gmail.com
Contents
1 Introduction 1
1.1 Context and motivation 1
1.2 Contributions 3
1.3 Related works 4
1.4 Open problems 5
1.5 Technical overview 5
2 Preliminaries 8
2.1 Linear algebra 8
2.2 Representation theory of the symmetric group 9
2.3 Quantum query complexity 10
2.4 Space complexity 12
3 The compressed oracle technique for collision finding 12
3.1 The compressed oracle technique 12
3.2 Application to collision finding 15
4 Space bounds in the compressed oracle technique 18
4.1 Symmetry restrictions 18
4.2 Collision-free compressed databases 20
4.3 Representations in 21
4.4 Alternating projections onto and 23
4.5 Space bounds for collision-free database states 26
4.6 Time-Space tradeoff 29
5 Examples of label-symmetric algorithms 32
5.1 BHT and Ambainis's quantum walk 32
5.2 Equality-query algorithms 36
6 Bottom spectrum of the arrangement graphs 36
1.1 Context and motivation
Post-quantum cryptography. One of the most dramatic potential applications of quantum computing is its ability to compromise widely used cryptographic tools. Shor's algorithm [Sho97], for example, factors integers and computes discrete logarithms in quantum polynomial time. These problems form the main pillars of many of today's public-key cryptosystems, while the best-known classical algorithms for them require sub-exponential or exponential time. This threat has prompted an international effort in post-quantum cryptography to identify new fundamental primitives that would remain secure against quantum computers [PQC06, Ber09b].
Note that an alternative approach to strengthen our current classical cryptographic primitives is to shift to quantum technology and use quantum primitives such as the BB84 quantum key distribution [BB14]. Even though this technology is much more mature and currently being tested via satellites and telecom fibres, it still relies on classical cryptosystems in order, for instance, to authenticate classical channels of communication.
A less spectacular, but still serious threat comes from the BHT algorithm [BHT97] for finding collisions in hash functions. Hash functions are also a pillar of modern symmetric-key cryptography. A basic security requirement for any hash-based cryptosystem is resistance to finding distinct inputs on which the hash function takes the same value, since many attacks begin by finding such a collision pair. Even an ideal hash function is vulnerable to the generic randomised attack based on the birthday paradox, which gives a quadratic improvement over deterministic exhaustive search. Security parameters are therefore chosen with this attack in mind. The BHT algorithm gives a further quantum improvement, finding a collision in a random function with a cubic-root quantum query complexity. Consequently, resisting quantum attacks requires larger security parameters than resisting classical attacks.
The quantum advantage for collision finding, however, strongly depends on the memory available to the algorithm. In particular, the BHT algorithm relies on a large memory with quantum access. This makes the role of memory in quantum collision-finding algorithms especially important.
Bottleneck of quantum memory. Quantum memory will probably be a major bottleneck for future quantum computers, especially when it must be accessed in quantum superposition in a single unit of time, as in a quantum analogue of random-access memory (RAM). Such memory has been formalised and used in several quantum algorithms, including the BHT algorithm and Ambainis's quantum walk algorithm for Element Distinctness [Amb07]. In the former, the memory itself remains classical but allows quantum access and is therefore called QRACM; in the latter, the memory itself is quantum and is called QRAM (or a random-access gate). An early proposal and physical-architecture study of QRAM appears in [GLM08].
In the Turing model, access to memory is sequential and thus takes linear time to address one cell of the memory. In the Random Access Memory (RAM) model, access is direct and can be done in basically one unit of time. The RAM model is closer to actual computers, but it has limitations when processing, for instance, massive data. Note that in the circuit model, a multiplexer can implement the analogue of a RAM operation, but it costs linear circuit size, since it uses a linear number of Boolean gates with constant fan-in.
Thus, (quantum) polynomial-time algorithms usually do not explicitly require (Q)RAM, since they can simulate it with a polynomial overhead. Nonetheless, this remains critical for other algorithms, in particular those processing massive data. So algorithms such as Shor's algorithm do not explicitly require QRAM, but for those based on Grover Search [Gro96], which provides a quadratic speed-up that is often significant for massive data, the quest for QRAM is fundamental.
Based on those facts, some criticisms were made against the BHT and Grover algorithms [Ber09a]. A 2D-grid architecture of N classical processors with log N memory has been compared to a quantum computer with log N memory but with quantum access to a large classical memory (QRACM) of size N. In particular, it has been shown that the 2D-grid architecture proceeds as well as the quantum computer, and even better in some cases [Ber09a, Jef11].
To answer this criticism, another quantum algorithm was designed in [CNS17] which uses only logarithmic-size quantum memory, but polynomial classical memory, while still providing a significant but smaller quantum advantage in its time complexity.
This illustrates the importance of understanding the role of memory in quantum algorithms. Since it is still unclear which memory model (QRAM, QRACM, or more restricted quantum memory) will be realistic in future quantum computers, it is natural to study how the time complexity depends on the available space, independently of the particular memory model. This leads to the study of time-space tradeoffs.
Time-space tradeoffs. Time-space tradeoffs quantify how the running time of an algorithm depends on the available memory. Their study has two complementary parts: algorithms provide upper bounds, while limitations on all algorithms provide lower bounds. Because unconditional lower bounds on computational time are generally out of reach, one needs further assumptions such as the exponential time hypothesis (ETH) [IP01], or, as in this work, one can use the query-complexity model, where access to the input is restricted to a specified oracle. In that model, one input query is supposed to take one unit of time. Then, given some space-bound restriction, we prove a lower bound on the query complexity instead of the time complexity.
For instance, given comparison access to an array of size , sorting the array requires at least (classical or quantum) comparisons [HNS02]. If instead space is limited to at most bits, then the number of comparisons satisfies (when and ) [BFK81, PR98] for randomised algorithms. In the case of quantum algorithms, one can show that [KŠDW07].
Other such randomised and quantum tradeoffs have been established for a range of linear algebra problems including matrix-vector product, matrix inversion, matrix multiplication and powering [KŠDW07, BKW26].
However, in the context of collision finding, the situation is much more complex. First, in the classical evaluation model, when one has access to some random hash function by querying for any , there exist methods, such as the parallel collision search algorithm [vOW99], that succeed in finding a collision within queries and only polylogarithmic memory, ruining the hope of any time-space tradeoff. Together with the query lower bound for collision finding in a random function, even without a space restriction, this shows that additional memory cannot yield a substantial query-complexity improvement in this setting.
When the function is no longer random, the situation is quite different. This problem is known as Element Distinctness and consists of deciding whether the function is injective. The best-known algorithm satisfies the tradeoff [BCM13, CJWW22, LZ23]. However, the best lower bound is barely superlinear [Ajt05, BSSV03]. One can interpret this as a consequence of the short output size. Still, in the comparison model, the situation is a bit easier, and by an amazing tour de force, a line of work has established the almost tight classical tradeoff of (the upper bound comes from sorting algorithms).
Due to the inherent difficulty in establishing time-space tradeoff limitations for short-output problems, such as collision finding, the quest for such a tradeoff for finding a collision in a random function took some inspiring detours. One of them consists of finding collision pairs in a random hash function . Classically, Dinur [Din20] proved the tight lower bound , matching the upper bound of [vOW99]. The problem was subsequently considered in the quantum setting by Hamoudi and Magniez [HM23]. Their work popularised the compressed oracle technique, also known as the recording queries technique, of Zhandry [Zha19], as a method for proving strong quantum query lower bounds in the low-success-probability regime, which in turn yield strong direct product bounds and time-space lower bounds. In particular, they proved and, by adapting the BHT algorithm, obtained throughout the range .
However, determining the optimal quantum time-space tradeoff for finding a single collision remains today a major open problem, highlighted by Aaronson in [Aar21] as quoting below:
Open Problem [Aar21, Problem 3] What are the optimal tradeoffs between the number of queries used by a quantum algorithm to solve the collision or the element distinctness problems, and the number of qubits or classical bits of memory?
1.2 Contributions
In this work, we solve the above open problem for a restricted class of quantum algorithms. We establish the first quantum time-space lower bound for finding a single collision in a random function , for the class of label-symmetric algorithms, and show that the resulting tradeoff is tight in the standard case .
Informally, an algorithm is label-symmetric if its strategy does not depend on the labels assigned to the range elements: the strategy is similar for and , for any permutation of . The formal definition is stated in Definition 4.4.
Result 1 (Informal version of Theorem 4.18). Any label-symmetric algorithm that finds a collision in a uniformly random function with constant probability and uses T queries and S qubits of space must satisfy
It is natural to assume , in which case a uniformly random-function contains a collision with probability bounded away from zero. If , this probability tends to one. Neither assumption is needed for the correctness of the lower bound.
Taking the domain size to be and the range size to be gives a tight consequence for the search version of Element Distinctness, because a uniformly random function contains a collision with constant probability.
Result 2 (Informal version of Corollary 4.19). Any label-symmetric quantum algorithm that finds a collision in every non-injective function with bounded error satisfies
It is natural to ask ourselves whether our restriction is too strong. In fact, both the uniform input distribution and the condition that an output pair forms a collision are already invariant under permutations of the range labels. The labels therefore carry no intrinsic meaning, and there is no evident reason for an algorithm to benefit from treating particular labels differently.
This motivates our focus on label-symmetric algorithms. Indeed, both the BHT algorithm and Ambainis's quantum walk for Element Distinctness satisfy this condition (Lemma 5.3 and Lemma 5.3). More generally, any algorithm whose only input-dependent operations are pairwise equality queries asking whether is automatically label-symmetric (Lemma 5.4).
Result 3 (Informal versions of Lemma 5.3 and Lemma 5.4). The following algorithms are label-symmetric:
• BHT algorithm for Collision Finding;
• Ambainis’s quantum walk for Element Distinctness;
• Any algorithm whose only input-dependent operations are pairwise equality queries.
For random collision finding with M = N, BHT with table size r uses
For this gives , while gives . For Element Distinctness, Ambainis's quantum walk with gives . Thus, our tradeoffs for random collision finding and the search version of Element-Distinctness bounds are tight.
Of separate technical interest, we obtain a sharp analysis of the bottom of the spectrum of arrangement graphs. An arrangement graph may be viewed as an ordered analogue of a Johnson graph: its vertices are injective s-tuples , and two vertices are adjacent if and only if they differ in exactly one coordinate. We sharpen previous spectral results for these graphs [CGW13, AB17] throughout the full regime , determining both the least eigenspace and the exact spectral gap above it.
Result 4 (Arrangement Spectral Gap, informal version of Lemma 4.9). Assume . The smallest eigenvalue of is -s, and the gap above the least eigenvalue is .
This spectral estimate is a key ingredient in our space lower bound: it allows us to control the collision-free part of a compressed database that can be retained by an S-qubit label-symmetric algorithm. We give the precise spectral statement and explain its connection to the collision problem in the technical overview below.
1.3 Related works
The quest for quantum time-space tradeoff limitations for finding a collision for random hash functions was initiated for the lower bound part in [HM23], but for the case of finding multiple collisions only. The compressed oracle technique was introduced by Zhandry in [Zha19], mostly for studying the security of classical cryptosystems. Since then, its applications were developed for various settings including query complexity.
The quantum query complexity of symmetric algorithms has been studied before, for example for insertion into an ordered list [FGGS99] and for ordered search [CCKDS26], but these works use a different notion of symmetry (translation invariance). In our work, we consider the symmetry for which the algorithm's strategy is unchanged when the range labels are permuted. This symmetry is more relevant for the collision finding problem.
1.4 Open problems
The main open problem is to remove the label-symmetry assumption. Because both the uniform input distribution and the collision success condition are invariant under range relabelling, it is difficult to imagine how treating particular labels asymmetrically could help. Nevertheless, the usual method of symmetrising an arbitrary algorithm stores a random permutation and can require additional space, so it does not preserve the parameter that our lower bound tracks. A space-preserving symmetrisation argument, or a proof that avoids symmetry altogether, would extend the tradeoff to all algorithms.
1.5 Technical overview
The main difficulty in proving time-space tradeoffs for quantum collision finding is that the usual analysis only measures how much information the algorithm has learned, but does not directly capture how much of this information can be stored in a limited amount of quantum memory. Our proof overcomes this difficulty by combining three ingredients: the compressed oracle technique, the label symmetry of algorithms that treat output labels as interchangeable, and a representation-theoretic analysis of the linear spaces in the aforementioned compressed oracle technique. Together, these tools show that an algorithm using only S qubits cannot maintain a large collision-free database, which limits how quickly it can create a collision.
Compressed-oracle progress. Our proof is based on the compressed oracle technique [Zha19, HM23], which we introduce in Section 3. In this technique, we represent what the algorithm knows about a uniformly random function , by a superposition of databases. These databases are initially filled with "empty" cells , representing that the algorithm has no information about the value , but after queries, each branch of the superposition contains a database with at most cells of the form . The unitary evolution of these database branches through queries is quite subtle, but it was formally shown in the seminal work by Zhandry [Zha19] that we can think of a query (to ) adding a random fresh cell to the database.
The progress of the algorithm can now be tracked by defining projections onto these databases, such as , which projects onto all branches such that there exist entries , , i.e. a collision, or which projects onto all databases that contain no collision. More formally, if is the superposition of our databases after queries,
denotes the amplitude on such databases that contain at least one collision. A new query can create a collision only by adding new cell whose label is already present at another occupied position. This intuition allows one to bound the increase of , formalised in Lemma 3.5, in terms of the number of occupied entries in the collision-free part of the database. Write for the projection onto databases with exactly s occupied positions, then
Since is always bounded by and that form a set of mutually orthogonal projections, using Cauchy-Schwarz we obtain the standard estimate . Since the probability of success of our algorithm is approximately equal to , we recover the usual quantum query lower bound, if we require that . Our main task is to replace this crude bound by one that also depends on the available space.
The space restriction from label symmetry. In Section 4.1, we introduce label symmetry at the level of the reduced state of the input register , obtained by tracing out the algorithm's register in the joint state on the algorithm and the input. Label symmetry implies that the support of is invariant under permutations of the range labels. However, any quantum algorithm that uses at most qubits, the Schmidt rank across the joint state is at most , and hence the reduced state has a rank of at most . Those two observations imply that the orbit (under the symmetric group ) of every vector in the support of spans a space of dimension at most , leading to the following orbit bound that we state formally in Lemma 4.3:
In Section 5, we verify that this label-symmetry assumption is satisfied by both the BHT collision-finding algorithm and Ambainis's quantum walk for Element Distinctness, as well as by the broader class of equality-query algorithms. This shows that label symmetry captures natural quantum algorithms and, together with the BHT upper bound, establishes the tightness of our tradeoff in the standard case M = N.
Collision-free compressed databases. To exploit the orbit bound, in Section 4.2 we introduce a representation-theoretic model for a database with occupied positions. After fixing these positions and omitting all entries, the recorded values may be identified with vectors in . Two subspaces of this tensor space arise naturally.
The first is
Each intuitively represents ‘knowing nothing’ about the function value, and is mapped to a cell in the compressed oracle technique. Thus, valid databases with non- cells lie precisely in .
The second is the collision-free subspace
Consequently, the central space in our analysis is
which consists of states that are simultaneously collision-free and compatible with a database in the compressed-oracle representation.
Representation theory and arrangement graphs. We next determine the -representation carried by our space . To achieve this, we define the deletion map , obtained by, for each coordinate , applying which deletes the -th coordinate. On the one hand (Claim 4.7), this map is related to through the identity
On the other hand, the operator has a natural graph-theoretic interpretation,
where is the adjacency operator of the arrangement graph. This graph may be viewed as an ordered analogue of a Johnson graph: its vertices are the injective s-tuples in , and two vertices are adjacent when they differ in exactly one coordinate. It follows that the space of collision-free compressed databases is precisely the -eigenspace of the arrangement graph:
Our spectral analysis, stated in Lemma 4.9 and proved in Section 6, shows, for every , the space decomposes into irreducible representations that are all of high dimension, namely at least
This exceeds whenever , meaning that a vector accessible to an S-qubit label-symmetric algorithm cannot have a nonzero component in for such large values of . This will be crucial for establishing our time-space tradeoff.
The noncommuting projections difficulty. One difficulty is that the two natural conditions on a database, being collision-free and being a valid compressed database, are described by projections in the computational basis and the Fourier basis, respectively, and hence do not commute. The spectral gap of the arrangement graph controls precisely this discrepancy. In Lemma 4.10, we prove
Consequently, once the component in has been ruled out, the squared norm of the projection onto the collision-free subspace is at most times the squared norm of the original state.
From the database space bound to the tradeoff. In Section 4.5, we combine all our aforementioned intermediary results to obtain a tighter bound, one that involves the space S, on the quantity
We bound the quantity , depending on whether is larger than or not. If is smaller, the bound is straightforward and we obtain
For , we know from our representation-theoretic analysis of the space , that can not have any overlap with . Note that (1) implies that, for any normalised vector orthogonal to , we have
Therefore, by formally identifying the projection with the projection in Claim 4.12, we can bound
Assuming that and , this obtain the space-sensitive bound
which for and requires , proving Theorem 4.18.
2 Preliminaries
2.1 Linear algebra
For a positive integer , we write . We consider finite-dimensional complex inner product spaces for some dimension . We use standard bra-ket notation for column and row vectors in . We consider all bra-ket vectors to be normalised unless specified otherwise. For a finite set , we let
and, for a positive integer , we abbreviate as . For any two Hermitian operators , we write if their difference is positive semidefinite.
Definition 2.1 (Spectral norm). Let be a matrix. Then the spectral norm (also known as the operator norm) of A is
where is the standard vector -norm.
Since we consider all bra-ket vectors to be normalised, the above supremum is implicitly over normalised vectors.
Definition 2.2 (Fourier basis). Let be the computational basis for . Then is the Fourier basis of , where each is defined as
Here , where denotes the imaginary unit to prevent ambiguity with the variable .
2.2 Representation theory of the symmetric group
We introduce the representation-theoretic preliminaries of the symmetric group that are used in the rest of this section.
Let denote the symmetric group of degree . Throughout this subsection, all representations are finite-dimensional complex representations, and group actions are on the left unless stated otherwise. A representation of is a complex vector space equipped with a homomorphism
When the representation homomorphism is clear from context, we suppress it from the notation and identify the representation with . In this case, we write for .
A subrepresentation W of V is given by a subspace such that
for every and . A representation is called irreducible if its only subrepresentations are and itself.
Let and be representations of . A linear map is -equivariant if
for every and .
The character of a representation is the function
Thus,
where denotes the identity element.
The irreducible complex representations of are indexed by partitions of the integer , denoted by , that is, weakly decreasing sequences of positive integers
We denote the corresponding irreducible representation by , and call it the Specht module of shape . Its character is denoted by
Thus, in particular,
Each partition has an associated Young diagram , a collection of left-aligned rows of boxes with boxes in row . For example, the partition has Young diagram

We also regard the empty partition as the unique partition of 0, with and .
A standard Young tableau of shape , denoted by the symbol t, is a filling of the boxes of with the numbers , each used exactly once, such that the entries increase along rows and down columns. For instance, a standard Young tableau of shape is
| 1 | 2 | 4 | 7 |
|---|---|---|---|
| 3 | 5 | ||
| 6 |
since the entries increase from left to right in each row and from top to bottom in each column. We write SYT( ) for the set of standard Young tableaux of shape .
Theorem 2.3 (Theorem 2.5.2 in [Sag01]).
2.3 Quantum query complexity
In this work, the input is a function . The memory of a quantum algorithm is described, without loss of generality, by registers , and . The input oracle acts on , while is an additional workspace register. The algorithm accesses through the following oracle.
Definition 2.4 (Oracle). An oracle , encoding the input function , is a unitary transformation that acts on
with its action on the basis state defined as
The input is typically drawn from some (hard) input distribution on , denoted by . Consequently, is a random variable. In adversary methods and the compressed-oracle technique, this randomness is purified by introducing an additional input register that stores a superposition of function tables. If , the register is initialised as
Here, represents the initial state of the input register. It is important to note that this should not be confused with the initial state of the algorithm, which is the all-zero state. This purification of the input leads to the following purified oracle:
Definition 2.5 (Purified Oracle). A purified oracle is a unitary transformation that acts on
with its action on the basis state defined as
From the perspective of the algorithm, it is indistinguishable whether it interacts with the random variable or the purified oracle with input register initialised to . The relationship between the two is captured by the following expression:
It is equivalent, and in this work more convenient, to encode the query into the phase by viewing the register in the Fourier basis instead of the computational basis . In this Fourier basis, the oracle from Definition 2.5 acts on any basis state as
Definition 2.6 (T-Query Quantum Algorithm). A T-query quantum algorithm A on is a sequence of unitaries acting on
where is an arbitrary finite-dimensional workspace.
For a fixed input and , define
Thus, for , is the state immediately before the -st query, while is the final state of the algorithm.
For an input distribution on , define the corresponding purified joint state by
Equivalently,
Finally, we define the reduced state of the input register,
In the definition of the joint state , the unitaries act on a larger Hilbert space than originally defined, but each operator is implicitly understood to be tensored with the identity operator on .
Observe from the definitions in Definition 2.6 that the reduced state of the input register can alternatively be written as
In this work, we consider search problems for which an input may have multiple valid outputs, or possibly no valid output at all. We therefore use average-case quantum query complexity, defined with respect to an input distribution , rather than the worst-case quantum query complexity.
Definition 2.7 (ε-error Average-Case Quantum Query Complexity). Let be a finite set of possible outputs, and let be a search problem, where denotes the set of valid outputs on input .
For an input distribution on , the -error average-case quantum query complexity of F with respect to , is the minimum number of queries needed by any quantum query algorithm A such that
Here the probability is over both the choice of and the measurement outcomes of A.
This choice of metric is discussed in depth in [JZ26]. For collision finding, without the promise that the input contains a collision, no algorithm can solve the corresponding search relation on every input. This is why we work with average-case complexity under the uniform input distribution.
For collision finding, we take
and define
Thus, is the set of valid collision certificates of , and it may be empty if is injective.
This formulation is asymptotically equivalent, up to one additional query and additional qubits, to the usual formulation where the algorithm only has to output the collision pair , as the algorithm may query and output the resulting common value . Thus the two formulations have the same asymptotic query and space complexities. This alternative formulation is more convenient in this work because it interfaces directly with the compressed oracle readout bound in Lemma 3.6.
2.4 Space complexity
In this work, by quantum time-space lower bounds we mean lower bounds that relate the query complexity T of an algorithm, as in Definition 2.6, to its space complexity S. Such bounds show that an algorithm solving the problem cannot simultaneously use few queries and little space.
This reflects the standard convention in the query-complexity model that each query takes one unit of time. Consequently, a query lower bound also yields a time lower bound, relativised to oracle access to the input.
The space complexity S is the number of qubits in the algorithm's workspace registers (i.e. the qubits on which the circuit operates throughout the computation). Equivalently, since denotes the algorithm's Hilbert space,
3 The compressed oracle technique for collision finding
3.1 The compressed oracle technique
In the compressed oracle technique [Zha19], also known as the recording query technique, the input distribution is initialised to the uniform distribution over all functions from [M] to [N], which we denote by U:
This construction also extends to product distributions, although we do not need that generality here. Such an extension appears in [HM23]. For background on the technique, see [Zha19, HM23, CFHL21].
The input register holding a computational basis state , where , is the tensor product of the function values of for the different values of :
We enlarge the Hilbert space of every cell to . We continue to write for a computational basis state in , so that may equal . For every , define the isometry
Thus, the uniform state , which represents having no information about the value in cell , is mapped to , while every nonzero Fourier state remains unchanged. In particular,
Taking the tensor product over and extending it by the identity on the algorithm registers gives the isometry
Let be the unitary recording query operator obtained by extending the restriction of to locally: it acts only on the queried database cell and acts as the identity when the register is . Its explicit basis action is given in Lemma 3.3. This extension preserves and satisfies
where is the orthogonal projector onto ; its explicit form appears in (7).
Remark 3.1. Our formulation differs slightly from the recording-query formalism of Hamoudi and Magniez [HM23]. There, the corresponding change of representation is implemented by a unitary on the enlarged space : locally, it exchanges with and fixes every with . The map above is precisely the restriction of this unitary to the original subspace . Thus, the two formulations give equivalent descriptions of the recording query dynamics.
We instead follow the isometric viewpoint of Jeffery and Zur [JZ26], in which Comp maps the standard input space into the enlarged database space and one explicitly keeps track of its image im(Comp). Although the two viewpoints are equivalent at the level of the recording query dynamics, making this image explicit is convenient for our space-sensitive analysis. In particular, all compressed states remain in im(Comp), and later, after restricting to the occupied database cells, this image condition becomes the Fourier-space constraint that enters our representation-theoretic analysis of collision-free databases.
In the compressed oracle technique, we study a modified version of the joint state . Since the rest of this work only considers the case , we omit the distribution parameter and simply write . In this modified state, each oracle call is replaced by and the input is initialised to instead of :
Note that since lies in , it is immediate from (6) that all intermediate compressed states remain in this image.
These two perspectives are almost identical:
Lemma 3.2 (Theorem 3.3 in [HM23]). Fix a T-query algorithm A with inter-query unitaries . Then, for every , the states
obtained from the standard and compressed oracle models, respectively, satisfy
As in Definition 2.6, we write
for the reduced state of the input register in the compressed oracle model.
The reason for studying the compressed oracle model is that by correctly tracking the symbols in the register of with every query, we are able to record what the algorithm has learned about the input. First of all, when applied to a basis state , only changes the value of stored in register :
Lemma 3.3 (Lemma 4.1 in [HM23]). Fix and apply the recording query operator to a basis state with . Then the content of the cell register transforms as
where, for with
If p = 0, then none of the registers are changed.
Since we start with the input initialised to , Lemma 3.3 implies the following consequence, which is the cornerstone of the compressed oracle technique:
Lemma 3.4 (Fact 3.2 in [HM23]). For any T-query algorithm and every , the state is a linear combination of basis states where contains at most entries different from .
For any , we write if contains precisely entries different from .
3.2 Application to collision finding
We define the following projectors by giving the computational basis states on which they project:
-
and : all basis states such that does or does not contain a collision (excluding ), respectively.
-
, where : all basis states such that contains exactly non- entries.
Recall from (6) the projection
i.e. the orthogonal projector onto the image of the isometry Comp from (5). Here each identity inside the tensor product acts on .
Let denote a basis value of the algorithm registers, using the chosen computational bases of and and the Fourier basis of . Let . We write for the orthogonal projector onto all basis states with algorithm registers and occupied set . Suppose that , and let denote the image of .
Progress measure. We follow the standard compressed oracle progress argument for finding collisions [LZ19, HM23]. Recall that, for , denotes the state immediately before the -st query, while is the final state, and that
and define
The unitary applied after the -st query acts trivially on the database register. Therefore,
Separating the part of the state that already contains a collision and using that is unitary, we obtain
We first upper bound the maximal progress made with a single query.
Lemma 3.5. Let be a not necessarily normalised collision-free vector, i.e. . Then
Proof. The recording query operator acts as the identity when the register is in the state . This component cannot create a collision from a collision-free database. Hence, we may assume in the remainder for the proof that has no support on the subspace where .
For , define
and decompose
Since is collision-free, implies , while implies .
Fix a block and write . For a computational-basis state in its support, Lemma 3.3 gives
where is obtained from by setting the value at equal to . The output states on the right-hand side are pairwise orthogonal, since the values are pairwise distinct. Moreover, outputs arising from different input basis states in the same block are orthogonal, since the input database is recovered by replacing the value at by . Using by Lemma 3.3, we obtain
Now fix . For a computational-basis state in the support of , a collision can only be created if the new value at agrees with the value at one of the other occupied positions. Hence,
The output states are again pairwise orthogonal. Outputs arising from different input basis states in the same block are also orthogonal, since the input database is recovered by replacing the value at by the fixed value . Using for by Lemma 3.3, we obtain
For fixed , the outputs belonging to different pairs are orthogonal. Indeed, the algorithm registers are unchanged by the query. If , then the final occupied set is , from which can be recovered because is contained in . If , then the occupied set remains equal to . It follows from (11) that
Similarly, for every fixed , (12) gives
Using the triangle inequality over and then Cauchy-Schwarz, we obtain
From progress to success probability. We finally relate to the actual success probability of the algorithm. Recall that denotes the uniform distribution over functions and that for the collision finding problem, the set of valid outputs is defined in (3) as
Let denote the probability that the algorithm outputs a triple in on an input .
Lemma 3.6. Let A be a T-query quantum algorithm. Then,
Proof. We apply the compressed oracle readout bound of [Zha19, Lemma 5] with . Zhandry states the result for a random oracle with range . The same proof applies to range by replacing the -fold tensor-product Hadamard transform with the quantum Fourier transform over , giving an error term of .
More precisely, we identify an output of A with the tuple
and consider the relation
The success event in Zhandry's lemma is therefore precisely the event
which occurs with probability .
Now run A with the compressed/recording oracle and measure the compressed database after the algorithm produces its output. Let denote the probability that the output satisfies and that the measured database D contains
By [Zha19, Lemma 5],
Whenever the event defining occurs, the recording database contains two distinct positions with the same recorded value, and hence contains a collision. Therefore
Consequently,
Squaring both sides proves the claim.
Known query lower bound. Even before incorporating the space restriction, Lemma 3.5 already recovers the standard query lower bound. Indeed, by Lemma 3.4, every database in the support of has at most occupied positions, and hence
Therefore, (9) and Lemma 3.5 give
where . Together with Lemma 3.6, this yields, for , the standard bound and hence for constant success probability. In the next section, we refine precisely the crude estimate above: label symmetry and the S-qubit space bound allow us to replace the factor by , which yields the optimal time-space tradeoff.
4 Space bounds in the compressed oracle technique
4.1 Symmetry restrictions
In our setting, both the uniform input distribution and the collision-finding success condition are invariant under arbitrary permutations of the range labels. Thus, no range label has intrinsic significance, making it natural to expect that treating particular labels asymmetrically offers no advantage. We formalise the corresponding symmetry at the level of the algorithm's reduced input state, and we call it label symmetry.
Although this motivates our restriction, label symmetry cannot presently be imposed without loss of generality under a space bound: symmetrising an arbitrary algorithm by explicitly storing a permutation can require additional qubits [Amb10, AMRR11], which would obscure the time-space tradeoff. Related invariant-algorithm restrictions have been studied for insertion into an ordered list [FGGS99] and for ordered search [CCKDS26].
We first define symmetry for a general group action.
Definition 4.1. Let be a unitary representation of a finite group . Let be a -query algorithm whose algorithm registers use at most qubits, and let be an input distribution. We say that is -symmetric with respect to if, for every ,
In our application, is the symmetric group on the range labels. We extend every to by setting , and define its unitary actions on the standard and compressed input registers by
both for and .
We further extend this action to the algorithm’s registers by tensoring with the identity; thus, range relabelling acts trivially on all algorithm registers, including the query registers and . Because the uniform state is fixed by every permutation, these actions satisfy
In particular, commutes with . Since the action fixes and only permutes the remaining labels, it also commutes with , , , and every .
A direct consequence of (2) and the invariance of U under -symmetry is the following fact.
Fact 4.2. Under the uniform distribution U, -symmetry is equivalent to the Gram-matrix condition
for all , , and .
Symmetric algorithms satisfy the following key space bound.
Lemma 4.3. Let be an algorithm whose algorithm registers use at most qubits, and suppose that is -symmetric with respect to . Then, for every and every ,
Proof. By assumption, is G-invariant, and therefore
Since the joint state is pure, its Schmidt rank across the algorithm-input cut gives
which proves the claim.
Definition 4.4 (Label-symmetric algorithm). A quantum query algorithm A is label-symmetric if is -symmetric with respect to the range-label representation in (13).
Every algorithm whose only input-dependent operation asks whether is automatically label-symmetric: such an equality query is unchanged by any permutation of the range labels. We state and prove this formally in Lemma 5.4.
Let . The reduced standard and compressed input states obey
By (14), label symmetry therefore transfers to the compressed reduced state without changing its rank. In particular, for every basis value of the algorithm registers, the projected part has an -orbit span of dimension at most .
In the rest of this section, we identify the components of a collision-free compressed database whose nonzero vectors have high-dimensional -orbits. The orbit bound above then forces every state in the reduced state of the input register of a space-bounded, label-symmetric algorithm to be orthogonal to those components.
4.2 Collision-free compressed databases
We view as the permutation representation of by making it permute the labels:
This induces a diagonal action of on :
We also let act on by permuting the tensor factors. Since we later multiply by seminormal idempotents on the right, we use the right-action for this action:
The left -action and the right -action commute.
We introduce the space
and, for , we define the collision subspace
Its orthogonal complement is
The spaces and have a simple interpretation. The space describes s-tuples with no collisions, while describes the s recorded entries of a compressed database after the -entries are omitted. Their intersection can therefore be identified with the space of collision-free compressed databases with s recorded entries. We make this correspondence precise in Section 4.5.
A related subtlety is that the operator is in general not equal to the projection , because a product of orthogonal projections need not coincide with the orthogonal projection onto the intersection, unless the two projections commute. In Lemma 4.10 we show that, although these two operators are not identical, they are nevertheless close in operator norm.
4.3 Representations in
In this section we analyse the -irreducible representations appearing in . We show that only Specht modules of shape whose first row has length exactly occur in , that is, , when is large enough. The proof is postponed to the end of this section, and naturally breaks into two intermediate results we will present shortly.
Theorem 4.5. Assume and . Then
The Specht modules appearing in this decomposition have large dimension (if is large), which will be important later to show that the space is not reachable by our quantum algorithm if it has limited space at its disposal.
Theorem 4.6 (Theorem E in [Ras77]). Assume and . Then
By combining these two theorems, we show in the next section that for every nonzero vector in , the dimension of the span of its -orbit is large.
We now set out to prove Theorem 4.5 by constructing a linear map , whose kernel is (see Claim 4.7), but on the other hand, whose kernel is also isomorphic to (see Lemma 4.9).
For each , define the deletion map
For , we use the convention that the zeroth tensor power is identified with , so in particular and .
By taking the direct sum of these maps for the different values of r, we obtain the operator
Claim 4.7.
Proof. Recall from (15) that . Hence,
On the other hand, each contraction in the r-th tensor factor is related to the deletion map by
Thus, these two maps have the same kernel, and therefore
Since is the map obtained by restricting to , we have
We now look at D from a different perspective. Let
Then by (17) it is immediate that the orthonormal basis of is precisely given by . Consider the adjoint of the restriction of the deletion map to , which is a linear map from to , acting as
Let be the adjacency matrix of the arrangement graph on the basis vectors of , where two basis vectors are adjacent if and only if the corresponding (injective) s-tuples differ exactly in one coordinate. So is a linear operator from to , acting as
The following claim means that ker is the -eigenspace of , and we can analyse ker by studying the spectrum of .
Claim 4.8.
Proof. We verify that
Indeed, by (22) for each r,
so summing over counts each neighbour in the arrangement graph exactly once, recovering (23) and additionally contributes the diagonal term .
Since for every linear map , we conclude by (24) that
Chen, Ghorbani, and Wong showed that is the least eigenvalue of for , obtained a lower bound on its multiplicity, and conjectured that it is eventually the unique negative eigenvalue [CGW13]. Araujo and Bratten subsequently determined the spectrum through character ratios and proved uniqueness under the sufficient condition [AB17, Theorem 3.5, Proposition 4.1, and its proof]. The following lemma determines the entire bottom of the spectrum for every .
Lemma 4.9 (Arrangement Spectral Gap). Assume and . The smallest eigenvalue of on is , and its eigenspace is, as an -representation,
Moreover, the next distinct eigenvalue is exactly . Consequently, the gap above the least eigenvalue is , and is the unique negative eigenvalue exactly when .
Proof. See Section 6.
We end this subsection by combining our results together in order to prove Theorem 4.5.
Proof of Theorem 4.5. From Claim 4.7 and Claim 4.8, we have that the kernel of coincides with both and the -eigenspace of . Furthermore, Lemma 4.9 tells us that the -eigenspace of is isomorphic to
Thus, in summary,
4.4 Alternating projections onto and
The product is not necessarily equal to the orthogonal projection onto . In general, the comparison of these three projections is related to the literature on alternating projections (see, e.g., [KW88]). In particular, the operator-norm error is exactly the cosine of the Friedrichs angle between the two subspaces (the angle between their components orthogonal to the intersection).
In our case, we derive a direct upper bound on this error without computing the angle and show, in the following lemma, that these two operators are close.
Lemma 4.10. Assume and . Then
In particular, if satisfies , then
Proof. The equality in (25) follows from taking the adjoint, so it is sufficient to bound
We first consider the case s = 1. Then,
Consequently,
and the result is immediate.
Henceforth, assume . Let and consider . We first prove that
For the first containment, observe that , since the images of both projectors and lie in . For the second containment, we prove the more general statement
leading to , that is, . Indeed,
where for the second equality we have used that is a subspace of both and , and therefore and .
We now decompose into its - and -components (see (16) and (17)). Observe first that, since , the decomposition lies in fact inside . So we let with and .
We relate the norm of to as follows, using that and :
(26)
For now, assume the following claim about z and c, which we prove separately below.
Claim 4.11.
The proof then concludes as follows:
Combining this with (26) and applying Cauchy-Schwarz gives
Dividing by (assuming , as otherwise the inequality is trivially true) yields the desired
□.
Proof of Claim 4.11. For , recall the deletion map from (18):
Thanks to (20) in the proof of Claim 4.7, we have seen that for every . In particular, for our ,
For the second equality, we used , which implies . By the first equality of (27), as well, so it is invariant under and we may insert this projection.
Taking direct sums of and over gives the following operators, the first of which was already defined in (19):
By (27), these operators satisfy
We now study these operators in more detail and prove the following, which will conclude the proof:
We start with the lower bound on . By (24) and Lemma 4.9, is positive semidefinite. Its kernel is by Claim 4.7, and its smallest positive eigenvalue is . Therefore, on , the operator is bounded below by . Thus, for any ,
With respect to the standard orthonormal bases, the matrix entries of lie in . Starting with a non-injective -tuple in , deleting one coordinate through either yields an injective tuple, in which case acts as the identity, or leaves a non-injective tuple, in which case the projection acts as 0. Since deleting one coordinate from a non-injective -tuple can yield an injective -tuple for at most two choices of the deleted coordinate, each column of contains at most 2 nonzero entries. Each row contains at most nonzero entries, since for fixed and fixed injective tuple , the preimages under are obtained by inserting at position one of the entries . Therefore, for any we have, by Cauchy-Schwarz,
4.5 Space bounds for collision-free database states
We now apply the results from the previous subsection to states in the recording query model. In particular, we will now be working both on (tensor products of) , as well as .
Define
This map is unitary, because it maps the computational basis of bijectively onto the computational basis of .
Moreover, the map is -equivariant with respect to the action of on , since for every and every ,
(30)
Here range relabelling fixes , so it preserves the occupied set I and hence the subspace .
The map allows us to define the following commutative diagrams, as stated by the next claim:
Claim 4.12. On , the map relates to as follows:
Moreover, restricting to collision-free databases corresponds to projecting onto :
Proof. It suffices to verify both identities on a computational basis vector . If , then , so both sides of both identities vanish. Assume therefore that the occupied set of is .
First, is collision-free if and only if are pairwise distinct. Consequently,
which is exactly
This proves (32).
For (31), observe that
Thus, the cells outside remain equal to , while on each occupied cell the operator acts as . After applying , we therefore obtain
Since
the right-hand side equals
This proves (31).
We now state a general fact that we will use for the following theorem.
Fact 4.13. Let be a finite-dimensional representation of , let , and let . Suppose that there is an -equivariant linear map such that . Then
Proof. Let . By the equivariance of ,
Thus, is an -invariant subspace of . Since is irreducible, either or . Since and , the first case can be excluded. Hence, we obtain the desired result, since .
In particular, if
is a direct sum of -subrepresentations of , then the projection is -equivariant. In this case, means that has a nonzero component in with respect to this decomposition.
Theorem 4.14. Assume , , and let be a nonnegative integer such that . Let be a not necessarily normalised vector satisfying , and suppose that every database in the support of has at most entries different from . Assume that, for every product-basis value of the algorithm registers,
Then, for every ,
Proof. Fix . The first case where is immediate, because is an orthogonal projector.
Suppose now that . Since and , we have and thus, Theorem 4.5, Theorem 4.6, and Lemma 4.10 are applicable.
For every and every with , set
The rest of the proof consists of proving the statement for each , since the Pythagorean identity then proves the theorem after summing over and .
Since acts independently on each database cell and preserves both span and , it preserves every sector . Hence, commutes with and we have .
It follows from (31) that
Define
The map is -equivariant: relabelling does not change or the occupied set , the map is equivariant by (30), and is -invariant because relabelling preserves pairwise distinctness and fixes . Therefore,
By Theorem 4.5,
If , then it has a nonzero component in some Specht module . By Fact 4.13 and Theorem 4.6,
Since , we have , and since ,
This is a contradiction, and hence
Using (32), the fact that , and Lemma 4.10, we obtain
The following corollary of Theorem 4.14 will be useful in our collision finding application in the next section.
Corollary 4.15. Under the assumptions of Theorem 4.14,
Proof. The proof follows from the inequality
Indeed, we can then conclude by summing over and using because of the orthogonality of the projectors .
Let us now prove the claimed inequality. For , Theorem 4.14 gives
where we used that .
Now suppose that . Then Theorem 4.14 gives
where we first used to get and then and to obtain .
4.6 Time-Space tradeoff
We now apply Corollary 4.15 to bound the progress of the algorithm towards finding a collision.
Lemma 4.16. Let A be a label-symmetric algorithm. Assume , , and . Then
Proof. If , then, since and ,
Hence the right-hand side of the claimed inequality is greater than 1, whereas . Thus, the result is immediate in this case.
It remains to consider the case where . We have , since the empty database contains no collision. We show that, for every ,
By (8), we have , and, by Lemma 3.4, every database in the support of has at most non- positions.
We next verify the orbit-span hypothesis of Corollary 4.15. We expand the compressed state in the chosen product basis of the algorithm registers as
Then
so every belongs to . By label symmetry of and (14), this support is also invariant under the range-label action. Moreover, since is an isometry, we have by the orbit span bound of Lemma 4.3 that
Therefore, for every ,
and we may apply Corollary 4.15 to , which gives
The vector is collision-free, so by applying Lemma 3.5, using that commutes with every , and then using (34), we obtain
Combining this with (9) proves (33):
Combining Lemma 3.6 with Lemma 4.16 gives the following bound on the actual success probability.
Corollary 4.17. Let A be a label-symmetric algorithm. Assume , , and . Then
In particular, for
Proof. The first inequality follows immediately from Lemma 4.16 and Lemma 3.6. Set
Since and , we have , and hence
Squaring proves the second inequality.
Theorem 4.18. Let be positive integers with , and let be chosen uniformly at random. Let be a label-symmetric quantum algorithm that makes queries to and uses qubits of space. If outputs a triple satisfying and with probability at least , then
Proof. Since the range-value register Y has dimension N, our definition of space implies
If T = 0, then the first inequality of Corollary 4.17 gives
since . Thus, .
By Corollary 4.17 and the assumption that the success probability is at least 2/3,
Since
we obtain
For the problem of Element Distictness, the task is to decide whether a given function is injective or not. We instead prove a lower bound for the search version, where the full collision triple must be output. The decision and search versions have the same asymptotic bounded-error quantum query complexity [AS04, Amb07].
Since a uniformly random function contains a collision with constant probability, we can take the domain size to be and the range size to be in Theorem 4.18 to obtain the following result.
Corollary 4.19. Let be a positive integer, and let be a label-symmetric quantum algorithm such that, for every non-injective function , the algorithm outputs a triple satisfying and with probability at least 2/3. If makes T queries and uses S qubits, then
5 Examples of label-symmetric algorithms
We verify that the BHT collision-finding algorithm [BHT97] and Ambainis's quantum walk for Element Distinctness [Amb07] with their usual list-based implementations are in fact label-symmetric, and we additionally show that label symmetry is guaranteed in the equality-query oracle model. The following criterion will be convenient.
Lemma 5.1. Let be a -query algorithm, let denote its pure state at the checkpoint after exactly oracle calls on input , with denoting the initial state, and let be drawn from the uniform distribution on . Suppose that, for every and every , there is a unitary on , independent of , such that
Then A is label-symmetric.
Proof. For every , unitarity of and (35) give
The uniform distribution is invariant under the bijection , so the Gram-matrix characterization from Fact 4.2 proves the claim.
5.1 BHT and Ambainis's quantum walk
We use the oracle from Definition 2.4 in its addition form:
Recall from (13) that denotes the relabelling action on the input register. We use the same notation for the permutation unitary on a single label valued register and for its tensor powers on several such registers. This is consistent with (13), where acts on all M values of f.
We now describe implementations of the BHT algorithm and Ambainis's quantum walk. Since we are concerned only with query complexity, not time complexity, we omit the time optimal implementation, which sorts the data structure by label value and thereby breaks the necessary label symmetry.
The BHT collision-finding algorithm. Fix a parameter r. A convenient unitary implementation proceeds as follows.
-
Prepare a uniform superposition over tuples in the index fields of the table.
-
Query the indices and store
-
Reversibly compute a flag indicating whether contains a collision and, when , compute the lexicographically least pair with and .
-
Perform the prescribed fixed number of Grover or amplitude-amplification iterations over with marking predicate
A phase query for loads into a clean temporary register, computes using equality tests against the stored values, applies the phase, uncomputes the equality tests, and erases the temporary value.
- Load the value of the candidate index x, reversibly verify that it is marked, and select the least satisfying . If , copy the internal collision from Step 3 to the output; otherwise copy the verified pair . Finally, uncompute all flags and measure only the output registers.
Ambainis’s quantum walk for Element Distinctness. Fix a parameter r. A list-based implementation of the walk on the Johnson graph proceeds as follows.
-
Prepare a uniform superposition over tuples in the index fields of the table.
-
Query the indices thereby store
- Implement the checking reflection using the marking predicate
The predicate is computed and uncomputed using reversible equality tests among the stored values.
- Implement the Johnson graph update using labels and . With , the data update is the map
Concretely, move the slot to the update register, erase , replace x by y, load , swap the two vertex labels, and apply a reversible index-controlled permutation of complete slots to restore increasing order; any comparison or swap-history workspace is uncomputed before the shift ends.
- Apply the quantum walk from the checking reflection, the shift, and input-independent reflections. At the end, select the lexicographically least colliding pair in , copy it to the output, uncompute all flags, and measure only the output registers.
Remark 5.2. Our lower bound assumes that the algorithm must output the collision value y, whereas in both the algorithms above, the collision output label y value is already stored in the table. Thus outputting the label requires only a -qubit output field and no additional oracle call. Equivalently, starting from only a collision pair output implementation, one final ordinary query obtains the common value with the same asymptotic query and space complexities.
Lemma 5.3. The fixed-query unitary implementations of the BHT algorithm and Ambainis's quantum walk described above are label-symmetric.
Proof. Fix . First, observe that an input-independent unitary requires no separate symmetry argument at the level of the reduced input state, since it acts only on the algorithm registers. In terms of the sufficient criterion (35), if before an input-independent unitary , then
and the new relating unitary is still independent of f. The only points of interest are are therefore the input-dependent Grover and quantum walk blocks and the ordinary oracle calls. Ordinary oracle calls are used to load and erase values in the table, for example in Step 2 in both algorithms.
Whenever a table contains queried values, denotes the application of to its value fields and the identity on all index and auxiliary registers. By definition,
BHT. Let denote the Grover marking reflection, where the temporary query and workspace registers have returned to zero. On every reachable basis state it acts as
where is defined in (36). Since is injective,
(41)
Combining (39), (40), and (41) gives, on the reachable subspace,
Since the rest of the Grover iterate, i.e. the diffusion step, acts trivially on the registers storing labels, (42) also holds for the entire Grover iterate.
Lastly, the collision flag and output indices are invariant under , because if and only if , whereas the output collision label is mapped by .
Ambainis's quantum walk. Let denote the checking reflection. On every reachable basis state it acts as
where is defined in (37). Since equality of range values is preserved by , we have , and hence, on the reachable walk subspace,
Let denote the Johnson graph update. For , , and , (38) gives
Therefore, on the reachable walk subspace,
Every remaining reflection in the walk acts trivially on the registers storing labels and therefore it follows from (43) that (44) holds for the full quantum walk operator.
The collision flag and the collision output are the same as for BHT.
Ordinary oracle calls. It remains to check the ordinary queries used to load and erase values. Let , and let contain other stored values. On the reachable subspace,
Thus, loading a label a factor on its target, while erasing a label removes it. Equality tests preserve this action, since if and only if .
We can therefore conclude that, after each query in the algorithm, we can define a unitary independent of f satisfying (35) and the lemma follows from Lemma 5.1.
Query and space complexities. For BHT in the standard case , the table is prepared with queries and each Grover iteration uses ordinary queries. The standard analysis gives iterations, and hence
queries [BHT97].
For Ambainis's walk, preparing the initial table uses r queries, checking uses no queries once the table is stored, and each shift uses queries. The standard walk analysis therefore gives
which becomes for [Amb07, Theorem 4].
For both algorithms, the explicit index slots use qubits. All additional auxiliary registers fit within the same asymptotic bound and therefore both implementations use
qubits. When , this is , so fitting either implementation into qubits requires .
5.2 Equality-query algorithms
Pairwise equality access is a classical restricted query model in which the algorithm may ask only whether two input positions contain identical values.
For , the coherent equality oracle is defined by
for and . We call an algorithm an equality-query algorithm if its only input-dependent operation is . In particular, comparing with a fixed range label is not an equality query in this sense.
One equality query has a clean implementation using the standard oracle. Load and into two clean value registers, compute their equality into , and erase both values using . Thus one equality query uses four ordinary queries and additional qubits; the two temporary value registers are returned to zero and reused.
Lemma 5.4. Every equality-query algorithm is label-symmetric.
Proof. For every and ,
so . Since the initial state and every inter-query unitary are independent of , induction gives for every . Thus (35) holds with , and Lemma 5.1 proves the claim.
6 Bottom spectrum of the arrangement graphs
In this section, we prove Lemma 4.9, which gives a complete description of the bottom of the spectrum of the arrangement graph (in the regime ). Building on the previous spectral analyses of Chen, Ghorbani, and Wong [CGW13] and Araujo and Bratten [AB17], we identify the full -eigenspace and determine the exact next distinct eigenvalue. The proof combines the representation-theoretic decomposition of with the character-ratio formula for the eigenvalues of . We begin by recalling the required facts about skew diagrams, horizontal strips, and Young's seminormal idempotents.
If and are partitions with for all , then we write . The skew diagram is the set of boxes of not contained in :
A skew diagram is called a horizontal strip if it contains at most one box in each column. We write
if is a horizontal strip. Equivalently, one can check that if and only if
We will also use the following standard facts about Young’s seminormal idempotents, see, e.g., [GE20, Sections 2.2-2.3]. For every partition and every standard Young tableau , there is a seminormal idempotent . These idempotents form a complete family of pairwise orthogonal idempotents:
Since every element of is a linear combination of permutations, a right action of on allows such an element to act on by linearity. Under this action, the map is an idempotent projection onto
Moreover, (46) gives the direct-sum decomposition
We are now ready to prove our Arrangement Spectral Gap lemma, that we restate here for clarity.
Lemma 6.1 (Arrangement Spectral Gap). Assume and . The smallest eigenvalue of on is -s, and its eigenspace is, as an -representation,
Moreover, the next distinct eigenvalue is exactly . Consequently, the gap above the least eigenvalue is , and -s is the unique negative eigenvalue exactly when .
Proof. We first consider the case . Then , and is the adjacency operator of the complete graph on vertices. Hence
It follows that has eigenvalue on span and eigenvalue -1 on
Since (1) is the unique partition of 1 and has exactly one standard Young tableau, this is precisely the claimed -eigenspace. Moreover, the only other eigenvalue is
so the claimed bound on the remaining eigenvalues also holds.
Henceforth, assume that . Fix a partition and a tableau . Recall that is the corresponding seminormal idempotent of the standard Young tableau , and let
meaning
In [NTV19, Example 2], it is shown that each of these subspaces satisfies
Here is allowed. This occurs when , in which case the corresponding summand is understood as . Among these summands, is the only one whose first row has length exactly ; every other summand has a strictly longer first row.
By the proof of [AB17, Theorem 3.5], more specifically by [AB17, Lemma 3.2, Proposition 3.3, and Theorem 3.4], each summand (where ) is contained in an eigenspace of , and the corresponding eigenvalue is given by
where and are transpositions in and , respectively.
For any partition , it is known (see, e.g., [GE20, Eq. (2.4.9)]) that these character ratios can be rewritten as
Therefore, the eigenvalues of are given by
We first compute the value for , meaning . The first row of contributes
to . The remaining rows are obtained by moving the Young diagram of down by one row, which subtracts 1 from the quantity for each of the boxes of . Therefore
Substituting this into the eigenvalue formula gives
meaning lies in the -s-eigenspace of .
Now let with . Then
To compute , we therefore only have to compute the difference . To aid in this, we define the following:
Since , we have , and since , we have . In terms of these new quantities, the partition is obtained from by deleting boxes from the end of row for each , and adding all of them, i.e. , to the end of the first row.
The extra boxes in the first row of have a total contribution of
to the difference . For each , the deleted boxes from row have positions
Since a deleted box contributes to the difference, the contribution from these deleted boxes to the difference is
Combining these added and deleted contributions gives
We now lower bound the right-hand side of (49). Observe that when we have . In those cases, since , we have and hence
The binomial terms in (49) are also nonnegative, so using we obtain
Substituting this into (48) yields
meaning that the eigenvalue of for every with is at least , which, by the assumption , is strictly larger than . This means that the -eigenspace of
consists solely of the Specht modules for . Summing over all standard tableaux of shape shows that the -eigenspace of is
The lower bound in (51) is attained for the partitions
Indeed, in that case one can verify that , , , and for all . Thus, equality holds in (50) and the two binomial terms in (49) become zero.
Acknowledgements
The authors thank Dmitry Grinko for helpful discussions and explanations concerning the representation theory of the symmetric group.
This research was supported in part by the French PEPR integrated project EPiQ (ANR-22-PETQ-0007, part of Plan France 2030) and the ERC Advanced Grant PARQ.
AI statement. The main ideas and proofs in this work were developed by the authors, with the exception of the connection made by ChatGPT 5.3 between and arrangement graphs, via the deletion map defined in (19). AI tools were also used for supplementary verification of results, editing the manuscript and the discussing of ideas.
References
[Aar21] Scott Aaronson. Open problems related to quantum query complexity. ACM Transactions on Quantum Computing, 2(4):14:1–14:9, 2021. arXiv: 2109.06917 3
[AB17] José O Araujo and Tim Bratten. The spectra of arrangement graphs. Linear Algebra and its Applications, 530:461–469, 2017. arXiv: 1612.04747 4, 23, 36, 38
[Ajt05] Miklós Ajtai. A non-linear time lower bound for Boolean branching programs. Theory of Computing, 1(8):149–176, 2005. Preliminary version: ECCC TR99-026. 2
[Amb07] Andris Ambainis. Quantum walk algorithm for element distinctness. SIAM Journal on Computing, 37(1):210–239, 2007. Earlier version in FOCS'04. arXiv:quant-ph/0311001 i, 1, 32, 36
[Amb10] Andris Ambainis. A new quantum lower bound method, with an application to a strong direct product theorem for quantum search. Theory of Computing, 6(1):1–25, 2010. arXiv: quant-ph/0508200 19
[AMRR11] Andris Ambainis, Loïck Magnin, Martin Roetteler, and Jérémie Roland. Symmetry-assisted adversaries for quantum state generation. In Proceedings of the 26th Annual IEEE Conference on Computational Complexity, CCC 2011, pages 167–177, 2011. arXiv: 1012.2112 19
[AS04] Scott Aaronson and Yaoyun Shi. Quantum lower bounds for the collision and the element distinctness problems. Journal of the ACM, 51(4):595–605, 2004. arXiv: quant-ph/0112086 32
[BB14] Charles H. Bennett and Gilles Brassard. Quantum cryptography: Public key distribution and coin tossing. Theoretical Computer Science, 560(Part 1):7–11, 2014. Reprint of the original 1984 paper. arXiv: 2003.06557 1
[BCM13] Paul Beame, Raphaël Clifford, and Widad Machmouchi. Element distinctness, frequency moments, and sliding windows. In Proceedings of the 54th Annual IEEE Symposium on Foundations of Computer Science, FOCS, pages 290–299, 2013. arXiv:1309.3690 2
[Ber09a] Daniel J. Bernstein. Cost analysis of hash collisions: Will quantum computers make SHARCS obsolete? In Workshop Record of SHARCS'09: Special-Purpose Hardware for Attacking Cryptographic Systems, pages 105–116, 2009. Author's manuscript: https://cr.yp.to/hash/collisioncost-20090823.pdf. 2
[Ber09b] Daniel J. Bernstein. Introduction to post-quantum cryptography. In Daniel J. Bernstein, Johannes Buchmann, and Erik Dahmen, editors, Post-Quantum Cryptography, pages 1–14. Springer, Berlin, Heidelberg, 2009. 1
[BFK 81] Allan Borodin, Michael J. Fischer, David G. Kirkpatrick, Nancy A. Lynch, and Martin Tompa. A time-space tradeoff for sorting on non-oblivious machines. J. Comput. Syst. Sci., 22(3):351–364, 1981. 2
[BHT97] Gilles Brassard, Peter Høyer, and Alain Tapp. Quantum algorithm for the collision problem. ACM SIGACT News, 28(2):14–19, 1997. arXiv: quant-ph/9705002 i, 1, 32, 35
[BKW26] Paul Beame, Niels Kornerup, and Michael Whitmeyer. Quantum time-space tradeoffs for matrix problems. SIAM J. Comput., 55(3):469–519, 2026. arXiv: 2401.05321 2
[BSSV03] Paul Beame, Michael E. Saks, Xiaodong Sun, and Erik Vee. Time-space trade-off lower bounds for randomized computation of decision problems. J. ACM, 50(2):154–195, 2003. Preliminary version: ECCC TR00-025. 2
[CCKDS26] Joseph Carolan, Andrew M. Childs, Matt Kovacs-Deak, and Luke Schaeffer. Translation-invariant quantum algorithms for ordered search are optimal. ACM Transactions on Quantum Computing, 2026. To appear. arXiv: 2503.21090 5, 19
[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 Proceedings of the 40th Annual International Conference on the Theory and Applications of Cryptographic Techniques, EUROCRYPT 2021, Part II, pages 598–629, 2021. ePrint: 2020/1305 13
[CGW13] Bai Fan Chen, Ebrahim Ghorbani, and Kok Bin Wong. Cyclic decomposition of k-permutations and eigenvalues of the arrangement graphs. The Electronic Journal of Combinatorics, 20(4):P22, 2013. arXiv: 1308.5490 4, 23, 36
[CJWW22] Lijie Chen, Ce Jin, R. Ryan Williams, and Hongxun Wu. Truly low-space element distinctness and subset sum via pseudorandom hash functions. In Proceedings of the 2022 ACM-SIAM Symposium on Discrete Algorithms, SODA 2022, pages 1661–1678, 2022. arXiv: 2111.01759 2
[CNS17] André Chailloux, María Naya-Plasencia, and André Schrottenloher. An efficient quantum collision search algorithm and implications on symmetric cryptography. In Proceedings of the 23rd International Conference on the Theory and Applications of Cryptology and Information Security, ASIACRYPT 2017, Part II, pages 211–240, 2017. ePrint: 2017/847 2
[Din20] Itai Dinur. Tight time-space lower bounds for finding multiple collision pairs and their applications. In Proceedings of the 39th Annual International Conference on the Theory and Applications of Cryptographic Techniques, EUROCRYPT 2020, Part I, pages 405–434, 2020. ePrint: 2020/229 3
[FGGS99] Edward Farhi, Jeffrey Goldstone, Sam Gutmann, and Michael Sipser. Invariant quantum algorithms for insertion into an ordered list, 1999. arXiv: quant-ph/9901059 5, 19
[GE20] Adriano M Garsia and Ömer Egecioglu. Young's seminormal representation, murphy elements, and content evaluations. In Lectures in Algebraic Combinatorics: Young's Construction, Seminormal Representations, SL (2) Representations, Heaps, Basics on Finite Fields, volume 2277 of Lecture Notes in Mathematics, pages 35–95. Springer, Cham, 2020. 37, 38
[GLM08] Vittorio Giovannetti, Seth Lloyd, and Lorenzo Maccone. Quantum random access memory. Physical Review Letters, 100(16):160501, 2008. arXiv: 0708.1879 1
[Gro96] Lov K. Grover. A fast quantum mechanical algorithm for database search. In Proceedings of the 28th ACM Symposium on the Theory of Computing (STOC), pages 212–219, 1996. arXiv: quant-ph/9605043 2
[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. arXiv: 2002.08944 3, 4, 5, 13, 14, 15
[HNS02] Peter Høyer, Jan Neerbek, and Yaoyun Shi. Quantum complexities of ordered searching, sorting, and element distinctness. Algorithmica, 34(4):429–448, 2002. arXiv: quant-ph/0102078 2
[IP01] Russell Impagliazzo and Ramamohan Paturi. On the complexity of k-SAT. Journal of Computer and System Sciences, 62(2):367–375, 2001. 2
[Jef11] Stacey Jeffery. Collision finding with many classical or quantum processors. Master of mathematics thesis, University of Waterloo, Waterloo, Ontario, Canada, 2011. Available at https://hdl.handle.net/10012/6200. 2
[JZ26] Stacey Jeffery and Sebastian Zur. The compressed oracle is a worthy (multiplicative) adversary. In Proceedings of the 53rd International Colloquium on Automata, Languages, and Programming (ICALP 2026), pages 118:1–118:23, 2026. arXiv:2509.07876 12, 13
[KŠDW07] Hartmut Klauck, Robert Špalek, and Ronald De Wolf. Quantum and classical strong direct product theorems and optimal time-space tradeoffs. SIAM Journal on Computing, 36(5):1472–1493, 2007. arXiv: quant-ph/0402123 2
[KW88] Selahattin Kayalar and Howard L. Weinert. Error bounds for the method of alternating projections. Mathematics of Control, Signals, and Systems, 1(1):43–59, 1988. 23
[LZ19] Qipeng Liu and Mark Zhandry. On finding quantum multi-collisions. In Proceedings of the 38th Annual International Conference on the Theory and Applications of Cryptographic Techniques (EUROCRYPT), Part III, pages 189–218, 2019. ePrint: 2018/1096 15
[LZ23] Xin Lyu and Weihao Zhu. Time-space tradeoffs for element distinctness and set intersection via pseudorandomness. In Proceedings of the ACM-SIAM Symposium on Discrete Algorithms, SODA 2023, pages 5243–5281, 2023. arXiv: 2210.07534 2
[NTV19] P. P. Nikitin, N. V. Tsilevich, and A. M. Vershik. On the decomposition of tensor representations of symmetric groups. Algebras and Representation Theory, 22(4):895–908, 2019. arXiv: 1712.03356 38
[PQC06] PQCrypto 2006: International Workshop on Post-Quantum Cryptography. https://postquantum.cr.yp.to/, 2006. Katholieke Universiteit Leuven, Leuven, Belgium, May 23–26, 2006. 1
[PR98] Jakob Pagter and Theis Rauhe. Optimal time-space trade-offs for sorting. In Proceedings of the 39th Annual IEEE Symposium on Foundations of Computer Science, FOCS 1998, pages 264–268, 1998. Full version: BRICS Report RS-98-10. 2
[Ras77] Richard Rasala. On the minimal degrees of characters of . Journal of Algebra, 45(1):132–181, 1977. 21
[Sag01] Bruce Sagan. The Symmetric Group: Representations, Combinatorial Algorithms, and Symmetric Functions, volume 203 of Graduate Texts in Mathematics. Springer, New York, 2nd edition, 2001. 10
[Sho97] Peter W. Shor. Polynomial-time algorithms for prime factorization and discrete logarithms on a quantum computer. SIAM Journal on Computing, 26(5):1484–1509, 1997. arXiv: quant-ph/9508027 1
[vOW99] Paul C. van Oorschot and Michael J. Wiener. Parallel collision search with cryptanalytic applications. J. Cryptol., 12(1):1–28, 1999. 2, 3
[Zha19] Mark Zhandry. How to record quantum queries, and applications to quantum indifferentiability. In Proceedings of the 39th Annual International Cryptology Conference, CRYPTO 2019, Part II, pages 239–268, 2019. ePrint: 2018/276 3, 4, 5, 12, 13, 17, 18