All projects

Mathematics

Seeing the 3-Sphere

A sphere in four dimensions does not fit in our space, but its shadow does. This page builds the 3-sphere in two steps: first the ordinary sphere, flattened by a lamp at its north pole as on a medieval astrolabe, then the same trick one dimension up. On the way the 3-sphere turns out to be woven entirely from circles, each linked with every other one like the rings of a chain. The same sphere holds the state of every quantum bit, keeps the orbits of the planets closed, and explains why the energy levels of hydrogen are so crowded.
  • Topology
  • Quaternions
  • Hopf fibration

In simple words

You cannot flatten an orange peel without tearing or stretching it, and yet every map of the Earth is flat. One old trick puts a lamp at the North Pole of a glass globe and looks at the shadow it throws on a sheet of glass. Every point of the globe gets its own spot, circles stay circles, and only the North Pole itself is lost, flung off to infinity.

The 3-sphere is the same kind of object one dimension up: the surface of a ball in four dimensions. We cannot see it directly, but the same lamp trick casts its shadow into our ordinary space, and then a surprise appears. The whole 3-sphere is woven from circles, and every one of them is linked with every other one exactly once, like two rings of a chain. It is not only pretty. The state of a quantum bit, the building block of a quantum computer, is a point on exactly this 3-sphere, and the same sphere hides in the way the planets go round the Sun and in the hydrogen atom. Start with the ordinary sphere below, then move on to the 3-sphere. Each demo has a guided tour.

S² stereographic projection: opens in a new tab, full window.

A lamp at the north pole

Take the unit sphere S2S^2, put a lamp at its north pole N=(0,0,1)N=(0,0,1), and follow the ray from the lamp through a point (x,y,z)(x,y,z) of the sphere until it meets the equatorial plane. That is stereographic projection,

σ(x,y,z)=(x, y)1−z,σ−1(u,v)=(2u, 2v, ρ2−1)ρ2+1,ρ2=u2+v2.\sigma(x,y,z)=\frac{(x,\,y)}{1-z},\qquad \sigma^{-1}(u,v)=\frac{(2u,\ 2v,\ \rho^2-1)}{\rho^2+1},\quad \rho^2=u^2+v^2 .

It is very old. The oldest treatise on it to survive is Ptolemy's Planisphere from the second century, and it is the mathematics behind the flat plates of the astrolabe, which carried a map of the sky for more than a thousand years [1]. The southern hemisphere lands inside the unit circle, the equator on it, and the northern hemisphere outside. The lamp itself has no image: it becomes a single point at infinity, and the plane is the sphere with one point missing.

Two properties make the map special. It preserves angles, so a small square on the sphere stays a square in the plane, only scaled by the factor (1+ρ2)/2(1+\rho^2)/2: half size at the centre and larger without bound far out, which is why the regions near the lamp look so enlarged. And it sends every circle on the sphere to a circle in the plane, or to a straight line when the circle runs through the lamp. The parallel at angle θ\theta from the north pole becomes a circle of radius cot⁡(θ/2)\cot(\theta/2) around the origin, and the meridians, which all pass through the lamp, become straight lines through the origin. The left pane of the demo shows the plain shadow for comparison: light from far above, each point simply dropped to (x,y)(x,y). There the two hemispheres land on top of each other, and tilted circles turn into ellipses.

Writing the plane as the complex numbers, ζ=(x+iy)/(1−z)\zeta = (x+iy)/(1-z), makes the map even more useful. Every rotation of the sphere becomes a fraction

ζ ↦ a ζ+b−bˉ ζ+aˉ,∣a∣2+∣b∣2=1.\zeta\ \mapsto\ \frac{a\,\zeta + b}{-\bar b\,\zeta + \bar a},\qquad |a|^2+|b|^2=1 .

A turn by the angle α\alpha about the xx axis, for example, has a=cos⁡(α/2)a=\cos(\alpha/2) and b=isin⁡(α/2)b=i\sin(\alpha/2). Two remarks prepare the rest of the page. Fractions of the same kind, with more general coefficients, describe how the night sky looks to a traveller moving close to the speed of light, which is why a sphere flying past still looks round [2]. And the pair (a,b)(a,b), four real numbers with squares adding up to one, is a point of the 3-sphere. Because the angle enters halved, a full turn changes (a,b)(a,b) into (−a,−b)(-a,-b), the opposite point. The rotations of an ordinary sphere already live on the 3-sphere.

