Grover’s algorithm’s speedup is expensive in qubits and time

Cillian Vickers-Hayes of Trinity College Dublin, Hannah McAleese of Munster Technological University and Hazel Murray of Munster Technological University and Rinn Quantum have detailed the substantial hardware costs associated with Grover’s algorithm, a quantum approach to password cracking. While Grover’s algorithm theoretically reduces search complexity, the researchers find a Grover-based attack only outperforms a single classical GPU when the search space reaches 59.5 bits.

Their analysis reveals that for a search space of 220 candidates, classical brute-force methods remain between 8.7× 105 and 5.6× 107 times faster than a full-depth Grover run. This work demonstrates that Grover’s theoretical speedup does not automatically translate into a practical advantage for password cracking, particularly with passwords chosen by humans.

Grover’s Algorithm Reduces Search Space, Not Necessarily Cracking Time

A quantum attack requires a substantial investment in physical qubits and processing time, potentially negating its theoretical speedup for many practical password cracking scenarios. The researchers’ fault-tolerant resource model details the costs associated with each iteration of Grover’s algorithm, revealing a surprising threshold for practical advantage. Under the hardware assumptions and circuit implementations considered, the earliest crossover at which a Grover-based attack outperforms a single classical GPU occurs at a uniform search-space size of 59.5 bits.

This crossover point highlights that the theoretical reduction in search complexity, from O(N) to O(√(N)), does not automatically translate into faster cracking times. The model accounts for the repeated execution of the password-verification function as a reversible, fault-tolerant quantum circuit, a significant computational burden often overlooked in assessments of Grover’s algorithm’s threat.

Direct comparison of resource estimates for SHA-256 and related cryptographic primitives is further complicated by inconsistencies in circuit scope, gate metrics and optimization assumptions used in different studies. This disparity stems from the overhead of implementing and maintaining the complex quantum circuits necessary for Grover’s algorithm, even with advancements in quantum hardware. The work emphasizes that simply reducing the number of queries does not guarantee a faster attack if the cost of each query is prohibitively high.

The researchers also considered the impact of non-uniform password distributions, such as those exploited by dictionary attacks, but found that using these techniques within a quantum framework does not fundamentally alter the classical runtime advantage in the scenarios examined. They acknowledge that partitioning the search space or using probability-weighted superpositions can improve Grover’s algorithm’s efficiency, but these optimizations introduce additional implementation costs.

Fault-Tolerant Resource Model for Grover Iterations

The team’s resource model translates Grover’s query complexity into physical qubit requirements and estimates wall-clock attack times, revealing a substantial cost associated with each iteration of the algorithm. This cost stems from the need to execute a reversible hash circuit twice on error-corrected logical qubits, with each T gate requiring a magic state under the fault-tolerant implementation considered.

The work surveys these published estimates, highlighting that a lack of standardization hinders accurate assessment of the real-world threat posed by Grover’s algorithm. This analysis is important because it demonstrates that simply comparing query counts is insufficient. A comprehensive evaluation must account for the underlying hardware and circuit implementations.

The model developed in this paper addresses this gap by providing a framework for costing each Grover iteration in both physical qubits and the time required for execution. This disparity arises because the computational cost of each Grover iteration substantially offsets the theoretical quadratic speedup offered by the algorithm.

“The critical consideration is not the number of queries Grover’s algorithm saves, but rather the hardware requirements for running the oracle and the time required for each query,” the paper states, emphasizing the practical limitations of using Grover’s algorithm for password cracking. The team’s findings suggest that increasing password length solely to counter potential quantum attacks may not be justified, given the current state of quantum hardware and circuit design.

The researchers acknowledge that a complete fault-tolerant resource analysis of memory-hard password-hashing functions like Argon2 and scrypt remains an open problem, noting that existing estimates often omit the memory-addressing operations necessary for a comprehensive evaluation. Their model is designed to be adaptable, allowing for reassessment as quantum circuit implementations, error-correction methods, and hardware performance improve. This flexibility is essential, as advancements in these areas could shift the balance between classical and quantum attack strategies. The team’s work provides a parameterised framework for evaluating these future developments and accurately gauging the evolving threat landscape.

59.5-Bit Search Space: Classical GPU Outperforms Grover

The earliest point at which a Grover-based attack becomes faster than a classical GPU search occurs at a surprisingly small search space of 59.5 bits, according to a new analysis of quantum and classical computational costs. Grover’s algorithm functions by repeatedly applying an oracle that identifies correct inputs, followed by a diffusion step to amplify the probability of measuring the correct solution, but this process demands significant computational resources.

The analysis highlights that the implementation of this oracle, and the subsequent repeated execution as a reversible, fault-tolerant quantum circuit, introduces costs that offset the algorithm’s theoretical advantage. Differences in circuit scope, the metrics used to quantify gate complexity, and the optimisation assumptions made by different research groups hinder direct comparison.

For example, one study might report circuit depth for a full Grover attack over a 216 search space, requiring 201 iterations and 402 hash evaluations, while another provides figures for a different number of iterations or a different scope. These variations make it challenging to accurately assess the real-world impact of Grover’s algorithm on password security.

