English

Implementing Hadamard Matrices in SageMath

Combinatorics 2023-06-30 v1

Abstract

Hadamard matrices are (1,+1)(-1, +1) square matrices with mutually orthogonal rows. The Hadamard conjecture states that Hadamard matrices of order nn exist whenever nn is 11, 22, or a multiple of 44. However, no construction is known that works for all values of nn, and for some orders no Hadamard matrix has yet been found. Given the many practical applications of these matrices, it would be useful to have a way to easily check if a construction for a Hadamard matrix of order nn exists, and in case to create it. This project aimed to address this, by implementing constructions of Hadamard and skew Hadamard matrices to cover all known orders less than or equal to 10001000 in SageMath, an open-source mathematical software. Furthermore, we implemented some additional mathematical objects, such as complementary difference sets and T-sequences, which were not present in SageMath but are needed to construct Hadamard matrices. This also allows to verify the correctness of the results given in the literature; within the n1000n\leq 1000 range, just one order, 292292, of a skew Hadamard matrix claimed to have a known construction, required a fix.

Keywords

Cite

@article{arxiv.2306.16812,
  title  = {Implementing Hadamard Matrices in SageMath},
  author = {Matteo Cati and Dmitrii V. Pasechnik},
  journal= {arXiv preprint arXiv:2306.16812},
  year   = {2023}
}

Comments

pdflatex+biber, 32 pages

R2 v1 2026-06-28T11:17:44.095Z