Skip to main content

Someone wanted to learn this too, so Grasp built them a personal learning path.

You can keep exploring this one or create your own

Density Matrices and Von Neumann Entropy

Hello! Welcome to your first lesson in our deep dive into recent advances in quantum computing.

Given your background in astrophysics and numerical simulations, you're already well-equipped with the mathematical and physical intuition that underpins much of this field. This course aims to build upon that foundation, bridging any gaps you might have in formal quantum information theory and exploring the cutting edge of research.

Today, we'll start with a foundational concept that is essential for describing any realistic quantum system: the density matrix. While introductory quantum mechanics often focuses on "pure" states described by a state vector , real-world systems are almost always subject to noise and interactions, leading to "mixed" states. The density matrix formalism provides a universal language to describe both.

Our learning outcome for this lesson is to derive the density matrix formalism for mixed quantum states and calculate their von Neumann entropy. We will cover:

  • The distinction between pure and mixed quantum states.
  • The definition and properties of the density operator, .
  • How to use the density matrix to calculate measurement outcomes and expectation values.
  • The von Neumann entropy, , as a measure of a state's uncertainty or "mixedness."

This topic is the bedrock for understanding quantum noise, error correction, and entanglement—all of which are central to modern quantum computing.

1. Pure vs. Mixed States: Why We Need a New Tool

In quantum mechanics, even if we have perfect knowledge of a system's state, represented by a state vector , measurement outcomes are still probabilistic. This is an inherent feature of the quantum world.

However, what if our knowledge of the state itself is incomplete? For instance, imagine a source that prepares a qubit in state with probability , or in state with probability , and so on. This is a statistical ensemble of pure states, and we call the resulting state a mixed state. This kind of uncertainty is classical in nature, stemming from our lack of information. Your experience with statistical mechanics, which deals with macroscopic systems described by probability distributions over microstates, provides a strong parallel here.

To understand this distinction more clearly, please watch the first part of the following video.

Density operator for mixed quantum states

This segment from 'Density operator for mixed quantum states' by Professor M does Science clearly explains the conceptual difference between the fundamental quantum uncertainty in pure states and the statistical uncertainty in mixed states.

Please watch the section 'Distinction between Pure and Mixed States' from 00:44 to 03:13. Focus on how the source of probability differs in the two cases.

2. The Density Operator

The state vector formalism is insufficient for describing mixed states. The correct tool is the density operator, denoted by . Let's build it up from pure states and then generalize.

2.1. Density Operator for a Pure State

For a pure state , the density operator is defined as the outer product of the state vector with itself:

This operator is simply a projector onto the state .

Using this operator, the expectation value of an observable can be written using the trace operation:

This equivalence relies on the cyclic property of the trace, , which you may recall from linear algebra.

2.2. Generalizing to Mixed States

Now, consider our mixed state, which is an ensemble . The density operator for this mixed state is the weighted average of the density operators for each pure state in the ensemble:

where is the density operator for the pure state , and the probabilities sum to one, .

The great utility of this formalism is that the rules for calculating physical quantities maintain the same form. For example, the expectation value of an observable for a mixed state is still given by:

This is because the expectation value for the ensemble is just the average of the individual expectation values: .

The following video segments provide a detailed derivation of the density operator for mixed states and show how the formulas for normalization, expectation values, and time evolution generalize seamlessly.

Density operator for mixed quantum states

The same video continues with a step-by-step derivation of the density operator for mixed states and its application.

Please watch from 03:13 to 14:15. This covers the density operator for pure states, its generalization to mixed states, normalization, expectation values, and time evolution. Pay close attention to how the linearity of the trace is key to the formalism's power.

3. Properties and Purity

All density operators, whether for pure or mixed states, share three fundamental properties:

  1. Hermiticity: .
  2. Unit Trace: .
  3. Positive Semidefiniteness: for any state . This implies that all eigenvalues of are non-negative.

A crucial question is: given a density matrix , how can we tell if it represents a pure or a mixed state? The answer lies in a property called purity, defined as .

  • For a pure state, . Because is a projector, it is idempotent. This leads to .
  • For a mixed state, it can be shown that .

So, the purity provides a simple test:

  • the state is pure.
  • the state is mixed.

The final segment of the video explains this test in detail.

Density operator for mixed quantum states

This last part of the video explains the crucial difference in the idempotency property between pure and mixed state density operators and introduces the purity test.

Please watch the segment 'Distinguishing Pure and Mixed States' from 14:15 to 19:37. This will solidify your understanding of the purity criterion.

4. Von Neumann Entropy: Quantifying Uncertainty

While purity tells us if a state is mixed, we need a way to quantify how mixed it is. This is the role of the von Neumann entropy, the quantum analogue of the classical Shannon entropy. It is defined as:

