---
title: "Quantum state evolution and relative phase | Sandbox Physics"
description: "Follow the phase of each energy component to predict when a quantum state’s position distribution will move."
canonical_url: "https://sandboxphysics.com/learn/quantum-physics/quantum-state-evolution/"
language: "en"
page_type: "story"
alternate_languages:
  zh-CN: "https://sandboxphysics.com/zh/learn/quantum-physics/quantum-state-evolution/"
last_modified: "2026-11-24"
---

[Volume 6 · Quantum Physics](https://sandboxphysics.com/learn/quantum-physics/)

# How does a prepared quantum state evolve?

Follow the phase of each energy component to predict when a quantum state’s position distribution will move.

Before you start: [Chapter 2](https://sandboxphysics.com/learn/quantum-physics/wave-functions-and-uncertainty/) on wave functions. [Volume 2 Chapter 1](https://sandboxphysics.com/learn/oscillations-and-waves/mass-spring-oscillation/) and [Chapter 6](https://sandboxphysics.com/learn/oscillations-and-waves/standing-waves-and-fourier/) on oscillations and modes. [Volume 1 Chapter 10](https://sandboxphysics.com/learn/mechanics/conservative-forces-and-potential-energy/) on potential energy.

After this chapter you can: Use energy eigenvalues to evolve a state and calculate when superposed components change the detection probabilities.

In a fixed potential, each energy component of a quantum state changes phase at a rate set by its energy. A state with one energy keeps the same position distribution. A superposition can change its position distribution because its components accumulate different phases.

Chapter 2 connected wave functions to position and momentum distributions. Volume 2, Chapter 1, used a restoring force to describe an oscillator. Here we put a quantum particle in the same quadratic potential and compare a single energy state with a superposition.

## 3.1 The Schrödinger equation evolves the complex state

Take a particle of mass $m$ moving in one dimension, with position $x$ and time $t$. Its potential energy $V(x)$ stays fixed while the state evolves. The wave function is $\psi(x,t)$, with position probability density $|\psi(x,t)|^2$. The time-dependent Schrödinger equation is

$$
\begin{aligned}
i\hbar\frac{\partial\psi}{\partial t}&=\widehat H\psi,\\
\widehat H&=-\frac{\hbar^2}{2m}\frac{\partial^2}{\partial x^2}+V(x).
\end{aligned}
$$

Here $\hbar$ is the reduced Planck constant and $\widehat H$ is the energy operator, or Hamiltonian. Its first term acts by taking a second derivative in position. Its second term acts by multiplying by the potential energy. For bound states the wave function is normalizable and falls away far from the well. In this closed model, the integral of the probability density stays one. [OpenStax, University Physics Volume 3, Section 7.3](https://openstax.org/books/university-physics-volume-3/pages/7-3-the-schrodinger-equation).

## 3.2 One energy gives a phase that drops out of the density

A spatial function $\phi_n(x)$ is an energy eigenfunction if acting on it with the Hamiltonian gives the same function times an energy $E_n$. Substituting into the time-dependent equation gives

$$
\widehat H\phi_n=E_n\phi_n,\qquad
\psi_n(x,t)=\phi_n(x)\,\mathrm e^{-iE_nt/\hbar}.
$$

The phase factor has magnitude one, so the density of this state stays $|\phi_n(x)|^2$. Its energy can still be positive. For the oscillator potential $V(x)=\tfrac12m\omega^2x^2$, the allowed energies are

$$
E_n=\left(n+\tfrac12\right)\hbar\omega,\qquad
n=0,1,2,\ldots .
$$

The ground state has energy $\hbar\omega/2$ and a spread in position. The first excited state has an extra $\hbar\omega$ and a node at the center. Its probability density stays fixed in time too. [OpenStax, University Physics Volume 3, Section 7.5](https://openstax.org/books/university-physics-volume-3/pages/7-5-the-quantum-harmonic-oscillator).

## 3.3 The relative phase in a two-level state changes what we can measure

The Schrödinger equation is linear. Prepare an equal superposition of the ground and first excited states with real spatial functions $\phi_0$ and $\phi_1$ and matching phases at the start. Each amplitude gets its own time factor. Factoring out the common ground-state phase gives

$$
\psi(x,t)=\frac{\mathrm e^{-iE_0t/\hbar}}{\sqrt{2}}
\bigl[\phi_0(x)+\phi_1(x)\mathrm e^{-i\omega t}\bigr].
$$

The angular frequency in the bracket is the energy difference divided by $\hbar$. On squaring the magnitude, the common phase disappears. The relative phase stays in the cross term.

$$
|\psi(x,t)|^2=
\tfrac12\bigl[\phi_0^2(x)+\phi_1^2(x)\bigr]
+\phi_0(x)\phi_1(x)\cos(\omega t).
$$

The ground-state function is even and the first-excited-state function is odd. At the start the cross term raises the density on one side of the well and lowers it on the other. At a quarter period it vanishes. At a half period it reverses. The cross term integrates to zero over the whole line, so the probability stays normalized.

Set the oscillator length to $\ell=\sqrt{\hbar/(m\omega)}$. The functions for these two levels satisfy $\phi_1(x)=\sqrt{2}(x/\ell)\phi_0(x)$. Since the ground-state position variance is $\ell^2/2$, integrating position against the density gives the mean

$$
\langle x\rangle=\frac{\ell}{\sqrt{2}}\cos(\omega t).
$$

The weights of the two energy levels are one half each throughout. An energy measurement gives one of their two values. Its mean energy is $\hbar\omega$. A mixture that independently prepares either eigenstate with equal probability has the same energy probabilities. Its position distribution is the average of the two stationary densities because the preparations have no common relative phase.

- Start of the cycle
- Quarter period
- Half period

**Figure 3.1** The two-level oscillator at the start, a quarter period and a half period. The curves show ideal position densities. Each dot marks the mean of the corresponding density. The energy weights stay fixed.

## 3.4 Separate the changing model density from the sampled positions

Open [Quantum Harmonic Oscillator](https://sandboxphysics.com/labs/quantum-harmonic-oscillator/) and choose **Ground state**. Move the **Measurement time** slider. The ideal position density stays fixed and the energy readout is nonzero. Then choose **Mix two levels**. Keep the default lower level zero, upper-level weight one half and relative phase zero. Compare **Probability cloud** and **Energy occupations** as the time slider moves. The probability cloud changes and the bars stay at one half each.

Keep **Observable to sample** on **Position** and choose **Sample nine times**. At each time the Lab samples four hundred freshly prepared copies of the same starting state. The model uses scaled units with mass and reduced Planck constant set to one. At the default trap frequency, length is measured in oscillator-length units. The time scan spans one full period.

**Table 3.1** Selected rows from the simulated nine-time position acquisition with default seed 1984. The model column gives the mean of the ideal density. The final column shows the sample mean and one standard error, in oscillator-length units.

| Time within a period | Ideal mean position | Sample mean ± standard error |
| --- | --- | --- |
| Start | +0.707 | +0.726 ± 0.037 |
| Quarter | 0.000 | −0.067 ± 0.049 |
| Half | −0.707 | −0.731 ± 0.033 |

In **Recorded distributions and time series**, compare the blue sample bars and dots with the gray model curves. The motion of a sample mean describes a sequence of repeated preparations. Changing the preparation clears the records. Changing only the time lets you sample the same preparation after a different duration.

## 3.5 Exercises

1. A single oscillator eigenstate gains a time-dependent phase. Explain why the position probability density stays fixed.
2. Find the ground and first excited energy in units of $\hbar\omega$. What is their separation in the same units?
3. For the equal two-level superposition, what happens to the interference term at a quarter period and a half period?
4. Find the mean position at the start and at a half period in units of $\ell$. Why does the mean change sign?
5. In the same well, suppose the higher level in the ground–first superposition has weight $0.25$. What are the two probabilities of an energy result? Find the mean energy in units of $\hbar\omega$.
6. Compare the position distribution of an equal incoherent mixture of the two eigenstates with the equal coherent superposition. At which time in Figure 3.1 do their position densities match?
7. Why does the quarter-period sample mean in Table 3.1 differ from the ideal zero? What change would reduce the typical difference?
8. Add the same constant energy to the entire Hamiltonian. What changes in the time evolution of the state? What happens to the position probabilities and the relative phase of two components?

## 3.6 Answers and explanations

Exercise 1

Its spatial function is multiplied by a phase of magnitude one. The factor cancels against its complex conjugate when computing the density.

Exercise 2

The energies are $0.5\,\hbar\omega$ and $1.5\,\hbar\omega$. Their difference is $\hbar\omega$.

Exercise 3

At a quarter period, $\cos(\omega t)$ vanishes and the cross term is zero. At a half period the cosine is minus one, so the cross term has the opposite sign from the start.

Exercise 4

The values are $+1/\sqrt{2}$ and $-1/\sqrt{2}$. The symmetry of the two spatial functions makes the cross term favor first one side, then the other when the relative phase changes by half a cycle.

Exercise 5

The ground-state probability is $0.75$ and the first-excited probability is $0.25$. The weighted mean is $0.75(0.5)+0.25(1.5)=0.75$ in units of $\hbar\omega$.

Exercise 6

The incoherent mixture always gives the average of the two separate densities. At a quarter period the coherent cross term vanishes, so the position densities match at that time.

Exercise 7

The mean of four hundred random draws need not equal the mean of their distribution. More independently prepared samples at the same time reduce the typical error of the mean.

Exercise 8

The same extra time-dependent phase multiplies each component. Their energy difference stays fixed, so their relative phase and all position probabilities stay the same.

## Test it in the Lab

Change one setting at a time, then compare what you see with the tables and answers in this chapter.

[Quantum Harmonic Oscillator → Prepare an energy eigenstate, a coherent mix of neighboring levels or a displaced ground state. See how the nodes, the energy occupations and the position records fit together, with no hidden orbit assumed for the particle.](https://sandboxphysics.com/labs/quantum-harmonic-oscillator/)

## Sources and reading scope

1. [OpenStax, University Physics Volume 3, §7.3 The Schrödinger Equation](https://openstax.org/books/university-physics-volume-3/pages/7-3-the-schrodinger-equation)

   The section separates the time factor for a state of definite energy and explains how boundary conditions determine stationary states.

2. [OpenStax, University Physics Volume 3, §7.5 The Quantum Harmonic Oscillator](https://openstax.org/books/university-physics-volume-3/pages/7-5-the-quantum-harmonic-oscillator)

   The oscillator section gives the equally spaced energies and shows the shapes of the first few stationary wave functions.

[← Chapter 2 · How does a wave function predict position and momentum?](https://sandboxphysics.com/learn/quantum-physics/wave-functions-and-uncertainty/) [Chapter 4 · Why does a quantum particle cross a barrier it cannot climb? →](https://sandboxphysics.com/learn/quantum-physics/quantum-tunneling/)

Chapters in this volume

- [1. How do single detections build up an interference pattern?](https://sandboxphysics.com/learn/quantum-physics/single-event-interference/)
- [2. How does a wave function predict position and momentum?](https://sandboxphysics.com/learn/quantum-physics/wave-functions-and-uncertainty/)
- [3. How does a prepared quantum state evolve?](https://sandboxphysics.com/learn/quantum-physics/quantum-state-evolution/)
- [4. Why does a quantum particle cross a barrier it cannot climb?](https://sandboxphysics.com/learn/quantum-physics/quantum-tunneling/)
- [5. How do we read out a two-state quantum system?](https://sandboxphysics.com/learn/quantum-physics/two-level-systems-and-measurement/)
- [6. How do atoms turn energy gaps into frequency measurements?](https://sandboxphysics.com/learn/quantum-physics/atomic-spectra-and-ramsey/)
- [7. How do two systems produce quantum correlations?](https://sandboxphysics.com/learn/quantum-physics/entanglement-and-correlations/)

## Keep reading

Interactive Physics Textbook · Reading path

### Quantum Physics

1. [Article **How do single detections build up an interference pattern?**](https://sandboxphysics.com/learn/quantum-physics/single-event-interference/)
2. [Article **How does a wave function predict position and momentum?**](https://sandboxphysics.com/learn/quantum-physics/wave-functions-and-uncertainty/)
3. [You are here **How does a prepared quantum state evolve?**](https://sandboxphysics.com/learn/quantum-physics/quantum-state-evolution/)
4. [Article **Why does a quantum particle cross a barrier it cannot climb?**](https://sandboxphysics.com/learn/quantum-physics/quantum-tunneling/)
5. [Article **How do we read out a two-state quantum system?**](https://sandboxphysics.com/learn/quantum-physics/two-level-systems-and-measurement/)
6. [Article **How do atoms turn energy gaps into frequency measurements?**](https://sandboxphysics.com/learn/quantum-physics/atomic-spectra-and-ramsey/)
7. [Article **How do two systems produce quantum correlations?**](https://sandboxphysics.com/learn/quantum-physics/entanglement-and-correlations/)
