Arun Mitra
← Home

Software & Methods

Open-source C++ contributions, reproducible HPC pipelines, and Bayesian inference tooling.

CosmoBolognaLib (Upstream Contributor)

C++ / Python library for cosmological spatial statistics · University of Bologna · Official Documentation

Listed contributor (voids module) in the official CosmoBolognaLib (CBL) documentation. Contributions include debugging numerical edge cases in dynamical void reconstruction and excursion-set theory evaluation:

  • BitVF Reproducibility Diagnosis (m_seed): Identified that periodic-box BitVFbox runs stored the user seed without forwarding it to OTreconstruction, causing silent fallback to std::random_device and inducing $\approx 0.75\,\sigma_{\mathrm{JK}}$ run-to-run scatter in calibrated void bias; verified deterministic bitwise reproducibility across single- and multi-threaded builds once patched upstream.
  • Floating-Point FMA Cell-Face Crash Fix (ArunMitra branch): Traced an intermittent BitVF segmentation failure on halo catalogues to an FMA cell-index vs. cell-face position disagreement ($t = -0.0$ at $10^{-14}$ cell-boundary proximity). Implemented an orientation-aware crossing check with a $10^{-9}$ tolerance (cbl::bitvf::find_crossing_face) and a Boost unit regression test, merged upstream.
  • Vdn Numerical Glitch Guard: Diagnosed isolated single-point numerical artefacts in CBL’s Vdn grid evaluation and implemented automated filtering across scan and MCMC likelihood grids.
  • C-ABI Sampler Bridge (cbl_sampler_shim.cpp): Built a C-ABI shim allowing Python likelihood functions to execute directly through CBL’s native C++ affine-invariant stretch-move sampler, verifying exact posterior equivalence with emcee.

Multi-Finder Cosmological Inference Pipeline

Repository: github.com/stardust2443/cosmology_thesis

End-to-end reproducible Python/C++ pipeline supporting four void finders and automated SLURM cluster execution:

  • Unified Finder Wrappers & Cleaning: Harmonised BitVF, REVOLVER, VERSUS, and VIDE 2.0 execution and common TOUCH isolated-sphere cleaning ($\delta = -0.79$, minimum-image periodic boundaries).
  • Spatial Covariance & Tracer Bias: 64- and 125-region joint spatial jackknife covariance construction with Anderson–Hartlap unbiasing; large-scale linear halo bias $b_{\mathrm{eff}} = \sqrt{\xi_{hh}/\xi_{mm}}$ measured directly via Corrfunc.
  • Automated Scale-Cut & Convergence Auditing: Automated $R_{\min}$ selection ($\chi^2/\nu$, $p$-value, and stability criteria), multi-seed MCMC execution (emcee + GetDist), integrated autocorrelation time ($\tau$) tracking ($N/\tau \ge 50$), and split-$\hat{R} < 1.01$ verification.

Technical & HPC Stack

DomainTools & Libraries
Cosmology & LSSCosmoBolognaLib (C++/Python), BitVF, REVOLVER, VIDE 2.0, VERSUS, Corrfunc, CAMB
Bayesian Inferenceemcee, GetDist, corner, CBL samplers; Jackknife covariances, Hartlap correction, $\hat{R}/\tau$ diagnostics
HPC & SystemsSLURM, PBS, OpenMP, OpenBLAS/MKL tuning, GSL, FFTW, Cuba; C++ shared libraries & C-ABI shims
LanguagesPython (NumPy, SciPy, Astropy, Pandas, Matplotlib), C/C++, Julia, Bash, SQL, Git, LaTeX