Start here

What is quantum computing?

21 October 2026.

Quantum computing is a way of doing sums with qubits, which hold two numbers called amplitudes where an ordinary bit holds a single 0 or 1. A quantum computer runs gates that make those numbers add up or cancel out, so that when it reads the qubits at the end, the answer you want is the one most likely to come out.

The rest of this page unpacks it with small numbers you can check by hand, and links each new word to its entry in the Nerdictionary, the glossary on this site.

Quantum computing explained simply

An ordinary computer stores everything as bits. A bit is a switch, and it is always 0 or 1, whether or not anyone looks. The computer flips those switches by fixed rules, one step after another.

A quantum computer swaps the switch for a qubit. Before you read it, a qubit holds two numbers, one for the outcome 0 and one for the outcome 1. Square the size of each number and you get the chance of reading that outcome, so the two squares always add to 1. Three ideas do all the work.

  • Amplitudes. Each qubit carries a number for 0 and a number for 1. These numbers can be negative, which a chance never can.
  • Interference. Gates mix the numbers. Numbers with the same sign add, and numbers with opposite signs cancel.
  • Measurement. Reading a qubit gives one plain bit, 0 or 1, at random, with odds set by the squares. After that the qubit holds only the state you read.

A quantum program, drawn as a circuit, arranges the cancelling so the wrong answers fade and the right one grows before the final reading.

What is a qubit?

A qubit, short for quantum bit, is stored in something very small with two levels, such as two energy levels of an atom. When both of its amplitudes are nonzero, the qubit is in a superposition.

You will often read that a qubit is 0 and 1 at the same time. This site does not use that line, because it is wrong in a way that matters. A qubit holds two numbers, and each reading gives one bit. Nor is it secretly 0 or secretly 1, with a value you have not looked at yet. The worked example below shows the kind of test that tells these pictures apart.

Say a qubit holds 0.6 for 0 and 0.8 for 1. The chances are 0.6 × 0.6 = 0.36 and 0.8 × 0.8 = 0.64. Read 1,000 fresh copies and you should see about 360 zeros and 640 ones. Change the 0.8 to −0.8 and the counts look the same, yet it is a different state, because a later gate can tell the two apart. The amplitude entry works through more pairs like this.

How is a quantum computer different from a normal computer?

A normal computer reads and copies its bits freely, and reading a bit does not change it. A quantum computer differs in three ways.

  • Reading a qubit usually changes it. A measurement returns one bit and replaces the amplitudes with the state you just read.
  • You cannot copy an unknown qubit. No gate can copy a qubit you know nothing about, so you prepare fresh ones instead.
  • The amplitudes can cancel. Chances only ever pile up, but signed numbers can add to zero, which no coin toss can copy.

Writing qubits down on paper also gets costly fast. Two qubits need four amplitudes, one each for 00, 01, 10 and 11. Ten qubits need 1,024. Each qubit you add doubles the list an ordinary computer must keep. That does not mean the machine reads out 1,024 answers. Ten qubits still give ten bits when you read them.

A worked example, two coin tosses against two H gates

Here is the smallest sum that shows what is new. Toss a fair coin, then toss it again. You get heads half the time, however many tosses you add.

Now take a qubit certain to read 0, so its amplitudes are 1 for 0 and 0 for 1. Apply the Hadamard gate, written H. Its rule is to add the two amplitudes to get the new one for 0, take the second from the first to get the new one for 1, and divide both by the square root of 2, about 1.41.

  1. After one H the amplitudes are (1 + 0) ÷ 1.41 and (1 − 0) ÷ 1.41, about 0.71 and 0.71. Each square is a half, so a reading here is a fair toss, like the coin.
  2. Apply H again. The new amplitude for 0 is (0.71 + 0.71) ÷ 1.41 = 1. The new amplitude for 1 is (0.71 − 0.71) ÷ 1.41 = 0.
  3. The qubit now reads 0 every time.

Each 0.71 is short for 1 ÷ √2, so the sums come out exact. The coin tossed twice is still random. The qubit put through H twice is certain, because the two routes to a reading of 1 arrived with opposite signs and cancelled. That cancelling is called interference, and it is what a quantum computer is built to arrange. The note The sign is what cancels does the same sum route by route.

What can quantum computers do?

For most jobs, nothing better than your laptop. A quantum computer helps only where a clever circuit can steer the cancelling toward the answer. A few such circuits are known.

  • Factoring. Shor's algorithm finds the prime factors of a large whole number far faster than any known method for an ordinary computer. That matters because some of the locks that protect data online rely on factoring being hard.
  • Searching. Grover's search finds a marked item in a list with no pattern to exploit. The rounds it needs grow with the square root of the list's length, so a list four times longer needs about twice as many rounds, where a plain search needs about four times as many checks.
  • Simulating nature. Molecules and materials follow quantum rules, and a quantum computer may model them more directly than an ordinary one can. This is one of the oldest reasons given for building one.

Grover's gain is a square root and no more, and it is counted in calls to a checking circuit that someone has to build. Shor's algorithm, run on numbers of a useful size, needs a large machine with error correction.

Will quantum computers replace normal computers?

No. They are not faster at everything, and for email, games or spreadsheets they would be slower and far dearer. The likely picture is an ordinary computer that hands a few special tasks to a quantum one, much as it hands drawing work to a graphics card.

Can quantum computers break encryption?

Some of it, in principle, and not all of it. Shor's algorithm would break the public-key methods built on factoring or on a related problem called the discrete logarithm, which covers RSA and elliptic-curve keys. It needs a large, error-corrected machine to do so. Locks that use a shared secret key, such as AES, face only Grover's square-root gain, and a longer key answers that. Cryptographers have also designed new public-key methods meant to resist known quantum attacks.

Why are quantum computers hard to build?

A qubit keeps its amplitudes tidy only while it is shut off from the world. Heat and stray fields leak in and often scramble the sign between the two amplitudes first. That fading is called decoherence, and once the sign is gone the cancelling fails. Each device has a coherence time, roughly how long it keeps the sign, and a circuit must finish well inside it.

The fix is error correction, which spreads one protected qubit across many physical ones so slips can be found and repaired without reading the answer. Some designs, such as superconducting qubits, must also be cooled close to absolute zero. Others, such as trapped ions, hold single charged atoms still in a vacuum.

Where to go next

How does a quantum computer work? follows one circuit step by step, and Quantum gates explained lists what each gate does to the two numbers. For a reading order through the whole site, see Quantum computing for beginners. To get your hands on a qubit, turn one on the qubit page or try the puzzle.

Questions people ask

What is quantum computing in simple terms?

It is computing with qubits, which hold two numbers instead of one fixed 0 or 1. Gates make those numbers add and cancel so that, when the qubits are read, the wanted answer is the likely one.

Is a qubit 0 and 1 at the same time?

No. A qubit holds two numbers, called amplitudes, one for 0 and one for 1. Each reading gives a single bit, 0 or 1, with chances set by the squared sizes of those numbers.

Does a quantum computer try every answer at once?

No. Reading the qubits gives one result per run, not a list of every answer. A quantum computer helps only when a circuit can make the wrong answers cancel and the right one grow before that reading.

Is quantum computing real?

Yes. Small quantum computers exist and run circuits today. They are still noisy, so the long calculations people hope for, such as factoring large numbers, wait on bigger machines with error correction.

Do I need to know physics to understand quantum computing?

No. The core ideas need squaring, adding and negative numbers. Complex numbers help later, and the notes on this site explain them when they first appear.