Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 2

Superposition and Qubits

Recommended resources

In our previous lesson, we explored the concept of wave-particle duality and discovered that quantum objects are governed by a "probability wave." We saw how this wave-like nature allows different computational paths to interfere, amplifying correct answers and canceling out incorrect ones. Today, we will give a formal name to this ability to exist in a combination of states: superposition.

This lesson will define the principle of superposition and introduce the fundamental building block of a quantum computer: the qubit. You will learn how a qubit differs from a classical bit and how its state is represented mathematically. Most importantly, we'll explore the profound implication of superposition for computation—a concept often called quantum parallelism.

From Classical Bits to Quantum Bits

In classical computing, information is encoded in bits. A bit is the simplest possible unit of information, representing a system that can be in one of two distinct states, which we label 0 and 1. Think of a light switch: it is either on or off. There is no in-between.

A quantum bit, or qubit, is the quantum analogue. It also has two fundamental states, which we call basis states, corresponding to the classical 0 and 1. However, thanks to the principle of superposition, a qubit can exist in a combination of both states at the same time.

This image contrasts a classical bit, which is discretely either 0 or 1, with a qubit. The qubit's state is represented by a point on a sphere, indicating it can exist in a continuous range of states that are superpositions of 0 and 1. Measurement forces this superposition into a definite classical outcome probabilistically.

This is not the same as classical uncertainty. If you flip a coin and cover it without looking, you are in a state of uncertainty—you simply don't know if it's heads or tails. But the coin itself has a definite state. Superposition is fundamentally different. A qubit in a superposition has not yet "decided" whether it is a 0 or a 1; it is physically in a blend of both possibilities.

To understand this distinction more deeply, let's turn to a clear explanation.

Quantum Superposition: How Qubits Live in Many States at ...

This article from postquantum.com provides an excellent conceptual introduction to superposition, using familiar analogies to highlight its strangeness and importance.

Please read the first major section, "The Strangeness of Superposition: Schrödinger’s Cat and Other Paradoxes." Focus on the crucial distinction between quantum superposition and classical uncertainty, which is well-illustrated by the quantum coin analogy. Notice how it connects superposition back to the double-slit experiment we discussed in the last lesson.


Describing the State of a Qubit

Since you have a strong background in linear algebra, you'll find the mathematical description of a qubit quite natural. The state of a qubit is not just a number, but a vector. This "state vector" lives in a two-dimensional complex vector space.

For a single qubit, the two basis states are represented by orthogonal unit vectors:

  • The state is represented by the vector .
  • The state is represented by the vector .

(The notation is called Dirac or "ket" notation, which we will formalize in the next lesson. For now, just think of and as labels for our two basis vectors.)

A qubit in a superposition is described by a linear combination of these basis vectors. The following video by 3Blue1Brown provides one of the best explanations available for the state vector and its connection to measurement.

But what is quantum computing? (Grover's Algorithm)

This video brilliantly visualizes the mathematical foundations of quantum computing, starting with the state vector. It's an ideal resource for connecting the abstract rules to a geometric intuition.

Please start watching from the beginning to understand the motivation. The core concepts for our lesson begin with the introduction of the state vector as a "big list of numbers" at this point. Then, pay very close attention to the segment from this timestamp. It visualizes the state of a single qubit as a 2D vector, explains the rule for calculating measurement probabilities, and shows how measurement "collapses" the vector onto one of the axes.

As the video explained, a general state of a qubit, which we can call , is a unit vector written as:

The numbers and are called amplitudes. They are, in general, complex numbers. The fundamental rule connecting this state vector to the physical world is that the probability of measuring the qubit and finding it in state is , and the probability of finding it in state is . Because the total probability must be 1, the amplitudes must satisfy the normalization condition: . This is why the state vector is a unit vector.

Let's read a short section that reinforces this mathematical formulation.

Quantum Superposition: How Qubits Live in Many States at ...

This section provides a concise textual summary of the qubit state representation we just saw visually.

Please read the section "Bits vs. Qubits: Beyond the Binary." It introduces the standard notation for a qubit's state and clearly defines the role of amplitudes in determining measurement probabilities.


Creating and Using Superposition

A crucial point is that superposition is not a random accident; it is a state we can create and manipulate with precision using quantum gates. These are the quantum equivalents of classical logic gates like AND, OR, and NOT.

The most fundamental gate for creating superposition is the Hadamard gate, denoted by . When applied to a qubit in the state, it transforms it into an equal superposition of and .

In this state, the amplitudes are . When we measure this qubit, the probability of getting 0 is , and the probability of getting 1 is also . The qubit has a 50/50 chance of collapsing to either classical state.

This diagram shows three quantum circuits. The circuit on the left, labeled "Superposition," demonstrates the action of the Hadamard gate (H) on a single qubit, \(q_0\). It transforms the initial state into an equal superposition of \(|0\rangle\) and \(|1\rangle\), resulting in a 50% probability of measuring 0 and a 50% probability of measuring 1.

Implication: Quantum Parallelism

So, why is this useful? The true power emerges when we consider a system of multiple qubits. A system with classical bits can be in only one of possible states at any given time. However, a system of qubits can exist in a superposition of all states simultaneously.

For example, with 2 qubits, we can create a state like:

This state is a simultaneous representation of all four possible 2-bit strings. If we apply a quantum gate that computes a function, it acts on all parts of the superposition at once. This is the essence of quantum parallelism.

However, it is crucial to avoid a common misconception. A quantum computer does not simply try all solutions in parallel and then magically spit out the correct one. When you measure the final state, the superposition collapses, and you only get one of the possible outcomes. The art of quantum algorithm design is to use interference—the topic of our last lesson—to choreograph the evolution of these amplitudes so that the paths leading to incorrect answers cancel each other out, while the paths leading to the correct answer reinforce each other.

Quantum Superposition: How Qubits Live in Many States at ...

This final reading clarifies the power and subtlety of quantum parallelism, connecting superposition back to interference.

Please read the section "The Power of Many States at Once: Quantum Parallelism and Interference." Pay close attention to the explanation of how a quantum computer can process many inputs via superposition. Critically, understand the nuance explained in the following paragraph: quantum computing is not a "brute-force" search, and its power relies on using interference to amplify the desired answer.


Conclusion

In this lesson, we have moved from the physical picture of wave-particle duality to the computational framework of qubits and superposition.

Here are the key takeaways:

  • Superposition is a fundamental quantum principle where a system, like a qubit, can exist in a linear combination of multiple distinct states simultaneously.
  • A qubit is the quantum version of a bit. Its state is described by a state vector , where and are complex amplitudes.
  • Upon measurement, the superposition collapses to a classical state ( or ) with probabilities given by the squared magnitudes of the amplitudes ( and ).
  • Superposition enables quantum parallelism, where a quantum computer can perform operations on an exponential number of states at once. However, this power can only be harnessed by using quantum interference to make the desired result probable.

We have informally used the notation throughout this lesson. In our next session, we will delve deeper into this powerful mathematical language, Dirac notation, and use it to formally represent single qubit states and their transformations on the Bloch sphere.