Introduction to Quantum Computing


Introduction to Quantum Computing

Corey
Good morning, and welcome. Today we’re building an introduction to quantum computing: what a qubit is, how quantum operations differ from classical ones, what kinds of algorithms might benefit, and why engineering a useful machine is such a challenge.

Michael
And we’ll follow that path from the history of computing to today’s hardware. We’ll also spend time on superconducting qubits and quantum error correction, because those make the engineering challenges especially concrete.

Corey
A useful starting point is the idea of two quantum revolutions. The first, often called quantum 1.0, began when scientists recognized that nature is fundamentally quantum mechanical, even though it often looks classical to us. Understanding quantum mechanics made technologies possible that behave classically but couldn’t have been developed without that foundation.

Michael
The second revolution is sometimes called quantum 2.0: using quantum behavior directly to process information. But it’s worth remembering how long ordinary electronic computing took to mature. The first vacuum tubes appeared in 1906 and were used for radio before they were used in computers such as ENIAC.

Corey
Then came the transistor at Bell Labs in 1947, followed by transistor-based computers, integrated circuits in the late 1950s, and microprocessors such as the Intel 4004 in the 1970s. By the mid-1990s, Pentium Pro processors had millions of transistors. Modern systems can have around 100 billion transistors, but that progress rests on more than a century of development.

Michael
That history is a reminder not to judge quantum computing only by the machines available today. In the 1980s, Richard Feynman and others pointed out that simulating a quantum system can be extremely difficult for a classical computer, so perhaps a quantum system should be used to simulate it. Quantum algorithms began to take shape later, including Peter Shor’s algorithm for attacking public-key cryptosystems.

Corey
Shor’s algorithm drew attention to a security threat, but security alone wouldn’t necessarily create a broad commercial industry. Researchers also need algorithms for problems people and organizations would pay to solve. Many ideas for such applications took root in the mid-1990s, and today’s machines are a result of decades of further development.

Michael
Current quantum computers are real and can run algorithms, but they’re still relatively small—roughly 100 to 1,000 qubits in the description we’re discussing—and not yet large enough for broad commercial applications. A task such as finding a pharmaceutical formula would require a much larger, error-corrected machine. So the field is moving from scientific curiosity toward technical reality, but it still needs substantial engineering.

Corey
And that’s one reason companies and research groups need to be involved early. The lecture compares quantum hardware to classical chip-making: a mature industry didn’t appear simply because someone eventually figured out how to build a chip. It took sustained participation, technical knowledge, and development over time. Quantum computing has also moved from largely government-supported work, initially driven in part by security concerns, toward much broader commercial interest.

Michael
So what is the basic information unit? A classical computer uses bits, typically represented by transistor states called zero and one. A quantum computer uses qubits, which are quantum two-state systems. Two broad families are natural atoms, selected for suitable energy levels, and artificial atoms made from electrical circuits whose behavior can be designed to resemble atomic energy levels.

Corey
The Bloch sphere is a useful picture of a qubit. Imagine the North Pole representing zero and the South Pole representing one. A classical bit occupies one of those two states, but a qubit can also occupy other points on the sphere. Those points represent quantum superpositions of zero and one, with different weights and phases.

Michael
That superposition isn’t just a classical mixture in which the system is secretly either zero or one. It’s one quantum state with aspects of both. If a qubit is on the equator, the zero and one outcomes have equal weight. When we measure, however, we obtain a classical result: zero or one, with probabilities determined by the state.

Corey
For an equal superposition, measurement gives either result with a 50-50 probability. Measure a freshly prepared state again and the outcome is again probabilistic. That feature is one reason quantum information behaves so differently from information stored in ordinary transistors, which are designed to hold their classical state reliably.

Michael
Here’s the important distinction when we compare registers. With n classical bits, there are 2 to the n possible bit strings, but the computer stores one of those strings at a time. If you need to evaluate a function on every possible input, you may have to do it one at a time or use an exponentially large number of computers in parallel.

