Skip to main content
U.S. flag

An official website of the United States government

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Secure .gov websites use HTTPS
A lock ( ) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

Quantum Computing Explained

Three qubits appear in an artist’s conception as X-shaped icons that fit together.
Credit: Chalmers University of Technology/Boid AB/NIST

A computer that could break the encryption that safeguards your private information on the internet. A machine that can design powerful new drugs by precisely simulating the behavior of individual molecules. A device that optimizes complex supply chains to help companies get the parts they need and assemble them in the most efficient way possible.

These are all examples of how an emerging technology — the quantum computer — could change our world.

These computers work by harnessing quantum physics — the strange, often counterintuitive laws that govern the universe at its smallest scales and coldest temperatures. Today’s quantum computers are rudimentary and error-prone. But if more advanced and robust versions can be made, they have the potential to rapidly crunch through certain problems that would take current computers years. That’s why governments, companies and research labs around the world are working feverishly toward this goal.

Quantum computers will not replace our familiar “classical” computers. Rather, the two types of machines could work together to solve problems that stymie classical computers, potentially supercharging scientific research in fields such as materials and drug discovery, giving a boost to industry and upending cybersecurity as we know it.

Let’s explore how quantum computers work.

What is quantum, anyway?

Quantum physics describes the universe at its smallest and most fundamental scales — think atoms and molecules; light and energy. Things at these scales behave very differently from everyday objects we’re familiar with.

One of the most important differences involves a concept called superposition. Let’s start by considering an everyday, human-scale object such as a person on a ladder. Depending on which rung the person stands on, they have a certain amount of potential energy. (This potential energy determines how fast the person would be moving when they hit the ground if they were to jump off the ladder.) A person on the ground has the smallest possible amount of energy in this system. Someone on the first rung has slightly more energy, and so on up to the highest rung.

By contrast, tiny objects such as atoms can act as though they have two or more distinct amounts of energy at once. In our ladder example, this would be akin to simultaneously standing on the ladder’s lowest and highest rungs — something that makes no sense for a person.

Once placed into this kind of mixed energy state, known as a “quantum superposition,” an atom will remain there until it is measured or disturbed by the outside world. Then the atom “collapses” to a single energy state — following our analogy, to either the low or high rung of the ladder.

Superposition: A circle is split, with halves marked 0 and 1. When a ruler appears, the entire circle becomes 1.
A particle starts out in a quantum superposition of energy state 0 and energy state 1. When the particle is measured (represented by a ruler), it must instantaneously and randomly “collapse” to be either fully in state 0 or state 1.
Credit: N. Hanacek/NIST

To cast this idea into familiar terms, the famous physicist Erwin Schrödinger came up with a memorable, though absurd, thought experiment: Imagine a perfectly sealed box containing a cat and a poison trap that can be triggered by the decay of a radioactive atom. Because the decay of the atom is uncertain, at any given time, the cat is in a superposition of dead and alive. Only when someone opens the box and measures the cat does its state “collapse” to being either definitively alive or definitively dead. Real cats can’t be both alive and dead, of course, but Schrödinger’s imaginary cat has become an enduring metaphor to help people grapple with the strangeness of superposition.

Building on the superposition concept, multiple atoms or other quantum objects can be entangled with each other to share a single quantum state. Now imagine several cats in Schrödinger’s box, potential victims of the same trap. These cats are “entangled” in a superposition of all being alive or all being dead. When someone opens the box, not just the state of one cat but those of all the cats immediately collapse, and each cat is found to be fully alive or fully dead. 

“Entanglement means you’ve got at least two things that are always connected; they have no independent existence,” explains NIST physicist Andrew Wilson. 

Entanglement: Two circles connected with a wavy line are each split, with halves marked 0 and 1. When a ruler appears, one circle becomes entirely 0 and the other is entirely 1.
A pair of particles start out each in a quantum superposition of energy state 0 and energy state 1. Because the particles are also entangled with each other, when one is measured (represented by a ruler), both must randomly “collapse” such that one is fully in state 0 and the other is fully in state 1. The collapse is instantaneous for both particles, no matter how far apart they are.
Credit: N. Hanacek/NIST

