跳到正文
arXiv cs.AI· Ethan Baker, Hongwan Liu, Siddharth Mishra-Sharma·· 3 天前AI 评分43

spectroxide:一个计算宇宙微波背景谱畸变的开源代码包

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

AI 导读

物理学家团队发布 spectroxide 代码包,用于计算宇宙微波背景谱畸变,全部约 12,000 行 Rust 代码、Python 接口和超过 950 个自动化测试由 AI 助手 Claude Code 在人类监督下编写。

正文 · 原文

View PDF HTML (experimental)

Abstract:We present spectroxide, a code package for computing cosmic microwave background spectral distortions in which all ${\sim}12{,}000$ lines of Rust code, Python interface, and over 950 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. 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 document the practices and validation methodology we found effective for human--AI collaborative development of scientific software. We make spectroxide publicly available on GitHub.
Comments: 35+21 pages, 12 figures, updated to match published version
Subjects: Cosmology and Nongalactic Astrophysics (astro-ph.CO); Instrumentation and Methods for Astrophysics (astro-ph.IM); Artificial Intelligence (cs.AI); High Energy Physics - Phenomenology (hep-ph)
Cite as: arXiv:2604.24838 [astro-ph.CO]
  (or arXiv:2604.24838v2 [astro-ph.CO] for this version)
  https://doi.org/10.48550/arXiv.2604.24838

arXiv-issued DOI via DataCite

Journal reference: SciPost Phys. Codebases 90 (2026)
Related DOI: https://doi.org/10.21468/SciPostPhysCodeb.90

DOI(s) linking to related resources

Submission history

From: Ethan Baker [view email]
[v1] Mon, 27 Apr 2026 18:00:00 UTC (3,645 KB)
[v2] Wed, 2 Dec 2026 15:25:54 UTC (3,907 KB)

来源:arXiv cs.AI · arxiv.org