Quantum computers promise to solve certain problems that no classical machine can handle in reasonable time, and at the same time they threaten the public-key cryptography that protects almost all internet traffic. Both claims are true, but only for specific problems and only once the hardware matures, which makes it hard to separate realistic expectations from marketing.
This article explains how quantum computing actually works and what it can and cannot do today. We start with the problem that motivated the field and its history, then cover the core concepts: qubits, superposition, entanglement, interference, gates and circuits. The second half deals with the hard parts: noise and error correction, the current era of noisy intermediate-scale machines, the important algorithms, the competing hardware platforms, realistic applications, and what the cryptographic threat means for engineers who have to plan systems that must stay secure for the next ten to twenty years. A small Qiskit example in Python makes the circuit model concrete.
1. Why Quantum Computing Matters: The Limits of Classical Simulation
Classical computers are extraordinarily good at most tasks we give them. They are bad at one category in particular: simulating quantum systems. To describe the full state of n interacting quantum particles with two states each, a classical computer needs 2^n complex numbers. Fifty particles already require around 10^15 numbers, which pushes the memory of the largest supercomputers. Three hundred particles would need more numbers than there are atoms in the observable universe.
This is not an abstract problem. Chemistry is quantum mechanics: the behaviour of molecules, catalysts, drugs and materials is determined by how electrons interact. Today's simulation methods work around the exponential cost with approximations, and those approximations fail exactly where things get interesting, for example in strongly correlated electrons in certain catalysts or high-temperature superconductors.
In 1981, the physicist Richard Feynman turned the problem around. If nature is quantum mechanical and quantum systems are expensive to simulate on classical machines, why not build a computer out of quantum systems? Such a machine would not have to track 2^n numbers explicitly; it would simply be a system with 2^n amplitudes, evolving according to the same laws as the system it simulates.
A second motivation appeared later: some purely mathematical problems also have structure that quantum mechanics can exploit. The most famous is factoring large integers, which underpins RSA. This is why quantum computing matters far beyond physics labs, and why it is relevant to every engineer who works with cryptography.
It is important to be precise from the start: a quantum computer is not a faster general-purpose computer. It does not speed up web servers, databases or spreadsheets. It offers large speedups only for problems with a particular mathematical structure, and for most everyday workloads a classical processor will remain faster, cheaper and simpler.
2. A Short History: From Feynman to Quantum Supremacy
The field developed over four decades, with long phases of theory before experiments caught up:
- 1981: Richard Feynman proposes quantum computers for simulating physics
- 1985: David Deutsch describes a universal quantum computer
- 1992: The Deutsch–Jozsa algorithm shows a provable quantum advantage for a toy problem
- 1994: Peter Shor publishes a polynomial-time quantum algorithm for factoring and discrete logarithms
- 1995: Shor proposes the first quantum error-correcting code
- 1996: Lov Grover publishes a quantum search algorithm with a quadratic speedup
- 1998–2001: First small algorithms run on NMR quantum computers; IBM factors 15 with seven qubits
- 2011: D-Wave sells the first commercial quantum annealer
- 2016: IBM puts a five-qubit processor on the cloud for public use
- 2018: John Preskill coins the term NISQ (noisy intermediate-scale quantum)
- 2019: Google reports quantum supremacy with its 53-qubit Sycamore processor
- 2020: A USTC team in China reports a quantum advantage with the photonic Jiuzhang experiment
The early experiments in the late 1990s used nuclear magnetic resonance: molecules in a liquid whose nuclear spins served as qubits. They demonstrated the principles but could not scale, because the signal shrinks rapidly as more qubits are added. The real work since then has gone into platforms that can scale in principle: superconducting circuits, trapped ions, photons, neutral atoms and spins in silicon.
Quantum supremacy, carefully read
In October 2019, Google published results in Nature showing that its Sycamore processor sampled from the output of a random quantum circuit in about 200 seconds, a task Google estimated would take the best classical supercomputer around 10,000 years. IBM responded that a better classical approach using disk storage could do it in about two and a half days. Either way, the gap was large, and the experiment was a genuine scientific milestone: the first convincing demonstration that a programmable quantum device can do something beyond practical classical reach.
What the experiment did not show is useful computation. Random circuit sampling was chosen precisely because it is hard for classical computers and easy to run on the quantum chip, not because anyone needs its output. The same applies to the Jiuzhang boson-sampling experiment of December 2020. Both results prove that the hardware works at a meaningful scale; neither solves a business problem.
3. Qubits and Superposition
A classical bit is either 0 or 1. A qubit is a two-level quantum system, for example the polarisation of a photon, two energy levels of an ion, or the current states of a superconducting circuit. Its state is described by two complex numbers called amplitudes:
|ψ⟩ = α|0⟩ + β|1⟩
with |α|² + |β|² = 1
P(measure 0) = |α|²
P(measure 1) = |β|²
When both amplitudes are non-zero, the qubit is in a superposition. A common but misleading explanation is that the qubit is "0 and 1 at the same time" and that a quantum computer therefore "tries all answers in parallel". The more accurate picture is that the amplitudes are like waves: they have a magnitude and a phase, and they can add up or cancel out. Measurement destroys the superposition and returns a single classical bit, with probabilities given by the squared magnitudes.
The consequence is crucial for understanding algorithms: you cannot read out the amplitudes. If you prepare a superposition of all 2^n inputs, compute a function on all of them and then measure, you get one random result, which is no better than evaluating the function on a random input classically. Quantum algorithms are useful only when they arrange the computation so that amplitudes of wrong answers cancel and amplitudes of right answers reinforce each other before measurement.
Many qubits
A register of n qubits has 2^n amplitudes, one for each classical bit string. Three qubits have eight amplitudes, for 000 through 111. This exponential state space is the resource that quantum algorithms exploit, and it is also the reason classical simulation breaks down beyond roughly 50 qubits for general circuits.
The Bloch sphere
The state of a single qubit can be visualised as a point on the surface of a sphere, the Bloch sphere. The north pole is |0⟩, the south pole is |1⟩, and every point on the equator is an equal superposition, differing only in phase. Single-qubit gates are rotations of this sphere.
|0⟩
●
. │ .
. │ .
|−⟩ ●──────┼──────● |+⟩
. │ .
. │ .
●
|1⟩
The equator points |+⟩ and |−⟩ both give 0 or 1 with 50 % probability when measured, yet they are different states. The difference is in the phase, and phase is what interference works with.
4. Entanglement and Interference: Where the Power Comes From
Superposition alone does not explain the power of quantum computers; a single qubit can be simulated trivially. Two further ingredients make the difference.
Entanglement
When qubits interact, their joint state can become entangled: it can no longer be described as a combination of individual qubit states. The simplest example is a Bell state:
|Φ+⟩ = (|00⟩ + |11⟩) / √2
Measuring either qubit gives 0 or 1 at random, but the two results always agree. This is not because the qubits secretly agreed on a value in advance; experiments testing Bell's inequalities have ruled out such local hidden values. Entanglement does not allow faster-than-light communication, because each individual result is random. It does mean that the information is stored in correlations across the whole register, and that is exactly the part a classical simulation struggles to represent compactly. A computation that never creates much entanglement can usually be simulated efficiently on a classical computer.
Interference
Interference is the mechanism that turns the exponential state space into answers. Because amplitudes have phases, operations can make different computational paths cancel (destructive interference) or reinforce (constructive interference). A good quantum algorithm is a carefully designed interference pattern: after a sequence of gates, almost all amplitude is concentrated on states that encode the answer.
A useful mental model for engineers: superposition gives you a large space, entanglement lets you use it in ways that classical bits cannot, and interference is how you get information back out. Remove any one of the three and the advantage disappears.
5. Quantum Gates and Circuits
Most quantum computers today follow the gate model: a computation is a circuit of quantum gates applied to qubits, followed by measurement. Gates are reversible operations (mathematically, unitary matrices), which is a notable difference from classical logic, where gates such as AND throw information away.
| Gate | Qubits | Effect |
|---|---|---|
| X | 1 | Bit flip: swaps the basis states 0 and 1, the quantum NOT |
| H (Hadamard) | 1 | Turns a basis state into an equal superposition |
| Z | 1 | Flips the sign (phase) of the 1 component |
| S, T | 1 | Smaller phase rotations, needed for universality |
| RX, RY, RZ | 1 | Rotations by an arbitrary angle, used in variational algorithms |
| CNOT (CX) | 2 | Flips the target qubit if the control qubit is 1, creates entanglement |
| Measure | 1 | Collapses the qubit to 0 or 1 and returns a classical bit |
A small set of gates, for example H, T and CNOT, is universal: any quantum computation can be approximated to arbitrary precision with them. Real hardware implements its own native gate set, and a compiler (called a transpiler in Qiskit) translates circuits into native gates and maps logical qubits to physical ones, inserting extra swap operations where the chip's connectivity requires it.
A Bell state in Qiskit
The circuit that creates the Bell state from the previous section needs two gates: a Hadamard on the first qubit, then a CNOT.
q0: ──H────●────M──
│
q1: ───────X────M──
With IBM's open-source framework Qiskit, the same circuit takes a few lines of Python. The example runs on a local simulator; switching the backend to a real IBM Quantum device works the same way once you have an account.
from qiskit import QuantumCircuit, Aer, execute
qc = QuantumCircuit(2, 2)
qc.h(0) # superposition on qubit 0
qc.cx(0, 1) # entangle qubit 1 with qubit 0
qc.measure([0, 1], [0, 1])
print(qc.draw())
backend = Aer.get_backend("qasm_simulator")
result = execute(qc, backend, shots=1024).result()
print(result.get_counts())
# for example: {'00': 509, '11': 515}
The simulator returns only 00 and 11, roughly half each, never 01 or 10. On real hardware, you will also see a few percent of 01 and 10. Those are errors from imperfect gates, decoherence and readout, and they lead directly to the central engineering problem of the field.
Shots and statistics
Quantum programs are probabilistic, so they are run many times ("shots") and the result is a histogram. This changes how you think about outputs: an algorithm succeeds if the right answer appears with high enough probability, and verifying it often requires classical post-processing. For problems like factoring, checking a candidate answer is cheap, which makes probabilistic results perfectly usable.
6. Noise, Decoherence and Quantum Error Correction
Qubits are fragile. Any uncontrolled interaction with the environment, such as heat, stray electromagnetic fields or vibrations, gradually turns a quantum superposition into a classical mixture. This is decoherence, and it limits how long a computation can run. Two numbers describe it: T1, the time until an excited qubit relaxes to |0⟩, and T2, the time until phase information is lost.
Gates are also imperfect. A two-qubit gate on today's best superconducting chips succeeds with a fidelity around 99 to 99.5 percent; trapped ions reach higher fidelities in the best experiments. That sounds good until you multiply: a circuit with 1,000 two-qubit gates at 99.5 percent fidelity has a success probability of roughly 0.995^1000, which is less than one percent. Useful algorithms such as Shor's need billions of operations.
The main error sources and their usual countermeasures:
- Decoherence (T1, T2): coupling to the environment destroys the quantum state over time. Countermeasures are better isolation, cryogenics and shorter circuits.
- Gate errors: imperfect control pulses and calibration drift. Countermeasures are frequent calibration and optimised pulse shapes.
- Crosstalk: an operation on one qubit disturbs its neighbours. Chip design and careful scheduling of gates reduce it.
- Readout errors: the measurement misclassifies 0 and 1. Readout calibration can partly correct the statistics afterwards.
- Leakage: the system leaves the two-level subspace it is supposed to stay in. It requires leakage detection and reset.
Why error correction is hard
Classical error correction copies bits and takes a majority vote. Quantum mechanics forbids this: the no-cloning theorem says an unknown quantum state cannot be copied, and measuring a qubit to check it destroys its superposition.
The solution, first shown by Shor in 1995, is to spread one logical qubit across many physical qubits in an entangled code, and to measure only syndromes: parities between groups of qubits that reveal whether and where an error happened, without revealing the encoded data. A classical decoder then determines the most likely error and corrects it.
Logical qubit (protected)
│
┌──────┴───────────────────────┐
│ Many physical data qubits │
│ + ancilla qubits that │
│ measure parity syndromes │
└──────┬───────────────────────┘
│ syndrome bits each cycle
▼
Classical decoder ──► corrections
The most studied scheme is the surface code, which arranges qubits on a two-dimensional grid with nearest-neighbour interactions, a good match for superconducting chips. It works if physical error rates are below a threshold of roughly one percent; the further below, the fewer physical qubits each logical qubit needs. Depending on the error rate and the required reliability, estimates range from hundreds to thousands of physical qubits per logical qubit.
The threshold theorem
The threshold theorem is the reason the field is optimistic despite these numbers: if physical errors are below the threshold, adding more physical qubits suppresses logical errors exponentially, so arbitrarily long computations become possible in principle. Fault tolerance is therefore an engineering challenge of scale, control electronics and manufacturing, not a fundamental barrier. As of mid-2021, small error-correction experiments have been demonstrated on several platforms, but no system yet keeps a logical qubit alive better than its best physical qubit across a full set of operations.
7. The NISQ Era: What Today's Machines Can and Cannot Do
John Preskill named the current period the era of noisy intermediate-scale quantum (NISQ) devices: machines with tens to a few hundred qubits, without error correction, able to run only shallow circuits before noise dominates.
This has practical consequences:
- Qubit count is a poor metric on its own. A processor with 65 noisy qubits and limited connectivity may be less useful than one with 20 high-fidelity, fully connected qubits. IBM introduced quantum volume as a single-number benchmark that combines qubit count, fidelity, connectivity and compiler quality.
- Circuit depth is the real limit. The number of sequential gate layers that can run before decoherence ruins the result is often a few dozen to a few hundred.
- Error mitigation instead of correction. Techniques such as readout calibration, zero-noise extrapolation (running at deliberately increased noise levels and extrapolating back to zero noise) and symmetry checks reduce the impact of errors at the cost of more shots. They help, but they do not scale to long computations.
- Hybrid workflows. Practical NISQ programs combine a short quantum circuit with a classical optimiser that runs many iterations, see section 9.
The honest summary is that no NISQ application has yet been shown to beat the best classical methods on a problem of practical value. Many teams are searching for such a "quantum advantage" in chemistry, optimisation and sampling, and it may come with the next generations of hardware. But anyone planning a business case around NISQ devices should treat it as research and learning, not as production capacity.
Quantum annealing
D-Wave follows a different model: quantum annealing. Instead of gates, the machine encodes an optimisation problem into the energies of interacting qubits and slowly evolves the system so that it settles into a low-energy state, ideally the optimum. D-Wave's Advantage system, launched in 2020, has more than 5,000 qubits. These qubits are not comparable to gate-model qubits: annealers are not universal quantum computers, and whether they deliver a speedup over the best classical heuristics for real problems is still debated. They are, however, available today and widely used for optimisation experiments.
8. Quantum Algorithms: Shor, Grover and Beyond
Only a small number of algorithmic ideas offer proven or strongly evidenced quantum speedups. Understanding them helps separate realistic from speculative claims.
Shor's algorithm
Shor's algorithm factors an n-bit integer in time polynomial in n, while the best known classical algorithm, the general number field sieve, takes time that grows faster than any polynomial. The trick is a reduction: factoring N reduces to finding the period of the function f(x) = a^x mod N for a random a. Finding periods is where quantum computers excel.
1. Pick random a < N (check gcd(a, N) = 1)
2. Quantum part: find period r of
f(x) = a^x mod N
using the quantum Fourier transform
3. Classical part: if r is even,
gcd(a^(r/2) ± 1, N)
gives a factor of N with good probability
4. Otherwise repeat with another a
The quantum Fourier transform creates the interference pattern: amplitudes for x values that do not fit the period cancel, so measurement returns values related to multiples of 1/r. The same idea solves the discrete logarithm problem, which breaks Diffie–Hellman and elliptic curve cryptography as well as RSA.
The catch is scale. Factoring a 2048-bit RSA key requires thousands of error-corrected logical qubits and billions of gates. A careful 2019 estimate by Craig Gidney and Martin Ekerå concluded that about 20 million noisy physical qubits could do it in roughly eight hours. The largest machines in 2021 have well under a hundred gate-model qubits, and the largest numbers factored with genuine implementations of Shor's algorithm are tiny, such as 15 and 21.
Grover's algorithm
Grover's algorithm searches an unstructured space of N items for a marked item in about √N steps instead of N. It works by repeatedly reflecting the state about the marked item and about the average amplitude, which rotates amplitude towards the answer step by step.
A quadratic speedup is useful but modest. It does not turn exponential problems into easy ones: searching 2^128 keys becomes 2^64 operations, which is still a lot, especially since each step is a slow, error-corrected quantum operation that cannot be parallelised as cheaply as classical brute force. Grover's algorithm matters most as a building block and as the reason symmetric key lengths should be generous.
Other algorithms
| Algorithm | Problem | Speedup | Hardware needed |
|---|---|---|---|
| Shor (1994) | Factoring, discrete logarithms | Exponential (superpolynomial) | Fault-tolerant |
| Grover (1996) | Unstructured search | Quadratic | Fault-tolerant |
| Quantum phase estimation | Eigenvalues, chemistry energies | Exponential for some problems | Fault-tolerant |
| Hamiltonian simulation | Dynamics of quantum systems | Exponential | Fault-tolerant |
| HHL (2009) | Solving certain linear systems | Exponential with strong caveats | Fault-tolerant |
| VQE, QAOA | Chemistry, optimisation | Unknown, heuristic | NISQ |
The HHL algorithm for linear systems is often cited for machine learning, but its speedup depends on conditions that are rarely met: the input must be loaded efficiently into quantum states, the matrix must be sparse and well-conditioned, and the output is a quantum state, not a readable vector. In 2018, Ewin Tang showed that a quantum recommendation algorithm built on similar ideas could be matched by a classical algorithm under comparable assumptions, which led to a series of "dequantisation" results. Claims of exponential speedups for machine learning should therefore be read with care.
9. Variational Algorithms: VQE and QAOA
Since fault-tolerant machines are years away, much NISQ research focuses on variational quantum algorithms. They split the work: a short, parameterised quantum circuit prepares a trial state and measures a cost function, and a classical optimiser adjusts the parameters.
┌────────────────┐ parameters θ ┌───────────────┐
│ Classical │ ─────────────► │ Quantum │
│ optimiser │ │ circuit U(θ) │
│ (e.g. COBYLA, │ ◄───────────── │ + measurement │
│ SPSA) │ cost estimate └───────────────┘
└────────────────┘
repeat until the cost stops improving
Variational Quantum Eigensolver
The Variational Quantum Eigensolver (VQE) estimates the ground-state energy of a molecule, which determines its stability and how it reacts. The molecule's Hamiltonian is translated into a sum of Pauli operators on qubits; the circuit prepares a trial wavefunction; the measured expectation value is the energy; and the optimiser searches for the parameters that minimise it.
In 2017, an IBM team used VQE on a six-qubit superconducting processor to compute ground-state energies of small molecules: hydrogen (H2), lithium hydride (LiH) and beryllium hydride (BeH2). These molecules are easily handled by classical methods; the point was to demonstrate the workflow on real hardware, including how noise limits accuracy. It remains a reference experiment for quantum chemistry.
QAOA
The Quantum Approximate Optimisation Algorithm (QAOA), proposed by Farhi, Goldstone and Gutmann in 2014, targets combinatorial optimisation such as MaxCut. It alternates between a layer that encodes the cost function and a "mixing" layer, with angles tuned by the classical optimiser. With more layers, QAOA can in principle approach the optimum; with the few layers NISQ hardware allows, it has not yet beaten good classical heuristics.
Practical pitfalls
- Measurement cost: estimating an energy to chemical accuracy requires many shots for each term of the Hamiltonian, and the number of terms grows quickly with molecule size.
- Barren plateaus: for many circuit designs, gradients vanish exponentially as the number of qubits grows, so the optimiser has nothing to follow.
- Noise and optimisation interact: noise distorts the cost function, and noisy estimates make classical optimisers struggle.
Variational algorithms are the right place to learn and experiment today, but their practical advantage is an open research question.
10. Hardware Approaches Compared
There is no consensus yet on which technology will win; it is possible that different platforms will suit different tasks. Each makes a different trade-off between speed, quality, connectivity and scalability.
| Platform | Qubit | Strengths | Weaknesses | Players (2021) |
|---|---|---|---|---|
| Superconducting | Circuits with Josephson junctions at about 10–20 mK | Fast gates, chip fabrication | Short coherence, wiring, cryogenics | IBM, Google, Rigetti |
| Trapped ions | Ions held by electromagnetic fields, driven by lasers | High fidelity, long coherence, all-to-all connectivity | Slower gates, scaling traps | Honeywell, IonQ |
| Photonic | States of single photons | Room-temperature parts, networking | Probabilistic gates, photon loss | Xanadu, PsiQuantum |
| Neutral atoms | Atoms held in optical tweezers | Large arrays, flexible geometry | Gate fidelity still maturing | Pasqal, ColdQuanta |
| Spin qubits | Electron spins in silicon | Compatible with chip manufacturing, tiny | Early stage, variability | Intel, research labs |
| Topological | Exotic quasiparticles (Majorana modes) | Built-in error protection in theory | Not yet demonstrated reliably | Microsoft |
Superconducting qubits are tiny electrical circuits that behave like artificial atoms when cooled in a dilution refrigerator to a few hundredths of a degree above absolute zero. Their gates take tens of nanoseconds, and they can be produced with techniques derived from chip manufacturing. Their challenges are coherence times of tens to a few hundred microseconds, crosstalk, and the large amount of cabling and control electronics each qubit needs. IBM has published a roadmap that targets a processor with more than 1,000 qubits in 2023, with a 127-qubit chip planned for 2021.
Trapped ions use individual charged atoms, which are identical by nature, so every qubit is the same. Their coherence times can reach seconds or more, and any ion in a chain can interact with any other, which avoids the swap overhead of nearest-neighbour chips. Gates are slower, and keeping long ion chains stable is hard; current designs shuttle ions between zones of a trap chip to scale.
Photonic approaches encode qubits in photons, which barely interact with their environment and travel easily over fibre. Their difficulty is that photons also barely interact with each other, so two-qubit gates are probabilistic or require measurement-based schemes. Neutral atoms in arrays of laser tweezers have grown quickly to hundreds of atoms, using highly excited Rydberg states for interactions. Topological qubits would store information non-locally and be naturally protected against noise, but the underlying physics has not yet been convincingly demonstrated, and the approach has had notable setbacks.
When comparing announcements, look beyond the qubit count: two-qubit gate fidelity, coherence, connectivity, readout fidelity, quantum volume, and whether the results were published with enough detail to be reproduced.
11. Applications: Chemistry, Materials, Optimisation and Machine Learning
The application areas most often cited differ greatly in how solid their case is. It helps to rank them by the strength of the underlying algorithmic evidence.
Chemistry and materials science
Simulating molecules and materials is the most natural application, because it is the problem quantum computers were invented for. A fault-tolerant machine running quantum phase estimation could compute energies of molecules that are intractable classically, for example the iron–molybdenum cofactor (FeMoco) in the nitrogenase enzyme, which bacteria use to fix nitrogen at room temperature. Understanding it could inform more energy-efficient fertiliser production; the Haber–Bosch process used today consumes a noticeable share of the world's energy. Other targets include battery electrolytes, catalysts for carbon capture, and the mechanisms behind high-temperature superconductivity.
On NISQ hardware, chemistry experiments are so far limited to small molecules that classical computers handle easily, such as the lithium hydride calculation mentioned earlier. They are valuable as validation, not yet as discovery tools.
Optimisation
Logistics, scheduling, portfolio construction and traffic routing are hard combinatorial problems, and companies have run many pilots. Volkswagen, for example, worked with D-Wave annealers on traffic flow optimisation using taxi data from Beijing and ran a bus-routing pilot in Lisbon in 2019. Such projects are useful for learning how to formulate problems for quantum hardware. However, there is no proof that quantum computers can solve NP-hard optimisation problems efficiently, and none is expected. The realistic hope is a speedup for specific problem classes or better approximate solutions, and classical solvers are a moving, highly optimised target.
Machine learning
Quantum machine learning is an active research area: quantum kernel methods, variational classifiers and quantum versions of linear algebra routines. Two problems temper expectations. First, loading large classical datasets into quantum states can cost as much as the speedup saves. Second, several claimed exponential speedups have been dequantised, as described in section 8. Promising directions are those where the data itself is quantum, for example the output of quantum sensors or quantum simulations.
Other areas
- Finance: Monte Carlo pricing with quantum amplitude estimation offers a quadratic speedup in the number of samples, but needs fault-tolerant hardware to beat classical clusters.
- Sensing and metrology: quantum sensors, which use the same physics but not a full computer, are already in use in atomic clocks and magnetometers.
- Random numbers: quantum processes generate certifiable randomness, a niche but real application.
In summary, ranked by the strength of the evidence:
- Quantum chemistry and materials: strong evidence, but real impact needs fault-tolerant machines, so it is a long-term prospect.
- Breaking RSA and elliptic-curve cryptography: a proven algorithm that needs a large fault-tolerant machine; long term, but planning must start now.
- Monte Carlo methods in finance: a proven quadratic speedup that also requires fault tolerance.
- Optimisation: weak, heuristic evidence; NISQ devices and annealers are suitable for experiments, and the timeframe for any advantage is uncertain.
- Machine learning on classical data: weak evidence, with several claimed speedups dequantised; the outlook is uncertain.
12. Cryptography: The Quantum Threat and Post-Quantum Cryptography
For most engineers, this is the most practical part of the topic, because it requires action long before a large quantum computer exists.
What is at risk
The public-key algorithms that secure TLS, SSH, VPNs, code signing, software updates and digital identities rely on two problems: factoring (RSA) and discrete logarithms (Diffie–Hellman, ECDSA, ECDH, EdDSA). Shor's algorithm solves both efficiently. A sufficiently large fault-tolerant quantum computer would therefore break all of them.
Symmetric cryptography is in a different position. AES does not depend on factoring or discrete logarithms; its security comes from the lack of any structural shortcut. The best known quantum attack is Grover's search, which roughly halves the effective key length. AES-256 keeps a comfortable margin, and hash functions such as SHA-256 and SHA-3 are similarly affected only modestly.
| Primitive | Examples | Quantum attack | Consequence |
|---|---|---|---|
| Public-key encryption, key exchange | RSA, DH, ECDH | Shor | Broken |
| Digital signatures | RSA, ECDSA, EdDSA | Shor | Broken |
| Symmetric encryption | AES-128, AES-256 | Grover | Use 256-bit keys |
| Hash functions | SHA-256, SHA-3 | Grover and collision search | Keep output lengths of 256 bits or more |
Harvest now, decrypt later
The threat is already relevant because data can be recorded today and decrypted later. Traffic protected by RSA or elliptic-curve key exchange that is captured now could be read once a capable machine exists. If your data must stay confidential for 15 years, and migrating your systems takes ten, you need to start before anyone knows when the first cryptographically relevant quantum computer will appear. Signatures have a different risk profile: they matter for long-lived roots of trust, firmware signing and documents that must remain verifiable for decades.
The NIST standardisation process
In 2016, the US National Institute of Standards and Technology (NIST) started a public process to select post-quantum cryptography: classical algorithms, running on ordinary computers, that are believed to resist quantum attacks. In July 2020, NIST announced the third round:
| Category | Finalists | Alternate candidates |
|---|---|---|
| Key encapsulation (KEM) | Classic McEliece, CRYSTALS-Kyber, NTRU, SABER | BIKE, FrodoKEM, HQC, NTRU Prime, SIKE |
| Digital signatures | CRYSTALS-Dilithium, FALCON, Rainbow | GeMSS, Picnic, SPHINCS+ |
The candidates rely on different mathematical problems: structured lattices (Kyber, SABER, NTRU, Dilithium, FALCON), error-correcting codes (Classic McEliece, BIKE, HQC), multivariate equations (Rainbow, GeMSS), isogenies of elliptic curves (SIKE) and hash functions (SPHINCS+). Lattice schemes are the favourites for general use because they offer reasonable key sizes and speed. The process is still ongoing; the first standards are expected in the next few years, and cryptanalysis of the candidates continues.
Quantum key distribution
Quantum key distribution (QKD), for example the BB84 protocol from 1984, uses quantum states of photons to establish a key; an eavesdropper who measures the photons disturbs them, which the parties can detect. China's Micius satellite has demonstrated QKD over long distances. QKD is physically elegant, but it needs dedicated hardware and links, does not authenticate the parties by itself, and its implementations have had side-channel weaknesses. Security agencies such as the UK's NCSC recommend post-quantum cryptography rather than QKD for most use cases.
What to do now
- Inventory: find where public-key cryptography is used in your systems, including libraries, protocols, certificates, hardware security modules and embedded devices.
- Classify data by lifetime: identify data that must stay confidential beyond roughly ten years.
- Build crypto-agility: make algorithms configurable rather than hard-coded, so that you can switch without redesigning protocols.
- Strengthen symmetric crypto: prefer AES-256 and 256-bit hashes where it costs little.
- Follow the standards: track the NIST process and guidance from your national agency (BSI, NCSC, ANSSI), and plan hybrid schemes that combine a classical and a post-quantum algorithm during the transition.
- Do not roll your own: wait for standardised, reviewed implementations before using post-quantum algorithms in production.
13. Getting Started: Tools, Cloud Access and a Decision Guide
You do not need a laboratory to work with quantum computers. Several providers offer cloud access, often with a free tier for small experiments:
- IBM Quantum: IBM's superconducting processors and simulators, programmed with Qiskit in Python.
- Amazon Braket (AWS): devices from IonQ, Rigetti and D-Wave through the Braket SDK.
- Azure Quantum (Microsoft): devices from partners such as IonQ and Honeywell, programmed with Q# or the Azure Quantum Python SDK.
- Google Quantum AI: hardware access mainly through research collaborations; the open-source Cirq framework is available to everyone.
- D-Wave Leap: quantum annealers and hybrid solvers, programmed with the Ocean SDK.
A good learning path for software engineers:
- Refresh linear algebra: complex vectors, matrices, tensor products. This is most of the mathematics you need.
- Work through the free Qiskit textbook or the Cirq tutorials and build small circuits: Bell states, teleportation, Deutsch–Jozsa, Grover on a few qubits.
- Run the same circuits on a simulator and on real hardware, and compare the noise.
- Try a VQE or QAOA example from the SDK documentation to understand hybrid workflows.
- Follow the post-quantum cryptography process, because that is where the near-term impact on everyday software lies.
Decision guide for organisations
| Question | If yes | If no |
|---|---|---|
| Do you protect data that must stay confidential for 10+ years? | Start a post-quantum migration plan now | Track the topic, plan crypto-agility |
| Is your core business chemistry, materials or pharma? | Build expertise, partner with research groups | Little reason for early investment |
| Do you have hard optimisation problems with high value? | Run small pilots, benchmark against the best classical solvers | Wait for evidence |
| Do vendors promise production-ready advantage today? | Ask for benchmarks against state-of-the-art classical methods | Proceed normally |
| Do you need quantum skills in the team? | Train a few engineers, use cloud access | Monitor developments |
A short checklist for evaluating claims:
- Is the problem one with a known quantum speedup (simulation, factoring, structured search)?
- Is the comparison made against the best classical algorithm, not a naive one?
- Are the results on real hardware or only in simulation?
- Does the speedup survive the cost of loading data and reading results?
- Is fault tolerance required, and if so, how many logical qubits?
- Are the results published and reproducible?
14. Conclusion: Realistic Expectations
Quantum computing is real physics and real engineering, not science fiction. Superposition, entanglement and interference allow quantum computers to work in an exponentially large state space, and for specific problems this leads to dramatic speedups: Shor's algorithm for factoring, simulation of quantum systems, and a quadratic gain for search. Google's 2019 supremacy experiment and the photonic Jiuzhang result showed that quantum devices can already do things beyond practical classical reach.
At the same time, the obstacles are large. Today's machines are noisy and small, error correction requires many physical qubits per logical qubit, and no NISQ application has yet beaten classical methods on a practical problem. Several popular claims, especially around machine learning and optimisation, rest on weaker evidence than the headlines suggest.
For engineers, the most concrete consequence is cryptographic. Public-key algorithms will need to be replaced, the NIST process is defining the successors, and systems that protect long-lived data should become crypto-agile now. For organisations in chemistry, materials and pharmaceuticals, building expertise early is sensible. For everyone else, curiosity and a few experiments on a cloud simulator are the right level of investment.
Key takeaways:
- A quantum computer is not a faster general-purpose computer; it helps only for problems with particular structure.
- Superposition provides the state space, entanglement makes it hard to simulate, interference extracts the answer.
- Noise is the central problem; fault-tolerant machines need millions of physical qubits for the most famous applications.
- Simulation of molecules and materials is the most natural and best-founded application.
- Shor's algorithm breaks RSA and elliptic-curve cryptography; AES-256 and SHA-256 remain reasonably safe.
- Start planning the move to post-quantum cryptography and design systems to be crypto-agile.
References
- NIST Post-Quantum Cryptography project: https://csrc.nist.gov/projects/post-quantum-cryptography
- Qiskit documentation: https://qiskit.org/documentation/
- Cirq documentation: https://quantumai.google/cirq
- Google, Quantum supremacy using a programmable superconducting processor (Nature, 2019): https://www.nature.com/articles/s41586-019-1666-5
- John Preskill, Quantum Computing in the NISQ era and beyond: https://arxiv.org/abs/1801.00862
- Peter Shor, Polynomial-Time Algorithms for Prime Factorization and Discrete Logarithms: https://arxiv.org/abs/quant-ph/9508027