These scenarios strike us as absurd when applied to familiar objects such as cats. But at the atomic level, this is how the world works. Tiny objects such as atoms can exist in multiple states simultaneously. And these states can be entangled with those of other objects even when the objects are far apart. “Let’s say you have an entangled pair of particles and you put one on the Moon and the other on the surface of the Earth. If you then do something to the one on the Earth, you simultaneously affect the other,” Wilson says. “It’s kind of romantic!”

We’ll soon explore how physicists use these ideas to build quantum computers. But first we need to understand ...

What is a computer?

These days, we use computers for just about everything: gaming and streaming, banking and shopping, following our favorite sports teams and chatting with friends and family members. But we rarely think about what a computer is or how it works.

At its most fundamental level, a computer is any device that takes in data, processes it, stores it and spits it out. The phones in our pockets, the servers in data centers, the microprocessors in our cars and the room-sized supercomputers at national labs: All of these digital computers encode and process information using “bits.” Bits are “binary digits” that encode information — text, graphics and so on — as 1s and 0s. For example, computers typically represent the letter “A” using the bit string “01000001.”

But bits, like the computers they are part of, are not just mathematical concepts. They need to be realized in physical objects such as tiny bar magnets or electric switches that can be placed into one of two distinct states, say pointed up or pointed down.

Bits are very good at what they do. Put a bit into a “0” or “1” state and it will usually stay there for a long time, meaning the information it encodes is stable and long-lasting. But bits are also limited.

Quantum computers also have input, output, information processing and memory. But instead of regular classical bits, quantum computers use quantum bits, or qubits. Like Schrödinger’s unfortunate cat, qubits can be put into superpositions of multiple states. In other words, a qubit can be in state 0, state 1, or a mix of the two. And the quantum states of individual qubits can be entangled with each other.

These capabilities give quantum computers their superpower. Whereas two classical bits contain just two pieces of information (0 and 1, for example, or 1 and 0), two qubits can contain a superposition of four combinations of 0s and 1s simultaneously. Three qubits can contain eight combinations; four qubits, 16 combinations and so on. Each additional qubit doubles the number of combinations: an exponential increase.

Someone using a quantum computer must first entangle qubits to harness their exponential computing power. The operator then carries out operations on the qubits, such as addition, multiplication or more complicated computations. Depending on the type of quantum computer, electromagnetic signals or lasers create the entanglement and operations.

Though they are capable of exponential computation, quantum computers are limited in the amount of data they can extract from these computations — a fact that’s often lost in popular descriptions giving the impression that quantum computers try every solution to a problem at once.

“Different computations can indeed be done in superposition, achieving a kind of parallel computing,” says Stephen Jordan, a Google quantum computing researcher who was a longtime NIST staff member and Joint Center for Quantum Information and Computer Science fellow. “But contrary to popular belief, this doesn’t allow quantum computers to do an efficient ‘brute force’ search over all the potential solutions.

“The measurement at the end of the computation can only extract a small amount of information about the results of all of these computations,” Jordan explains. “The key is to design the measurement so that it extracts useful information about the whole set of results done in superposition.”

(Note: This article describes quantum computers that do computations using logic gates, similar to classical computers. Some scientists and companies are pursuing another technology known as “quantum annealing” that could be used to solve certain physics and optimization problems faster than classical computers can.) 

What could quantum computers do?

At a 1981 gathering of physicists outside Boston, the famous physicist Richard Feynman spoke about the possibility of “simulating physics with computers.” Though other scientists had independently developed similar ideas around the same time, Feynman’s talk is often credited with launching the field of quantum computing.

