spectroxide: A code package for computing cosmic microwave background spectral distortions

Ethan Baker, Hongwan Liu, Siddharth Mishra-Sharma
4/27/2026
astro-ph.COastro-ph.IMcs.AI

No confident code implementation found for this paper.

Abstract

We present spectroxide, a code package for computing cosmic microwave background spectral distortions in which all ${\sim}14{,}500$ lines of Rust code, Python interface, and ${\sim}400$ automated tests were written by an AI assistant (Claude Code) under human physicist supervision. The solver evolves the photon Boltzmann equation under Compton scattering, double Compton emission, and Bremsstrahlung from $z \sim 5 \times 10^6$ to the present, computing spectral distortions from arbitrary heat and photon injection within this redshift range.

Show full abstract

No fully open-source code of this kind is publicly available; we validate against analytic limits, published spectra, and publicly available precomputed Green's function tables. We document the development as a case study in AI-assisted scientific computing, highlighting how domain expertise caught physics bugs (incorrect dimensional prefactors, near-cancellation errors) that evaded the full automated test suite, and provide recommendations for best practices in human--AI collaborative development of scientific software. We make spectroxide publicly available on GitHub.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{baker2026spectroxide,
  title  = {spectroxide: A code package for computing cosmic microwave background spectral distortions},
  author = {Ethan Baker and Hongwan Liu and Siddharth Mishra-Sharma},
  year   = {2026},
  eprint = {2604.24838},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2604.24838v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2604.24838.svg)](https://codeofpaper.com/paper/2604.24838)

Discussion