Introduction to Quantum Computing
Quantum Computing: Foundations, Algorithms, and Engineering
From quantum physics to quantum technology
Quantum 1.0 refers to the first quantum revolution: the discovery that nature is fundamentally quantum mechanical, even though it often appears classical in everyday situations. The development of quantum mechanics in the early twentieth century made it possible to understand technologies that are classical in operation but depend on quantum principles in their foundations.
Quantum 2.0 refers to technologies that use quantum properties directly, rather than merely relying on quantum physics to explain how materials work. Quantum computing is one such technology: it encodes and processes information using quantum states.
The history of classical computing illustrates how long it can take to turn a scientific principle into a mature technology:
Vacuum tubes were developed in the early twentieth century and were used in radios for decades before being employed in computers such as ENIAC.
Transistors, developed at Bell Labs in 1947, enabled smaller and more reliable computers. Early transistorized machines still used individually connected components and magnetic-core memory.
Integrated circuits, developed in the late 1950s and improved through the following decades, placed multiple components on a single chip.
By the 1970s, microprocessors such as the Intel 4004 had begun to resemble modern computer chips, though they contained only a few thousand transistors.
Later processors, including the Pentium Pro, contained millions of transistors. Modern processing systems can contain tens or hundreds of billions of transistors.
This progression took well over a century. Quantum computing is much earlier in its development and requires the same kind of sustained engineering effort: a scientific principle is only the starting point for building a useful, reliable machine.
In the 1980s, physicists including Richard Feynman argued that quantum systems could be difficult to simulate efficiently with classical computers. A quantum computer could potentially simulate them more naturally because it too follows quantum mechanics. In the mid-1990s, algorithms such as Peter Shor’s factoring algorithm demonstrated that a quantum computer could also solve certain important computational problems in ways that might outperform classical computers.
Small quantum computers, containing roughly hundreds to thousands of qubits in the period described, can run algorithms and demonstrate quantum effects. Their size and error rates, however, limit their usefulness for many commercially valuable tasks. Large-scale applications—such as accurately modeling complex pharmaceutical molecules—would generally require much larger, error-corrected quantum computers.
Key takeaway: Quantum computing is an emerging technical field, not merely a theoretical possibility. But turning functioning small devices into reliable, commercially useful systems requires substantial advances in hardware, software, and error correction.
Qubits and quantum states
A classical bit stores one of two discrete values: 0 or 1. A transistor, for example, can represent these values using two voltage ranges. Modern classical transistors are highly reliable, so hardware errors are uncommon in ordinary computing.
A qubit, or quantum bit, is a quantum-mechanical two-level system. Its two basis states are conventionally labeled ∣0⟩ and ∣1⟩. Unlike a classical bit, a qubit can also be in a superposition of these basis states:
Here, α and β are complex-valued probability amplitudes. They must satisfy the normalization condition
The amplitudes determine the probabilities of measurement outcomes. Measuring the qubit produces the result 0 with probability ∣α∣2 and the result 1 with probability ∣β∣2.
The Bloch sphere
A qubit’s pure state can be represented as a point on the Bloch sphere:
The north pole represents ∣0⟩.
The south pole represents ∣1⟩.
Points between the poles represent superpositions of ∣0⟩ and ∣1⟩.
A general pure qubit state can be written as
The angle θ determines the state’s position from north to south, while ϕ specifies its phase around the sphere. On the equator, the two basis states have equal measurement probabilities, though their relative phase can still differ.
A superposition is not simply a classical bit that secretly has one definite value or the other. It is a single quantum state with amplitudes for both outcomes. Measurement converts the quantum state into a classical result. For an equal superposition, repeated measurements yield 0 and 1 with equal probabilities.
Multiple qubits and exponential state spaces
A system of n classical bits can occupy one of 2n possible bit strings at a time. For example, three bits can hold one of eight strings, ranging from 000 to 111.
A system of n qubits has 2n basis states and can occupy a superposition of them:
The amplitudes cx are complex numbers, with
For three qubits, the state includes eight amplitudes, one for each basis state. Because the amplitudes are complex, representing a general state requires storing both real and imaginary components for each one.
The exponential growth in the number of amplitudes is one reason why simulating quantum systems can become difficult for classical computers. It does not, however, mean that a quantum computer simply calculates every possible answer and then reveals them all. Measurement returns only one result. Quantum algorithms must arrange the amplitudes so that useful answers are likely to appear when measured.
Quantum parallelism and interference
The behavior of quantum algorithms depends on the ability to transform many amplitudes through operations on qubits, and on the ability to make amplitudes reinforce or cancel one another.
Quantum parallelism
A gate applied to a qubit that is part of a superposition acts linearly on all components of that superposition. Thus, an operation on one qubit can change amplitudes associated with many basis states at once.
For example, a pulse that flips one qubit in a three-qubit register changes the first bit in every basis state where that bit occurs. The pulse acts on one physical qubit, but its effect is reflected across the superposition of the register’s basis states. This is often called quantum parallelism.
Quantum interference
Quantum amplitudes can add or subtract because they have both magnitude and phase. When amplitudes leading to the same outcome reinforce one another, they interfere constructively. When they cancel, they interfere destructively.
A rotation can transform a basis state into a superposition with a positive relative phase, while applying the same rotation to the opposite basis state can produce a relative minus sign. If two paths contribute equal and opposite amplitudes to an outcome, that outcome’s total amplitude becomes zero.
Quantum algorithms use interference to increase the amplitudes of desired results and reduce the amplitudes of undesired ones. This is the essential link between quantum parallelism and useful computation: applying operations to a large superposition is not enough; the operations must create a pattern of interference that favors the answer.
Quantum gates and entanglement
Classical computing uses logic gates such as NOT, AND, and OR. A small collection of suitable classical gates forms a universal gate set, meaning that it can implement any Boolean computation.
Quantum computation likewise uses gates. Single-qubit gates correspond to rotations of a qubit state on the Bloch sphere. Examples include rotations associated with the x-, y-, and z-axes. A quantum X gate is analogous to a classical NOT gate: it exchanges the states ∣0⟩ and ∣1⟩.
Quantum gates are reversible operations. A universal set for quantum computation requires both single-qubit operations and at least one suitable two-qubit gate.
Controlled-NOT
The controlled-NOT, or CNOT, gate acts on a control qubit and a target qubit:
If the control qubit is ∣0⟩, the target is unchanged.
If the control qubit is ∣1⟩, the target is flipped.
For basis-state inputs, it maps
where ⊕ denotes addition modulo two. CNOT is a quantum counterpart of the classical exclusive-OR operation.
Entanglement
A two-qubit gate can create entanglement, a form of correlation that cannot be described as each qubit having its own independent state. For example, applying CNOT to a control qubit in an equal superposition and a target qubit in state ∣0⟩ produces
This is a Bell state. The two qubits are not independently in separate states: their measurement outcomes are linked. Entangling gates are essential to universal quantum computation because they allow a quantum computer to create correlations that single-qubit operations alone cannot produce.
How a quantum algorithm produces an answer
A common conceptual starting point for an algorithm is an equal superposition of possible input or answer states. A sequence of single-qubit and two-qubit gates then changes the amplitudes of those states.
The goal is not to preserve all possible answers equally. Instead, the algorithm is designed so that:
Interference enhances the amplitudes associated with useful answers.
Interference suppresses amplitudes associated with incorrect or less useful answers.
Measurement converts the final quantum state into a classical result.
The probability of measuring a basis state ∣x⟩ is the squared magnitude of its amplitude, ∣cx∣2. Ideally, the correct answer has probability close to one at the end of the computation.
A quantum computer does not output all 2n results from a superposition of 2n states. It produces one measurement result, with the algorithm using interference to make useful results more likely.
Quantum algorithms and possible applications
Different quantum algorithms offer different kinds of improvements, and their value depends on the problem being solved.
Quantum simulation
Quantum simulation aims to model quantum systems such as molecules, materials, and chemical reactions. Classical simulation can become extremely demanding as the system grows, making quantum simulation a leading candidate for commercially important applications, including chemistry and pharmaceutical research.
Factoring
Shor’s algorithm efficiently factors integers on a sufficiently large, error-corrected quantum computer. Because some public-key cryptographic systems rely on the difficulty of factoring, a large fault-tolerant quantum computer could threaten those systems. This motivates work on security measures designed to withstand attacks by quantum computers.
Linear systems
The Harrow–Hassidim–Lloyd algorithm addresses certain linear systems of equations. Its usefulness depends on the problem’s structure and on how the desired output is used; it does not mean that every linear system can automatically be solved faster in every practical setting.
Optimization
Quantum algorithms for optimization are actively studied because optimization problems arise in many commercial settings. The degree of potential benefit depends heavily on the specific problem, including whether an exact answer is necessary or whether a high-quality approximate answer is sufficient.
Search
Grover’s algorithm searches an unstructured set of possibilities with a quadratic improvement over classical search. For a search space of size N, its query scaling is on the order of N rather than N. This is a significant improvement for large problems, but it is not an exponential speedup.
Commercial advantage
A promising commercial quantum application must satisfy several conditions:
There is no sufficiently fast classical algorithm for the problem.
There is a quantum algorithm that solves it efficiently.
The problem has practical or commercial value.
A theoretical quantum speedup is not automatically useful if the problem itself has little practical relevance. Commercial advantage lies where computational need, an effective quantum algorithm, and real-world value overlap.
Polynomial and exponential improvements
Quantum speedups can differ greatly in scale.
A polynomial improvement changes the exponent or other polynomial factor in a resource requirement. For example, reducing a cost from n to n can be valuable, but the overall scaling remains polynomial.
An exponential improvement changes a resource requirement such as 2n into a polynomial such as n3. This can transform a problem from infeasible to feasible as n grows.
These distinctions matter because the difference between polynomial and exponential scaling becomes increasingly large for large inputs. Grover’s search algorithm gives a quadratic improvement, while algorithms such as Shor’s can provide much more dramatic scaling improvements for particular problems.
Classical simulation of quantum states
A classical computer simulating a general n-qubit state must keep track of up to 2n amplitudes. This grows rapidly:
A state of about 30 qubits may be representable on a powerful laptop.
Around 50 qubits can require supercomputer-scale memory.
At about 80 qubits, the memory requirement becomes enormous.
At around 160 qubits, a thought experiment might assign one memory bit to every silicon atom on Earth.
At around 300 qubits, the required number of memory elements would exceed the number of atoms in the observable universe.
These estimates illustrate the scale of exponential growth. They do not explain how to build a quantum computer, nor do they establish that every computation on a quantum computer is hard to simulate classically. They show why general quantum-state simulation becomes intractable as the system grows.
Coherence, gate time, and hardware performance
A qubit’s coherence time describes how long its quantum state retains the phase relationships needed for computation. Interactions with the environment can disturb those relationships through temperature fluctuations, magnetic-field fluctuations, control errors, and other noise.
As coherence is lost, the state becomes less reliable. The intended sequence of operations may no longer lead to the correct endpoint, because noise has altered the system during the computation.
A second important quantity is gate time: how long it takes to perform an operation. A useful hardware comparison considers how many operations can be carried out before errors become likely. A long coherence time is valuable only if gates can be performed and measured effectively during that time.
Gate performance is often described by fidelity, the probability that an operation is performed correctly. For example, an error rate of one in one hundred corresponds to a fidelity of roughly 99%, while an error rate of one in one thousand corresponds to roughly 99.9%.
A useful device must balance:
Gate speed: how quickly operations can be performed.
Gate fidelity: how reliably the operations work.
Coherence: how long quantum information remains usable.
Control and measurement: whether the device can be manipulated and read out effectively.
Single-qubit gates are not enough for universal computation. Two-qubit gates are also required, and these are generally more difficult to perform because they involve coordinated operations between qubits. They are often slower or less reliable than single-qubit gates. Therefore, platform comparisons must consider both kinds of gates.
Quantum-computing hardware platforms
Qubits can be implemented using different physical systems. Two broad approaches are natural atomic systems and engineered circuits that imitate atoms.
Natural atoms and ions
Atoms have discrete energy levels determined by their structure. Selected levels can serve as the ∣0⟩ and ∣1⟩ states of a qubit. Trapped ions are one important approach, with very high single-qubit gate fidelities; improving two-qubit gate performance and speed is an important engineering goal.
Neutral atoms are another platform that has made substantial progress. Atomic systems can offer strong performance in some measures, but their overall usefulness depends on gate quality, speed, scalability, and the requirements of error correction.
Defects and silicon-based systems
Defects in materials such as silicon can be used as qubits and are also valuable for quantum sensing, including magnetic-field sensing. Silicon quantum dots are especially interesting because they resemble semiconductor technologies used in classical electronics.
Superconducting circuits
Superconducting qubits are artificial atoms made from electrical circuit components. They can support fast operations, but maintaining high fidelity and reliable control remains essential.
No single platform is a clear winner across every performance measure. Different technologies may improve at different rates, and the dominant technology may evolve as the field matures.
Superconducting qubits: circuit design and operation
From an oscillator to a qubit
An LC circuit contains an inductor and a capacitor. Quantum mechanically, an LC oscillator has discrete energy levels, with a characteristic angular frequency
The energy spacing between adjacent levels is related to ℏω. At room temperature, thermal energy typically obscures the circuit’s discrete quantum behavior. At sufficiently low temperatures, the energy levels can be distinguished.
A harmonic oscillator has evenly spaced energy levels. This creates a problem for qubit use: if a pulse drives the transition from level 0 to level 1, it may also drive the transition from level 1 to level 2, because those transitions have the same frequency. The system can then leave the intended two-level computational subspace.
Josephson junctions and anharmonicity
A Josephson junction consists of two superconducting leads separated by a thin tunneling barrier. For qubit circuits, it behaves as a nonlinear inductor: its effective inductance depends on the current through it.
This nonlinearity changes the circuit’s potential from a parabolic shape to a cosine-like shape. The resulting energy levels are anharmonic, meaning that the 0-to-1 transition frequency differs from the 1-to-2 transition frequency. A pulse can then be tuned to the desired transition while being off-resonant with unwanted transitions.
The transmon is a widely used superconducting qubit based on this principle. Its design makes it possible to isolate the lowest two energy levels as the computational states.
Cooling and fabrication
Superconducting qubits generally operate at temperatures of only a few tens of millikelvin. For a qubit with a frequency around 5 gigahertz, the energy scale is approximately E=ℏω=hf, corresponding to a temperature scale of roughly 250 millikelvin. Operating at a much lower temperature—around 20 millikelvin in the example described—reduces thermal excitation.
Dilution refrigerators provide these temperatures and house the associated wiring, filters, switches, and control equipment. Superconducting qubits are fabricated on silicon wafers using integrated-circuit techniques. Circuits may include capacitors and small loops containing Josephson junctions. A loop with two Josephson junctions is a SQUID; applying magnetic flux through it can tune the qubit’s frequency.
Microwave control
Superconducting qubits are controlled using microwave pulses. The pulse area and phase determine the rotation applied to the qubit state:
A pulse with the appropriate area can produce a rotation of π, exchanging the two basis states.
A pulse with an area of π/2 produces a half-turn.
In-phase and quadrature components, often called I and Q, provide control over the pulse phase. A phase shift of 90 degrees allows rotations around different axes of the Bloch sphere.
Reported superconducting systems have achieved single-qubit fidelities above 99.99% and two-qubit fidelities above 99.9% in the examples described. Continued improvement depends on materials research, circuit design, fabrication, cryogenic engineering, control systems, and repeated testing.
Over several decades, coherence times for qubits have improved from around a nanosecond to a millisecond or more in some systems. This dramatic progress is one reason superconducting technology is being pursued, though coherence time alone does not determine computational usefulness.
Quantum error correction and logical qubits
Physical qubits are imperfect. Their error rates may range from roughly one error in one hundred operations to one in ten thousand, depending on the device and operation. Practical computations may require vastly more operations than this, potentially billions or trillions. Without error correction, errors would accumulate and eventually overwhelm the computation.
Quantum error correction addresses this problem by encoding one logical qubit across a larger group of physical qubits. Rather than relying on one physical qubit to store information, a code distributes the information so that the system can detect and correct certain errors without directly measuring and destroying the encoded quantum state.
Some qubits in an error-correcting code act as ancillas. They are measured to obtain information about error patterns, called syndromes. These measurements help identify which errors may have occurred while preserving the encoded logical information.
The encoded unit is called a logical qubit. It requires more physical operations than a single physical qubit, so it carries an overhead. However, if the physical qubits are sufficiently reliable, a logical qubit can have a substantially lower error rate than any individual physical qubit.
The threshold principle
Error correction works effectively only when physical errors are below a certain threshold. Below that threshold, increasing the size of the code can reduce the logical error rate. Above the threshold, adding more physical qubits may fail to help and can make the system harder to manage.
Code size is often described using a code distance. A larger distance provides stronger protection, but it also requires more physical qubits and more operations. In the demonstrations described, codes with distances 3, 5, and 7 showed decreasing logical error rates as the code size increased. This behavior is called below-threshold scaling: enlarging the encoded system reduces its logical error rate rather than increasing it.
Error correction therefore exchanges hardware overhead for reliability. Its success depends on physical qubits being good enough that the benefit of encoding outweighs the added operations.
Key takeaway: A useful fault-tolerant quantum computer will not be built simply by connecting more physical qubits. It requires physical qubits below the error-correction threshold, together with codes and control systems that make larger logical qubits increasingly reliable.
The central engineering goal is to build systems that are robust, reproducible, and extensible, so that increasing the number of physical qubits can support larger and more reliable logical computations.

Ask anything
We've read this whole study set, so questions about it get the best answers.