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

Quantum Harmonic Oscillator and Wigner Functions

Hello! Welcome to the next lesson in our exploration of recent advances in quantum error correction.

In our last session, we delved into autonomous QEC, where we saw how engineered dissipation could passively protect a quantum state. The primary example we studied, the squeezed cat code, belongs to a class of continuous-variable (CV) codes. These codes don't use discrete two-level qubits but instead encode information in the continuous degrees of freedom of a quantum harmonic oscillator, like a mode of an electromagnetic field in a microwave cavity.

To properly understand and analyze these powerful codes, such as the Schrödinger cat and GKP codes we'll be studying next, we must first master the mathematical and conceptual language of CV quantum systems. This lesson is dedicated to building that foundation.

Today, we will focus on the learning outcome: Apply quantum harmonic oscillator operators to express continuous-variable quantum states and calculate their Wigner functions. We'll revisit the quantum harmonic oscillator, introduce its key states, and then learn how to use the Wigner function—a powerful tool for visualizing and analyzing these states in phase space.

1. The Language of Continuous Variables: Harmonic Oscillator Operators

Your background in physics means you are well-acquainted with the quantum harmonic oscillator (QHO). It serves as the bedrock for describing bosonic fields, such as light, and is therefore the fundamental model for continuous-variable quantum information.

Let's begin with a quick review of the key operators.

Resources in quantum computation for discrete and ...

This section from the PhD thesis 'Resources in quantum computation for discrete and continuous-variable systems' provides a concise definition of the core operators.

Please read section 2.2 'Continuous-variable Quantum Computing' up to the end of the first paragraph, where the creation and annihilation operators are defined.

As the text reminds us, the system is described by the position () and momentum () operators, which satisfy the canonical commutation relation (setting ).

It is often more convenient to work with their linear combinations, the annihilation and creation operators:

These operators satisfy the commutation relation . Using these, we can define the fundamental states of the oscillator:

  • Fock States (or Number States) : These are the energy eigenstates of the QHO Hamiltonian . They are eigenstates of the number operator with integer eigenvalues . A state contains exactly quanta of energy (e.g., photons). They are generated by successive applications of the creation operator on the vacuum state: .

  • Coherent States : These are the eigenstates of the annihilation operator: . The eigenvalue is a complex number, whose real and imaginary parts correspond to the quadratures of the oscillator. A coherent state can be generated by applying the displacement operator to the vacuum: . They are considered the "most classical" of quantum states.

2. The Wigner Function: Visualizing States in Phase Space

While state vectors are a complete description, they are abstract and live in an infinite-dimensional Hilbert space. For CV systems, it's often more insightful to use a phase-space representation. The most common of these is the Wigner function, which maps a quantum state (represented by its density matrix ) to a real-valued function on a 2D phase space.

The following resource provides a formal definition and explores its properties.

Phase space representation of quantum dynamics. Lecture ...

These lecture notes by Anatoli Polkovnikov give a clear, physicist-friendly introduction to the Wigner function. We will focus on its definition and fundamental properties.

Please read the text from the header 'Weyl symbol of the density matrix...' (p. 10) to the end of the paragraph just before Eq. (54). Focus on the definition of the Wigner function (Eqs. 51-52) and its properties (normalization and non-positivity).

As defined in the notes (Eq. 52), for a pure state with wavefunction , the Wigner function is:

