keepcalculator

06 Numbers and Powers

Quantum vs Classical Computers: Problems Each Solves

Card No. 06·12261 · Updated · Standard formula, shown below

Useful qubits (approx) 49.5 qubits
Speedup factor (rough)
2,821,580 x
Result
Number of qubits
50 qubits
You entered
Error rate per gate
1 %
You entered
You enter
Number of qubits, Error rate per gate
You get
Useful qubits (approx), Speedup factor (rough)
Rounding
0 dp

Quantum computers and classical computers solve different kinds of problems. Classical computers are ideal for everyday tasks like word processing, spreadsheets, and most software, while quantum computers are designed for specific, complex problems like factoring large numbers, simulating molecules, and optimizing large systems. This article explains the key differences, what each type can and cannot do, and how to think about which one applies to a given problem.

Formula

The calculator above gives a rough idea of the computational advantage of a quantum computer over a classical one for certain problems. The formula used is:

Useful qubits = n × (1 – p/100)

where n is the total number of qubits and p is the error rate per gate (as a percentage). The speedup factor is then estimated as:

Speedup factor ≈ 2(useful qubits / 2) / 10

This is a very rough estimate. It reflects that quantum algorithms like Shor’s algorithm can provide exponential speedup for certain problems, but the constant factor and overhead mean the actual speedup is much less than the raw number of qubits suggests. The variables are:

  • n – total number of qubits (physical qubits in the processor)
  • p – error rate per quantum gate (percentage of operations that fail)
  • q – estimated number of useful (error-corrected) qubits
  • s – rough speedup factor compared to a classical computer

Worked Example

Suppose you have a quantum computer with 50 qubits and an error rate of 1% per gate. Using the formula:

  1. Useful qubits = 50 × (1 – 0.01) = 50 × 0.99 = 49.5 qubits
  2. Speedup factor = 2(49.5 / 2) / 10 = 224.75 / 10 ≈ 28,700,000 / 10 ≈ 2,870,000

So, for a problem that is amenable to quantum speedup, this machine might be about 2.87 million times faster than a classical computer. But remember, this is a very rough estimate. The actual speedup depends heavily on the specific algorithm and problem size.

Background: What Makes Quantum Computers Different?

Classical computers store information as bits – either 0 or 1. Quantum computers use qubits, which can exist in a superposition of both 0 and 1 simultaneously. This allows quantum computers to process a vast number of possibilities at once, but it also introduces fragility: qubits are easily disturbed by their environment, causing errors.

Another key concept is entanglement, where qubits become linked so that the state of one instantly influences another, even at a distance. This property is harnessed to perform computations that would take an impractical amount of time on a classical machine.

How Quantum Computers Work

Quantum computers use quantum gates to manipulate qubits. A sequence of gates forms a quantum circuit, similar to a classical logic circuit but with additional operations like superposition and entanglement. At the end of the computation, the qubits are measured, collapsing the superposition into a classical bit string that represents the answer.

Because qubits are error-prone, quantum error correction is essential. This involves using multiple physical qubits to encode a single logical qubit, which can detect and correct errors. However, this requires a large overhead – often hundreds or thousands of physical qubits per logical qubit – which is why current quantum computers are still limited in practical use.

Problems Classical Computers Solve Well

Classical computers are the workhorses of the digital age. They excel at:

  • Data processing: spreadsheets, databases, text editing, and web browsing
  • Graphics and gaming: rendering 3D scenes, video playback, and real-time simulations
  • Networking: routing internet traffic, encryption, and communication protocols
  • Most software applications: everything from email clients to video games
  • General-purpose computing: any task that can be described by an algorithm

For these tasks, classical computers are fast, reliable, and energy-efficient. Quantum computers are not suitable for them because the overhead of quantum operations makes simple tasks slower.

Problems Quantum Computers Solve (or Could Solve)

Quantum computers are not just faster versions of classical computers; they are fundamentally different machines that excel at specific types of problems:

  • Factoring large integers: Shor’s algorithm can factor numbers exponentially faster than the best known classical algorithm. This threatens RSA encryption, which relies on the difficulty of factoring.
  • Simulating quantum systems: Quantum computers can naturally simulate molecules and materials, which is crucial for drug discovery, battery design, and materials science.
  • Optimization problems: Quantum annealing (a specific type of quantum computing) can find approximate solutions to complex optimization problems, such as route planning, portfolio optimization, and machine learning.
  • Searching unsorted databases: Grover’s algorithm provides a quadratic speedup for searching, though not exponential.