Quaternion S³: shadow and stereographic projections: opens in a new tab, full window.

One dimension up

The 3-sphere is the set of points of four-dimensional space at distance one from the origin,

S3={(w,x,y,z): w2+x2+y2+z2=1}.S^3=\{(w,x,y,z):\ w^2+x^2+y^2+z^2=1\}.

The natural coordinates on it are Hamilton's quaternions q=w+x i+y j+z kq = w + x\,i + y\,j + z\,k, with i2=j2=k2=ijk=−1i^2=j^2=k^2=ijk=-1 [3]. Hamilton found these rules on a walk along the Royal Canal in Dublin in October 1843 and carved them into the stone of Broom Bridge [4]. The quaternions of length one are exactly the points of S3S^3, and each of them turns ordinary space:

v ↦ q v qˉ,q=cos⁡α2+sin⁡α2 (nxi+nyj+nzk),\mathbf v\ \mapsto\ q\,\mathbf v\,\bar q,\qquad q=\cos\tfrac{\alpha}{2} + \sin\tfrac{\alpha}{2}\,(n_x i+n_y j+n_z k),

a rotation by the angle α\alpha about the axis n\mathbf n. The demo shows S3S^3 in two ways at once. On the left is the shadow, the analogue of the plain shadow of the sphere: the 3-sphere is first turned in four dimensions with the three sliders for the (w,x)(w,x), (w,y)(w,y) and (w,z)(w,z) planes, and then ww is dropped. The two halves w>0w>0 and w<0w<0 then fill the same solid ball on top of each other. On the right is the stereographic image of the same turned 3-sphere, from the pole N=(1,0,0,0)N=(1,0,0,0),

σ(w,x,y,z)=(x, y, z)1−w,σ−1(X)=(∣X∣2−1, 2X)∣X∣2+1.\sigma(w,x,y,z)=\frac{(x,\,y,\,z)}{1-w},\qquad \sigma^{-1}(\mathbf X)=\frac{\left(|\mathbf X|^2-1,\ 2\mathbf X\right)}{|\mathbf X|^2+1}.

It fills all of ordinary space. The half with w<0w<0 lands inside the unit ball, the equator w=0w=0 on the unit sphere, and the pole NN goes to infinity, exactly as on the sphere one dimension down. Angles are preserved again, and circles on S3S^3 become circles or straight lines.

The red, green and blue circles are the great circles cos⁡t+isin⁡t\cos t + i\sin t, cos⁡t+jsin⁡t\cos t + j\sin t and cos⁡t+ksin⁡t\cos t + k\sin t, rotations by the angle 2t2t about the xx, yy and zz axes. All three pass through the pole, so on the right they become the three coordinate axes, meeting at the origin, the image of −1-1, and again at infinity. Follow the red circle from 11: halfway round, at t=πt=\pi, the rotation has made a full turn of 360°, yet the point has reached −1-1, the opposite end of S3S^3, not 11. Only after two full turns does the circle close. Since qq and −q-q turn every vector in the same way, the difference is invisible for a rotating object, but not for a spin-½ particle, whose wavefunction is a point of this S3S^3 and changes sign after a full turn. Neutron interferometers measured that sign in 1975 [5][6].

A space woven from circles

Group the four coordinates into two complex numbers, z1=w+ixz_1 = w + i x and z2=y+izz_2 = y + i z, with ∣z1∣2+∣z2∣2=1|z_1|^2+|z_2|^2=1, and write them with three angles,

z1=cos⁡μ  eiξ,z2=sin⁡μ  eiη,0≤μ≤π2.z_1=\cos\mu\;e^{i\xi},\qquad z_2=\sin\mu\;e^{i\eta},\qquad 0\le\mu\le\tfrac{\pi}{2}.

These are the three sliders of the demo, and the yellow point is q(μ,ξ,η)q(\mu,\xi,\eta). In 1931 Heinz Hopf found a map from the 3-sphere onto the ordinary sphere with a remarkable property [7]. In the demo it is h(q)=qˉ i qh(q)=\bar q\,i\,q, and in the three angles it reads

