spectroxide:用于计算宇宙微波背景谱畸变的代码包
spectroxide: A code package for computing cosmic microwave background spectral distortions
AI总结:
本文介绍了spectroxide,一个由AI助手在人类物理学家监督下开发的代码包,用于计算宇宙微波背景谱畸变,包含14500行Rust代码和400个自动化测试,验证了物理模型并公开了该工具。
摘要:
我们介绍了spectroxide,一个用于计算宇宙微波背景谱畸变的代码包,其中约14500行Rust代码、Python接口和约400个自动化测试是由AI助手(Claude Code)在人类物理学家监督下编写。求解器在红移范围z≈5×10⁶到现在期间,通过考虑康普顿散射、双康普顿发射和Bremsstrahlung,求解光子Boltzmann方程,计算任意热能和光子注入在此红移范围内的谱畸变。目前没有此类完全开源的代码公开可用;我们通过解析极限、已发表的光谱和公开的预计算Green函数表进行验证。我们记录开发过程作为AI辅助科学计算的案例研究,强调领域专业知识如何发现物理错误(如不正确的维度前因子、近抵消误差),这些错误逃过了完整的自动化测试套件,并提供人类与AI协作开发科学软件的最佳实践建议。我们将在GitHub上公开spectroxide。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。