(Note: we've set and made a change of variables from the text for a common form of the definition).

The Wigner function has several crucial properties:

  1. It is a quasi-probability distribution. Integrating it over one variable gives the probability distribution of the other. For instance, . However, it is not a true probability distribution because...
  2. It can be negative. Regions of negativity in the Wigner function are a definitive signature of the non-classical nature of a quantum state. As stated in the Mari-Veitch theorem, any quantum computation that involves only states and operations with positive Wigner functions can be efficiently simulated on a classical computer. Therefore, Wigner negativity is a necessary resource for a quantum advantage.

3. Calculating Wigner Functions for Key States

Now let's apply this formalism to calculate the Wigner functions for the states we introduced. This will build our intuition for what these functions look like and what they represent. The Polkovnikov notes are an excellent guide for these calculations.

The Vacuum State

The vacuum state is the ground state of the QHO. Its wavefunction is a Gaussian. As shown in the notes (LINK, Eq. 58), its Wigner function is also a 2D Gaussian centered at the origin of phase space.

resource_title

This figure, from the resource 'Resources in quantum computation...', compares the Wigner functions for the vacuum state |0\rangle (left) and the first Fock state |1\rangle (right). The vacuum state's Wigner function is a purely positive Gaussian "blob" centered at the origin, representing the quantum uncertainty in position and momentum.

Coherent States

A coherent state is a vacuum state that has been displaced in phase space by the complex amount . Its Wigner function is simply the Gaussian blob of the vacuum, shifted so its center is at . Like the vacuum, its Wigner function is positive everywhere. This is why coherent states are considered "classical-like."

For convenience, we often describe phase space not with but with the complex amplitude . The Polkovnikov notes show this calculation in Section B (LINK, Eq. 76), resulting in:

Fock States

Fock states, for , are fundamentally non-classical. Their Wigner functions must exhibit negativity. The calculation is more involved, leading to an expression involving Laguerre polynomials.

Phase space representation of quantum dynamics. Lecture ...

This section of the Polkovnikov notes derives the Wigner function for a general Fock state and presents the final expression.

Please read the part of Section B beginning 'Another important example is the Wigner function of the Fock state...' (p. 14). You don't need to follow every step of the derivation in Eq. (81), but focus on the final result involving the Laguerre polynomial L_n.

The result is (Eq. 81):

The Laguerre polynomials oscillate, which, combined with the overall factor of , creates a function with concentric rings of alternating positive and negative values. For , this results in a positive outer ring and a negative "dip" at the center, as seen in the figure above.

resource_title

Wigner function of the Fock state |1\rangle. The color blue indicates positive values, while red indicates negative values. The negative region at the center is a clear sign of the state's non-classicality. This figure is from the resource 'Resources in quantum computation...'.

Test your understanding!

Consider a superposition state . Will its Wigner function, , simply be the average of the individual Wigner functions, i.e., ? Why or why not?

Show answer

No, it will not. The Wigner transform is linear in the density matrix , not in the state vectors. The density matrix for the superposition is .

Applying the Wigner transform gives . The first two terms are the individual Wigner functions, but the cross-terms and produce a real-valued interference term. This interference is responsible for the intricate oscillatory patterns, rich with Wigner negativity, that appear in superposition states like the cat codes we will study next.

4. A Glimpse of Continuous-Variable Codes

With these tools in hand, we can now appreciate the structure of the CV error correction codes we will be building. The figure below shows the Wigner functions for a gallery of important non-Gaussian states.

resource_title

A collection of Wigner functions for various states from the resource 'Resources in quantum computation...'. Of particular note are (b) the Cat code, showing two distinct Gaussian blobs with interference fringes between them, and (h) the GKP code, which forms a periodic grid in phase space. Red indicates Wigner negativity.

You can now interpret these images:

  • (b) Cat code: This is a superposition of two coherent states with opposite phases, . You can see the two positive Gaussian blobs corresponding to and , and crucially, the striped interference pattern between them, which is a region of rapidly oscillating Wigner negativity.
  • (h) GKP code: This is a much more exotic state, forming a grid of positive Gaussian "spikes" embedded in a sea of negativity. This structure is what gives it the power to correct for small displacement errors in phase space.

We are now equipped to dissect these states in detail.

Conclusion

In this lesson, we established the fundamental framework for describing continuous-variable quantum systems. We have moved from the abstract Hilbert space picture to the intuitive phase-space picture provided by the Wigner function.

Key Takeaways:

  • CV quantum systems are modeled by the quantum harmonic oscillator, described by operators or, more conveniently, .
  • The Wigner function maps a quantum state onto a real-valued quasi-probability distribution in phase space.
  • Wigner negativity is a hallmark of non-classicality and is a necessary ingredient for quantum computational advantage.
  • Simple states have characteristic Wigner functions: Gaussians for the vacuum and coherent states, and oscillating, negative-valued functions for Fock states.
  • Complex CV code states, like cat and GKP codes, exhibit intricate structures of Wigner negativity that are key to their error-correcting properties.

Preview of the next lesson:
We will immediately put this new formalism to use. In our next lesson, we will dive into the construction and properties of Schrödinger cat codes. We will analyze how their structure, as a superposition of coherent states, allows them to correct for the dominant error in many physical systems: single photon loss.

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

Sign up