The logarithm of a matrix is defined via its spectral decomposition. If has eigenvalues , it can be diagonalized, and the entropy becomes:

By convention in quantum information, is often base 2, giving the entropy in units of bits. In physics contexts, the natural logarithm () is more common. We will use here, consistent with the physics literature.

Let's examine the two extreme cases:

  • Pure state: The eigenvalues are . The entropy is . This makes intuitive sense: a pure state represents a state of complete knowledge, so its uncertainty is zero.
  • Maximally mixed state: In a -dimensional Hilbert space, this state is , where is the identity matrix. The eigenvalues are all . The entropy is . This is the maximum possible entropy for a system of this dimension.

The following resources provide a formal definition and explore the properties of von Neumann entropy. The video offers a clear walkthrough, while the excerpt from Preskill's renowned lecture notes gives a concise, formal summary that you may appreciate.

Von Neumann Entropy in Quantum Mechanics versus Shannon Entropy in Classical Information Theory

This video from the channel Elucyda introduces the von Neumann entropy, explains its calculation via diagonalization, and draws a powerful analogy to Gibbs and Shannon entropy.

Please watch the video from the beginning up to 10:34, and then the segments from 10:34-12:07 and 13:01-17:50. These parts cover the definition, calculation, comparison to classical entropy, and the entropy bounds for pure and maximally mixed states.

Chapter 5 Quantum Information Theory

For a more formal and comprehensive overview, please read the following sections from John Preskill's 'Notes on Quantum Computation'. This is a classic text in the field.

Please read Section 5.2 'Von Neumann Entropy' (page 14) and Section 5.2.1 'Mathematical properties of S(ρ)' (pages 15-18). Focus on the definition and the list of key properties, such as invariance, concavity, and subadditivity.

5. The Physical Origin of Mixed States

We've established that mixed states represent a lack of knowledge. This lack of knowledge can arise in two fundamentally different ways.

  1. Imperfect Preparation (Classical Ignorance): As discussed, we might simply not know which pure state was prepared in our apparatus. This is a classical statistical mixture.

  2. Entanglement (Quantum Ignorance): This is a more profound, purely quantum-mechanical source of mixedness. If a system A is entangled with another system B, then even if the total system AB is in a pure state, system A by itself must be described as a mixed state.

To find the state of subsystem A, we "trace out" the degrees of freedom of subsystem B. This operation is called the partial trace. If the total system is described by , the state of subsystem A is:

Let's see a concrete example. Consider the Bell state , which is a pure state of a two-qubit system (AB). The global density matrix represents a pure state, so .

However, if we trace out qubit B to find the state of qubit A, we get:

This is the maximally mixed state for a single qubit! Its entropy is . This means that if you only have access to qubit A, your measurement outcomes will be completely random, even though the global state is perfectly known. The information is not located in A or B individually, but is encoded in their correlations.

The following reading provides a clear definition of the partial trace and works through this exact example.

PHY256 Lecture notes: Introducing Quantum Information

These sections from the 'PHY256 Lecture notes' by Quillen provide a clear explanation of the partial trace and its application to an entangled state.

Please read Section 1.5 'The partial traces' and Section 1.5.1 'Examples of density matrices for bipartite qubit systems'. Pay special attention to the calculation for the Bell pair.

Conclusion

In this lesson, we have established the essential framework for describing general quantum states.

Key Takeaways:

  • Quantum systems can be in pure states (full knowledge, described by a state vector ) or mixed states (statistical ensembles of pure states).
  • The density operator is a universal tool that can describe any quantum state. It is defined as for a mixed state and for a pure state.
  • The purity, , is a simple test to distinguish pure states () from mixed states ().
  • The von Neumann entropy, , quantifies the uncertainty of a quantum state. It is zero for pure states and positive for mixed states, reaching a maximum of for a maximally mixed state in a -dimensional space.
  • A mixed state can arise from classical ignorance about state preparation or, more profoundly, as the state of a subsystem of a larger, entangled pure state.

This formalism is not just a mathematical convenience; it is the natural language for quantum information science, especially when dealing with the effects of noise and the nature of entanglement.

Preview of the Next Lesson:

In our next session, we will focus on single-qubit operations. The learning outcome is to "Analyze single-qubit gates as rotations on the Bloch sphere, identifying the rotation axis and angle for each standard gate." We will see how the Bloch sphere provides a beautiful geometric picture for single-qubit pure states, and I will show you how the density matrices we've studied today allow us to represent mixed states as points inside the sphere, giving a geometric interpretation to purity and mixedness.

Can't find a good explanation? Sign up and we'll make it for you

Sign up