Exercise: Measuring Spin Along an Arbitrary Direction
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. The pedagogical value is in seeing the same physical result emerge from both frameworks, and in observing how the algebraic structure of the biquaternion framework handles the objects of quantum physics.
To keep the two solutions strictly parallel, each is presented in the same four steps: the state, the measurement operator, the outcome object, and the probability. The final result is stated in the same form in both solutions.
The conventions are those of the companion articles. The biquaternion algebra is $\mathbb{B} = \mathbb{C}\otimes_\mathbb{R}\mathbb{H}$, with the Hermitian subspace $\mathbb{B}_{\Psi}$ and the anti-Hermitian subspace $\mathbb{B}_{\Phi}$. The quaternion units are $e_t = 1, \vec e_x, \vec e_y, \vec e_z$ with $\vec e_\eta^2 = -e_t$, and $i$ is the scalar imaginary. The matrix trace of an element's image is twice its scalar part: $\operatorname{tr}\mathsf M_2(\tilde Q)=2\,\mathrm{Sc}(\tilde Q)$.
The Exercise
A spin-$\tfrac{1}{2}$ particle is prepared in the spin-up state along the $z$-axis. We measure the spin along a direction $\vec u_x$ that makes an angle $\theta$ with the $z$-axis, in the $xz$-plane. What is the probability of finding the particle spin-up along $\vec u_x$?
This is the canonical "rotate the Stern–Gerlach apparatus" exercise. It involves states, observables, and the Born rule, but no dynamics and no interactions.
Solution in the Standard Formulation
Step 1: The state
The spin-up state along the $z$-axis is the eigenvector of the Pauli matrix $\sigma_3$ with eigenvalue $+1$:
$$ |+z\rangle = \begin{pmatrix} 1 \ 0 \end{pmatrix}. $$
Step 2: The measurement operator
The measurement is along the direction
$$ \vec u_x = (\sin\theta,\, 0,\, \cos\theta). $$
The measurement operator is the spin projection along $\vec u_x$:
$$ \vec u_x\cdot\vec S =\frac{\hbar}{2}\,\vec u_x\cdot\boldsymbol{\sigma} =\frac{\hbar}{2}\begin{pmatrix} \cos\theta & \sin\theta \ \sin\theta & -\cos\theta \end{pmatrix}, $$
where $\boldsymbol{\sigma} = (\sigma_1, \sigma_2, \sigma_3)$ are the Pauli matrices.
Step 3: The eigenstate for the outcome
The eigenvector of $\vec u_x\cdot\vec S$ with eigenvalue $+\frac{\hbar}{2}$ (equivalently, the $+1$ eigenvector of $\vec u_x\cdot\boldsymbol{\sigma}$), up to a global phase, is
$$ |+n\rangle = \begin{pmatrix} \cos(\theta/2) \ \sin(\theta/2) \end{pmatrix}. $$
Step 4: The probability
The probability of finding the particle spin-up along $\vec u_x$, given that it was prepared spin-up along $z$, is given by the Born rule:
$$ p_+ = \bigl|\langle +n \mid +z\rangle\bigr|^2. $$
Computing the inner product:
$$ \langle +n \mid +z \rangle = \cos(\theta/2). $$
Therefore
$$ \boxed{\;p_+ = \bigl|\cos(\theta/2)\bigr|^2 = \cos^2(\theta/2) = \frac{1 + \cos\theta}{2}\;}. $$
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) = \tfrac{1}{2}\left(e_t + i\vec u\right), $$
where $\vec u$ is a unit pure real quaternion (a unit vector in $\mathbb{R}^3$). The spin-up state along $z$ corresponds to
$$ \tilde\Pi_z = \tfrac{1}{2}\left(e_t + i \vec e_z\right). $$
Step 2: The measurement operator
The same measurement direction $\vec u_x = \sin\theta\, \vec e_x + \cos\theta\, \vec e_z$ is now written as a unit pure real quaternion. The measurement operator is the Hermitian element of $\mathbb{B}_{\Psi}$ corresponding to the spin projection along $\vec u_x$:
$$ \tilde H_\Psi =\frac{\hbar}{2}\, i\vec u_x. $$
Step 3: The idempotent for the outcome
The idempotent of the eigenstate of $\tilde H_\Psi =\frac{\hbar}{2}i\vec u_x$ with eigenvalue $+\frac{\hbar}{2}$ is
$$ \tilde\Pi_n = \tfrac{1}{2}\left(e_t + i\vec u_x\right). $$
Step 4: The probability
The probability of finding the particle spin-up along $\vec u_x$, given that it was prepared spin-up along $z$, is given by the normalised Hermitian form, with the trace as its final reading at normalisation:
$$ p_+ = \frac{\langle\tilde\Pi_n,\tilde\Pi_z\rangle_{*}}{\langle\tilde\Pi_z,e_t\rangle_{*}} = \frac{\mathrm{Sc}(\tilde\Pi_n\circ\tilde\Pi_z^{*})}{\mathrm{Sc}(\tilde\Pi_z)} = \frac{\mathrm{Sc}(\tilde\Pi_n\circ\tilde\Pi_z)}{\mathrm{Sc}(\tilde\Pi_z)} = \frac{2\,\mathrm{Sc}(\tilde\Pi_n\circ\tilde\Pi_z)}{2\,\mathrm{Sc}(\tilde\Pi_z)} = 2\,\mathrm{Sc}\!\left(\tilde\Pi_n \circ \tilde\Pi_z\right), $$
where $\circ$ is the biquaternion product.
Computing the product:
$$ \tilde\Pi_n \circ \tilde\Pi_z = \tfrac{1}{4}\left(e_t + i\vec u_x\right)\left(e_t + i \vec e_z\right) = \tfrac{1}{4}\left[e_t + i \vec e_z + i\vec u_x - \vec u_x\,\vec e_z\right]. $$
Evaluating $\vec u_x\,\vec e_z$, using $\vec u_x = \sin\theta\, \vec e_x + \cos\theta\, \vec e_z$ and the quaternion product rules $\vec e_x \vec e_z = -\vec e_y$, $\vec e_z \vec e_z = -e_t$:
$$ \vec u_x\,\vec e_z = \sin\theta\, \vec e_x \vec e_z + \cos\theta\, \vec e_z \vec e_z = -\sin\theta\, \vec e_y - \cos\theta\, e_t. $$
Substituting:
$$ \tilde\Pi_n \circ \tilde\Pi_z = \tfrac{1}{4}\left[e_t + i \vec e_z + i\vec u_x + \sin\theta\, \vec e_y + \cos\theta\, e_t\right]. $$
The scalar part (coefficient of $e_t$) is $\tfrac{1}{4}\left(1 + \cos\theta\right)$; the other terms $i \vec e_z$, $i\vec u_x$, and $\sin\theta\, \vec e_y$ are vector terms with vanishing coefficient of $e_t$.
Applying the trace reading at normalisation:
$$ p_+ = 2 \cdot \tfrac{1}{4}\left(1 + \cos\theta\right) = \cos^2(\theta/2) = \frac{1 + \cos\theta}{2}. $$
Limiting Cases
Both formulations give the same result, and both give the same limits:
- $\theta = 0$ (measurement along $z$): $p_+ = \cos^2(0) = 1$.
- $\theta = \pi/2$ (measurement along $x$): $p_+ = \cos^2(\pi/4) = 1/2$.
- $\theta = \pi$ (measurement along $-z$): $p_+ = \cos^2(\pi/2) = 0$.
These agree with the physical expectation.
What the Biquaternion Solution Illustrates
1. States and observables are elements of the same subspace. The state $\tilde\Pi_z$ and the outcome idempotent $\tilde\Pi_n$ are both idempotents of $\mathbb{B}_{\Psi}$. The entire calculation involves only the algebra of the biquaternion units and the extraction of the scalar part.
2. The Born rule is the normalised Hermitian form. The probability is $p_+ = \langle\tilde\Pi_n,\tilde\Pi_z\rangle_{*}/\langle\tilde\Pi_z,e_t\rangle_{*} = \mathrm{Sc}(\tilde\Pi_n\tilde\Pi_z^{*})/\mathrm{Sc}(\tilde\Pi_z)$; on $\mathbb{B}_{\Psi}$ the star is inert, so this is $\mathrm{Sc}(\tilde\Pi_n\tilde\Pi_z)/\mathrm{Sc}(\tilde\Pi_z)$, and with the normalisation $2\,\mathrm{Sc}(\tilde\Pi_z)=1$ it reads $p_+ = 2\,\mathrm{Sc}(\tilde\Pi_n\tilde\Pi_z)$, the scalar part of the product being real and non-negative there. This is not an additional postulate: it is the natural pairing between two elements of the algebra, given by the Hermitian form. It is the same formula as $p_+ = \operatorname{tr}(\rho_n \rho_z)$ for density matrices, applied to the idempotents that represent the pure states.
3. No complex vectors are needed. In the standard solution, the calculation involves complex column vectors and their inner product. In the biquaternion solution, it involves only the algebra of $\mathbb{B}$: products of quaternion units, extraction of the scalar part, and the normalisation of the scalar part. The complex structure is absorbed into the scalar imaginary $i$ of the algebra.
4. The geometry enters through the algebra. The angle $\theta$ enters through the unit vector $\vec u_x = \sin\theta\, \vec e_x + \cos\theta\, \vec e_z$ that parametrizes the measurement direction. The result depends on $\theta$ only through the scalar product $\vec u_x\cdot \vec e_z = \cos\theta$, which appears in the Hermitian form through the product $\vec u_x\,\vec e_z$. The geometry of the Bloch sphere is encoded in the multiplication rules of the algebra.
5. 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 idempotent $\tilde\Pi(\vec u_x) = \tfrac{1}{2}(e_t + i\vec u_x)$ corresponds exactly to the rank-one projector $\tfrac{1}{2}(I + \vec u_x\cdot\boldsymbol{\sigma})$. But seeing the same result emerge from the algebra is a useful sanity check on the biquaternion framework.
Extension: The Expectation Value of the Spin
The same pattern applies to the calculation of the expectation value of the spin along $\vec u_x$ in the state $|+z\rangle$. The two formulations are again strictly parallel.
Standard formulation
$$ \langle \vec u_x\cdot\vec S\rangle_{+z} = \langle +z|\vec u_x\cdot\vec S|+z\rangle =\frac{\hbar}{2}\cos\theta. $$
Biquaternion formulation
The observable is $\tilde H_\Psi =\frac{\hbar}{2} i\vec u_x$ and the state is $\tilde\Pi_z = \tfrac{1}{2}(e_t + i \vec e_z)$. The expectation value is given by the normalised Hermitian form, with the trace reading last:
$$ \langle \tilde H_\Psi\rangle_{\tilde\Pi_z} = \frac{\langle\tilde\Pi_z,\tilde H_\Psi\rangle_{*}}{\langle\tilde\Pi_z,e_t\rangle_{*}} = 2\,\mathrm{Sc}(\tilde\Pi_z \circ \tilde H_\Psi). $$
which is already the doubled scalar part $2\,\mathrm{Sc}(\tilde\Pi_z\circ\tilde H_\Psi)$, the star being inert and that scalar part real.
Computing the product:
$$ \tilde\Pi_z \circ \tilde H_\Psi = \tfrac{1}{2}\frac{\hbar\,(e_t + i \vec e_z)}{2} i\vec u_x =\frac{\hbar}{4}\left(i\vec u_x - \vec e_z \vec u_x\right). $$
Evaluating $\vec e_z \vec u_x$, using $\vec e_z \vec e_x = \vec e_y$ and $\vec e_z \vec e_z = -e_t$:
$$ \vec e_z \vec u_x = \vec e_z(\sin\theta\, \vec e_x + \cos\theta\, \vec e_z) = \sin\theta\, \vec e_y - \cos\theta\, e_t. $$
Substituting:
$$ \tilde\Pi_z \circ \tilde H_\Psi =\frac{\hbar}{4}\left(i\vec u_x - \sin\theta\, \vec e_y + \cos\theta\, e_t\right). $$
The scalar part is $\frac{\hbar}{4}\cos\theta$. Therefore
$$ \boxed{\;\langle \tilde H_\Psi\rangle_{\tilde\Pi_z} =\frac{\hbar}{2}\cos\theta =\frac{\hbar}{2}\cos\theta\;}. $$
Both formulations give the same result.
Summary
We have solved a simple exercise in quantum physics — the probability of measuring spin-up along an arbitrary direction, given a spin-up state along $z$ — in two parallel presentations.
In the standard formulation, the solution proceeds through ket vectors, Pauli matrices, and the Born rule in the form $p_+ = |\langle +n | +z\rangle_{*}|^2$, giving $p_+ = \cos^2(\theta/2) = (1 + \cos\theta)/2$.
In the biquaternion formulation, the solution proceeds through the idempotents of $\mathbb{B}_{\Psi}$ and the normalised Hermitian form $p_+=\langle\tilde\Pi_n,\tilde\Pi_z\rangle_{*}/\langle\tilde\Pi_z,e_t\rangle_{*}=\mathrm{Sc}(\tilde\Pi_n\circ\tilde\Pi_z^{*})/\mathrm{Sc}(\tilde\Pi_z)$, which is $2\,\mathrm{Sc}(\tilde\Pi_n\circ\tilde\Pi_z)$ at normalisation, giving the same result.
The two formulations agree, as they must. The biquaternion formulation makes explicit the algebraic structure of the qubit: states and observables are elements of the same subspace, the Born rule is the natural pairing given by the trace, and the geometry of the Bloch sphere is encoded in the multiplication rules of the algebra.
Summary of Notation
| Symbol | Meaning |
|---|---|
| $\mathbb{B}$ | Biquaternion algebra |
| $\mathbb{B}_{\Psi}$ | Hermitian subspace (states, observables) |
| $\mathbb{B}_{\Phi}$ | Anti-Hermitian subspace (generators) |
| $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 |
| $\tilde\Pi(\vec u) = \tfrac{1}{2}(e_t + i\vec u)$ | Pure-state idempotent |
| $\tilde H_\Psi = h_t e_t + i\vec h_\Psi$ | Hermitian element (observable) |
| $\operatorname{tr}\mathsf M_2(\tilde Q)=2\,\mathrm{Sc}(\tilde Q)$ | Matrix trace of the image of an element |
| $p_+ = 2\langle\tilde\Pi_n,\tilde\Pi_z\rangle_{*} = 2\,\mathrm{Sc}(\tilde\Pi_n \circ \tilde\Pi_z)$ | Born rule in biquaternion form |
Further Reading
- P. A. M. Dirac, The Principles of Quantum Mechanics (Oxford, 1930), for the standard formulation of spin-$\tfrac{1}{2}$.
- J. J. Sakurai and Jim Napolitano, Modern Quantum Mechanics (Pearson, 2017), for the standard textbook treatment of the spin-$\tfrac{1}{2}$ measurement.
- Michael A. Nielsen and Isaac L. Chuang, Quantum Computation and Quantum Information (Cambridge, 2000), for the Bloch sphere and the Born rule for qubits.
- The companion articles of this series: Quantum Physics in Biquaternionic Form, Spin-1/2 Quantum Physics in Biquaternionic Form, and States, Observables and the Born Weight.