Since then, scientists have explored how quantum computers could, in theory, simulate the fundamental quantum rules that govern molecules, chemicals and materials — something today’s computers can only approximate with great effort. If quantum computers eventually become large and powerful enough, scientists hope that such quantum simulations could bring about major advances in materials science, drug development and other areas. Potentially transformative “killer apps” for quantum simulation could involve discovering a new blockbuster drug or chemical catalysts that make the production of fertilizer or the capture of greenhouse gases from the air more efficient.

In 1994, a mathematician named Peter Shor published a paper about a very different application that instantly made quantum computing a national security issue. The algorithms that encrypt much of our data work by multiplying very large prime numbers together to create a secret key — something that’s very hard for classical computers to undo. Shor’s paper described a quantum algorithm that could quickly factor the immense numbers that are products of these huge prime numbers, potentially putting much of the world’s encrypted information at risk.

Scientists also believe quantum computers could outpace classical computers at solving complicated optimization problems such as helping companies organize complex processes such as airplane assembly in more efficient ways.

Most of these applications are years — perhaps even decades — in the future. But scientists have started to publish papers claiming that quantum computers have demonstrated a “quantum advantage,” meaning they can outdo classical computers for certain tasks. Quantum computers have been used to calculate the energies of small molecules, for example, and simulate the magnetic properties of collections of interacting atoms.

So far, none of these early demonstrations have proved truly useful, says Scott Glancy, a physicist at NIST. And in some cases, scientists later showed that traditional computers could equal or exceed the performance of quantum processors for some tasks. The demonstrations do, however, prove that quantum computers work and can be scaled up.

“It seems to me we’re just on the threshold of quantum systems doing genuinely new simulations that we can’t do classically,” says Glancy.

Beyond these practical applications, quantum computers could offer a new way to probe the fundamental nature of reality. A full-scale quantum computer, if successfully built, would contain some of the most complex quantum states ever created (assuming aliens have not already built such devices). Those states would provide an important, albeit not surprising, confirmation of quantum theory. 

If, on the other hand, scientists find that a large-scale quantum computer cannot be built, that would be “shocking,” says Glancy. “It might inspire a revolution in physics. In my opinion that is a good reason to build a quantum computer.”

Why don’t we have quantum computers today?

Qubits are exquisite but fragile. A stray electric or magnetic field, temperature fluctuations or even a cosmic ray can ruin a superposition or entanglement. This forces qubits into a 0 or 1 state in which they act like ordinary bits. Anyone building a quantum computer must find ways to manipulate the qubits carefully while protecting them from outside disturbances.

Moreover, a single qubit by itself is worth little. For a quantum device to do something useful, many qubits must be entangled with each other while sustaining superpositions. The best quantum computers today contain hundreds of interconnected qubits and make an error roughly once in every thousand operations. An error changes the state of a qubit, destroying or corrupting the information it carries.

(By contrast, a classical computer makes around one error, such as a bit randomly flipping from 0 to 1, for every quintillion — 1 followed up 18 zeroes — calculations. And correcting errors in a classical computer is much easier.)

Industry, university and government researchers around the world are racing to make more reliable qubits and build electronics and laser systems that create entanglement more efficiently and robustly. And they are experimenting with many kinds of qubits. In theory, any particle or system that obeys the rules of quantum physics, from atoms to tiny circuits to semiconductors, can act as a qubit.

Each qubit has advantages and disadvantages. For example, one of the most popular qubit types uses electrically charged atoms known as ions. The quantum energy states of electrons inside these ions represent the 0s and 1s (and combinations thereof) for quantum computation. Ion qubits can sustain quantum superpositions for a long time, but they are relatively sluggish at performing computations.

Square device surrounded by a design of gold wiring.
A gold-on-alumina ion trap inside a case that protects ions from electrical interference.
Credit: Blakestad/NIST

Another popular qubit uses tiny circuits made from superconductors — materials that conduct electricity without resistance at very cold temperatures. The behavior of the electrons in the circuits creates quantized energy states that can be used to encode 0s and 1s. These qubits allow for fast computations and can be made using existing chip manufacturing techniques. But their quantum states are more fragile and shorter-lived than those of ion qubits.