h(q)=(cos⁡2μ,  sin⁡2μ sin⁡(ξ−η),  sin⁡2μ cos⁡(ξ−η))∈S2.h(q)=\big(\cos 2\mu,\ \ \sin 2\mu\,\sin(\xi-\eta),\ \ \sin 2\mu\,\cos(\xi-\eta)\big)\in S^2 .

It depends on μ\mu and on the difference ξ−η\xi-\eta only. Slide ξ\xi and η\eta forward together, which multiplies qq by eite^{it}, and qq runs around a great circle while its image on S2S^2 stays put. Every point of the ordinary sphere therefore has a whole circle of S3S^3 sitting above it, its fibre. Different points have different fibres, the fibres never meet, and together they fill the 3-sphere completely. This is the Hopf fibration. The highlighted circle in the demo is the fibre through qq, and the readout below the sliders shows its base point h(q)h(q).

Keeping μ\mu fixed and letting ξ\xi and η\eta run gives a torus, and on the right it becomes a ring torus around the xx axis,

X2+(Y2+Z2−1sin⁡μ)2=1tan⁡2μ.X^2+\Big(\sqrt{Y^2+Z^2}-\frac{1}{\sin\mu}\Big)^{2}=\frac{1}{\tan^{2}\mu}.

It lies over one circle of latitude of S2S^2, the one at height cos⁡2μ\cos 2\mu, which is the colour of its fibres in the demo. As μ\mu grows the tori shrink: near μ=0\mu=0 a huge torus wraps tightly around the red line, at μ=π/4\mu=\pi/4 sits the Clifford torus, with radii 2\sqrt2 and 1, which cuts S3S^3 into two equal solid tori, and as μ→π/2\mu\to\pi/2 the torus thins down to the unit circle in the yzyz plane. The fibres on each torus are tilted circles that wind once around the hole and once around the tube. A ring torus carries exactly such slanted circles, discovered by Yvon Villarceau in 1848 [8], and the Hopf fibres are precisely those.

Now look at two of them. The fibre with μ=0\mu=0 is the red line, which passes through infinity, and the fibre with μ=π/2\mu=\pi/2 is the unit circle in the yzyz plane. The line runs straight through the middle of the circle: the two are linked. Every other fibre winds once around the hole of its torus and once around the tube, and with that, any two fibres of the Hopf fibration are linked exactly once, like two rings of a chain. This linking number, the Hopf invariant, is what Hopf used to prove that the map cannot be shrunk to a point, the first sign that spheres of higher dimension can wrap around lower ones in ways that cannot be undone [7].

Where physics lives on the 3-sphere

The 3-sphere and its Hopf fibration turn up all over physics [9]. Three places stand out, each more surprising than the one before.

A quantum bit

The most direct case is a single quantum bit. Its state is a pair of complex amplitudes, ∣ψ⟩=z1∣0⟩+z2∣1⟩|\psi\rangle = z_1|0\rangle + z_2|1\rangle, with ∣z1∣2+∣z2∣2=1|z_1|^2+|z_2|^2=1: a point of S3S^3. Multiplying the state by an overall phase eite^{it} changes no prediction of quantum mechanics, so all the points of one Hopf fibre describe the same physical state, and the physical states are the points of the base sphere. That base sphere is the Bloch sphere, and the Hopf map is the Bloch vector [10]. With the amplitudes of the demo,

h(q)=(⟨σz⟩, −⟨σy⟩, ⟨σx⟩),⟨σz⟩=∣z1∣2−∣z2∣2=cos⁡2μ,h(q)=\big(\langle\sigma_z\rangle,\ -\langle\sigma_y\rangle,\ \langle\sigma_x\rangle\big),\qquad \langle\sigma_z\rangle=|z_1|^2-|z_2|^2=\cos 2\mu,

so the colour of each torus is the difference between the probabilities of finding the qubit in ∣0⟩|0\rangle and in ∣1⟩|1\rangle, and sliding the yellow point along its fibre changes the global phase and nothing else.

The Kepler problem

A planet around the Sun moves under H=p2/2m−k/rH = p^2/2m - k/r, with k=GMmk = GMm. Besides the energy and the angular momentum L=r×p\mathbf L = \mathbf r\times\mathbf p, it keeps a third, less famous quantity fixed, the Laplace–Runge–Lenz vector

A=p×L−mk r^.\mathbf A = \mathbf p\times\mathbf L - mk\,\hat{\mathbf r}.

It points from the Sun to the perihelion, the point of closest approach, and its length is mkemke, with ee the eccentricity of the orbit [11]. Because A\mathbf A never moves, the orbit closes on itself: an ellipse that comes back to the same place forever. Any small extra force sets A\mathbf A turning, and the ellipse slowly rotates. For Mercury the corrections of general relativity turn it by 43 arcseconds per century, the number Einstein computed in 1915 [12].

At a fixed negative energy EE, the angular momentum and the rescaled vector D=A/−2mE\mathbf D = \mathbf A/\sqrt{-2mE} close among themselves,

{Li,Lj}=ϵijkLk,{Li,Dj}=ϵijkDk,{Di,Dj}=ϵijkLk,\{L_i,L_j\}=\epsilon_{ijk}L_k,\qquad \{L_i,D_j\}=\epsilon_{ijk}D_k,\qquad \{D_i,D_j\}=\epsilon_{ijk}L_k,

the Poisson brackets of the six rotations of four-dimensional space [11]. Three of them are the ordinary rotations. The other three turn an orbit into another of the same energy but a different eccentricity, a circle into a long thin ellipse, which is why all orbits of one energy share the same period whatever their shape, as Kepler's third law says. A symmetry made of four-dimensional rotations needs a 3-sphere to turn, and there is one.

Hamilton noticed in 1847 that the momentum of a body on a Kepler orbit runs around a circle, which he called the hodograph [13]. For an orbit with angular momentum LL and eccentricity ee, the circle has radius mk/Lmk/L, and its centre lies a distance mke/Lmke/L from the origin. Now treat momentum space as the space of the right-hand picture, measured in units of p0=−2mEp_0=\sqrt{-2mE}, and run the projection of the demo backwards, q=σ−1(p/p0)q=\sigma^{-1}(\mathbf p/p_0). Stereographic projection turns circles into circles, so every hodograph becomes a circle on S3S^3. It is even a great circle, because a circle becomes a great circle exactly when it cuts the unit sphere, the image of the equator, at two opposite points, and for every Kepler orbit

(mkL)2−(mkeL)2=−2mE=p02.\Big(\frac{mk}{L}\Big)^{2}-\Big(\frac{mke}{L}\Big)^{2} = -2mE = p_0^2 .

The Kepler orbits of one energy are the great circles of a 3-sphere, and the hidden symmetry is simply the rotation group of that sphere [14]. Moser made the picture exact: after a change of the time variable, Kepler motion becomes uniform motion along these great circles [15]. A body falling straight into the Sun has a momentum that grows without bound at the collision, so its great circle runs through the pole. The point at infinity of the demo is the moment of collision, and on the sphere it is an ordinary point that the motion passes straight through. Kustaanheimo and Stiefel reached the same goal another way. They lifted three-dimensional space to four with the Hopf map itself, stretched out radially, and the Kepler problem became a four-dimensional harmonic oscillator, which runs smoothly through every collision [16]. Checked numerically for eccentricities up to 0.99, every momentum along an orbit lands on its great circle to within 10−1510^{-15}. Add a third body and all of this is lost: no Runge–Lenz vector is conserved any more, and the motion turns chaotic, as the three-body page shows.

The hydrogen atom

The hydrogen atom has the same Hamiltonian, with k=e2/4πε0k = e^2/4\pi\varepsilon_0 for the pull between electron and proton, and the hidden symmetry survives quantum mechanics. The energy levels depend on the principal quantum number nn alone, and level nn holds n2n^2 states, more than ordinary rotations can explain. In early 1926 Pauli derived the spectrum from the quantum version of the Runge–Lenz vector, before wave mechanics had solved it [17]. The combinations J±=(L±D)/2\mathbf J_\pm = (\mathbf L\pm\mathbf D)/2 behave like two independent angular momenta of the same size jj, because L⋅A=0\mathbf L\cdot\mathbf A = 0, so the states of one level come in (2j+1)2(2j+1)^2 copies, and the algebra fixes the energy,

En=−mk22ℏ2n2,n=2j+1,with n2 states in level n.E_n = -\frac{mk^2}{2\hbar^2 n^2},\qquad n = 2j+1,\qquad \text{with } n^2 \text{ states in level } n.

Nine years later Fock found the 3-sphere behind the algebra [18]. He applied the same map as above, momentum space onto a 3-sphere at the scale −2mE\sqrt{-2mE}, to the wavefunction in momentum space, and the Schrödinger equation became the equation for the spherical harmonics of S3S^3. The n2n^2 states of level nn are the n2n^2 harmonics of degree n−1n-1, and Bargmann showed the following year that Pauli's algebra and Fock's sphere are one and the same symmetry [19]. The orbits of the planets and the levels of hydrogen are two views of one rotating 3-sphere.

Real hydrogen breaks the symmetry a little, just as real planets do. Relativity and the spin of the electron split each level according to its total angular momentum, and in 1947 Lamb and Retherford found that the 2s₁/₂ and 2p₁/₂ states, which Dirac's theory puts at exactly the same energy, differ by about a gigahertz [20]. Like the slow turning of Mercury's orbit, the small splitting measures how far nature departs from a perfect 1/r1/r force.

Inside the code

The projection itself is a single division. The only care needed is at the pole, which has no image, and near it, where images run off far beyond the screen:

// Stereographic image of a point u of S³ (after the 4D view rotation).
// At the pole there is no image: that point has gone to infinity.
function stereoInto(u, out, o) {
  const d = 1 - pole * u[0];               // 1 − w from N, 1 + w from S
  if (!(d > POLE_EPS)) return false;
  const x = u[1] / d, y = u[2] / d, z = u[3] / d;
  if (x * x + y * y + z * z > CLIP * CLIP) return false;
  out[o] = x; out[o + 1] = y; out[o + 2] = z;
  return true;
}

Every curve, a great circle, a fibre or a coordinate circle, is evaluated once per point and drawn in both panes. A circle through the pole has one point at infinity, and connecting the samples on either side of it would draw a false chord across the picture, so such segments are skipped:

// One evaluation of each curve feeds both pictures. On the right a segment
// is drawn only if both of its ends have an image, so a circle through the
// pole opens into a line instead of a chord across the whole picture.
for (let k = 0; k <= segs; k++) {
  param((2 * Math.PI * k) / segs, P);       // a point of S³
  const u = view(P);                        // turned in four dimensions
  shadow[o] = u[1]; shadow[o + 1] = u[2]; shadow[o + 2] = u[3];  // drop w
  const ok = stereoInto(u, stereo, o);
  if (k > 0) {
    left.segment(shadow, prev, shadow, o);
    if (ok && okBefore) right.segment(stereo, prev, stereo, o);
  }
  okBefore = ok;
}

The fibres are drawn straight from their definition, as the circles along which ξ\xi and η\eta advance together:

// The Hopf fibres on the torus μ: ξ runs once around and η = ξ + d follows,
// one circle for each offset d. Each is the orbit e^{it} q of a point q.
for (let j = 0; j < perTorus; j++) {
  const d = (2 * Math.PI * j) / perTorus;
  family.curve((t, P) => {
    P[0] = c * Math.cos(t);      P[1] = c * Math.sin(t);       // z1 = cos μ e^{iξ}
    P[2] = s * Math.cos(t + d);  P[3] = s * Math.sin(t + d);   // z2 = sin μ e^{iη}
  }, segs, color);
}

The option Random points on S3S^3 scatters up to 20,000 points uniformly over the 3-sphere, using the fact that a vector of independent Gaussians points in a uniformly random direction:

// Uniform random points on S³: four independent Gaussians, normalized.
// The Gaussian looks the same in every direction, so the direction is
// uniform. Normalizing points of a cube would crowd them toward its corners.
for (let k = 0; k < 4; k++) { v[k] = randn(); len += v[k] * v[k]; }
len = Math.sqrt(len);
for (let k = 0; k < 4; k++) out[4 * i + k] = v[k] / len;

The cloud is a good check on the geometry. On the right exactly half of the points land inside the unit ball, the image of the half w<0w<0. On the left they crowd toward the rim of the ball, where the 3-sphere is seen edge on: 54% of them fall in the outer shell beyond radius 0.9, which holds only 27% of the volume. Both numbers are checked in the tests of the site.

Try it yourself

