Exercise: Spin Precession in a Magnetic Field

Introduction

This article is one of a series of worked exercises that illustrate quantum physics in two parallel presentations: the standard Hilbert-space formulation, and the biquaternion formulation developed in the companion articles. The goal is not to derive new physics, but to give the reader a concrete, computationally explicit demonstration of the correspondence between the two formalisms.

Each exercise in the series is solved twice: first in the standard way, then in the biquaternion way. The results agree, as they must: the two formulations are the same mathematics in different notation. To keep the two solutions strictly parallel, each is presented in the same steps, and the final result is stated in the same form.

The first exercise treated the Born rule and the measurement of spin along an arbitrary direction. This second exercise treats dynamics: the time evolution of a spin state under a time-independent Hamiltonian.

The Exercise

A spin-$\tfrac{1}{2}$ particle is prepared in the spin-up state along the $x$-axis, and is then placed in a uniform magnetic field

$$ \vec B = B_0\,\vec u_z $$

pointing along the $z$-axis. The magnetic moment of the particle is $\vec\mu = \gamma\vec S$, where $\gamma$ is the gyromagnetic ratio and $\vec S$ is the spin operator. What is the expectation value of the spin along the $x$-axis as a function of time?

This is the classic Larmor precession exercise. It exercises the Hamiltonian, the evolution operator, and the time-dependent expectation value, in a setting where the answer is a simple harmonic function of time.

Solution in the Standard Formulation

Step 1: The state

The spin-up state along the $x$-axis is the eigenvalue-$+1$ eigenvector of the Pauli matrix $\sigma_1$:

$$ |+x\rangle = \frac{1}{\sqrt{2}}\begin{pmatrix} 1 \ 1 \end{pmatrix}. $$

Step 2: The Hamiltonian

The Hamiltonian of a magnetic moment $\vec\mu = \gamma\vec S$ in a magnetic field $\vec B = B_0\vec u_z$ is

$$ H = -\vec\mu\cdot\vec B = -\gamma B_0 S_z = -\frac{\hbar\,\omega_{L}}{2}\sigma_3, $$

where

$$ \omega_L = \gamma B_0 $$

is the Larmor frequency and $S_z =\frac{\hbar}{2}\sigma_3$.

Step 3: The evolution

The evolution operator is

