Skip to main content

Welcome to a Grasp lesson

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

Lesson 3

Dirac Notation for Qubit States

Recommended resources

Welcome to our third lesson. In our previous session, we introduced the qubit and the principle of superposition, representing a qubit's state informally as . We learned that and are complex amplitudes whose squared magnitudes give the probability of measuring the qubit as 0 or 1.

Today, we will formalize this notation. We'll explore the structure and rules of Dirac notation, also known as bra-ket notation, which is the standard mathematical language of quantum mechanics and quantum computing. By the end of this lesson, you will be able to represent any single qubit state, including its basis states and superpositions, with precision and confidence using this powerful tool.

The Language of Quantum States: Kets, Bras, and Hilbert Space

The notation we've been using, , is called a ket. It represents the quantum state of a system as a vector in an abstract mathematical space called a Hilbert space. For our purposes, and given your background in linear algebra, you can think of a ket as a column vector.

A key benefit of this abstract notation is that it separates the concept of the state itself from its specific numerical representation, much like a geometric vector exists independently of the coordinate system (e.g., Cartesian, polar) we use to describe its components.

To explore this idea further, the following video provides an excellent conceptual introduction to Dirac notation, explaining why this abstract approach is so powerful.

What is Dirac Notation? Kets, Bras, Inner Products & Operators

This video from the channel "For the Love of Physics" offers a physicist's perspective on Dirac notation, which will provide you with a deep conceptual foundation.

Watch the section from the introduction to kets. The speaker draws a powerful analogy between a quantum state's representation and a geometric vector's components in different coordinate systems. Then, continue watching from the explanation of kets as state vectors that "live" in Hilbert space.

Every ket has a corresponding bra. If a ket is a column vector, its corresponding bra, written as , is its Hermitian adjoint (or conjugate transpose). This means you take the transpose of the column vector to get a row vector, and then take the complex conjugate of each element.

The names "bra" and "ket" come from how they combine. When you place a bra and a ket together, you form a "bra-ket" or bracket, like . This operation is the inner product.

Let's solidify these definitions with a clear, practical guide.

An Introduction To Bra-Ket (Dirac) Notation

This article from "Into Quantum" provides a very straightforward breakdown of the bra and ket as vectors.

Please read the first part of the article, starting from the heading "What Is The Bra-Ket Notation?" down to the description of the bra as the complex conjugate transpose of the ket. This will reinforce the connection between the notation and the underlying linear algebra.


Representing a Qubit with Dirac Notation

Now, let's apply this formalism to the single qubit. A single qubit's state space is a 2-dimensional complex Hilbert space. The two computational basis states, which correspond to the classical bits 0 and 1, are represented by orthonormal basis vectors.

  • The ket is the column vector:
  • The ket is the column vector:

The corresponding bras are the conjugate transposes of these kets. Since the elements are real, this is simply the transpose:

  • The bra is the row vector:
  • The bra is the row vector:

A general qubit state in superposition is a linear combination of these basis kets, as we saw in the previous lesson:

where and are complex numbers satisfying the normalization condition .

Using the vector representations, we can see this is just vector addition:

This explicitly connects the Dirac notation to the column vector representation from our last lesson.

A superposition state, such as \(0.6|0\rangle + 0.8|1\rangle\), can be visualized as a vector in a 2D space where the axes are the basis states \(|0\rangle\) and \(|1\rangle\). The components of the vector along the axes are the amplitudes \(\alpha\) and \(\beta\).

The following video demonstrates this conversion from the matrix (column vector) form to the more conventional Dirac notation.

Quantum Computing Course – Math and Theory for Beginners

This clip from a freeCodeCamp.org course clearly shows the simple algebraic step to express a column vector as a linear combination of basis kets.

Please watch the segment from this timestamp. It walks through converting an arbitrary qubit state \begin{pmatrix} \alpha \\ \beta \end{pmatrix} into the form \alpha|0\rangle + \beta|1\rangle.


The Inner Product: Extracting Amplitudes and Probabilities

The inner product is where Dirac notation truly shines. As mentioned, it takes a bra and a ket to produce a single complex number. In linear algebra terms, this is matrix multiplication of a row vector with a column vector (i.e., a dot product).

Let's consider two kets, and . The bra is , where denotes the complex conjugate.

Their inner product is:

A crucial property of the computational basis is that it is orthonormal.

  • Orthogonal: The inner product of different basis vectors is zero. Physically, this means the states and are perfectly distinguishable.
  • Normalized: The inner product of a basis vector with itself is one.

This orthonormality provides a powerful way to find the amplitudes and for a given state . If we want to find , we take the inner product of with :

Similarly, to find , we take the inner product with :

This confirms that the amplitude is the projection of the state vector onto the basis vector, and is the projection onto the basis vector. This neatly formalizes the Born rule from our last lesson: the probability of measuring the state is .

The following reading provides concrete examples of these calculations.

An Introduction To Bra-Ket (Dirac) Notation

This article will walk you through the mechanics of representing superpositions and calculating inner products.

First, read the section "Why Do We Need Kets?" to see the superposition state expressed formally. Then, read the sections "Inner Product To Combine a Bra and a Ket" and "Calculating Inner Product: An Example" to see how the inner product is calculated step-by-step.


Conclusion

In this lesson, we have formalized the mathematical language used to describe quantum states. This notation, while abstract, provides a compact and powerful framework that you will use throughout your study of quantum computing.

Here are the key takeaways:

  • Dirac notation represents quantum states as kets (e.g., ), which are column vectors in a Hilbert space. The corresponding bras (e.g., ) are their conjugate transposes (row vectors).
  • A single qubit state is written as a linear combination of basis kets: , where and .
  • The inner product projects the state onto the state , yielding a complex amplitude.
  • The amplitudes of a state in the computational basis are found using inner products: and . The measurement probabilities are and .

So far, we have primarily focused on the algebraic representation of a qubit. In our next lesson, we will introduce a beautiful geometric tool for visualizing the state of a single qubit: the Bloch sphere. This will give you a powerful visual intuition for how qubit states behave and transform.

The Bloch sphere is a 3D visualization of a single qubit's state space. The north and south poles represent the basis states \(|0\rangle\) and \(|1\rangle\), respectively, while any other point on the sphere's surface represents a unique superposition.