Corey
An n-qubit register can instead be in a superposition involving all 2 to the n basis states, each with its own coefficient. That does not mean we can read out all 2 to the n answers at the end. Before measurement, quantum operations change the coefficients; measurement ultimately gives one result. The potential advantage comes from using quantum parallelism and interference to make useful answers more likely.

Michael
Let’s make that less abstract with a spin. An electron in a magnetic field has two relevant spin states, which we can label zero and one. The Bloch sphere represents those as opposite poles, while other points correspond to superpositions. The state can be described with weights and phases, much like specifying a position using latitude and longitude.

Corey
Now imagine a register of three such spins. Classically, we can list its eight possible strings, from 000 through 111, and use one string at a time. Quantum mechanically, we can represent all eight possibilities together in a superposition, with complex coefficients. Because those coefficients are complex, describing the register requires both real and imaginary information.

Michael
A pulse can act on one spin and affect many parts of that superposition at once. For example, a pi pulse flips a spin from up to down or from down to up. Applied to just one spin in the register, it moves the coefficients associated with the different basis states around simultaneously. That’s the intuitive idea of quantum parallelism.

Corey
Interference is the other key idea. A pulse that rotates a spin by pi over two can take a pole state to the equator, creating a superposition. Depending on which pole the spin started at, the resulting terms can have opposite signs. When contributions later meet, they can reinforce one another or cancel.

Michael
If two contributions have equal size and the same sign, they add constructively. If they have equal size and opposite signs, they cancel destructively. Quantum algorithms make use of these changes in amplitudes across the state space: they aim to strengthen outcomes that help solve the problem and suppress outcomes that don’t.

Corey
Quantum computers use gates to carry out those operations. Classical computers use logic gates such as NOT, AND, and OR; a small universal set of classical gates can implement any Boolean computation. Quantum computers likewise use a universal set of gates, including single-qubit operations and at least one suitable two-qubit operation.

Michael
Single-qubit gates can be pictured as rotations of the Bloch sphere. An X gate, for instance, rotates about the x-axis. On the classical states, it maps zero to one and one to zero, like a NOT gate. But it also acts on superposition states, changing their coefficients rather than simply swapping two classical values.

Corey
A two-qubit example is the controlled-NOT gate, often abbreviated CNOT. It has a control qubit and a target qubit. If the control is zero, the target is left alone; if the control is one, the target is flipped. That’s closely related to the classical exclusive-OR operation.

Michael
On quantum inputs, the CNOT can also create entanglement. For example, start with the control in an equal superposition of zero and one and the target in zero. The zero part leaves the target unchanged, while the one part flips it. The result ties the two qubits together in a Bell state, so their joint state can’t be separated into independent states for each qubit.

Corey
That’s why a universal quantum gate set needs more than single-qubit rotations: it needs an entangling two-qubit gate. Gates are reversible, and different collections of single- and two-qubit gates can be universal. An algorithm is then a carefully chosen sequence of these operations.

Michael
Typically, a quantum algorithm starts by preparing a superposition of possible inputs. Its gates then use parallelism and interference to alter the amplitudes. The goal is to make the desired answer’s amplitude large—ideally close to one—and the amplitudes of incorrect answers small, so measurement is likely to return the desired result.

Corey
That corrects a common misconception: a quantum computer doesn’t simply calculate and report the output for every possible input at once. Measurement gives one output, not an exponentially long list. The algorithm has to arrange the interference so that the output we want is the one most likely to appear.

Michael
There are several families of quantum algorithms. Quantum simulation is a promising commercial application because it could involve materials or chemistry, including pharmaceutical research. Other examples include Shor’s factoring algorithm, the Harrow-Hassidim-Lloyd approach for sampling solutions to linear systems, optimization methods, and Grover’s search of an unsorted list.

Corey
Those examples don’t all offer the same kind of speedup. Grover’s search gives a quadratic improvement, often described as replacing a search scaling like n with one like the square root of n. An exponential improvement is different: a task scaling like 2 to the n could, in a suitable case, become polynomial, such as n cubed.

