Technology
The Real Workings of a Quantum Computer
Quantum computers do not simply 'try every answer at once.' Their potential power comes from a more subtle and strange quantum mechanical property: interference, the same principle that governs waves.

In summary
A quantum computer is a device that harnesses the principles of quantum mechanics, like superposition and interference, to perform specific types of calculations. Unlike classical computers using bits (0s and 1s), they use qubits, which can exist in a complex state of possibilities. Their power lies not in checking all answers simultaneously, but in using quantum interference to cancel out wrong answers and amplify the correct one. Today's machines are noisy and experimental, with their most promising near-term use being the simulation of molecules.
A Quantum Computer Does Not Try All Answers at Once
The most common analogy for a quantum computer is wrong. It is a seductive image: a processor that checks every possible solution to a problem simultaneously, like a key that can try every lock in a hallway at the exact same instant. This mental model suggests a kind of brute-force parallelism on an unimaginable scale, and it is the source of much of the popular excitement and science-fiction speculation surrounding the technology. It is also deeply misleading.
If a quantum computer worked this way, measuring the result would be like reaching into a bag containing all possible answers and pulling one out at random. The correct answer would be in there, but so would every wrong one. The probability of finding the right solution would be vanishingly small for any problem of meaningful complexity. The machine would be useless. The real source of quantum computational power is stranger, more subtle, and rooted in the wave-like nature of quantum reality.
The Qubit Holds a Spectrum of Possibilities
A classical computer uses bits. A bit is a switch. It is either off or on, a 0 or a 1. Its state is definite and exclusive. A quantum computer uses a quantum bit, or qubit. A qubit is not simply a 0 and a 1 at the same time. Instead, it exists in a state of superposition, which is best described not as a coin spinning in the air, but as a vector pointing in a specific direction within a conceptual space.
This direction is defined by two numbers called probability amplitudes. One amplitude is associated with the outcome 0, the other with the outcome 1. When the qubit is measured, its state collapses to either 0 or 1 with a probability determined by these amplitudes. Critically, and unlike classical probabilities, these amplitudes can be positive, negative, or even complex numbers. This single fact is the gateway to understanding quantum computation. A negative amplitude has no classical analogue, yet it is essential. This behaviour is a direct consequence of the rules governing the subatomic world. The principles of <a href="/what-is-quantum-mechanics">Quantum Mechanics in Four Slits</a> govern this reality, which has no parallel in our everyday experience.
Interference Is the Source of Quantum Power
Because amplitudes can be negative, they can cancel each other out. This is called interference, the same phenomenon seen when two waves on a pond meet. If their crests align, they form a bigger wave (constructive interference). If a crest meets a trough, they flatten out and disappear (destructive interference). A quantum algorithm is a carefully choreographed sequence of operations—quantum gates—designed to manipulate the amplitudes of a system of qubits. The goal is not to explore all paths. The goal is to make the computational paths leading to incorrect answers interfere destructively, while making the paths leading to the correct answer interfere constructively.
The computer is not trying all keys in the hallway at once. It is performing a single, complex evolution of a quantum state. This evolution is engineered so that, at the moment of measurement, the amplitudes for all the wrong keys have cancelled themselves to zero, while the amplitude for the one right key has been amplified close to one. The physicist David Deutsch first formalised the idea of a universal quantum computer in the 1980s, showing that such a machine could, in principle, efficiently simulate any physical process that occurs in nature. This hinted at a power beyond classical machines.
Key Algorithms Reveal the True Nature of the Speedup
The potential of this interference-based computation is best seen through its most famous algorithms. They do not speed up every task. They only work on problems with a specific mathematical structure that can be mapped onto a quantum interference pattern.
Shor's Algorithm and Cryptography
In 1994, the mathematician Peter Shor devised an algorithm that could find the prime factors of large numbers exponentially faster than any known classical algorithm. This was a seismic event. The difficulty of factoring large numbers is the foundation for RSA encryption, which protects everything from emails to financial transactions. Shor's algorithm uses quantum interference to find the 'period' of a specially constructed function, which in turn reveals the factors. It does not guess them. It makes the wrong answers cancel out. This poses a severe, if distant, threat to the public-key cryptography that underpins much of modern digital security. Understanding this risk is a key part of modern <a href="/cybersecurity-common-threats-and-how-to-stay-safe">Cybersecurity Explained: Common Threats and How to Stay Safe</a>.
Grover's Algorithm and Search
Another well-known example is Grover's algorithm, which provides a more modest 'quadratic' speedup for searching an unstructured database. If a classical computer needs N checks to find an item, Grover's algorithm needs roughly the square root of N checks. This is a significant improvement for very large databases, but it is not the exponential leap of Shor's algorithm. It demonstrates that quantum advantage is not a universal given; it is problem-dependent.
Simulation: The Most Likely Early Win
Perhaps the most promising and practical near-term application lies where the idea began with physicist Richard Feynman: simulating other quantum systems. Simulating the behaviour of complex molecules is incredibly difficult for classical computers because the number of possible interactions grows exponentially. A quantum computer, being a quantum system itself, is naturally suited for this. Researchers hope to use quantum computers to design new catalysts for industrial processes, create novel materials with desirable properties, or develop new pharmaceuticals by accurately modelling their interaction with proteins in the human body. This field, quantum chemistry, is where many believe the first real, undeniable quantum advantage will appear.
Building a Quantum Computer Is Immensely Difficult
The same quantum properties that give these machines their potential also make them exquisitely fragile. The primary obstacle is a phenomenon called decoherence. The slightest interaction with the outside world—a stray magnetic field, a tiny temperature fluctuation—can disturb the delicate superposition of the qubits, destroying the computation in a fraction of a second. This is often called noise.
To combat this, researchers are developing quantum error correction. The concept involves encoding the information of a single, ideal 'logical qubit' across many faulty 'physical qubits'. By constantly measuring the state of these physical qubits for errors (in a clever way that does not destroy the underlying computation) and correcting them, a robust logical qubit can be maintained. The overhead is enormous. Current estimates suggest thousands, or even millions, of physical qubits might be needed to create a single, fully error-corrected logical qubit. Today's machines have at most a few hundred physical qubits, and they are all noisy.
There is no consensus on the best way to build a physical qubit. Several competing technologies are being pursued: superconducting circuits cooled to near absolute zero; individual charged atoms (ions) held in place by electromagnetic fields; photons, which are particles of light, manipulated by mirrors and beam-splitters; and neutral atoms trapped by lasers. Each has distinct advantages in qubit stability, connectivity, and gate speed, and each has its own severe engineering challenges. Furthermore, not all quantum computers are the universal, gate-based machines described above. Some, like quantum annealers, are designed to find the lowest energy state of a system, making them useful for specific optimisation problems but not for tasks like running Shor's algorithm.
Progress Is Real, but Advantage Remains Contested
In 2019, a team at Google announced they had performed a calculation on their 'Sycamore' quantum processor that would be effectively impossible for even the most powerful classical supercomputer. They claimed to have achieved 'quantum supremacy'. The task itself, which involved sampling the output of a random quantum circuit, had no practical purpose. It was a benchmark. The claim was immediately disputed by competitors like IBM, who argued that with better algorithms and enough resources, a classical supercomputer could in fact perform the task, albeit much more slowly. This debate highlights a crucial point: the frontier of quantum advantage is a moving target, not a fixed line.
The threat to cryptography, however distant, is being taken seriously. A global effort is underway to develop and standardise 'post-quantum cryptography' (PQC)—new encryption methods that can run on today's classical computers but are believed to be resistant to attack by both classical and quantum machines. The U.S. National Institute of Standards and Technology (NIST) has already selected a first suite of PQC algorithms for standardisation. The transition to these new standards will be a slow and complex undertaking over the coming decade.
The Markers of Genuine Progress
Hype will continue to cloud the field. True progress will be marked by concrete, verifiable achievements. Watch for the first demonstration of a fault-tolerant logical qubit that is provably more stable and useful than its constituent physical qubits. Watch for a quantum simulation of a molecule that yields a discovery—like a new catalyst—unobtainable by classical means. Watch for the factoring of a cryptographically relevant (though still small) number with Shor's algorithm on a real device. These are the milestones that will signal the dawn of useful quantum computation. Until then, a healthy, informed scepticism is the correct approach.
| Property | Classical Bit | Qubit |
|---|---|---|
| Basic Unit | A binary switch, representing either 0 or 1. | A quantum-mechanical system with two basis states, |0⟩ and |1⟩. |
| State | Definite and exclusive (is 0 or is 1). | A superposition of its basis states, described by probability amplitudes. |
| Core Principle | Boolean logic (AND, OR, NOT gates). | Quantum mechanics (superposition, entanglement, interference). |
| Basis of Power | Processing a vast number of simple states very quickly and reliably. | Manipulating a complex vector of amplitudes to achieve constructive and destructive interference. |
Key takeaways
- Quantum computers gain power from quantum interference, not from trying all answers at once.
- Algorithms like Shor's and Grover's offer speedups for specific problems, not all computational tasks.
- Decoherence (noise) is the biggest obstacle, requiring complex error correction and many physical qubits to create one stable logical qubit.
- The most likely near-term application is in quantum simulation for chemistry and materials science.
- Today's quantum devices are small, noisy, and experimental; useful, large-scale quantum advantage remains a future goal.
- The threat to current encryption has spurred the development of post-quantum cryptography (PQC) for conventional computers.
Frequently asked questions
Will a quantum computer replace my laptop?
No. Quantum computers are not designed for everyday tasks like browsing the internet, sending email, or word processing. They are specialised machines intended to solve specific, complex problems that are intractable for classical computers. They will likely exist as specialised co-processors or cloud resources for scientific and industrial research, not as personal devices.
How does entanglement fit into all this?
Entanglement is a quantum phenomenon where two or more qubits become linked in a way that their fates are correlated, regardless of the distance separating them. In quantum algorithms, entanglement is a crucial resource. It creates complex correlations between qubits that cannot be efficiently simulated classically, allowing for the rich, high-dimensional computational space where interference can be powerfully exploited. It's an essential ingredient for creating the complex quantum states that enable speedups.
Is my encrypted data unsafe right now?
No, your current data protected by standard encryption like RSA is safe today. The quantum computers that exist are far too small and noisy to run Shor's algorithm against any realistically sized encryption key. The concern is for 'harvest now, decrypt later' attacks, where encrypted data is stolen today with the hope of decrypting it in the future. This is why governments and standards bodies are already working to transition to post-quantum cryptographic standards.
How far away are useful, large-scale quantum computers?
Estimates vary widely and are highly speculative. Most experts believe it will take at least another decade, and possibly much longer, to build a fault-tolerant quantum computer capable of breaking modern encryption or solving large-scale commercial problems. Progress on noisy, intermediate-scale quantum (NISQ) devices may yield advantages on specific simulation or optimisation problems sooner, but this is an active area of research, not a certainty.
What is a quantum annealer?
A quantum annealer is a less general, more specialized type of quantum computer. Instead of using quantum gates to run arbitrary algorithms, it is designed to find the minimum value of a specific kind of optimization problem (finding the 'lowest energy state' of a system). It is not a universal quantum computer and cannot run algorithms like Shor's. However, it may be useful for problems in logistics, scheduling, and financial modeling.
Can I program a quantum computer today?
Yes. Several companies, including IBM, Google, and Amazon, provide public access to their real quantum hardware via the internet. These machines are not personal devices. Instead, researchers and developers access them remotely, much like other specialised systems. This model of shared access is central to the field of <a href="/what-is-cloud-computing">What Is Cloud Computing? Everything You Need to Know</a>. You can use open-source software development kits to write simple quantum circuits and run them on these noisy, experimental processors.
Keep reading on Novapedia
- Quantum Mechanics in Four Slits
The principles of this field govern the behaviour of qubits, which has no parallel in our everyday experience.
- Cybersecurity Explained: Common Threats and How to Stay Safe
Understanding the risk Shor's algorithm poses to public-key cryptography is a key part of modern cybersecurity.
- What Is Cloud Computing? Everything You Need to Know
This model of shared, remote access to specialised hardware like quantum computers is central to the field of cloud computing.
Further reading
Authoritative external sources for readers who want the primary material.
- Post-Quantum Cryptography — NIST.gov
- Quantum supremacy using a programmable superconducting processor — Nature
- Polynomial-Time Algorithms for Prime Factorization and Discrete Logarithms on a Quantum Computer — arXiv.org
- Quantum Computing Report — National Academies Press