Velocisaurus is a fast Python tool for computing effective-field-theory predictions of redshift-space peculiar velocity statistics and density-velocity correlations.
It uses a generating-function formulation with modified IR resummation to accurately capture BAO features and extend standard EFT treatments.
Validated with N-body simulations and Zeldovich predictions, the code achieves sub-percent precision in growth rate measurements for future surveys.
velocisaurus is a fast Python code released with “Effective Theories of Redshift-Space Galaxy Peculiar Velocities” for computing effective-field-theory predictions for peculiar-velocity statistics in large-scale structure. Its scientific role is to extend the EFT of large-scale structure, already widely used for redshift-space galaxy clustering, to the observables measured in peculiar-velocity surveys and closely related redshift-space distortion analyses. The code targets 2-point, density-weighted pairwise velocity statistics in redshift space, especially the mean pairwise velocity and pairwise velocity dispersion / second moment, together with the redshift-space galaxy power spectrum that generates them. The public release is associated with the repository https://github.com/sfschen/velocisaurus (Chen et al., 31 Jul 2025).
1. Scientific scope and target observables
The code is designed around the family of redshift-space spectra
Accordingly, velocisaurus is aimed at the mean pairwise velocity and pairwise velocity dispersion / second moment, jointly with the redshift-space galaxy power spectrum (Chen et al., 31 Jul 2025).
A central conceptual feature is that these velocity statistics are modeled consistently with redshift-space galaxy densities using the same EFT parameter set, up to a finite extension in the generating-function language. This makes the code directly relevant for joint analyses of galaxy clustering and peculiar velocities. The same framework is explicitly connected to upcoming peculiar-velocity surveys and to future applications to the kinetic Sunyaev–Zeldovich effect, for which the paper notes that kSZ velocity statistics “have yet to be predicted within the EFT.” A plausible implication is that velocisaurus is intended not merely as a calculator for isolated velocity observables, but as a common inference layer for density–velocity analyses.
2. Generating-function formulation
The redshift-space power spectrum is treated as the generating function of the pairwise moments,
This relation is central to the code’s scientific role because it permits redshift-space density and velocity observables to be predicted within one EFT framework, with matched bias, counterterm, stochastic, and Fingers-of-God-like parameters (Chen et al., 31 Jul 2025).
This generating-function structure is not a purely formal convenience. It organizes the connection between galaxy clustering and pairwise-velocity observables and underlies the code’s claim that P, v, and σ2 can be fit jointly with common EFT coefficients. In that sense, the code’s defining contribution is not only that it computes peculiar-velocity statistics, but that it does so in a way that preserves consistency with the density sector.
3. Lagrangian and Eulerian EFT realizations
The theoretical implementation is at next-to-leading, 1-loop order in both Lagrangian and Eulerian formulations of the EFT of large-scale structure (Chen et al., 31 Jul 2025). In Lagrangian perturbation theory, tracer motion is written in terms of displacements PLL′s(k)=∫d3qeik⋅q⟨eik⋅Δu(1+δg(q1))(1+δg(q2))unL(q1)unL′(q2)⟩q=q2−q1.0, with redshift-space displacement
and computes real-space moments PLL′s(k)=∫d3qeik⋅q⟨eik⋅Δu(1+δg(q1))(1+δg(q2))unL(q1)unL′(q2)⟩q=q2−q1.5, then builds the redshift-space moments through the moment expansion. At 1-loop, real-space moments are nonzero up to PLL′s(k)=∫d3qeik⋅q⟨eik⋅Δu(1+δg(q1))(1+δg(q2))unL(q1)unL′(q2)⟩q=q2−q1.6, so, for example,
with only five independent counterterms needed in the generating function at 1-loop, and therefore the same five controlling all pairwise moments up to that order in real and redshift space. Stochastic terms are
The repeated emphasis is that the same EFT coefficients can be used to fit Ξ~s(n)(k)=∫d3seik⋅s⟨(1+δg,s(s1))(1+δg,s(s2))Δunn⟩s=s1−s2,1, Ξ~s(n)(k)=∫d3seik⋅s⟨(1+δg,s(s1))(1+δg,s(s2))Δunn⟩s=s1−s2,2, and Ξ~s(n)(k)=∫d3seik⋅s⟨(1+δg,s(s1))(1+δg,s(s2))Δunn⟩s=s1−s2,3 jointly.
4. Infrared resummation and BAO response
What most distinguishes velocisaurus scientifically is its treatment of infrared resummation for baryon acoustic oscillations in velocity statistics (Chen et al., 31 Jul 2025). For galaxy densities, long-wavelength bulk flows smear the BAO mainly through the familiar exponential damping Ξ~s(n)(k)=∫d3seik⋅s⟨(1+δg,s(s1))(1+δg,s(s2))Δunn⟩s=s1−s2,4. For peculiar velocities, however, the observables directly probe those bulk flows, so there are additional enhanced terms beyond pure damping. The BAO-displacement scale is
The authors describe this as a recursive implementation in powers of the velocity in both Eulerian and Lagrangian approaches: the resummed power spectrum remains the generator, and derivatives with respect to vs(k)=Ξ~s(1)=2P01s,σs2(k)=Ξ~s(2)=2P02s−2P11.1 generate the connected pieces order by order. In LPT they write
This is the Lagrangian analogue of the recursive derivative scheme. A common misconception is that velocity BAO can be modeled by applying the usual exponential-only damping used for galaxy densities. The paper’s analysis indicates that this can fail badly, especially for vs(k)=Ξ~s(1)=2P01s,σs2(k)=Ξ~s(2)=2P02s−2P11.4, because peculiar-velocity observables respond directly to long-wavelength bulk flows.
5. Implementation profile and likelihood use
The paper is more explicit about the theory backend than about software engineering (Chen et al., 31 Jul 2025). It does not give a detailed software manual, API, or benchmark table for velocisaurus; the explicit claims are that it is a fast Python code and that the authors “make our likelihood publicly available as part of velocisaurus.” For that reason, velocisaurus should be understood as a public Python implementation of the paper’s EFT predictions for peculiar-velocity observables and associated likelihood machinery, rather than as a general-purpose simulation or reconstruction package.
The implementation is connected to existing numerical methods. LPT calculations build on methods previously developed for velocileptors, especially FFTLog/Hankel-transform evaluation of the angular integrals. EPT predictions use the previously implemented one-loop real-space pairwise moments from velocileptors and extend them to redshift space with the new resummation. This suggests a division of labor in which velocisaurus specializes the peculiar-velocity and redshift-space extensions while reusing established perturbative infrastructure where appropriate.
Practical use is illustrated by the fitting analyses in the paper. The authors fit vs(k)=Ξ~s(1)=2P01s,σs2(k)=Ξ~s(2)=2P02s−2P11.5, vs(k)=Ξ~s(1)=2P01s,σs2(k)=Ξ~s(2)=2P02s−2P11.6, and vs(k)=Ξ~s(1)=2P01s,σs2(k)=Ξ~s(2)=2P02s−2P11.7 jointly with common EFT parameters, use wide priors in some tests, vary vs(k)=Ξ~s(1)=2P01s,σs2(k)=Ξ~s(2)=2P02s−2P11.8, and run Gaussian-likelihood analyses with Cobaya, analytically marginalizing linear parameters. The methodological significance is that the same generating-function-based EFT description underlies both prediction and inference.
6. Validation, fitting reach, and scientific relevance
Validation proceeds in two stages (Chen et al., 31 Jul 2025). First, the theory is checked in a Zeldovich universe, where the recursive IR-resummation scheme can be compared to exact Zeldovich predictions. In that setting, the modified resummation captures the BAO phase and amplitude in vs(k)=Ξ~s(1)=2P01s,σs2(k)=Ξ~s(2)=2P02s−2P11.9 and Ps(k;λ)=∫d3qeik⋅q⟨eik⋅(λΔu)(1+δg(q1))(1+δg(q2))⟩,0, whereas an exponential-only damping scheme can fail badly, especially for Ps(k;λ)=∫d3qeik⋅q⟨eik⋅(λΔu)(1+δg(q1))(1+δg(q2))⟩,1.
Second, the full EFT predictions are compared to fully nonlinear N-body simulations, specifically 25 AbacusSummit boxes of volume Ps(k;λ)=∫d3qeik⋅q⟨eik⋅(λΔu)(1+δg(q1))(1+δg(q2))⟩,2, using CompaSO halo catalogs for halos with Ps(k;λ)=∫d3qeik⋅q⟨eik⋅(λΔu)(1+δg(q1))(1+δg(q2))⟩,3 at Ps(k;λ)=∫d3qeik⋅q⟨eik⋅(λΔu)(1+δg(q1))(1+δg(q2))⟩,4 and Ps(k;λ)=∫d3qeik⋅q⟨eik⋅(λΔu)(1+δg(q1))(1+δg(q2))⟩,5. Agreement is shown for the first three redshift-space pairwise moments Ps(k;λ)=∫d3qeik⋅q⟨eik⋅(λΔu)(1+δg(q1))(1+δg(q2))⟩,6, Ps(k;λ)=∫d3qeik⋅q⟨eik⋅(λΔu)(1+δg(q1))(1+δg(q2))⟩,7, Ps(k;λ)=∫d3qeik⋅q⟨eik⋅(λΔu)(1+δg(q1))(1+δg(q2))⟩,8, including multipoles. The quoted fitting reach is roughly Ps(k;λ)=∫d3qeik⋅q⟨eik⋅(λΔu)(1+δg(q1))(1+δg(q2))⟩,9 at Ξ~s(n)(k)=(ikμ)n1(dλndnPs(k;λ))λ=1.0 and Ξ~s(n)(k)=(ikμ)n1(dλndnPs(k;λ))λ=1.1 at Ξ~s(n)(k)=(ikμ)n1(dλndnPs(k;λ))λ=1.2, with some higher multipoles restricted to slightly smaller Ξ~s(n)(k)=(ikμ)n1(dλndnPs(k;λ))λ=1.3. The BAO wiggles isolated from the data are also reproduced well by both Eulerian and Lagrangian predictions.
In fits where all cosmological parameters except the growth rate are fixed, and Ξ~s(n)(k)=(ikμ)n1(dλndnPs(k;λ))λ=1.4 is allowed to vary jointly with the EFT nuisance parameters, the model recovers the true growth rate to better than percent level: the reported constraints are Ξ~s(n)(k)=(ikμ)n1(dλndnPs(k;λ))λ=1.5 and Ξ~s(n)(k)=(ikμ)n1(dλndnPs(k;λ))λ=1.6 on Ξ~s(n)(k)=(ikμ)n1(dλndnPs(k;λ))λ=1.7 at Ξ~s(n)(k)=(ikμ)n1(dλndnPs(k;λ))λ=1.8 and Ξ~s(n)(k)=(ikμ)n1(dλndnPs(k;λ))λ=1.9, with best-fit values deviating by at most Ps(k;λ)=n=0∑∞n!(ikμ)nλnΞ~(n)(k).0 from the truth. This matters because the code is intended for upcoming peculiar-velocity surveys whose statistical precision will demand sub-percent to percent-level modeling accuracy; the authors explicitly state that this is “well beyond the statistical precision required for upcoming peculiar velocity surveys.”
Taken together, these features explain the code’s significance. Standard EFT galaxy-clustering codes focus on density and redshift-space distortion observables, whereas velocisaurus targets peculiar velocity statistics themselves in a framework where densities and velocities are derived consistently from the same redshift-space generating function and the same EFT parameter set. Its distinctive methodological contribution is the demonstrated need for modified BAO IR resummation in peculiar-velocity statistics, rather than merely the standard exponential damping used for galaxy densities. That makes it directly relevant for low-redshift peculiar-velocity surveys, joint density–velocity analyses, RSD/BAO inference, and likely future EFT treatments of kSZ observables.