Spin Precession in Three Pictures Notebook
This notebook guide specifies a reproducible spin-precession calculation in three equivalent pictures of quantum mechanics. The purpose is to make picture equivalence computationally visible: states and operators may carry time dependence differently, but physical expectation values agree.
The existing source notebook notebooks/wave-mechanics-canonical-systems/two-level-systems/two-level-system-dynamics.ipynb provides a compatible two-level dynamics benchmark. A Dynamics-specific notebook should extend that style by computing the same spin expectation values in the Schrödinger, Heisenberg, and interaction pictures and comparing them numerically.
Purpose
Section titled “Purpose”The notebook should show:
- spin-half precession in a constant magnetic-field-like Hamiltonian;
- state evolution in the Schrödinger picture;
- Pauli-operator evolution in the Heisenberg picture;
- an interaction-picture split with matching expectation values;
- numerical equality checks between all three pictures.
The central validation target is not a plot. It is the equality
for the same physical observable .
Physics Goal
Section titled “Physics Goal”Use a spin-half Hamiltonian written in Pauli-matrix form:
where
and is a constant vector with units of angular frequency. A useful nontrivial benchmark is
so the interaction-picture split can separate the part from the transverse part.
The exact unitary is
where
This closed form is the analytic benchmark for the notebook.
Mathematical Model
Section titled “Mathematical Model”In the Schrödinger picture,
and
In the Heisenberg picture,
while the state is fixed:
The expectation value is
The Heisenberg equation gives the vector precession law
For the interaction picture, split
with
Then
and the interaction-picture objects are
and
The interaction-picture expectation value is
This expression should match the Schrödinger and Heisenberg results at every sampled time.
Numerical Method
Section titled “Numerical Method”Use explicit matrices:
Set in the code unless physical units are part of the exercise. Choose an initial state, such as the spin state
For each time :
- Build from the exact closed form.
- Compute .
- Compute .
- Build and compute the interaction-picture state and operators.
- Evaluate , , and in all three pictures.
- Assert that the three answers agree within tolerance.
No numerical ODE solver is required for the baseline notebook. An optional extension can integrate the interaction-picture equation and compare the result with the exact .
How to Run the Notebook
Section titled “How to Run the Notebook”Use a NumPy-only baseline. A reliable first parameter set is
Sample several periods of the total precession frequency
The notebook should print or assert:
- unitarity residuals for and ;
- equality residuals between pictures;
- Bloch-vector norm;
- conservation of the Bloch-vector component along ;
- Pauli algebra checks at initialization.
Plots are useful after the assertions pass. A good plot shows the three components of the Bloch vector versus time, but the validation cells should remain independent of plotting.
Expected Results
Section titled “Expected Results”The Bloch vector
rotates about . Its norm is preserved for a pure state:
The component along the precession axis is conserved:
For the special case and initial state ,
This simple case is a useful sign-convention check.
Validation Checks
Section titled “Validation Checks”The minimum validation suite should include:
| Check | Target |
|---|---|
| Pauli algebra | |
| Unitarity | and |
| Picture equality | all three values agree |
| Bloch norm | for pure states |
| Axis projection | is constant |
| Special-case signs | -axis precession matches the analytic sine and cosine formulas |
The equality check should compare arrays over all sampled times, not just one time point.
Convergence Checks
Section titled “Convergence Checks”For the exact-unitary baseline, convergence mainly means verifying floating-point stability and sampling resolution. If the notebook adds numerical integration of the interaction-picture equation, convergence should be checked by reducing the time step and comparing with the exact unitary.
For a time-stepper, useful residuals are:
and
If the integrator is not exactly unitary, the Bloch-vector norm may drift. That drift should be reported, not hidden by normalizing after every step unless the method explicitly includes such a projection.
Common Numerical Failures
Section titled “Common Numerical Failures”- Changing the sign convention for without updating the expected precession direction.
- Comparing a Schrödinger-picture state with a Heisenberg-picture operator incorrectly.
- Treating a global phase difference between state vectors as a physical disagreement.
- Forgetting complex conjugation in expectation values.
- Using a nonunitary time stepper and missing Bloch-norm drift.
- Testing only when happens to be conserved.
- Mixing conventions for spin operators and Pauli matrices .
Extensions
Section titled “Extensions”Natural extensions include:
- add a rotating frame and connect it to the interaction picture;
- use a time-dependent transverse drive and compare with a time-ordered numerical solution;
- add a Rabi-oscillation benchmark;
- compare exact unitary evolution with first-order and second-order time stepping;
- add mixed states and verify density-matrix evolution;
- add dephasing only after the closed-system picture equivalence is validated.
Cross-Links
Section titled “Cross-Links”- Schrödinger Picture
- Heisenberg Picture
- Interaction Picture
- Two-State Hamiltonians
- Pauli Matrices
- Bloch Sphere
- Spin and Pauli Matrix Conventions
- Validation Tests
References
Section titled “References”- J. J. Sakurai and J. Napolitano, Modern Quantum Mechanics, 3rd ed., Cambridge University Press, 2020.
- R. Shankar, Principles of Quantum Mechanics, 2nd ed., Springer, 1994.
- D. J. Griffiths and D. F. Schroeter, Introduction to Quantum Mechanics, 3rd ed., Cambridge University Press, 2018.
- J. M. Thijssen, Computational Physics, 2nd ed., Cambridge University Press, 2007.
Exercises
Section titled “Exercises”- For and initial state , compute and .
Solution
The unitary is
The state evolves to
Direct evaluation gives
- Why should the three pictures give the same spin expectation values?
Solution
The pictures are related by unitary transformations that move time dependence between states and operators. For example,
The right-hand side is the Heisenberg-picture expectation value. The interaction picture is another unitary redistribution of the same time dependence, so the scalar expectation value is unchanged.
- What validation check detects a sign error in the Hamiltonian convention?
Solution
The special case with initial state detects the sign. With the convention , the expected result is
Changing the sign of reverses the sign of the expectation.
- Why is comparing state-vector components across pictures a poor validation test?
Solution
Different pictures intentionally assign time dependence to different objects. State vectors in different pictures need not have the same components, and they may differ by unitary transformations or global phases. Physical validation should compare expectation values, transition probabilities, unitarity, and invariant quantities such as Bloch-vector norm.