A simulation framework for the LiteBIRD instruments

M Tomasi, L. Pagano, Anil C. Anand, C Baccigalupi, A. J. Banday, M. Bortolami, G. Galloni, M. Galloway, T. Ghigna, S. Giardiello, M. Ribeiro Gomes, E. Hivon, N Krachmalnicoff, S. Micheli, M. Monelli, Y. Nagano, Andrea Novelli, G. Patanchon, D. Poletti, Giuseppe Puglisi, N. Raffuzzi, M. Reinecke, Yusuke Takase, G. Weymann-Despres, Debabrata Adak, Erwan Allys, J. Aumont, R. Aurvik, M. Ballardini, R. B. Barreiro, N. Bartolo, S. Basak, M. Bersanelli, A Besnard, T Brinckmann, Erminia Calabrese, P. Campeti, E. Carinos, A. Carones, F. J. Casas, Kmc Cheung, M Citran, Lionel Clermont, F Columbro, Gabriele Coppi, A Coppolecchia, F. Cuttaia, Bo Peng, P de Bernardis, E. de la Hoz, Mario de Lucia, S Della Torre, P. Diego-Palazuelos, H. K. Eriksen, Thomas Essinger-Hileman, C Franceschet, U Fuskeland, M. Gerbino, M. Gervasi, C. Gimeno-Amo, E. Gjerløw, A. Gruppuso, M. Hazumi, S Henrot-Versillé, L. T. Hergt, Baptiste Jost, Kimiko Kohri, L. Lamagna, T. Lari, M. Lattanzi, C. Leloup, F. Levrier, A.i. Lonappan, M. López-Caniego, G. Luzzi, J. F. Macías–Pérez, B. Maffei, E. Martínez-González, S. Masi, S. Matarrese, T. Matsumura, L. Montier, G. Morgante, L. Mousset, Ryo Nagata, F. Noviello, Ippei Obata, Antonio Occhiuzzi, A Paiella, D. Paoletti, G Pascual-Cisneros, F Piacentini, Michele Pinchera, G Polenta, L. Porcelli, M Remazeilles, A. Ritacco, A. Rizzieri, J. A. Rubiño-Martín, M. Ruiz-GrandaJournal of Cosmology and Astroparticle Physics 2025 · DOI

TL;DR

This paper introduces the LiteBIRD Simulation Framework (LBS), a Python-based tool designed to simulate the data acquisition process for the LiteBIRD satellite mission. LBS is crucial for validating the mission's scientific instruments and overall architecture by providing a robust and reproducible way to model complex observational scenarios, including sky signals, instrumental noise, and systematic errors.

What Problem Does This Paper Address?

The LiteBIRD mission aims to study the polarization of the Cosmic Microwave Background (CMB) to test inflationary models, requiring highly sensitive measurements across a wide range of frequencies. To achieve its scientific goals, LiteBIRD needs to accurately model its instruments and the data they will produce. This involves simulating not only the expected sky signals (CMB, foregrounds) but also the intricate details of data acquisition, instrumental noise, and potential systematic errors. Developing and validating the complex pipelines needed for this analysis requires a flexible, efficient, and reproducible simulation framework. The paper addresses the need for such a framework, which can handle multiple instruments, various simulation scenarios, and facilitate the development of both full end-to-end (E2E) simulations and simpler, targeted ones.

Methods

The LiteBIRD Simulation Framework (LBS) is a Python library built with a modular design. Key features include:

  • Simulation Modules: These modules simulate various aspects of the data acquisition process, such as:
  • Input Maps: Generating synthetic sky maps of the CMB and foregrounds using the PySM3 library.
  • Scanning Strategy: Modeling the spacecraft's complex scanning motion (spin, precession, orbit) to determine detector pointing information. This is achieved using quaternions and AstroPy for precise time tracking.
  • Instrumental Noise: Simulating white noise and correlated 1/f noise, with parameters for each detector.
  • Solar Dipole: Modeling the Doppler shift due to the spacecraft's motion relative to the CMB.
  • Ideal HWPs: Simulating the effect of Half-Wave Plates on polarization angles.
  • Data-Reduction Modules: While primarily a simulation framework, LBS includes basic map-making tools (binner, destriper) to facilitate analysis and visualization.
  • Memory Management: LBS is designed to handle large datasets efficiently, supporting MPI for parallel processing and flexible memory layouts for Time-Ordered Data (TODs).
  • Instrument Model (IMo) Integration: LBS interfaces with a versioned database (InstrumentDB) to retrieve instrument parameters, ensuring consistency and traceability.
  • Provenance Tracking: The framework automatically logs simulation inputs and configurations, crucial for reproducibility.
  • Performance Optimization: LBS leverages NumPy for array operations and Numba for accelerating CPU-intensive tasks, significantly improving execution speed.

Datasets

The paper does not describe the use of specific datasets for training. Instead, it focuses on the simulation of data. The primary "dataset" generated by LBS is the simulated Time-Ordered Data (TOD) and derived sky maps, which are then used for analysis and validation. The framework utilizes an Instrument Model (IMo) database, which contains parameters describing the LiteBIRD instruments. A simplified version of this IMo, based on the PTEP 2022 paper, is bundled with LBS for public use.