The work builds on previous research that explored hybrid classical-quantum approaches, such as narrowing a structured password space with classical filtering before applying Grover search to the remaining candidates. However, these methods often rely on simplified equality-check oracles and do not fully account for the overhead of quantum error correction or fault-tolerant hardware.

Non-Uniform Password Distributions Do Not Favor Quantum Attacks

Non-uniform password distributions, while reducing the number of guesses needed in a password attack, do not fundamentally alter the substantial hardware costs associated with using Grover’s algorithm, according to recent analysis. The work details how even with knowledge of likely password patterns and per-user salting, techniques designed to complicate attacks, the computational demands of a quantum-based password cracker remain significant.

Researchers applied per-query costs derived from a full-depth implementation of SHA-256 to published query counts for both single-target and large-scale attacks, revealing that query reduction does not offset the oracle implementation cost. The analysis considered approximately 60 million distinct candidate passwords, mirroring observations of real-world password distributions, and retained a Grover constant of c = 1, costing each quantum query as one Grover oracle evaluation.

Even when ignoring additional implementation overheads, the reduction in queries afforded by these non-uniform distributions fails to make a quantum attack more efficient than classical methods. Under the full-depth model, a single GPU would require between seven months and 2,560 years to crack a password, while corresponding quantum physical-qubit requirements reach 5 x 109 and 5 x 107, respectively. These findings challenge the assumption that exploiting known biases in password selection will deliver a near-term advantage for quantum attackers.

The researchers demonstrate that the crossover point, where a Grover-based attack outperforms a single classical GPU, remains distant, even when accounting for these optimizations. This suggests that focusing solely on reducing the number of guesses overlooks the critical resource demands of building and operating the necessary quantum hardware.

The study’s model assumes an attacker with access to a fault-tolerant quantum computer employing surface-code error correction, and possessing sufficient logical qubits and circuit depth to execute reversible hash circuits. A, illustrating the complexity of implementing even a single iteration of Grover’s algorithm for password verification. The work builds on previous examinations of hybrid classical-quantum approaches, but moves beyond simplified equality-check oracles to provide a more comprehensive costing framework for each Grover iteration in physical qubits and wall-clock attack time.

Quantum Oracle Depth Impacts Password Cracking Feasibility

The paper details that these variations hinder accurate assessments of Grover’s algorithm’s practical impact on password security, a point often overlooked in theoretical analyses. Evaluating the feasibility of Grover-based attacks requires considering not just the reduction in query counts, but also the substantial computational costs of implementing the password-verification function as a quantum oracle. The analysis reveals that each iteration of Grover’s algorithm necessitates executing this oracle, introducing constraints beyond query complexity, including circuit depth and the overhead of quantum error correction.

This work moves beyond simplified equality-check oracles by examining the full implementation of password hashing within a fault-tolerant quantum system. 5 bits. This omission leads to an underestimation of the true hardware requirements for a practical attack. An of the published work.

Physical Qubit Requirements for Grover-Based Password Attacks

Evaluating the feasibility of Grover-based attacks on password hashing demands consideration beyond query complexity; the hardware needed to run the quantum oracle and the time per query are primary constraints. While Grover’s algorithm theoretically reduces the search space, a full resource analysis reveals substantial costs often overlooked in threat assessments, particularly for memory-hard password functions like Argon2 and scrypt.

A complete accounting of these costs remains an open problem, hindering accurate projections of quantum-resistant password security. The number of physical qubits required to implement a Grover-based attack is directly linked to the physical error rate and the chosen quantum error-correction scheme, distinguishing between physical qubits, realised in hardware and logical qubits used by the algorithm itself.

This approach moves beyond simplified equality-check oracles to account for the full complexity of a practical attack scenario. The work highlights that even with non-uniform password distributions, the quantum advantage in query complexity persists, but analyses often use a single hash evaluation as the unit cost, neglecting fault-tolerant resource estimation. The researchers note that assuming no additional implementation overheads provides optimistic estimates for other methods, but the oracle implementation remains the dominant cost factor.

The study uses brute-force search as a benchmark, acknowledging its computational expense but highlighting its advantage of requiring no precomputation or knowledge of the password distribution. This approach is directly applicable to randomly generated passwords, while dictionary attacks address human-chosen passwords. The results suggest that simply increasing password length to counter Grover’s algorithm is insufficient, given the hardware demands of running the quantum oracle. The model is parameterised to allow for future reassessments as quantum technologies advance, providing a framework for ongoing evaluation of password security in the quantum era.

👉 More information
🗞 Fewer Guesses, Expensive Guesses: The Practical Impact of Grover's Algorithm on Password Cracking
✍️ Cillian Vickers-Hayes (Trinity College Dublin, Dublin, Ireland); Hannah McAleese and Hazel Murray (Cybersecurity Research Centre, Munster Technological University, Cork, Ireland)
🧠 ArXiv: https://arxiv.org/abs/2612.06234

Stay current

See today’s quantum computing news on Quantum Zeitgeist for the latest breakthroughs in qubits, hardware, algorithms, and industry deals.

Avatar of Muhammad Rohail T.

Latest Posts by Muhammad Rohail T.: