Myth 6 of 50 · How Quantum Computers Work
“Quantum computers can solve any hard problem instantly”
The short answer
Quantum computers are not believed to solve the hardest problems, the NP-hard ones, in polynomial time. The best known generic speedup is quadratic, and even that is hard to exploit in practice.
Where the myth comes from
The myth appears wherever quantum computers are described as exploring all possibilities at once. If that were true, then problems whose difficulty comes from having too many possibilities to check, such as scheduling, route planning, and puzzles like the traveling salesman problem, would melt away. Popular articles often promise exactly this, and industry presentations list logistics, finance, and drug discovery as problems that quantum computers will solve instantly.
Behind the myth is a real set of problems. Computer scientists call a problem NP-complete or NP-hard if it is at least as hard as every problem whose solutions can be checked quickly, and many practical optimization tasks are of this kind. No one has found an efficient classical algorithm for them, and most experts believe none exists. The natural question is whether quantum computers change that. The answer, as far as anyone knows, is no.
What the evidence says
There is strong evidence that quantum computers cannot solve NP-complete problems in polynomial time. The oracle results of Bennett, Bernstein, Brassard, and Vazirani in 1997 show that, relative to a black box for the problem, any quantum algorithm needs on the order of the square root of N queries to find a solution among N possibilities, so exponential search spaces stay exponential. Scott Aaronson summarized the situation in his 2005 paper NP-complete problems and physical reality, arguing that it is reasonable to conjecture that NP-complete problems are not efficiently solvable by any physical process, including quantum computers, much as the impossibility of perpetual motion machines is taken as a principle.
The known quantum speedups are for special problems. Factoring and discrete logarithms are believed not to be NP-complete, which is why Shor's algorithm does not imply that quantum computers can solve NP-hard problems. Grover's algorithm provides a quadratic speedup for generic search, which turns a problem needing a trillion steps into one needing a million, a significant gain, but one that leaves exponential problems exponential: a search over 2 to the 100 possibilities would still need about 2 to the 50 steps, which is not feasible.
Heuristic quantum methods, such as the quantum approximate optimization algorithm and quantum annealing, do not come with proofs of speedups, and they are compared against classical heuristics that are very effective on practical instances. A 2024 review by Abbas and coauthors concluded that clear evidence of quantum advantage for optimization is still lacking. And the overheads of error correction, as Babbush and coauthors showed, make quadratic speedups hard to realize on practical problem sizes.
Instantly is never the answer
Even where a quantum speedup exists, the word instantly is wrong. Quantum computations take time, including the time to prepare states, run many operations, and repeat the measurement many times to get statistics. Error-corrected machines are slow in terms of operations per second. A realistic claim of quantum advantage is that a task takes hours instead of years, not that it is instantaneous.
A worked example: the traveling salesman problem
Take the traveling salesman problem with 60 cities. The number of possible tours is about 60 factorial divided by 120, a number with roughly 80 digits. A brute-force search is impossible for any machine. A quantum computer using Grover-style search would reduce the number of steps to roughly the square root of that, still a number with about 40 digits, which is also impossible. In practice, classical solvers handle instances with tens of thousands of cities to near-optimality by using clever mathematics, not brute force, and so the relevant question for a quantum computer is whether it can beat those solvers, not whether it can beat brute force. For this problem there is no evidence that it can.
The example shows why the claim that quantum computers will solve routing and scheduling problems instantly is not credible. A careful statement is that quantum methods might provide modest speedups or better heuristics for specific structured instances, and that this remains to be demonstrated against the best classical solvers.
The grain of truth
Quantum computers may help with some optimization and search tasks in the sense of modest speedups or better heuristics. For specific structured problems, such as certain problems in algebra and number theory, exponential speedups are known. And simulation of quantum systems, which is hard for classical computers, is feasible for quantum ones. These are real benefits, but they do not amount to solving hard problems in general.
Why the myth matters
Believing the myth leads to bad business decisions and to misplaced fears. Some people worry that quantum computers will break every kind of security or solve every puzzle, and some companies invest in quantum optimization expecting dramatic savings. Public understanding is also harmed: if a field is said to be able to do anything, the promise cannot be met, and disappointment may follow. In cryptography, the myth is a reason that people think symmetric encryption and hash functions are also broken, when they are only modestly weakened.
How to answer the myth
Explain that quantum computers are strong on certain structured problems and give at most a square-root speedup on generic search. Ask whether the problem in question has a known quantum algorithm and what the speedup is. If someone claims that a quantum computer will solve an NP-hard problem quickly, ask them for the algorithm and the complexity analysis. If they cannot provide it, the claim is speculation.
Our verdict
False. No evidence suggests that quantum computers can solve NP-hard problems efficiently, and strong theoretical evidence suggests they cannot. The best known generic speedup is quadratic, and the practical benefit is limited.
Quick facts
- Quantum search of N possibilities needs about the square root of N steps at best, and this is proven optimal in the oracle model.
- Factoring is not known to be NP-complete, so Shor's algorithm does not solve NP-hard problems.
- Aaronson argued in 2005 that NP-complete problems are probably intractable for any physical computer.
- A search over 2 to the 100 possibilities would still need about 2 to the 50 quantum steps.
How to spot and answer this myth
- Watch for claims that quantum computers will solve the traveling salesman problem or all optimization quickly.
- Ask for the algorithm and the proven or measured speedup.
- Check if the claim confuses factoring with NP-hard problems.
- Be wary of the word instantly in descriptions of quantum computation.
Frequently asked questions
Can quantum computers solve NP-complete problems?
No efficient quantum algorithm is known, and evidence suggests that none exists.
Why does Shor's algorithm not break NP-hardness?
Factoring is believed to be easier than NP-complete problems and has special algebraic structure.
Will quantum computers improve logistics?
Possibly with modest speedups or better heuristics, but advantage over strong classical solvers has not been shown.
References
- Bennett, C. H., Bernstein, E., Brassard, G., & Vazirani, U. (1997). Strengths and weaknesses of quantum computing. SIAM Journal on Computing, 26, 1510-1523.
- Aaronson, S. (2005). NP-complete problems and physical reality. ACM SIGACT News, 36(1), 30-52.
- Grover, L. K. (1996). A fast quantum mechanical algorithm for database search. STOC '96, 212-219.
- Abbas, A., et al. (2024). Challenges and opportunities in quantum optimization. Nature Reviews Physics, 6, 718-735.
- Babbush, R., et al. (2021). Focus beyond quadratic speedups for error-corrected quantum advantage. PRX Quantum, 2, 010103.
- Montanaro, A. (2016). Quantum algorithms: an overview. npj Quantum Information, 2, 15023.
Keep exploring
- Paper: A Fast Quantum Mechanical Algorithm for Database Search
- Paper: Focus Beyond Quadratic Speedups for Error-Corrected Quantum Advantage
- Term: BQP Complexity Class
- Term: Quantum Speedup
This page summarizes published research and expert consensus as of 2026 for education. Details change as experiments and standards evolve, so check the references before citing. It is not investment, legal, or security advice.