It’s important to note that many of these are still theoretical or experimental. Current quantum computers (as of 2025) are too small and error-prone to outperform classical computers on most real-world tasks.

How to Choose Which to Use

For almost all tasks, use a classical computer. If you are writing a document, analyzing data, or running a website, a classical computer is the right choice. Quantum computers are only worth considering if:

  • The problem involves a large number of variables that interact in complex ways (optimization)
  • The problem is about simulating quantum mechanics (molecules, materials)
  • The problem requires factoring very large numbers (cryptography)
  • You have access to a quantum computer and the problem is small enough to run on it

In practice, most businesses and individuals will not need a quantum computer for many years. Quantum computing is currently a specialized tool for researchers and large enterprises.

Common Problems and Misconceptions

A common misconception is that quantum computers will replace classical computers. In reality, they will likely be used as accelerators for specific tasks, much like GPUs are used alongside CPUs. Another misconception is that quantum computers are just “faster� – they are not. They are different, and only faster for certain algorithms.

Another issue is error rates. Current quantum computers have high error rates, making it difficult to get reliable results. Error correction requires many physical qubits, so the number of “useful� qubits is much lower than the total. This is why the calculator above shows a rough estimate of useful qubits.

Costs and Access

Quantum computers are extremely expensive to build and maintain. They require cryogenic cooling to near absolute zero, sophisticated shielding, and highly controlled environments. As of 2025, only a few organizations have access to them, primarily through cloud services offered by tech giants and research institutions. The cost of using a quantum computer via the cloud varies, but it is typically much higher than classical cloud computing.

Safety and Security

Quantum computers pose a significant threat to current encryption methods. RSA and ECC, which secure internet communications, could be broken by a sufficiently powerful quantum computer using Shor’s algorithm. This has led to the development of post-quantum cryptography – new encryption methods that are resistant to quantum attacks. It is important for organizations to start planning for this transition, even though a large-scale quantum computer is not yet available.

Alternatives to Quantum Computing

For many complex problems, classical alternatives exist:

  • High-performance computing (HPC): using thousands of classical CPUs/GPUs in parallel
  • Simulated annealing: a classical algorithm for optimization
  • Approximation algorithms: for problems where exact solutions are too slow
  • Specialized hardware: such as TPUs for machine learning

These alternatives are often more practical and cost-effective than quantum computing for current needs.

Frequently Asked Questions

Can quantum computers run normal software like Excel?

No. Quantum computers are not general-purpose machines. They run quantum circuits, not standard software. You cannot install Windows or run a web browser on a quantum computer. They are designed for specific mathematical operations.

Will quantum computers break all encryption?

They could break RSA and ECC encryption, which are widely used today. However, post-quantum cryptography is being developed and standardized to be resistant to quantum attacks. It will be implemented in the coming years, so not all encryption will be broken.

How many qubits do we need for useful quantum computing?

It depends on the problem. For factoring numbers that are large enough to break RSA, you might need millions of physical qubits due to error correction. For simpler problems, a few hundred logical qubits could be enough. Current machines have around 100-1000 physical qubits, but the number of useful (logical) qubits is much lower.

Is a quantum computer faster than a classical computer?

Only for specific problems. For most tasks, classical computers are faster. Quantum computers offer exponential speedup for factoring and simulation, and quadratic speedup for searching, but for everyday tasks they are slower due to overhead.

Can I buy a quantum computer for my home?

No. Quantum computers are large, expensive, and require specialized infrastructure. They are not available for personal use. Access is typically via cloud services from companies like IBM, Google, and Amazon, but even that is limited to researchers and enterprises.

What is quantum supremacy?

Quantum supremacy is the point at which a quantum computer can solve a problem that a classical computer cannot in a reasonable time. Google claimed to achieve this in 2019 with a specific random circuit sampling task, but the result is debated. It is not a practical milestone, but a proof-of-concept.

Related

Formula used
in n | Number of qubits | qubits | 50 | 1 | 1000
in p | Error rate per gate | % | 1 | 0 | 100
out q | Useful qubits (approx) | qubits | n * (1 - p/100) | 0
out s | Speedup factor (rough) | x | pow(2, q/2) / 10 | 0

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →