cd /news/artificial-intelligence/hadamard-codes-and-sphere-packing · home topics artificial-intelligence article
[ARTICLE · art-96175] src=johndcook.com ↗ pub= topic=artificial-intelligence verified=true sentiment=· neutral

Hadamard Codes and Sphere Packing

Levent Alpöge and colleagues used Claude AI to discover a new Hadamard matrix, prompting a series of posts by John D. Cook on Hadamard matrices and their applications, including NASA's use of a Hadamard matrix of order 32 in the Mariner 9 spacecraft in 1971. Cook's latest post describes how a (8, 4, 4) Hadamard code yields the E8 sphere packing, the densest packing in ℝ8, via Construction A from Conway and Sloane.

read1 min views1 publishedAug 14, 2026
Hadamard Codes and Sphere Packing
Image: Johndcook (auto-discovered)

Yesterday Levent Alpöge announced that he and his colleagues had discovered a new Hadamard matrix using Claude AI. That motivated a post I wrote this morning on how to construct Hadamard matrices. I mentioned in that post that these matrices arise in applications.

This evening I gave an example, describing how NASA used a Hadamard matrix of order 32 to transmit photos from the Mariner 9 spacecraft in 1971. This post will give another application: sphere packing.

Conway and Sloane [1] give a correspondence between binary codes and sphere packings that they call Construction A. Given an (n, M, d) binary code C, center a sphere on a point x if and only if x is a codeword in C.

Here (n, M, d) means an error correcting code that encodes M bits of data as strings of n bits, with a minimum Hamming distance between code words of d, i.e. all codewords differ in at least d bits.

The previous post described how to create a (32, 6, 16) code by stacking a Hadamard matrix H of order 32 on top of −H and turning −1’s into 0’s. The analogous construction for a (8, 4, 4) Hadamard code gives E8, the densest packing in ℝ8.

We start with the Hadamard matrix

and obtain the matrix

whose centers form the sphere packing.

This doesn’t look like the E8 sphere packing as it is usually presented, but it’s isomorphic.

[1] J. H. Conway and N. J. A. Sloane. Sphere Packings, Lattices and Groups. Springer. 1999.

── more in #artificial-intelligence 4 stories · sorted by recency
── more on @levent alpöge 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/hadamard-codes-and-s…] indexed:0 read:1min 2026-08-14 ·