In a hybrid quantum-classical search, what exactly changes if the attacker has not an “ideal quantum computer,” but a hybrid budget—some queries are classical, some are quantum? Our research shows that the probability of success in distributed search is bounded by ν D (2√τ c + 2τ q + 1) 2 . This bound provides estimates for the security of hash functions and the “hybrid honest majority” condition for a Bitcoin-like blockchain. This is not a promise of a hack, but rather a framework for honestly assessing risk.
Content
- Research card
- Intrigue: Why a “hybrid” attacker is more important than an “ideal” one
- Formal problem: distributed search
- The main boundary and how to read it
- Proof mechanism: progress, the zero function, and the pseudoclassical oracle
- Two key cases: multi-uniform and Bernoulli
- Algorithm: Modified Grover and Hybrid Strategy
- Appendix 1: Security of Hash Functions
- Appendix 2: Bitcoin and proof-of-work
- History and connection of works
- Fair comparison and limitations
- Questions to be tested and next experiments
- What’s left out
- Conclusions
- Sources
1. Research card
| Field | Content |
|---|---|
| Topic | Hybrid quantum-classical search and its applications to the security of hash functions and Bitcoin-like blockchains. |
| Target audience | Students and researchers in quantum computing, cryptography, and blockchain; readers seeking an honest, non-sensational assessment of the “quantum threat.” |
| The central question | How does the probability of success in finding a solution depend on the number of classical τ c and quantum τ q queries if the function is chosen from an arbitrary distribution D? |
| Hypothesis | For any hybrid algorithm, the probability of finding x with f(x)=1 is at most ν D (2√τ c + 2τ q + 1) 2 ; for the Bernoulli distribution, this yields the estimate η(2√τ c + 2τ q + 1) 2 , from which the estimates for hashes and PoW are derived. |
| Refutation criterion | Counterexample: D distribution and hybrid algorithm exceeding the bound; a bug in the proof of progress; or an example where the lower bound of the algorithm does not match the upper bound in the stated special cases. |
| Borders | Black-box query model; theoretical query complexity; not hardware implementation; not analysis of real SHA-256 outside the random oracle model; not economics or legal implications. |
| Method | Proving an upper bound via progress measures; reducing properties of hash functions to Bernoulli Search; reducing PoW to Bernoulli Search; construction of a modified Grover and a hybrid algorithm. |
| New synthesis | A single chain: a common Dist-Search boundary → Bernoulli Search → hash and PoW security → algorithmic lower bound for special distributions. This transforms disparate results into a parametric risk map. |
Selected questions from the constructor include questions on problem statement, hypothesis and refutation (1–6), mechanism and model (7–12), history and connections of works (13–18), algorithms and mathematical model (25–30), cryptography and Bitcoin (49–56), and verifiability and future (69–75). Questions on hardware, error correction, sensors, and economics are marked as “not relevant to this theoretical work.”
2. Intrigue: Why a “hybrid” attacker is more important than an “ideal” one
The popular narrative about quantum threats is often structured simply: “a large quantum computer will appear, and everything will break.” But near-term quantum devices are limited, expensive, and unstable. Therefore, a realistic adversary might have a mixed budget : many classical queries and only a few quantum ones. This raises a nontrivial question: if an attacker has τ c classical and τ q quantum queries to a function, what is the maximum probability of success?
This is precisely the problem addressed in the paper by Cojocaru, Garay, and Song. Their hybrid model is not a “compromise for the sake of simplicity”: it includes both the classical model (τ q = 0) and the fully quantum model (τ c = 0) as special cases. This is methodologically important: a single formula must reproduce the well-known results of Grover and Rosmanis while simultaneously providing new estimates for distributions and applications.
The intrigue of the article in one sentence: the quantum request in the hybrid model enters the boundary “at the root differently” than the classical one, therefore security is not a binary “quantum/non-quantum”, but a surface in coordinates (τ c , τ q ) .
3. Formal problem: distributed search
We consider the Dist-Search problem . Given a distribution D on a family of Boolean functions f: X → {0,1}, the algorithm is given a black box for f chosen from D and must find x for which f(x)=1, if such an x exists. The algorithm can make at most τ c classical and τ q quantum queries.
For a function f, a projector onto the set of preimages of the unit is defined:
π f = Σ x: f(x)=1 |x⟩⟨x|
The key quantity characterizing the distribution of D is ν D :
ν D = sup ‖φ‖≤1 E f←D ‖π f φ‖ 2
It can be understood as the maximum average fraction of “unit” coordinates that the distribution D can “substitute” for the state φ. For specific distributions, it is often easy to calculate. If D uniformly selects a function with exactly w labeled inputs from M, then ν D = w/M. If each input is independently labeled with probability η (the Bernoulli distribution D η ), then ν D = η.
Why isn’t this simply an “average number of solutions?” ν D is a maximum over quantum states, not just an average over a uniform state. In the proof, this allows us to separate the distribution property from the algorithm’s actions. For Bernoulli and multi-uniform, the maximum is achieved over simple states, so the estimates are pure.
4. The main boundary and how to read it
The main result of the paper is that for any algorithm A that makes up to τ c classical and up to τ q quantum queries,
Succ A,D = Pr f←D [f(x)=1 : x←A f ] ≤ ν D · (2√τ c + 2τ q + 1) 2 .
This is an upper bound on the probability of success , or the hardness bound. It doesn’t state that an algorithm with this budget will necessarily reach the right-hand side; it states that it cannot be exceeded. For the Bernoulli distribution:
Succ A,Dη ≤ η · (2√τ c + 2τ q + 1) 2 .
For multi-uniform search with w labeled inputs from M:
Succ A,Dw ≤ (w/M) · (2√τ c + 2τ q + 1) 2 .
How to read the formula? For τ c = 0, it yields a quantum bound with the term 2τ q + 1; for τ q = 0, it yields a classical bound with 2√τ c + 1. The hybrid case interpolates: classical queries enter as √τ c , quantum queries as τ q . Roughly speaking, in this bound, one quantum query “weights” as the square of the number of classical queries, but only within a given regime and up to constants. This is not a universal “query price,” but a property of the proven bound.
It’s important not to confuse this. The article calls the result “hardness bound.” In some places in the PDF, the wording “success probability lower bound” can be misleading: in fact, it proves an upper bound on the probability of success for any algorithm. Lower bounds appear separately—for a specific algorithm and specific distributions.
5. Proof mechanism: progress, zero function, and pseudoclassical oracle
The proof follows Rosmanis’s strategy and Grover’s classic proof of optimality. The idea is to compare the algorithm’s behavior on the “real” function f and on the zero function f ∅ (x)=0. If the algorithm ultimately finds a solution, its state should be significantly different from its state in the zero case. Each query can increase this difference only to a limited extent. This means that a fairly large number of queries are needed.
The difficulty is that a classical query “collapses” the quantum state. To accurately measure progress, a pseudoclassical oracle is introduced : it measures the output register and leaves a branch with the outcome 0 or 1. The algorithm “fails” if its state remains in the 0-branch and is close to the state of the zero function. This allows us to track evolution without confounding it with the collapse of the input register.
We introduce measures of progress A f (t) and B f (t) , and then their averages A (t) , B (t) over D. Intuitively, A is the “coincidence” with the zero case, B is the “accumulated difference”. Each quantum query can decrease A by no more than 4√(ν D B) and increase B by the same amount; a pseudoclassical query increases B by no more than ν D , and part of B can be “spent” on decreasing A. After τ queries, the estimates are proved:
A (τ) ≥ 1 − 4ν D (√τ c + τ q ) 2 , B (τ) ≤ ν D (√τ c + 2τ q ) 2 .
The main bound is derived from these. A technically important technique is to separate the evolution on a specific function from the characteristics of D that influence it. This makes the proof clean and generalizable.
6. Two key cases: multi-uniform and Bernoulli
6.1. Multi-uniform search
The distribution D w uniformly selects a function that maps exactly w inputs to 1. This is a generalization of Grover’s problem with multiple marked elements. Here, ν D = w/M, and the bound takes the form:
Succ ≤ (w/M)(2√τ c + 2τ q + 1) 2 .
For w=1, this reproduces Rosmanis’s result for a uniquely marked input; for τ c =0, it reproduces the well-known quantum complexity of multiple-solution search.
6.2. Bernoulli search
Distribution D η : each input is independently marked as one with probability η. Then ν D =η, and
Succ ≤ η(2√τ c + 2τ q + 1) 2 .
This case is the “workhorse” of applications. Bernoulli Search arises by reducing the properties of hash functions and proof-of-work to the search problem. For τ c = 0, the formula agrees with known quantum estimates for Bernoulli Search.
| Distribution | ν D | The probability of success | What does it reproduce? |
|---|---|---|---|
| Unique marked entry | 1/M | (1/M)(2√τ c +2τ q +1) 2 | Rosmanis’s result for τ c = 0; classical search for τ q = 0 |
| Multi-uniform, w solutions | w/M | (w/M)(2√τ c +2τ q +1) 2 | Generalization of Grover’s search with multiple solutions |
| Bernoulli D η | η | η(2√τ c +2τ q +1) 2 | Hash functions and PoW in the random oracle model |
7. Algorithm: Modified Grover and Hybrid Strategy
The second part of the work is not only a boundary, but also a construction. The idea of a hybrid algorithm:
- Classical stage. For each input i, calculate ω i — the probability that f(i)=1 when f←D. Classically query τ c inputs with the largest ω i . If there is a solution among them, stop.
- Quantum stage. If the classical stage fails to find a solution, run a modified Grover on the induced distribution D̃, where the already requested inputs are excluded and D is recalculated under the condition that f=0 on them.
Grover’s modification consists of constructing the initial state not as uniform, but with amplitudes proportional to √ω i . Reflections with respect to the initial state and with respect to the oracle f are then applied. The paper proves a lower bound for the success of the quantum stage:
ε ≥ τ q 2 · (Σ i ω i 2 ) / (Σ i ω i ).
For permutation-invariant distributions, where all ω i are equal, this yields ε ≥ Ω(τ q 2 ν D ), which coincides with the upper bound in order. For the uniform distribution, the hybrid algorithm succeeds with probability at least
(1/2)(τ c /m + τ q 2 /(m−τ c )),
and for Bernoulli – no less
(1/2)η(τ c /2 + τ q 2 ).
This yields, in special cases, tight complexity of order Θ((τ c +τ q 2 )/m) for uniform and Θ(η(τ c +τ q 2 )) for Bernoulli. Important: the algorithm assumes that ω i are known from the description of D and that a unitary operation depending on ω i can be implemented . This is not a statement about time efficiency; it is an analysis of query complexity.
What does this construction yield? It shows that the bound isn’t “empty”: for important distributions, there exists an algorithm that consistently achieves it. This transforms the article from “we proved it’s impossible” to “we proved it’s impossible and showed when exactly it is possible.”
8. Appendix 1: Security of Hash Functions
For a family of hash functions H K : {0,1} m → {0,1} n , the following properties are considered: one-wayness (OW), second-preimage resistance (SPR), extended target collision resistance (eTCR), and their multi-target variants. In the random oracle model (and its quantum version, QRO), these properties are reduced to Bernoulli Search with η=2 − n . Then, a hybrid bound is applied.
For OW we get:
Succ OW (A) ≤ 2 −n (2√τ c + 4τ q + 1) 2 .
The factor 4 in front of τ q is explained by the reduction: one quantum query of the G construct requires two quantum queries of the Bernoulli function f. For SPR, the estimate is similar. For eTCR, a term of the order of 8(τ c + τ q ) 2 /2 k is added . For multi-target variants, a factor of p (the number of targets) appears.
The implication for the reader: the security of a hash against a hybrid adversary can be parameterized not by a single number of “quantum queries,” but by a pair (τ c , τ q ). This allows us to evaluate scenarios where the attacker has a powerful classical cluster and limited access to a quantum device.
| Property | Classic adversary | Fully quantum adversary | Hybrid adversary |
|---|---|---|---|
| OW, MM p -OW, SPR | ~q/2 n | ~O((q+1)/2 n ) | ~O((τ c +τ q 2 )/2 n ) in order |
| SM p -OW, SM p -SPR | ~p·q/2 n | ~O(p(q+1)/2 n ) | ~O(p(τ c +τ q 2 )/2 n ) |
| eTCR | ~q/2 n + 1/2 k | ~O((q+1)/2 n + 1/2 k ) | ~O((τ c +τ q 2 )/2 n + (τ c +τ q ) 2 /2 k ) |
The table is a qualitative reconstruction based on the results of the paper; for the exact constants and conditions, see Lemmas 10–12 of the original paper.
9. Appendix 2: Bitcoin and proof-of-work
In Bitcoin, proof-of-work (PoW) can be viewed as searching for a value of ctr such that h(ctr,z) ≤ T. In the random oracle model, this is a Bernoulli Search with a success probability of one classical query of p=T/2κ . A hybrid adversary with τ c classical and τ q quantum queries solves PoW with probability no greater than p(2√τ c +4τ q +1) 2 .
From this we derive the hybrid condition of honest majority :
√τ c + 2τ q ≤ (1/√(f(1−f)p)) neg(κ),
where f is the probability that at least one honest participant will create PoW per round. Under this condition, the common prefix and chain quality properties are satisfied with probability 1 − neg(κ) for parameters k ≥ 2sf and l ≥ 2sf, μ = f.
This isn’t a “Bitcoin hack date” or a statement about the current network. It’s a conditional result in the model: if the hybrid adversary’s parameters violate the inequality, standard security arguments break down. The practical value lies in the ability to plug in the estimates (τ c , τ q ) and p and see which regime is dangerous.
10. History and connection of works
The work is integrated into the results chain:
- Grover (1996), BBBV (1997): quantum search gives quadratic speedup and is optimal in the fully quantum model.
- Rosmanis (2022): Hybrid model for unique marked input; bound with (2√τ c +2τ q +1) 2 .
- HLS22: An independent recording technique for a hybrid model including collision problem.
- HRS16: Reducing properties of hash functions to Bernoulli Search in a fully quantum model; in this paper, it is adapted to the hybrid case.
- CGK+23: Bernoulli Search and Post-Quantum Bitcoin Security; This paper adds a hybrid adversary.
- GKL15: Formal analysis of Bitcoin backbone (common prefix, chain quality).
Synthesis of the paper: generalized Dist-Search bound → Bernoulli specialization → applications to hashes and PoW → algorithmic lower bound for special D. It is this sequence that makes the result not a set of lemmas, but a research program.
11. Fair comparison and limitations
11.1 What exactly is proven
- Upper bound on the probability of success for any hybrid algorithm in the query model.
- Exact expressions for ν D in the multi-uniform and Bernoulli cases.
- An Introduction to Hash and PoW Security in the Random Oracle Model.
- Hybrid algorithm design and lower bounds on success; order optimality for uniform/Bernoulli.
11.2. What is missing from the work
- There is no hardware implementation and noise analysis of a real device.
- There is no claim about the time efficiency of the algorithm: it may require knowledge of D and a complex unitary operation.
- There is no analysis of real SHA-256 outside the random oracle model.
- There are no economic, legal or social conclusions.
- There is no universal optimality for arbitrary D: tight results are claimed for special distributions.
Anti-sensation. The article doesn’t conclude “Bitcoin will soon be hacked” or “hashes are no longer secure.” It does suggest something more modest and useful: there is a parametric boundary that allows one to assess risk for a specific hybrid budget and specific assumptions. This is a tool for fair comparison of scenarios.
12. Questions to be tested and further experiments
- Is it possible to reproduce the bound numerically? For small M and Bernoulli D η , implement a modified Grover and compare the success with η(2√τ c +2τ q +1) 2 . Expectation: for small τ q , the bound is not violated; as τ q increases, the success grows approximately quadratically until saturation.
- How does the query order affect the solution? In the upper bound proof, the “all classical first” strategy maximizes progress; in the algorithm, the classical stage comes first. Check whether this holds for other distributions.
- Where does the bound stop being tight? For distributions that are not permutation-invariant, the algorithm’s lower bound may differ from the upper bound. Find an example and measure the gap.
- Can this be extended to the collision problem? The PDF mentions HLS22; check whether the proposed technique yields similarly clean collision boundaries.
- How would the Bitcoin condition change under other PoW models? For example, with multiple target values or with different assumptions about public key availability.
- What practical parameters should be substituted? Estimate τ c , τ q , and p for the “classical cluster + limited quantum coprocessor” scenarios and compare them with the fully quantum scenario.
A minimal demonstration that will interest the reader is a short simulation that shows on a single graph the upper bound and success of the hybrid algorithm for Bernoulli D η for fixed τ c and increasing τ q . This clearly demonstrates both the strength and limitations of the result.
13. What’s left out
Designer questions about temperature, vacuum, optics, electronics, calibration, physical and logical qubits, error correction, sensors, metrology, economics, and the market are not relevant to this theoretical work. This is not a shortcoming of the article, but its limitation: it studies query complexity and cryptographic implications, not engineering implementation. A hardware-based continuation would require a separate article with an error model and experimental data.
14. Conclusions
- The hybrid model is not a “semi-quantum” metaphor, but a rigorous query model that includes both classical and fully quantum cases.
- The Dist-Search principal bound is: Succ ≤ ν D (2√τ c +2τ q +1) 2 . It generalizes Rosmanis’s result and provides a convenient way to calculate the safety for specific distributions.
- For Bernoulli Search, the bound is η(2√τ c +2τ q +1) 2 ; this yields bounds for the OW/SPR/eTCR of hash functions and the hybrid honest majority condition for a Bitcoin-like blockchain.
- Modified Grover with D-dependent initial state and a hybrid classical-first-quantum-stage strategy achieve the order bound for uniform and Bernoulli distributions.
- The practical conclusion is that security should be discussed in terms of (τ c , τ q ) coordinates and with explicit assumptions, rather than in the binary rhetoric of “a quantum computer will break everything.”
The next testable question that naturally arises from the synthesis is: what does the security surface look like for the distributions encountered in real protocols if the adversary is allowed to adaptively redistribute classical and quantum queries? Answering this will require theory, simulations, and explicit comparison with classical baselines.
15. Sources
- A. Cojocaru, J. Garay, F. Song. Generalized Hybrid Search and Applications to Blockchain and Hash Function Security. arXiv:2311.03723v1. URL: https://arxiv.org/abs/2311.03723 .
- A. Rosmanis. Hybrid quantum-classical search algorithms. arXiv:2202.11443, 2022.
- Y. Hamoudi, Q. Liu, M. Sinha. Quantum-classical tradeoffs in the random oracle model. 2022 (HLS22).
- A. Hülsing, J. Rijneveld, F. Song. Mitigating multi-target attacks in hash-based signatures. PKC 2016 (HRS16).
- A. Cojocaru, J. Garay, A. Kiayias, F. Song, P. Wallden. Quantum Multi-Solution Bernoulli Search with Applications to Bitcoin’s Post-Quantum Security. Quantum, 7:944, 2023 (CGK+23).
- J. Garay, A. Kiayias, N. Leonardos. The Bitcoin Backbone Protocol: Analysis and Applications. EUROCRYPT 2015 (GKL15).
- LK Grover. A fast quantum mechanical algorithm for database search. STOC 1996.
- C. H. Bennett, E. Bernstein, G. Brassard, U. Vazirani. Strengths and weaknesses of quantum computing. SIAM J. Comput., 1997 (BBBV97).
- NIST. FIPS 203, 204, 205. August 2024 – context for the transition to post-quantum cryptography; not the central result of this paper.