Both demos open full screen with the buttons above, and each has a guided tour that sets the scene for every step. On the sphere, drag θ toward 0 and watch the point race off to infinity as it nears the lamp, then switch the projection to the south pole and see the inside and the outside of the unit circle swap. Tilt the sphere with the (z, x) slider: in the shadow the circles squash into ellipses, while on the right they stay round.

On the 3-sphere, change ξ and then η by the same amount. The yellow point slides along its highlighted fibre, and the base point h(q)h(q) below the sliders does not change. Drag μ to 0 and the fibre through the point straightens into the red line, drag it to π/2 and it becomes the unit circle in the yz plane, and at π/4 it lies on the Clifford torus, the middle one of the three tori drawn. Then press Run with the (w, x) rotation ticked. The whole picture turns in four dimensions, and the tori stream out through the point at infinity and come back from the other side, something no rotation of ordinary space could do. Finally, add 20,000 random points and compare the two panes, the dense core fading outward on the right and the bright rim on the left.

References

  1. [1] N. Sidoli and J. L. Berggren, The Arabic version of Ptolemy’s Planisphere or Flattening the Surface of the Sphere: text, translation, commentary, SCIAMVS 8, 37 (2007).
  2. [2] R. Penrose, The apparent shape of a relativistically moving sphere, Proc. Cambridge Philos. Soc. 55, 137 (1959).
  3. [3] W. R. Hamilton, On quaternions; or on a new system of imaginaries in algebra, Phil. Mag. (3rd series) 25, 10 (1844).
  4. [4] D. R. Wilkins, Hamilton’s research on quaternions, School of Mathematics, Trinity College Dublin.
  5. [5] H. Rauch, A. Zeilinger, G. Badurek, A. Wilfing, W. Bauspiess, and U. Bonse, Verification of coherent spinor rotation of fermions, Phys. Lett. A 54, 425 (1975).
  6. [6] S. A. Werner, R. Colella, A. W. Overhauser, and C. F. Eagen, Observation of the phase shift of a neutron due to precession in a magnetic field, Phys. Rev. Lett. 35, 1053 (1975).
  7. [7] H. Hopf, Über die Abbildungen der dreidimensionalen Sphäre auf die Kugelfläche, Math. Ann. 104, 637 (1931).
  8. [8] Y. Villarceau, Théorème sur le tore, Nouv. Ann. Math. 7, 345 (1848).
  9. [9] H. K. Urbantke, The Hopf fibration: seven times in physics, J. Geom. Phys. 46, 125 (2003).
  10. [10] R. Mosseri and R. Dandoloff, Geometry of entangled states, Bloch spheres and Hopf fibrations, J. Phys. A 34, 10243 (2001).
  11. [11] H. Goldstein, C. Poole, and J. Safko, Classical Mechanics, 3rd ed. (Addison-Wesley, San Francisco, 2002).
  12. [12] A. Einstein, Erklärung der Perihelbewegung des Merkur aus der allgemeinen Relativitätstheorie, Sitzungsber. Preuss. Akad. Wiss., 831 (1915).
  13. [13] W. R. Hamilton, The hodograph, or a new method of expressing in symbolical language the Newtonian law of attraction, Proc. R. Irish Acad. 3, 344 (1847).
  14. [14] J. Milnor, On the geometry of the Kepler problem, Amer. Math. Monthly 90, 353 (1983).
  15. [15] J. Moser, Regularization of Kepler’s problem and the averaging method on a manifold, Commun. Pure Appl. Math. 23, 609 (1970).
  16. [16] P. Kustaanheimo and E. Stiefel, Perturbation theory of Kepler motion based on spinor regularization, J. Reine Angew. Math. 218, 204 (1965).
  17. [17] W. Pauli, Über das Wasserstoffspektrum vom Standpunkt der neuen Quantenmechanik, Z. Phys. 36, 336 (1926).
  18. [18] V. Fock, Zur Theorie des Wasserstoffatoms, Z. Phys. 98, 145 (1935).
  19. [19] V. Bargmann, Zur Theorie des Wasserstoffatoms, Z. Phys. 99, 576 (1936).
  20. [20] W. E. Lamb and R. C. Retherford, Fine structure of the hydrogen atom by a microwave method, Phys. Rev. 72, 241 (1947).