bitvf¶
BitVF, the Back-in-time Void Finder (Sartori et al. 2026), is a dynamical void finder that identifies cosmic voids as non-overlapping regions of coherent mass outflow. It reconstructs by optimal transport the displacement field that moves each tracer of a catalogue back in time, from its observed position to its initial position in a nearly uniform distribution. The divergence of this field is negative where matter has flowed out: BitVF computes it on a grid and divides the grid into basins around its local minima, so that the basins whose minimum is negative are the voids and the others are overdense regions. Each basin comes with a centre, radii and densities. The method is described in arXiv:2601.15378.
BitVF works in two geometries. The lightcone geometry is that of a galaxy survey, or of a mock catalogue built like one: tracers in right ascension, declination and redshift, a random catalogue that samples the survey volume and its systematics, and a HEALPix mask of the observed sky. The box geometry is that of a simulation snapshot: tracers in Cartesian coordinates filling a rectangular volume.
This package, bitvf, implements BitVF. The reconstruction is done by otswap; bitvf runs it, can correct the redshift-space distortions and reconstruct the corrected tracers again, and searches the voids. Results are identical bit for bit on Linux (x86_64, aarch64) and macOS (arm64, x86_64), whatever the number of threads. bitvf is a C++17 library, with a Python package that runs the same code.
The two give the same results, bit for bit, and names side by side maps the C++ API to the Python one.
Install¶
pip install bitvf
installs the Python package, with otswap. The C++ library, with its executables, is built and installed with CMake, as the quickstart shows.
Where to go next¶
The quickstart: install, and a first search of the voids of a survey-like catalogue shipped with the repository.
The method: what each step computes, in both geometries.
Lightcone geometry, for surveys and their mocks: the guide explains the inputs, the parameters and the results; the examples run a search and the whole pipeline; the executable runs them from a parameter file; the file formats describe what is written.
Box geometry, for simulation snapshots: the guide, the examples, the executables and the file formats.
Reference: every function and structure of the C++ and Python libraries.
Citing: the paper to cite when using bitvf.