$$ T(r'_t) = \exp(-i\theta_{\mathrm{evo}}\sigma_3/2) = \exp(\,i\omega_L r'_t\sigma_3/(2c)) = \begin{pmatrix} \exp(i\theta_{\mathrm{spp}}) & 0 \\ 0 & \exp(-i\theta_{\mathrm{spp}}) \end{pmatrix}, \qquad \theta_{\mathrm{pwt}}:=\frac{\omega_L r'_t}{c},\quad \theta_{\mathrm{spp}}:=\frac{\theta_{\mathrm{pwt}}}{2},\quad \theta_{\mathrm{evo}}:=-\theta_{\mathrm{pwt}} . $$

The evolved state is

$$ |\tilde{Ξ}(r'_t)\rangle = T(r'_t)\,|+r_x\rangle = \frac{1}{\sqrt{2}}\begin{pmatrix} \exp(i\theta_{\mathrm{spp}}) \\ \exp(-i\theta_{\mathrm{spp}}) \end{pmatrix}. $$

The angle is $\theta_{\mathrm{pwt}}=\omega_L r'_t/c$: a real frequency times a real interval over $c$, so the angle is real and dimensionless. The half-angle $\theta_{\mathrm{spp}}=\theta_{\mathrm{pwt}}/2$ is the angle the spinor carries. It is real for the same reason, and the divisor is the fixed number two.

Step 4: The expectation value

The expectation value of $S_x =\frac{\hbar}{2}\sigma_1$ in the state $|\tilde{Ξ}(r'_t)\rangle$ is

$$ \langle S_x\rangle(r'_t) = \langle\tilde{Ξ}(r'_t)|S_x|\tilde{Ξ}(r'_t)\rangle. $$

Computing the matrix element,

$$ \langle\tilde{Ξ}(r'_t)|\sigma_1|\tilde{Ξ}(r'_t)\rangle = \frac{1}{2}\left(\exp(-i\theta_{\mathrm{spp}}) \cdot \exp(-i\theta_{\mathrm{spp}}) + \exp(i\theta_{\mathrm{spp}}) \cdot \exp(i\theta_{\mathrm{spp}})\right) = \frac{1}{2}\left(\exp(-i\theta_{\mathrm{pwt}}) + \exp(i\theta_{\mathrm{pwt}})\right) = \cos(\omega_L r'_t/c). $$

Therefore

$$ \langle S_x\rangle(r'_t) =\frac{\hbar}{2}\cos(\omega_L r'_t/c). $$

Solution in the Biquaternion Formulation

Step 1: The state

In the biquaternion framework, a pure spin state is an idempotent of the Hermitian subspace $\mathbb{B}_{\Psi}$, of the form

$$ \tilde\Pi(\vec u_m) = \tfrac{1}{2}\left(e_t + i\vec u_m\right), $$

where $\vec u_m$ is a unit pure real quaternion. The spin-up state along $x$ corresponds to $\vec u_m = \vec e_x$, giving

$$ \tilde\Pi_x = \tfrac{1}{2}\left(e_t + i \vec e_x\right). $$

Step 2: The Hamiltonian

The spin observable along $z$ is $\tilde{S}_{\Psi,z} =\frac{\hbar}{2}\,i \vec e_z$. The Hamiltonian is therefore the Hermitian element of $\mathbb{B}_{\Psi}$

$$ \tilde H_\Psi = -\gamma B_0 \tilde{S}_{\Psi,z} = -\frac{\hbar\,\omega_{L}}{2}\,i \vec e_z, $$

with $\omega_L = \gamma B_0$.

Step 3: The evolution

The evolution operator is the unit-norm biquaternion

$$ \tilde{U}(r'_t) = \exp\!\left(-\frac{i\,Hr'_{t}}{\hbar\,c}\right) = \exp\!\left(-\frac{\omega_L r'_t}{2\,c}\,\vec e_z\right) = \cos\!\left(\frac{\omega_L r'_t}{2\,c}\right)e_t - \sin\!\left(\frac{\omega_L r'_t}{2\,c}\right)\vec e_z, $$

where we have used the identity $\exp(\theta\,\vec e_z) = \cos\theta\,e_t + \sin\theta\,\vec e_z$, which follows from $\vec e_z^2 = -e_t$, and set $\theta = -\omega_L r'_t/c/2$.

The evolved state is

$$ \tilde{Ϛ}_{\Psi}(r'_t) = \tilde{U}(r'_t)\,\tilde\Pi_x\,\tilde{U}(r'_t)^{*}. $$

Computing the product, using $\tilde{U}(r'_t)^{*} = \tilde{U}^{\natural}(r'_t) = \cos(\omega_L r'_t/(2c))\,e_t + \sin(\omega_L r'_t/(2c))\,\vec e_z$ (since $\tilde{U}$ is a real quaternion), gives

$$ \tilde{Ϛ}_{\Psi}(r'_t) = \tfrac{1}{2}\left(e_t + i\cos(\omega_L r'_t/c)\,\vec e_x - i\sin(\omega_L r'_t/c)\,\vec e_y\right). $$

Step 4: The expectation value

The expectation value of the spin along $x$ is given by the normalised Hermitian form

$$ \langle\tilde{S}_{\Psi,x}\rangle(r'_t) = \frac{\langle\tilde{Ϛ}_{\Psi}(r'_t),\tilde{S}_{\Psi,x}\rangle_{*}}{\langle\tilde{Ϛ}_{\Psi}(r'_t),e_t\rangle_{*}} = \frac{\mathrm{Sc}\bigl(\tilde{Ϛ}_{\Psi}(r'_t)\,\tilde{S}_{\Psi,x}^{*}\bigr)}{\mathrm{Sc}\bigl(\tilde{Ϛ}_{\Psi}(r'_t)\bigr)} = 2\,\mathrm{Sc}\!\left(\tilde{Ϛ}_{\Psi}(r'_t)\,\tilde{S}_{\Psi,x}\right), $$

$$ \tilde{Ϛ}_{\Psi}(r'_t)\,\tilde{S}_{\Psi,x} =\frac{\hbar}{4}\left(i \vec e_x + \cos(\omega_L r'_t/c)\,e_t - \sin(\omega_L r'_t/c)\,\vec e_z\right), $$

the scalar part is $\frac{\hbar}{4}\cos(\omega_L r'_t/c)$. Applying the Hermitian form, with the trace reading last,

$$ \boxed{\;\langle\tilde{S}_{\Psi,x}\rangle(r'_t) =\frac{\hbar}{2}\cos(\omega_L r'_t/c)\;}. $$

Limiting Cases

Both formulations give the same result, and both give the same limits:

  • $r'_t = 0$ (initial time): $\langle S_x\rangle =\frac{\hbar}{2}$, as expected since the state is spin-up along $x$.
  • $\omega_L r'_t/c = \pi/2$ (quarter period): $\langle S_x\rangle = 0$.
  • $\omega_L r'_t/c = \pi$ (half period): $\langle S_x\rangle = -\frac{\hbar}{2}$, the state has precessed to spin-down along $x$.
  • $\omega_L r'_t/c = 2\pi$ (full period): $\langle S_x\rangle =\frac{\hbar}{2}$, the state has returned to its initial orientation.

The spin precesses in the $xy$-plane with angular frequency $\omega_L$, as expected for Larmor precession.

What the Biquaternion Solution Illustrates

1. The Hamiltonian is a Hermitian element of $\mathbb{B}_{\Psi}$. The observable $\tilde{S}_{\Psi,z} =\frac{\hbar}{2}i \vec e_z$ is an element of $\mathbb{B}_{\Psi}$, and the Hamiltonian $\tilde H_\Psi = -\gamma B_0 \tilde{S}_{\Psi,z}$ inherits this property. The Hamiltonian is a Hermitian element of the same subspace as the observables and the states.

2. The evolution operator is a unit-norm biquaternion. The exponential $\tilde{U}(r'_t) = \exp(-i\theta_{\mathrm{evo}}\sigma_3/2)$ is a unit-norm element of $\mathbb{B}$, lying in the real quaternion subspace $\mathbb{H}_\mathbb{B}$ for this particular Hamiltonian (because $\tilde H_\Psi$ is proportional to $i \vec e_z$, and the exponential of $\vec e_z$ is a real quaternion). The evolution is a rotor in the sense of geometric algebra.

The angle is $\theta_{\mathrm{evo}}=-\omega_L r'_t/c$. It is real because a real frequency, a real interval and the real constant $c$ form it, and it is dimensionless because a frequency times a length over a speed is a number. The minus sign records the sign of the Hamiltonian, $-\frac{\hbar\omega_L}{2}i\vec e_z$; the generator $\sigma_3/2$ is dimensionless, so it adds no dimension to the exponent.

3. The state evolves by rotor conjugation. The evolved state is $\tilde{Ϛ}_{\Psi}(r'_t) = \tilde Q(r'_t)\tilde{Ϛ}_{\Psi}(0)\tilde Q(r'_t)^{*}$. This is the standard form of the von Neumann evolution, expressed as a rotor conjugation on the algebra. The evolution is automatically $*$-unitary: $\tilde Q\tilde Q^{*} = e_t$ is preserved by the exponential form.

4. The precession is a rotation of the Bloch vector. The evolved state has the form $\tilde{Ϛ}_{\Psi}(r'_t) = \frac{1}{2}(e_t + i\vec s_{\Psi}(r'_t))$ with

$$ \boxed{\;\vec s_{\Psi}(r'_t) = \cos(\omega_L r'_t/c)\,\vec e_x - \sin(\omega_L r'_t/c)\,\vec e_y\;}. $$

This is a unit vector rotating in the $xy$-plane with angular frequency $\omega_L$. The Bloch vector precesses about the $z$-axis, which is the direction of the magnetic field. The precession is the algebraic content of Larmor precession.

5. The expectation value is the normalised Hermitian form, read through the trace last. As in Exercise: Measuring Spin Along an Arbitrary Direction, the expectation value is

$$ \langle\tilde{S}_{\Psi,x}\rangle(r'_t) = \frac{\langle\tilde{Ϛ}_{\Psi}(r'_t),\tilde{S}_{\Psi,x}\rangle_{*}}{\langle\tilde{Ϛ}_{\Psi}(r'_t),e_t\rangle_{*}} = 2\,\mathrm{Sc}\!\left(\tilde{Ϛ}_{\Psi}(r'_t)\,\tilde{S}_{\Psi,x}\right), $$

whose scalar-part reading is $2\,\mathrm{Sc}(\tilde{Ϛ}_{\Psi}(r'_t)\tilde{S}_{\Psi,x})$, the same Hermitian form that gives the Born probabilities. Both the Born rule and the expectation values of observables are instances of the same Hermitian form on $\mathbb{B}_{\Psi}$.

6. The result agrees with the standard formulation. This is not surprising, because the two formulations are the same mathematics in different notation: $\mathbb{B} \cong M_2(\mathbb{C})$, and the biquaternion evolution $\tilde{U}(r'_t) = \exp(-i\theta_{\mathrm{evo}}\sigma_3/2)$ corresponds exactly to the standard matrix evolution $T(r'_t) = \exp(-i\theta_{\mathrm{evo}}\sigma_3/2)$ under the isomorphism. But seeing the same result emerge from the algebra is a useful sanity check on the framework, and it illustrates the structural claim of the companion articles: the dynamics of a qubit is contained in the Hermitian subspace $\mathbb{B}_{\Psi}$, with the evolution given by rotor conjugation by a unit-norm biquaternion.

Comparison with Exercise: Measuring Spin Along an Arbitrary Direction

Measuring Spin Along an Arbitrary Direction Spin Precession in a Magnetic Field
Physical process Measurement Time evolution
Structural object Idempotent (state) + idempotent (projector) Idempotent (state) + $*$-unitary (evolution)
Rule used Trace reading at normalisation (Born rule) Pairing formula (expectation value)
Result $\cos^2(\theta/2)$ $(\frac{\hbar}{2})\cos(\omega_L r'_t/c)$

These two exercises illustrate the two fundamental operations of the quantum formalism: measurement (Exercise: Measuring Spin Along an Arbitrary Direction) and evolution (Exercise: Spin Precession in a Magnetic Field). In both cases, the biquaternion framework expresses the operation as an algebraic manipulation of the elements of $\mathbb{B}_{\Psi}$ and $\mathbb{H}_\mathbb{B}$.

Summary

We have solved a second exercise in quantum physics — the Larmor precession of a spin in a magnetic field — in two parallel presentations.

In the standard formulation, the solution proceeds through ket vectors, Pauli matrices, the Hamiltonian, the evolution operator, and the expectation value, giving $\langle S_x\rangle(r'_t) =\frac{\hbar}{2}\cos(\omega_L r'_t/c)$.

In the biquaternion formulation, the solution proceeds through the idempotent $\tilde\Pi_x$, the Hermitian Hamiltonian $\tilde H_\Psi$, the unit-norm evolution biquaternion $\tilde{U}(r'_t)$, the evolved state $\tilde{Ϛ}_{\Psi}(r'_t)$, and the pairing formula, giving the same result.

The two formulations agree, as they must. The biquaternion formulation makes explicit the algebraic structure of the evolution: the Hamiltonian is a Hermitian element of $\mathbb{B}_{\Psi}$, the evolution operator is a unit-norm biquaternion, the evolved state is the rotor conjugate of the initial state, and the expectation value is the normalised Hermitian form, read through the trace.

Summary of Notation

Symbol Meaning
$\mathbb{B}$ Biquaternion algebra
$\mathbb{B}_{\Psi}$ Hermitian subspace (states, observables, Hamiltonians)
$\mathbb{H}_\mathbb{B}$ Quaternion subspace (home of the real rotation rotors)
$e_t = 1, \vec e_x, \vec e_y, \vec e_z$ Quaternion basis, $\vec e_\eta^2 = -e_t$
$i$ Scalar imaginary, $i^2 = -1$
$\boldsymbol{\sigma} = (\sigma_1, \sigma_2, \sigma_3)$ Pauli matrices
$\gamma$ Gyromagnetic ratio
$\omega_L = \gamma B_0$ Larmor frequency
$\tilde\Pi_x = \tfrac{1}{2}(e_t + i\vec e_x)$ Spin-up state along $x$
$\tilde{S}_{\Psi,x} =\frac{\hbar}{2} i\vec e_x$ Spin observable along $x$
$\tilde H_\Psi = -\frac{\hbar\,\omega_{L}}{2} i\vec e_z$ Hamiltonian
$\tilde{U}(r'_t) = \exp(-i\theta_{\mathrm{evo}}\sigma_3/2)$ Evolution biquaternion
$\theta_{\mathrm{pwt}}:=\omega_L r'_t/c$ The precession angle
$\theta_{\mathrm{spp}}:=\theta_{\mathrm{pwt}}/2$ The spinor half-angle
$\theta_{\mathrm{evo}}:=-\theta_{\mathrm{pwt}}$ The evolution angle, negative of the precession angle
$\tilde{Ϛ}_{\Psi}(r'_t) = \tilde{U}(r'_t)\tilde{Ϛ}_{\Psi}(0)\tilde{U}(r'_t)^{*}$ Evolved state
$\langle\tilde{S}_{\Psi,x}\rangle(r'_t) = 2\,\mathrm{Sc}(\tilde{Ϛ}_{\Psi}(r'_t)\tilde{S}_{\Psi,x})$ Expectation value
$\langle\tilde{Q}_1,\tilde{Q}_2\rangle_{\natural}$ the general quaternionic bilinear form, $\mathrm{Sc}(\tilde{Q}_1^{\natural}\tilde{Q}_2)$; on the diagonal $\langle\tilde{Q}_2,\tilde{Q}_2\rangle_{\natural}=\langle\tilde{Q}_2\rangle_{\natural}$
$\langle\tilde{Q}_1,\tilde{Q}_2\rangle_{*}$ the general plain sesquilinear form, $\mathrm{Sc}(\tilde{Q}_1\tilde{Q}_2^{*})$; on the diagonal $\langle\tilde{Q}_2,\tilde{Q}_2\rangle_{*}=\sum_\mu\lvert Q_{2\mu}\rvert^{2}$
$\langle\tilde{Q}_1,\tilde{Q}_2\rangle$ the general plain bilinear form, the scalar part of the general plain bilinear product, $\mathrm{Sc}(\tilde{Q}_1\tilde{Q}_2)$

Further Reading