Michael
And not every quantum speedup translates into a useful product. A practical quantum advantage needs three things to overlap: no fast classical algorithm for the problem, a fast quantum algorithm for it, and a problem that is useful enough to matter commercially. Some demonstrations are theoretically instructive without being commercially relevant, so expanding that overlap is a central challenge.

Corey
The exponential growth of a quantum state space helps explain both the promise and the challenge. To store the coefficients of a 30-qubit state on a classical machine takes about 2 to the 30 values—manageable on a powerful laptop. At 50 qubits, the memory demand is already comparable to that of a supercomputer.

Michael
At 80 qubits, the thought experiment would require the memory of computers around the world working together. At 160, it would take an absurd amount—likened to using every silicon atom on Earth as a memory bit—and at 300, the comparison becomes all the atoms in the known universe. These examples illustrate exponential scaling; they don’t tell us how to build a quantum computer.

Corey
So why don’t we already have large, fault-tolerant quantum computers? Two important times are coherence time and gate time. Coherence time describes how long a qubit maintains useful quantum coherence before noise or control errors disrupt the state. Temperature and magnetic-field fluctuations are examples of disturbances that can affect a qubit.

Michael
Gate time is how long an operation takes. A useful measure is how many operations can be performed within the available coherence time, rather than coherence time alone. A system that stays coherent for a long time may still be a poor computing platform if it can’t be controlled or measured effectively.

Corey
That’s why the lecture’s neutrino comparison is helpful. A neutrino might seem attractive because it lasts a long time, but if we can’t operate on it or detect it, that longevity doesn’t make it a practical qubit. What matters is the combination of coherence, speed, control, and fidelity.

Michael
Fidelity describes how reliably a gate performs. One error in 100 operations corresponds to 99 percent fidelity; one in 1,000 corresponds to 99.9 percent. Different platforms face different trade-offs. Trapped ions are known for high-fidelity single-qubit gates and are improving two-qubit gates; superconducting qubits are fast and are working to improve fidelity.

Corey
Neutral atoms have also made progress, while defects such as nitrogen-vacancy centers are especially useful as quantum sensors, including for magnetic fields. Silicon quantum dots are another approach and resemble silicon transistor technology more closely. There’s no clear winning platform yet, just as classical computing technology evolved through multiple generations before settling on widely used approaches.

Michael
Speed matters even when a platform can perform a quantum computation. If one system can run an error-corrected computation at about a megahertz and another at about a kilohertz, then—assuming other factors are equal—the slower system may take roughly a thousand times longer. Nobody wants to wait years for a result simply because a computation is theoretically possible.

Corey
Let’s zoom in on superconducting qubits, which are artificial atoms built from circuit elements such as inductors and capacitors. A basic LC oscillator has discrete energy levels when cooled sufficiently, but it is harmonic: the spacing between successive levels is equal. That creates a problem for using just the lowest two levels as a qubit.

Michael
If the transition from zero to one has the same frequency as the transition from one to two, a pulse intended to drive zero to one can also drive one to two. The circuit can then leave the qubit’s desired two-level subspace. To prevent that, engineers need to make the circuit anharmonic.

Corey
A Josephson junction provides the needed nonlinearity. It consists of two superconducting leads separated by a thin tunneling barrier, and for the circuit it behaves like a nonlinear inductor. Its inductance depends on the current, producing a cosine-shaped potential rather than the LC oscillator’s parabolic one.

Michael
That changes the energy-level spacing: the zero-to-one frequency differs from the one-to-two frequency. A pulse can then address the qubit transition without resonantly exciting the next one. One commonly used superconducting design is the transmon, which the lecture describes as a kind of hydrogen atom for superconducting qubits.

Corey
These circuits have to be extremely cold. A qubit frequency around five gigahertz corresponds to a thermal energy of about 250 millikelvin, so the operating temperature needs to be much lower—around 20 millikelvin in the example. Dilution refrigerators provide those temperatures, and are now commercially available.