Colorized micrograph of superconducting circuit
A chip combining a superconducting qubit (pink) for storing quantum information, a quantum bus (green) for transporting information, and a switch (purple) that tunes interactions between the other two components.
Credit: M.S. Allman/NIST

Scientists are also experimenting with qubits based on arrays of neutral (non-electrically charged) atomsatoms embedded in diamondsparticles of light known as photons and small bits of silicon.

Some researchers are also trying to develop a radically different type of qubit, known as a “topological” qubit, that would have some built-in immunity to errors. In theory, topological qubits could encode quantum information into the braiding pattern of “quasiparticles” that emerge from the collective behavior of individual particles such as electrons. These braiding patterns, and thus the quantum states, would be protected from some of the outside disturbances that can disrupt other qubits. 

Topological qubits require temperatures near absolute zero and complicated structures often involving superconducting and semiconducting materials. They have proved challenging to build, and researchers are still seeking definitive evidence that they have managed to make one. 

Ultimately, quantum computers may marry multiple kinds of qubits so that each can play to its strengths. Superconducting or photonic qubits could crunch through operations quickly, for example, then transfer their information to ion or diamond qubits for storage.

Qubit Contenders

Qubit typeImageDescription
Trapped ion
Four circles with plus signs inside a lined up horizontally between two vertical lines.
Electrically charged atoms are trapped using electric and/or magnetic fields so that they hover inside a vacuum chamber. Their quantum states can be controlled and measured with laser light and electromagnetic fields.
Neutral atom
Lines of red dots are arranged in a diamond shape.
Neutral (uncharged) atoms are trapped using laser light so that they hover inside a vacuum chamber. Their quantum states can be controlled and measured with laser light and electromagnetic fields.
Superconducting
An outline of a chip shape has one wire going off to the left.
Tiny integrated circuits on a chip are cooled to near absolute zero temperature. At these temperatures, the behavior of the electrons in the circuits creates quantized energy states that can be observed and manipulated using weak electromagnetic signals.
Semiconducting
Circle is shaded left to right from red to blue.
Electrodes are used to trap electrons inside a tiny region of a semiconductor material (such as silicon) that is cooled to near absolute zero. The electron’s quantum state can be controlled and measured with electromagnetic fields.
Photonic
A wavy horizontal line has an arrow at the end.
Individual particles of light (photons) can encode quantum information in their polarization, wavelength, time of arrival, or even the number of photons. Devices such as beamsplitters and single-photon detectors are used to control and measure the encoded quantum states.
Topological
Two vertical lines weave over one another.
This hypothetical type of qubit, which has not yet been created in the lab, would encode quantum information by braiding “quasiparticles” that emerge from the collective behavior of individual particles such as electrons. The quantum states would be encoded in how the braid is twisted, helping to protect them from outside disturbances. The states would be controlled and measured using magnetic and electric fields.

An overview of some of the most-studied and best-funded qubit types. 
Image credits: N. Hanacek/NIST

Where are we headed?

In the near term, quantum computer designers hope to build machines that are sophisticated and stable enough to do useful tasks that traditional computers can’t do. Some researchers expect these “noisy intermediate-scale” quantum computers to excel at simulation; others are skeptical. Current quantum computers are being used mainly to explore certain physics, chemistry and mathematical problems and as test beds to understand how to make more powerful quantum computers.

For other tasks, such as running Shor’s code-breaking algorithm, a quantum computer may need millions of qubits that can run error-free indefinitely, like our classical computers do. Such a quantum computer is probably still much further away. 

(Even so, NIST has developed new algorithms that are thought to be quantum computer-proof and is encouraging businesses and government agencies to adopt them. Learn more about post-quantum cryptography.)

Many experts believe that because they are so complex and delicate, quantum computers will probably never sit on or desks or in our pockets. Rather, they may live inside commercial computing centers, national labs and universities, where they will crunch quantum information and deliver solutions that make our world smarter, safer and more efficient.

Created March 18, 2025, Updated March 24, 2025