Key Insights and Ideas

  • Framework-based Development: Building LBS as a framework rather than a single monolithic pipeline significantly speeds up development by allowing the reuse of "building blocks" for various simulation needs, from full E2E to targeted effect simulations.
  • Reproducibility is Paramount: The paper emphasizes robust mechanisms for ensuring reproducible results, including detailed logging, Git commit tracking, and explicit handling of random number generator seeds. This is critical for scientific validation.
  • Numba for Performance: The strategic use of Numba for computationally intensive tasks, like scanning strategy simulation and dipole calculation, provides substantial speedups over pure NumPy, demonstrating a practical approach to optimizing Python code for scientific simulations.
  • Modular Design for Flexibility: The modular nature of LBS allows for easy integration of new simulation components and facilitates the development of specialized pipelines for specific scientific investigations or instrument characterization.

Key Results

  • Functional Framework: LBS has been successfully developed and used to conduct end-to-end (E2E) simulations for the LiteBIRD mission, with detailed results presented in a companion paper.
  • Performance Gains: Numba provides significant performance boosts, demonstrated to be roughly 6 times faster than NumPy for certain vectorized calculations.
  • Reproducibility Features: LBS incorporates features like automated report generation, Git commit hashing, and explicit random seed management to ensure that simulation results can be reliably reproduced.
  • Comprehensive Documentation: The framework is accompanied by a user's manual and Jupyter notebooks, facilitating its adoption and use by the collaboration.

Limitations and Future Work

  • Idealized Simulations: In version 0.11.0, LBS simulates ideal HWPs and assumes perfect pencil beams for optical simulations, lacking detailed beam convolution. More advanced models for pointings and HWPs have been implemented in later versions.
  • Noise Simulation: While LBS can simulate white and 1/f noise, it currently lacks the ability to introduce correlations between detectors in the noise timelines. This is noted as a potential area for future development.
  • Windows Support: Native support for Windows systems is limited due to dependencies on Healpy, though it can be used via the Windows Subsystem for Linux (WSL).
  • Future Work: The paper mentions that more sophisticated noise generators and beam convolution capabilities are being developed for future versions of LBS. The framework is continuously evolving to support the growing needs of the LiteBIRD collaboration.

Summary updated

Abstract

Abstract LiteBIRD , the Lite (Light) satellite for the study of B-mode polarization and Inflation from cosmic background Radiation Detection, is a space mission focused on primordial cosmology and fundamental physics. In this paper, we present the LiteBIRD Simulation Framework (LBS), a Python package designed for the implementation of pipelines that model the outputs of the data acquisition process from the three instruments on the LiteBIRD spacecraft: LFT (Low-Frequency Telescope), MFT (Mid-Frequency Telescope), and HFT (High-Frequency Telescope). LBS provides several modules to simulate the scanning strategy of the telescopes, the measurement of realistic polarized radiation coming from the sky (including the Cosmic Microwave Background itself, the Solar and Kinematic dipole, and the diffuse foregrounds emitted by the Galaxy), the generation of instrumental noise and the effect of systematic errors, like pointing wobbling, non-idealities in the Half-Wave Plate, et cetera . Additionally, we present the implementation of a simple but complete pipeline that showcases the main features of LBS. We also discuss how we ensured that LBS lets people develop pipelines whose results are accurate and reproducible. A full end-to-end pipeline has been developed using LBS to characterize the scientific performance of the LiteBIRD experiment. This pipeline and the results of the first simulation run are presented in Puglisi et al. (2025).
BibTeX
@article{tomasi2025simulation,
  author = {M Tomasi and L. Pagano and Anil C. Anand and C Baccigalupi and A. J. Banday and M. Bortolami and G. Galloni and M. Galloway and T. Ghigna and S. Giardiello and M. Ribeiro Gomes and E. Hivon and N Krachmalnicoff and S. Micheli and M. Monelli and Y. Nagano and Andrea Novelli and G. Patanchon and D. Poletti and Giuseppe Puglisi and N. Raffuzzi and M. Reinecke and Yusuke Takase and G. Weymann-Despres and Debabrata Adak and Erwan Allys and J. Aumont and R. Aurvik and M. Ballardini and R. B. Barreiro and N. Bartolo and S. Basak and M. Bersanelli and A Besnard and T Brinckmann and Erminia Calabrese and P. Campeti and E. Carinos and A. Carones and F. J. Casas and Kmc Cheung and M Citran and Lionel Clermont and F Columbro and Gabriele Coppi and A Coppolecchia and F. Cuttaia and Bo Peng and P de Bernardis and E. de la Hoz and Mario de Lucia and S Della Torre and P. Diego-Palazuelos and H. K. Eriksen and Thomas Essinger-Hileman and C Franceschet and U Fuskeland and M. Gerbino and M. Gervasi and C. Gimeno-Amo and E. Gjerløw and A. Gruppuso and M. Hazumi and S Henrot-Versillé and L. T. Hergt and Baptiste Jost and Kimiko KOHRI and L. Lamagna and T. Lari and M. Lattanzi and C. Leloup and F. Levrier and A.I. Lonappan and M. López-Caniego and G. Luzzi and J. F. Macías–Pérez and B. Maffei and E. Martínez-González and S. Masi and S. Matarrese and T. Matsumura and L. Montier and G. Morgante and L. Mousset and Ryo Nagata and F. Noviello and Ippei Obata and Antonio Occhiuzzi and A Paiella and D. Paoletti and G Pascual-Cisneros and F Piacentini and Michele Pinchera and G Polenta and L. Porcelli and M Remazeilles and A. Ritacco and A. Rizzieri and J. A. Rubiño-Martín and M. Ruiz-Granda},
  title = {{A simulation framework for the <i>LiteBIRD</i> instruments}},
  journal = {Journal of Cosmology and Astroparticle Physics},
  year = {2025},
  doi = {10.1088/1475-7516/2025/11/040},
}
Figure