Michael
The hardware is fabricated on silicon wafers. In the example shown, plus-shaped capacitors help make it possible to arrange neighboring qubits in more than a single line. A SQUID—a loop containing two Josephson junctions—can let engineers tune a qubit’s frequency by applying a magnetic field through the loop.

Corey
Control uses microwave pulses. With IQ mixing, in-phase and quadrature signals combine with a local oscillator to produce pulses with selected phases. The pulse area determines how far the qubit rotates; the phase determines whether the rotation is applied along the x- or y-axis of the Bloch sphere.

Michael
Building this hardware takes much more than designing a circuit diagram. Teams develop and analyze materials, model and design circuits, fabricate and inspect them, cool them, and test the results. Then they compare those results with their hypotheses and iterate. That repeated engineering work is one reason the field has taken time, even as the process has become much more efficient.

Corey
The lecture notes that superconducting qubit coherence improved from roughly a nanosecond for early qubits to a millisecond or more in modern devices—an improvement of more than six orders of magnitude. Today’s systems include different kinds of devices: superconducting processors, neutral-atom machines, trapped-ion systems, and quantum annealers, among others.

Michael
But hardware demonstrations are not the same as a large, reliable commercial computer. The Wright Flyer analogy captures the point: it wasn’t the first human flight, but it brought together a person steering, self-propulsion, takeoff, and landing. It showed that the pieces could work together, even though aviation still needed extensive development.

Corey
The same idea applies to quantum computing. Current systems can be fragile and require frequent fixes, but they suggest that the field has reached a point where useful systems can be envisioned. Getting there requires machines that are robust, reproducible, and extensible.

Michael
The grand challenge highlighted at the end is quantum error correction. Physical qubit error rates—roughly one error in 100 to one in 10,000 operations—are impressive, but practical computing could require billions or trillions of operations. That leaves a huge gap between current physical-qubit performance and the reliability required for long computations.

Corey
Error correction addresses that gap by encoding information across a team of physical qubits rather than relying on one qubit alone. In the example, nine yellow qubits form a team, while blue qubits check information about neighboring qubits. Together, the physical qubits represent a logical qubit, and the check results help identify errors so the computation can be corrected.

Michael
There’s a cost: the logical qubit uses more qubits, more gates, and more operations than a single physical qubit. But if the physical qubits are good enough, increasing the size of the encoded team can reduce the logical error rate. This only works on the favorable side of a threshold; below that level of physical performance, adding qubits would not help.

Corey
The kindergarten analogy makes the threshold intuitive. Adding more very young children to a chaotic room doesn’t automatically improve the group. But once people can cooperate effectively, teams can outperform individuals, and larger teams can do more together. Error correction similarly depends on getting the physical components past a quality threshold before grouping more of them provides a benefit.

Michael
The reported measurements illustrate that improvement. As the code distance increased from three to five to seven, the logical error per cycle fell, even though the physical qubits had error rates around a tenth of a percent. The important result was that increasing the logical-qubit size reduced the error rate—a sign of operating on the useful side of the threshold.

Corey
The lecture describes Google’s December announcement as the first demonstration of that scaling in any technology: the larger distance-three, distance-five, and distance-seven codes showed progressively improved performance. Other research groups had demonstrated important steps in quantum error correction, but this result showed the error rate improving as the logical code grew.

Michael
Finally, two practical clarifications from the questions afterward. For a given technology, a longer coherence time generally means more operations can be performed before the state deteriorates, if gate time stays the same. But coherence time by itself is not enough; the number of useful operations you can fit into it matters.

Corey
And when comparing platforms, it’s important to look at both single-qubit and two-qubit gate performance. Universal quantum computation needs both, including an entangling two-qubit gate. Two-qubit gates are generally more complicated and often slower or lower fidelity, so a strong single-qubit number alone doesn’t tell the whole story.

Michael
That brings us back to the central message: quantum computing is no longer just a scientific curiosity, but it is not yet a finished commercial technology. Its promise depends on useful algorithms, capable hardware, fast and reliable gates, and error correction that scales. The work ahead is to bring all of those pieces together.

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