In this research paper, we analyze the work of Yassine Hamoudi and Frédéric Magniez, “Quantum Time-Space Tradeoff for Finding Multiple Collision Pairs” (arXiv:2002.08944v5, 2023). This is a theoretical paper on quantum queries to a random function and limited memory. It does not describe a ready-made attack on a specific system and is not an experimental result. The main result: any quantum algorithm that finds K disjoint collisions with probability 2/3, in a certain model, must satisfy the inequality T 3 S ≥ Ω( K 3 N ). This limits the extent to which quantum memory can “pay off” the reduction in the number of queries.
Content
- Statement of the problem and intrigue
- Mechanism: Queries, Records, and the Lazy Oracle
- History and scientific debate
- Model, algorithms and accurate estimates
- How is the lower bound proved?
- Quantum advantage and fair comparison
- Cryptography, Element Distinctness, and the Post-Quantum Context
- Related tasks: K-Search and sorting
- Practical value and open questions
- Selected questions and short answers
- Article card and pre-publication review
- Sources
1. Statement of the problem and intrigue
Paradox. The quantum BHT algorithm finds one collision in a random function in T = Õ( N 1/3 ) queries and S = Õ( N 1/3 ) memory. The classical Pollard algorithm requires about O (√ N ) queries for one collision but requires almost no memory. It would seem that a quantum computer offers an advantage. However, if one needs to find not one, but K disjoint collisions and memory is limited, the picture changes: quantum speedup in queries begins to “limit” itself by memory. The question in Hamoudi and Magniez’s paper: is it possible to achieve a gain in both time and memory? The answer is in the model studied: for finding K collisions, no, there is a hard tradeoff.
Formal problem
A random function f : [ M ] → [ N ], where M ≥ N , is given . A collision is a pair x 1 ≠ x 2 such that f ( x 1 ) = f ( x 2 ). K pairwise disjoint collisions need to be found. Time T is the number of quantum queries to f ; memory S is the number of qubits in the working memory. The output can be produced online; the output length is not included in S . The disjointness requirement is introduced for convenience of proof: it prevents a single record from “containing” too many new collisions at once.
Central testable assertion
In the quantum random oracle model and in the space-bounded model, the paper proves:
T 3 S ≥ Ω( K 3 N )
for any algorithm with a success probability of 2/3. This is a theorem, not a conjecture, but it is true in an explicitly described model. It can be disproved by presenting a quantum algorithm that finds K disjoint collisions with probability 2/3 and violates this inequality. No such algorithm is presented within the scope of this article.
Research boundaries
- This is not an experiment on a physical quantum computer, but a proof in the model of queries and quantum circuits.
- The function is considered random; there is no specific cipher or standard involved.
- Memory is measured in qubits; the cost of physical memory, errors, and correction are not modeled separately.
- The probability of success is fixed at 2/3; the lower bound shows that below a certain number of queries, success falls off exponentially in K .
Why this is interesting: In cryptanalysis, collisions are a fundamental tool for meet-in-the-middle attacks. If a quantum computer reduces requests but requires enormous memory, then a practical threat assessment must take both resources into account. This article provides precisely such a “dual-resource” language.
2. Mechanism: Queries, Records, and the Lazy Oracle
In the standard model, a quantum algorithm makes queries to an oracle O f , which in phase form acts as
O f | x , u , w ⟩ = ω N u f ( x ) | x , u , w ⟩, ω N = e 2πi/ N .
The algorithm can access different x in superposition. In the recording query model, Zahandri adds an oracle register that stores already “known” values of f ( x ); unknown values are denoted by ⊥. A query doesn’t simply return the phase, but writes the value to this register. To ensure uniform distribution, the recording is designed as a “lazy oracle”: if f ( x ) is not yet known, a random value is written to the register upon query; if it is known, it is used.
Hamoudi and Magniez provide a simplified and more general version of the notation for the product of distributions. They don’t need to convert to a Fourier basis, as some other works do: they construct a “notation operator” R D , which replaces a regular query without changing the distribution of responses but allows for measuring progress. This is the technical core of the paper.
Minimal intuition
Suppose that after t queries, approximately t values have already been written. A new query to x may create a collision if f ( x ) matches one of the already written values. For a random function, the probability of such a coincidence is of the order of t / N , and the amplitude is of the order of √( t / N ). This explains the growing estimate: to write k collisions, one must accumulate an amplitude that is exponentially small in k as long as t is less than K 2/3 N 1/3 .
Important: superposition and interference are used here for quantum queries, but the article does not claim that entanglement or measurement specifically provide a “magical” speedup. This is a model of amplitudes and queries. Physical implementation is a separate issue.
3. History and scientific debate
Collision search is one of the oldest problems in cryptanalysis. The classic “birthday attack” finds a collision in O (√ N ) queries. Pollard proposed the memoryless rho method with nearly logarithmic memory. Van Oorschot and Wiener described Parallel Collision Search, a multiprocessor/parallel algorithm that finds many collisions and underlies meet-in-the-middle attacks. For a long time, it was unclear whether its tradeoff was optimal. In 2020, Dinnur proved the classical optimality of T 2 S = Θ( K 2 N ) for random functions.
Quantum Line: BHT (1998) yields T = Õ( N 1/3 ) for a single collision; this is query-optimal (Aaronson–Shi, Zhandry). However, BHT uses Õ( N 1/3 ) memory. This raises the question: is it possible to find many collisions with less memory without incurring too much time penalty? In 2019, Zhandry proposed a recording query technique that allows proving lower bounds in a quantum random oracle model. Liu and Zhandry applied a similar amplitude bound to multi-collision detection.
The Hamoudi–Magniez paper adds: (1) a simplified and general notation for products of distributions; (2) an exponentially small success probability when there are not enough requests; (3) a time-space tradeoff T 3 S ≥ Ω( K 3 N ); (4) an algorithm that achieves this time bound for S = Θ( K 2/3 N 1/3 ); (5) a connection to Element Distinctness; (6) a new proof of tradeoff for sorting.
What’s at issue here? The article doesn’t claim that classical tradeoffs have already been “hacked” by quantum ones. It limits the quantum advantage. An open question: can the lower bound be strengthened to T 2 S ≥ Ω( K 2 N ), as in classical tradeoffs? If so, this would yield an optimal tradeoff for Element Distinctness. For now, this is a hypothesis, not a proven fact.
4. Model, algorithms and accurate estimates
4.1 What exactly is being measured
In the query model, the algorithm makes T queries; in the space-bound model, it also operates on S qubits. The output register is not included in S because the response may be longer than memory. This is important for problems with large outputs: the algorithm can produce many collisions without storing them all.
4.2 Upper Bound: Quantum Algorithm
The authors adapt BHT. Algorithm 2 in the article:
- Repeat O ( K / S ) times:
- Selects a random subset G ⊂ [ N ] of size S .
- Constructs a table of pairs ( x , f ( x )) for x ∈ G and sorts it by the value of f ( x ).
- Defines g : [ N ] \ G → {0,1}, where g ( x ) = 1 if f ( x ) matches one of the values in the table. Runs a Grover search on g using the table and returns the pairs found.
For 1 ≤ K ≤ O ( N ) and Õ(log N ) ≤ S ≤ Õ( K 2/3 N 1/3 ) the algorithm finds K collisions with probability ≥ 2/3 in
T = Õ( K √( N / S ))
queries and S memory qubits. In this case, T 2 S ≤ Õ( K 2 N ). This is the same classical tradeoff by product, but with quantum access to memory: for S = K 2/3 N 1/3 , we get T = K 2/3 N 1/3 .
4.3. Lower time limit
Theorem 4.5: The probability of success in finding K disjoint collisions in a uniformly random function for T ≥ K queries is no more than
O ( T 3 / ( K 2 N ) ) K .
If T is significantly smaller than K 2/3 N 1/3 , the base is smaller than a constant, and the success is exponentially small in K . This is stronger than simply ” K collisions cannot be found”: the probability drops exponentially, which then turns into a time-space tradeoff.
4.4. Main tradeoff
Theorem 6.1: Any quantum algorithm for K disjoint collisions with 2/3 success must satisfy
T 3 S ≥ Ω( K 3 N ).
For S ≥ K, this follows immediately from the time-only lower bound. For S < K , time-segmentation is used: the circuit is cut into L = T / T ′ consecutive chunks, each with T ′ = c S 2/3 N 1/3 requests. If each chunk produces no more than O ( S ) collisions on average , then Ω( K / S ) chunks are needed, which implies T ≥ Ω( KS −1/3 N 1/3 ), i.e., T 3 S ≥ Ω( K 3 N ).
Technically, we need to eliminate “memory from previous chunks”: the initial memory is replaced with a completely mixed state, which reduces success by a factor of no more than 2S . Then, a contradiction with an exponential lower bound. This is a standard but accurate argument.
| Method / result | Model | Grade | Comment |
|---|---|---|---|
| Classic Parallel Collision Search (OW99) | classical random function | T 2 S = Θ( K 2 N ) | Optimal according to Dinnur (2020) |
| BHT for one collision | quantum | T = Õ( N 1/3 ), S = Õ( N 1/3 ) | Optimal for queries |
| Hamoudi–Magniez algorithm | quantum, limited memory | T = Õ( K √( N / S )) | T 2 S ≤ Õ( K 2 N ), for S ≤ Õ( K 2/3 N 1/3 ) |
| Lower limit of the article | quantum, success 2/3 | T 3 S ≥ Ω( K 3 N ) | Does not coincide with the classical upper bound; open hypothesis – strengthen to T 2 S ≥ Ω( K 2 N ) |
5. How is the lower bound proved?
The proof consists of three layers.
5.1. Recording progress
Let Δ t , k be the norm of the amplitude of states in which the oracle register contains at least k disjoint collisions after t queries. Proposition 4.3 gives
Δ t , k ≤ C( t , k ) (4√ t /√ N ) k .
The idea behind recurrence is that with each new request, the amplitude of “record another collision” increases by approximately 4√( t / N ). This is similar to the classical reasoning about the probability of a match with one of the already recorded values, but in amplitudes.
5.2. From recording to success
We need to associate a state in the recording model with the actual probability of success in the standard model. If the algorithm only recorded k collisions, then it has to “guess” the remaining K − k positions. Proposition 4.4 shows that the probability of success in this case is no greater than
(2 K + 1)(√(2 K / N )) K − k .
Then summing over k and substituting Δ T , k yields Theorem 4.5. It is important that the authors preserve the exponential dependence in K , rather than losing it in the polynomial errors.
5.3. Why does this give tradeoff?
Time-only bound says: in T ′ = c S 2/3 N 1/3 queries, the probability of finding more than 2S collisions is at most 4 − S . If each piece of the circuit produced Ω( S ) collisions with noticeable probability, we could, by replacing the initial memory with a mixed state, obtain a contradiction. This means that Ω( K / S ) pieces are needed, and T ≥ Ω( K / S · S 2/3 N 1/3 ).
What this doesn’t mean. This isn’t an estimate of the physical execution time on a specific device. It’s an estimate of the number of queries and qubits in an idealized model. It doesn’t take into account latency, errors, correction, compilation, or the cost of classical processing.
6. Quantum advantage and fair comparison
Comparisons between quantum and classical approaches should be made under identical conditions: identical success probability, identical input size, and identical definition of memory. This paper uses a random function model to do this.
6.1 One collision
For K = 1, the lower bound yields T ≥ Ω( N 1/3 ), which coincides with the BHT. Here, the quantum advantage in terms of queries is real: classical memory requires about √ N , while quantum memory requires N 1/3 . But the BHT memory is also N 1/3 , which can be significant for large N .
6.2. Lots of collisions and little memory
For S = O (log N ) (memoryless) and searching for almost all collisions, the paper yields T ≥ Ω( N 4/3 ) quantum queries. Classically, in the absence of memory constraints, T = N queries are sufficient. This is an important and somewhat surprising conclusion: a quantum algorithm with logarithmic memory does not necessarily outperform a classical one in terms of time for this problem; the quantum advantage is “eaten away” by the memory constraint.
6.3 Where the quantum algorithm reaches the boundary
For S = Θ( K 2/3 N 1/3 ), the algorithm from the paper makes T = K 2/3 N 1/3 queries, which coincides with the time-only lower bound. That is, at this point, the algorithm is optimal up to logarithms. However, for the product T 3 S, the lower bound is still weaker than the classical upper bound; an open hypothesis is to strengthen it to T 2 S ≥ Ω( K 2 N ).
A fair statement. It’s wrong to say “a quantum computer hacks faster and faster.” Correct: in the model studied, a quantum computer reduces the number of queries for a single collision, but for many collisions with limited memory, there is a lower bound that prevents significant reductions in both time and memory.
7. Cryptography, Element Distinctness and the Post-Quantum Context
Collision search is used in meet-in-the-middle attacks on double and triple encryption, in subset sum, k-sum, 3-collision, and in attacks on some post-quantum candidates (NTRU and SIKE are mentioned in the paper). This doesn’t mean the paper breaks these schemes. It provides a resource estimate for an abstract problem that can be used in a cryptanalytic argument.
7.1 Element Distinctness
Element Distinctness (ED) is the problem of finding a collision or determining whether a function is not injective. Its quantum query complexity is known to be Θ( N 2/3 ) (Aaronson–Shi), but the time-space tradeoff remained open for a long time. The paper provides a reduction: if there is a good low-space algorithm for ED on the domain √ N , then one can find Ω( N /log N ) collisions in a random function on [10 N ] → [ N ]. This leads to the following conditional consequences.
A well-formed corollary is that if any quantum program for Ω̃( N ) disjoint collisions satisfies TS 1/3 ≥ Ω̃( N 4/3+ε ), then any program for ED satisfies TS 1/3 ≥ Ω̃( N 2/3+2ε ). This is a conditional result, not an unconditional lower bound for ED.
If the hypothesis T 2 S ≥ Ω( K 2 N ) is true, then for ED we get T 2 S ≥ Ω̃( N 2 ), which would be optimal. This is still an open question.
7.2 Post-quantum context
In August 2024, NIST approved FIPS 203, 204, and 205—key establishment and digital signature standards designed to withstand future quantum attacks. The NCCoE is leading a migration project. These facts are important for context: practical security requires assessing not only “how many requests” but also “how much memory.” The Hamoudi-Magniez paper is a theoretical contribution to such an assessment language, but it is not an analysis of FIPS 203/204/205.
Don’t confuse them. Quantum key distribution (QKD) and post-quantum cryptography (PQC) are different things. QKD uses physical quantum channels; PQC uses classical algorithms resistant to quantum cryptanalysis. The article under discussion pertains more to cryptanalytic query and memory models than to QKD.
8. Related tasks: K-Search and sorting
The paper’s method is not limited to collisions. The authors apply it to the K -Search problem: in a random Boolean function f : [ M ] → {0,1}, where f ( x ) = 1 with probability p , one must find K marked elements. Theorem 5.5: The probability of success for T ≥ K queries is no greater than
O ( p ( T / K ) 2 ) K .
This generalizes known results and provides a simpler proof. In the regime where there are sufficiently many marked elements, Grover’s search yields T = O ( K /√ p ).
As an application, the authors re-prove the quantum time-space tradeoff for sorting N numbers: T 2 S ≥ Ω( N 3 ). This is a result first obtained by Klauck, Spalek, and de Wolf. An important limitation: the sorting model requires that output elements be written at predetermined times; without this condition, the problem can be solved in O ( N ) time and O (log N ) space. This is a limitation of the model, not a property of real-world sorting.
The connection between the works here is as follows: Zahandri provided the recording tool; Hamoudi-Magniez simplified and generalized it; application to K-Search yielded a new proof of sorting tradeoff; application to collisions yielded the main result. This is a coherent line, not a collection of unrelated facts.
9. Practical value and open questions
Who needs this? Cryptographers who evaluate attack resources; developers of post-quantum circuits; researchers of quantum algorithms; engineers who need to understand where memory becomes a bottleneck. The practical value of this article lies not in a specific “hack,” but in the evaluation framework: T and S should be considered together.
What is not proven. The optimal tradeoff for K collisions in the quantum model has not been established. The hypothesis T 2 S ≥ Ω( K 2 N ) remains open. There is no unconditional lower bound for Element Distinctness. For sorting, the constraint on non-adaptive output is not lifted. Physical estimates of memory and errors are not included in the model.
Next steps to check.
- Strengthen the lower bound from T 3 S to T 2 S or find a counterexample algorithm.
- Extend the recording technique to distributions that are not products.
- Remove non-adaptive output limitation in sorting.
- Add physical errors and correction costs to the model.
- Compare the consequences of ED with known algorithms and try to obtain an unconditional bound.
For readers who want to continue the topic: the most interesting question is not “is quantum faster?” but “at what memory budget does quantum speedup cease to be practical.” This article makes this question measurable.
10. Selected questions and short answers
Eighteen general and six specific questions were selected from the question builder. Below are brief answers, not a complete summary of all 75 questions.
| No. | Question | A short answer in the context of the article |
|---|---|---|
| 1 | What problem does the technology solve? | Evaluation of quantum search for K collisions under limited memory; this is a model problem in cryptanalysis. |
| 2 | What question is paradoxical, but we can check it? | Why doesn’t quantum acceleration of one collision provide the same benefit for many collisions with small memory? |
| 4 | Testable hypothesis and refutation? | Theorem T 3 S ≥ Ω( K 3 N ); refutation is an algorithm with success 2/3 that violates it. |
| 6 | What outcome would change the perception? | Strengthening to T 2 S ≥ Ω( K 2 N ) or a counterexample to it. |
| 8 | What is the underlying mechanism? | Quantum queries in superposition + writing oracle values; new collision amplitude ~√( t / N ). |
| 9 | The role of superposition/interference/entanglement? | Superposition of queries and interference of amplitudes; entanglement is not a separate “engine” of the proof. |
| 11 | Model assumptions? | Random function, quantum random oracle, perfect memory, 2/3 success, disjoint collisions. |
| 13 | Original work? | BHT 1998 for single collision; OW99 for parallel search; Dinur 2020 for classical optimality. |
| 14 | Turning points? | BHT, Zhandry recording, Dinur, Hamoudi–Magniez tradeoff. |
| 16 | What expectations were not met? | The quantum speedup of BHT cannot be automatically transferred to many collisions with small memory. |
| 17 | What is agreement and dispute? | Agreement: BHT is optimal for one collision. Dispute/open question: what is the optimal tradeoff for K collisions? |
| 18 | How is this work related to the previous ones? | Simplifies and generalizes Zhandry, strengthens the BHT/OW/Dinur line. |
| 25 | How is a problem translated into a formal model? | Function as an oracle; queries; oracle register; success projector; space-bounded schema. |
| 26 | Cost of entrance preparation? | In a query model, the input is specified by an oracle; preparation is not modeled. This is a limitation of interpretation. |
| 29 | Depth, number of operations, launches? | The main metric is T queries and S qubits; the overall gate complexity is not the main objective. |
| 37 | Which classical method should it be compared with? | Parallel Collision Search OW99 and its optimality according to Dinur. |
| 38 | Are the conditions the same? | Comparison in one random function model; success probability 2/3; memory is taken into account. |
| 39 | What is stated? | Theoretical tradeoff, not an experimental advantage. |
| 49 | What is the cryptographic problem? | Collision detection as a component of meet-in-the-middle and related attacks. |
| 50 | Which quantum algorithm is applicable? | BHT-like algorithm and Grover’s search in Algorithm 2. |
| 51 | Resource assessments? | T = Õ( K √( N / S )), S qubits; lower bound T 3 S ≥ Ω( K 3 N ). |
| 52 | What is available to an attacker? | The model consists of quantum queries to a random function; a specific threat model is not fixed. |
| 54 | QKD vs PQC? | The article is closer to cryptanalysis and the PQC context; QKD is a separate physical technology. |
| 69 | What remains open? | Optimal tradeoff, unconditional bound for ED, removal of sorting model restrictions. |
11. Article card and pre-publication review
Topic and audience
Quantum time-space tradeoffs for multiple collision detection. Audience: students and researchers in quantum computing, cryptography, and algorithms; technical readers who value resource estimates.
The central question
Can a quantum algorithm find K disjoint collisions with significantly less time and memory consumption than the classical Parallel Collision Search?
Hypothesis and refutation criterion
In the article’s model: T 3 S ≥ Ω( K 3 N ). A refutation is an algorithm with success rate 2/3 that violates this inequality.
Method and baseline
Quantum random oracle model, recording query technique, time-segmentation. Baseline: classic OW99/Dinur and quantum BHT.
Metrics and comparison conditions
T is the number of queries; S is the number of qubits; success probability is 2/3; random function; K disjoint collisions; the output is not included in S .
Sources, versions, dates
arXiv:2002.08944v5, March 20, 2023. Status: preprint, theoretical work. No experimental confirmation.
Limitations and uncertainty
Perfect memory, no physical errors, random function, output model limitations. Practical implications for specific circuits require separate analysis.
New contribution and the next step
Lower bound T 3 S ≥ Ω( K 3 N ) and an algorithm that achieves the time-only bound for S = Θ( K 2/3 N 1/3 ). The next step is to strengthen the bound to T 2 S ≥ Ω( K 2 N ) or find a counterexample.
Pre-publication review
- Theorems, interpretations and practical predictions are separated.
- This article does not claim to break any specific cryptosystems.
- Physical and logical qubits do not mix; the model is ideal.
- Comparison with the classics is carried out in one model.
- The restrictions are specified: random function, success 2/3, disjointness, online exit.
- Open questions are formulated explicitly.
- The reader understands what new information the article provides and how to verify it.
12. Sources
- Y. Hamoudi, F. Magniez. “Quantum Time-Space Tradeoff for Finding Multiple Collision Pairs”. arXiv:2002.08944v5, 2023. Main text: Theorems 4.5, 5.5, 6.1, 6.7; Propositions 6.2, 6.3, 6.6; Corollaries 6.4, 6.5.
- M. Zhandry. “How to Record Quantum Queries, and Applications to Quantum Indifferentiability”. CRYPTO 2019. Recording query technique.
- P. C. van Oorschot, M. J. Wiener. “Parallel Collision Search with Cryptanalytic Applications.” Journal of Cryptology, 1999. The classical algorithm and its applications.
- I. Dinur. “Time-Space Tradeoffs for Finding a Collision in Random Functions”. Eurocrypt 2020. Classical optimality T 2 S = Θ( K 2 N ).
- G. Brassard, P. Høyer, A. Tapp. “Quantum Cryptanalysis of Hash and Claw-Free Functions”. 1998. BHT algorithm.
- H. Klauck, R. Spalek, R. de Wolf. “Quantum and Classical Tradeoffs for Sorting and Related Problems”. 2007. Tradeoff for sorting T 2 S ≥ Ω( N 3 ).
- S. Aaronson, Y. Shi. “Quantum Lower Bounds for the Collision and the Element Distinctness Problems.” 2004. Query complexity Element Distinctness.
- A. Ambainis. “Quantum Walk Algorithm for Element Distinctness”. 2007. An optimal quantum algorithm for ED.
- NIST. FIPS 203, 204, 205, August 2024. Post-Quantum Standards; Context for Practical Migration.
- NIST NCCoE. “Migration to Post-Quantum Cryptography.” Practical Transition Project.
- National Quantum Initiative. Quantum technologies: computing, networks, sensors.
