WorksPhysics and Astronomy
Using fixed to reproduce evolving - dark energy at the field level
Abstract
Recent results from the Dark Energy Spectroscopic Instrument (DESI) hint at dynamical dark energy, making the accurate modelling of such cosmologies increasingly important for future analyses. In this work, we show that because, when written in superconformal time , the -body equations of motion depend on the background cosmology only through the expansion history , matching allows us to map one cosmology onto another. As a first, observationally relevant, application of this new method, we match a Chevallier–Polarski–Linder (CPL) cosmology to a constant- cosmology with the closest . This allows us to use a single fixed- simulation to reproduce the simulation predictions of the target CPL cosmology at the field level at redshifts . We validate this matching with 100 pairs of CPL and fixed- mg-glam simulations, spanning , and . For a DESI-like cosmology, the matter power spectra of the matched and target simulations agree to 0.24% for and 0.8% up to at , and the density phases are reproduced with a stochasticity below 0.02%. Displacements, velocities, momenta, redshift-space multipoles, bispectra and the halo and void abundances are similarly well predicted. For most models we consider, we achieve subpercent error in the power spectrum up to scales at all redshifts, with density stochasticity below 0.03% over the same scales. The method allows constant- simulations and field-level emulators to be used for CPL cosmologies, and generalises to any cosmology with no additional scale dependence.
Introduction
The nature of dark energy (DE) has long been a central question in cosmology. Recent baryon acoustic oscillation (BAO) measurements from the Dark Energy Spectroscopic Instrument (DESI), combined with the cosmic microwave background (CMB) and type Ia supernovae, point to a time-evolving dark energy over a cosmological constant (Abdul Karim et al. 2025). This preference is expressed in the Chevallier–Polarski–Linder (CPL) parametrisation, in which the dark energy equation of state (EoS) parameter evolves with the scale factor as . This form captures the expansion histories of a wide range of physical dark energy models (Chevallier & Polarski 2001; Linder 2003). Cosmological analyses of current and upcoming surveys therefore need to explore an extended parameter space that includes and .
Extending the parameter space comes at a cost on nonlinear scales, where predictions rely on -body simulations. These are the standard tool to follow the nonlinear growth of structure and underpin most analyses on small scales, but are too expensive to run for every model that must be sampled in a cosmological data analysis. Emulators trained on suites of -body simulations have emerged as an efficient alternative for predicting nonlinear statistics (e.g. Heitmann et al. 2009; Lawrence et al. 2017; DeRose et al. 2019; Nishimichi et al. 2019; Angulo et al. 2021; Euclid Collaboration et al. [19]), and are widely used in cosmological inference. For dynamical dark energy, some emulators predict the nonlinear matter power spectrum directly as a function of and [19] (Yang et al. 2025).
Another approach is to reuse existing simulations or emulators by mapping between different cosmologies. Rescaling methods can take a simulation run in one cosmology and relabel its length, mass and time units to approximate other cosmologies (Angulo & White 2010), including modified gravity models (Mead et al. 2015). Evolution mapping instead relates cosmologies at equal linear clustering amplitude (Sánchez et al. 2022; Esposito et al. 2024). For dynamical dark energy, Casarini et al. (2016), hereafter C16, matched the target model, at each redshift, to a constant- model sharing its comoving distance to the last-scattering surface and its , a method previously introduced by Casarini et al. (2009) (see also Linder & White 2005; Francis et al. 2007). Using this matching, C16 extended the Coyote emulator (Heitmann et al. 2010, 2009; Lawrence et al. 2010; Heitmann et al. 2014) to models, showing, by means of -body simulations, that it reproduces the nonlinear matter power spectrum to better than 0.5% at and 1% at for . Chen & Yin (2026) applied the same matching to models favoured by DESI, achieving an accuracy of about 1%. These meth-
© 2026 The Authors ods have been validated on summary statistics like the matter power spectrum or the halo mass function, but agreement at the field level is unknown.
Summary statistics, however, can not capture all the information in the nonlinear field. Field-level emulators go one step further and predict the outputs of -body simulations at the field level, either the density field (e.g. Kang et al. 2026) or the full particle output. The latter use neural networks to map the linear displacement field to the nonlinear displacements and velocities of -body simulations with percent-level accuracy (Jamieson et al. 2023; Scoggins et al. 2025), with redshift dependence through the linear growth factor (Jamieson et al. 2025). They have also been applied to beyond CDM models, such as modified gravity (Saadeh et al. 2025a,b). Other approaches combine an emulator with particle-mesh force evaluations (Bartlett et al. 2025) or use neural cellular automata (Jacobus et al. 2026). These approaches are deterministic, mapping each input field to a single output. Generative models, such as conditional generative adversarial networks, have also been applied to map CDM fields to modified gravity (Gondhalekar et al. 2025).
A key advantage of field-level emulators is that they can provide full -body snapshots, so that any summary statistic, including the ones in redshift space, can then be measured from their output. They enable inference and analysis at the field level, such as in the reconstruction of the initial conditions (Doeser et al. 2024) and the painting of haloes, galaxies and other tracers on fast dark matter fields (Pandey et al. 2025; Scelfo et al. 2026), including in modified gravity (García-Farieta et al. 2024). However, none of them currently covers cosmologies. Kaushal et al. (2022) have tested a field-level emulator with , but only for constant . Extending these emulators to CPL models would require training on new simulation suites.
In this work, we propose a new matching method that is based on a universality of the -body equations for models that do not introduce additional length scales, including CDM and most non-clustering dark energy models. The key idea is to match the expansion history in superconformal time, defined by . With this time variable, it can be shown that the -body equations of motion depend on the background only through (Martel & Shapiro 1998), so that two models with the same and the same initial conditions produce exactly identical particle trajectories.
Here, we apply this general method to evolving dark-energy models with a CPL equation of state, showing it is possible to reproduce them at the field level by means of a constant EoS chosen to match , while keeping the same. By matching the full expansion history, we are able to reproduce snapshots at any time from the initial redshift to with a single matching, which is the key difference from the earlier work of C16. To achieve this, is matched over the expansion history up to the present day, with all other cosmological parameters kept fixed2.
We validate the new mapping method with 100 pairs of target and matched simulations with particles and the same initial phases, on a grid of that includes the region favoured by DESI. Beyond the power spectrum, we test the density field at the field level through its stochasticity, and compare the Lagrangian displacement, Lagrangian velocity, Eulerian momentum, redshift-space distortions, bispectrum, haloes and voids. We also compare our matching with that of C16 and test the dependence on the -body code. We show that this matching method gives sub-percent accuracy in its predictions of all tested summary statistics for current observationally-relevant CPL cosmologies. A constant- simulation suite or field-level emulator can therefore be used for CPL cosmologies without retraining.
This paper is structured as follows. § 2 describes the method underlying this work, i.e. the matching in superconformal time, and the -body simulations we use to validate it. § 3 tests our matching against a range of summary statistics, including the density power spectrum, bispectrum and stochasticity, the power spectra of the Lagrangian displacement, Lagrangian velocity and Eulerian momentum, redshift-space multipoles, and halo and void abundances. We then compare our method against the original work of C16, and examine the limitations of matching to a single constant by stress-testing the method with a positive , i.e. , with 25 further simulation pairs. For these targets, dark energy is still important at early times, which a constant cannot reproduce. § 4 summarises our conclusions. In the Appendices, we first show that our results hold for two other -body codes, PKDGRAV3 and MP-GADGET (Appendix A), and then show the effect of rescaling the velocities of the match using linear theory (Appendix B).
Throughout this paper we adopt the common conventions in the literature: denote the present-day density parameters for matter, radiation and baryons respectively, is the Hubble constant with , is the root-mean-square density fluctuation at smoothed at , , are the power index and amplitude of the primordial power spectrum, and is the scale factor normalised to at redshift (today).
Methods
Superconformal Time and Matching
We consider spatially flat cosmologies containing matter and dark energy. In the following, we model dark energy as a barotropic fluid with EoS , where and are the DE pressure and energy density, respectively, and the speed of light. For , we recover a cosmological constant.
For each target CPL cosmology, we construct a matched cosmology with a constant EoS parameter that shares all other cosmological parameters with the target. The matching proceeds in three steps:
choose the whose expansion history is closest to that of the target,
find, for each target redshift, the matched redshift with an equal linear growth factor , and
rescale the velocities and redshift-space displacements based on linear theory.
We describe each step below.
The equations of an -body system take a particularly simple form when expressed in superconformal time (Martel & Shapiro 1998). We use the dimensionless look-back superconformal time
where is the cosmic time, its present-day value, the Hubble parameter, whose present-day value is (the Hubble constant), and the normalised expansion rate. For a flat universe with CPL dark energy (Chevallier & Polarski 2001; Linder 2003),
we have
where is the present-day matter density parameter. For simplicity and without loss of generality, we neglect radiation in , as in our -body simulations, so is the dark energy density. A constant- model corresponds to , . Using , the equations of motion become
where is the comoving position, with the peculiar gravitational potential, and is the matter overdensity. Note that, in Eq. (4), the cosmology enters only through . With fixed, two models that start from the same initial conditions and have identical would therefore produce identical particle trajectories. The Hubble constant does not appear in the equations explicitly, but is implicitly included in the units of time () and space. We adopt the same , and hence , for the target and the matched models, so that both are expressed in the same units of time, length and momentum and their outputs can be compared directly.
Although the target and matched models share and , a constant cannot reproduce the of a CPL model exactly. For each target, we therefore choose the constant- model whose is closest to that of the target CPL (Figure 1, left panel). In practice, we compare the two expansion histories, , on a grid of logarithmically-spaced values of in the range , which emphasises the late-time evolution. We therefore define the matching error as
Figure 1. Matching procedure for the DESI-like target . Left: of the target (black) and of constant- models (thin coloured lines, see colour bar), with (Eq. (5)) in the lower panel. The thick line is the match, , with . Middle: linear growth factor , normalised to . For , 1 and 2, open markers indicate the redshift at which each constant- model reaches the target value of (filled black markers). Right: linear velocity prefactor before rescaling, with in the lower panel. Each curve is plotted against its own redshift, and the markers indicate the matched epochs. For the match, differs from the target by at most 0.6% at the matched epochs.
where , is the expansion history of a constant- model, and is the value of that minimises
. Unlike the relative difference , the log difference here is symmetric between a matched scale factor that is too large and one that is too small by the same factor. Our conclusions are not sensitive to the particular number of points or the range.
The method described above with Eq. (4) is exact, in the sense that if the target and matched cosmologies have identical , then their simulation predictions are completely identical, and there is no approximation involved apart from those used to derive the equations from general relativity (GR), and the assumption that DE clustering is negligible. In practice, however, as we have noticed from Figure 1, the two models do not have identical , so that there is a slight mismatch between the structure growths for the same or .
Rather than using a different constant- model at each redshift, as in C16, we use a single per target, trading some accuracy for efficiency. As a result, each target redshift requires a matched redshift in the matched cosmology at which the growth difference is minimised. The two models share all other parameters, including and the present-day . Their initial conditions have the same phases but slightly different amplitudes3. For each , we can therefore find the that satisfies , with normalised to unity at in each model (Figure 1, middle panel). At this redshift, the two models have the same linear amplitude, and therefore the same linear density field. This is where the efficiency comes from: since any target redshift can be matched in this way, a single matched simulation serves all target redshifts, whereas matching a different constant- model at each redshift would require a separate -body simulation for every target redshift. This is similar in spirit to evolution mapping (Sánchez et al. 2022). In the following, we label each pair of matched outputs by its target redshift and write .
Matching is not sufficient to guarantee that the velocities will match too. In fact, in linear theory, the peculiar velocity is
where is the linear growth rate, the initial position of a particle and the linear displacement field with . At matched epochs, is equal, but the factor may not be (Figure 1, right panel). Following Esposito et al. (2024), we therefore rescale the velocities of the matched simulation by
where the target and matched quantities are evaluated at and , respectively. For the velocity and momentum fields (Sect. 3.2), the correction is a constant rescaling at each output, independent of position and scale, which changes only the field amplitude, i.e. the power spectrum, and leaves the stochasticity unchanged. The redshift-space positions are then obtained from the rescaled velocities as , where is the line-of-sight direction and is the line-of-sight component of the rescaled velocity. The conversion uses the of the target simulation at , so the redshift-space positions are those of the target model. Unlike for the velocity and momentum fields, the rescaling therefore changes the redshift-space density field itself, not only its amplitude. We show the effect of rescaling in Appendix B.
Simulations
We run our simulations with MG-GLAM, a particle mesh (PM) -body code (Klypin & Prada 2018; Ruan et al. 2022; Hernández-Aguayo et al. 2022), in its GR mode, i.e. without any modified-gravity force. We modify the code to (i) include the CPL equation of state, (ii) write snapshots at exactly the requested redshifts instead of the nearest time step, and (iii) output velocities at the same time as the positions, rather than half a time step apart.
Each simulation follows particles in a box of side length , giving a mass resolution of . Forces are computed on a mesh, so the force resolution is set by the cell size, . All simulations start at with an initial step , which the code increases as the simulation advances (see Klypin & Prada 2018, for details), giving 158–162 time steps in total.
The linear power spectra are computed using CAMB4 (Lewis et al. 2000; Howlett et al. 2012; Lewis 2026), using the parameterised post-Friedmann prescription to handle phantom crossing (Fang et al. 2008). We include radiation by setting . The initial conditions for all simulations are generated using second-order Lagrangian perturbation theory (2LPT, Scoccimarro 1998), in the implementation of the FML library5 (Fiorini et al. 2021), which we extended to support a user-defined growth history, set here to that of the CPL background.
The initial conditions displace the particles from a uniform grid of sites. We label each particle by its grid site , its Lagrangian coordinate, so that its comoving position is , where is the Lagrangian displacement field. The Lagrangian velocity field, , is the velocity of the particle labelled by . Eulerian fields are instead defined at comoving positions , for example the density and momentum fields. We obtain the overdensity, , where is the mean density in the box, and the momentum, , by assigning the particles and their velocities to the mesh with the cloud-in-cell (CIC) scheme.
Motivated by the recent DESI results (Abdul Karim et al. 2025), we construct a grid of target cosmologies with , and , i.e. 100 targets, together with 25 targets with as a stress test for later, giving 125 in total. All models are spatially flat. The remaining parameters follow Planck 2015 ([57]): , , and . Each target uses a different random seed, while the target and its match share the same seed, giving 125 independent realisations. As a representative example, we also adopt a DESI-like cosmology, , the posterior mean for flat CDM from DESI+CMB+DESY5 (Abdul Karim et al. 2025, Table V), with all other parameters as in the grid. It is closer to current constraints than the grid points, and allows a direct comparison with other studies that adopt the DESI results.
We identify haloes with the bound density maxima (BDM) halo finder (Klypin & Holtzman 1997; Knebe et al. 2011), which locates density maxima, removes unbound particles and defines haloes as spherical overdensities. We use the bound mass , enclosed within a radius where the mean density is 200 times the mean matter density. Voids are identified with the spherical void finder of PYLIANS6 (Lavaux & Wandelt 2012; Stücker et al. 2016): it applies spherical top-hat filters of decreasing radius, from 125 to , to the CIC density field and keeps non-overlapping spheres whose mean overdensity is below a threshold , which we set to .
Results
We now compare the target and matched simulations. We start with the density field in Sect. 3.1, first for the DESI-like pair and then for the grid of models spanning . We assess our matching by comparing density slices and summary statistics of the density field, including the one-point distribution function, the power spectrum, the stochasticity and the bispectrum. § 3.2 extends the comparison beyond the real-space density field, to the Lagrangian displacement and velocity, the Eulerian momentum and the redshift-space multipoles. In Sect. 3.3, we examine halo and void abundances. We then compare our matching with the redshift-dependent matching of C16 in Sect. 3.4. In Sect. 3.5, we use the simulation pairs with to test the limits of matching a CPL model with a single constant .
In Appendix A, we repeat the comparison for the DESI-like pair with two other -body codes, PKDGRAV3 and MP-GADGET, demonstrating that the power spectrum errors of the matching do not depend on the code.
Unless stated otherwise, the results for the grid use the 100 simulation pairs with , and the velocities of the matched simulations are rescaled with Eq. (7). Appendix B gives further details of the effect of this rescaling.
The density field statistics
We assign the particles to a mesh using the CIC scheme, to obtain the density field and the overdensity , where is the mean density in the box. We compare the target and matched density fields at the spectrum and field levels.
We first examine the DESI-like target cosmology $(\Omega_{\mathrm{m}}, w_0, w_a) = , matched by . For this pair, the six outputs at , , , , and correspond to , , , , and . In Figure 2, we show sample density slices, wide and thick, through the centre of the box, of the target and matched simulations, which are visually indistinguishable. The differences grow with time, but even at the projected densities of target and match agree to within 1% in 99.1% of the pixels, and the few larger differences lie preferentially near dense structures.

Figure 2. Density slices for the DESI-like target and its match at , and (columns). Rows: target, match, and the log density ratio . Each panel covers the same region with a projection depth of . The differences grow with time, but at all three redshifts at least 99.1% of the pixels agree with the target to within 1%.
The one-point PDFs of agree to at all six outputs (Figure 3), with the largest deviations at the low- and high-density ends of the distribution, where the bins contain fewer mesh cells and are therefore noisier.
Figure 3. The probability distribution function (PDF) of for the DESI-like target and matched pair, measured on the full CIC mesh. Top: PDF of the target. The PDF of the match is indistinguishable and is not shown. Bottom: relative difference between the matched and target PDFs, with deviations below 0.3% at all six outputs. Colours denote the redshift , as indicated by the legend.
The matter power spectrum is defined by
where is the Fourier transform of the density contrast , and is the Dirac function. We measure on the same CIC mesh, correcting for the CIC window function, in bins of width , and do not subtract shot noise. We quantify the difference using , where is measured at and at .
The field-level difference can be characterised in terms of the stochasticity ((Hamaus et al. 2010)), where the cross-correlation coefficient is defined as
with the cross power spectrum given as . The term quantifies the fraction of the variance in the target field that is unexplained by the matched field.
It captures differences at the field level beyond the power spectrum, including differences in the phases of the modes, and is also used to validate field-level emulators. Beyond , baryonic effects become important (e.g. van Daalen et al. [72]; Chisari et al. 2019). We therefore focus on , but also show our results up to the Nyquist frequency of the mesh, , for completeness.
Figure 4 shows the power spectrum error, , and the stochasticity of the density field, . On linear scales, the power spectra agree by construction, since the growth factor is matched. On nonlinear scales, they agree to better than 0.25% for and to better than 0.9% up to the Nyquist frequency, at all redshifts, with the greatest discrepancy observed at . That at small scales initially increases and then decreases after is likely caused by the difference in the nonlinear growth rates between the target and matched models. The stochasticity grows with time but stays below for , and reaches only near the Nyquist frequency.
Figure 4. Power spectrum error (top) and stochasticity (bottom) of the density field for the DESI-like (DESI posterior mean) target and matched pair at six target redshifts. Dashed lines mark (top) and (bottom). The spectrum and field-level statistics show good agreement between target and match.
Having examined the DESI-like pair, we now turn to the full grid of 125 models (see Sect. 2.2), to assess how the accuracy of the matching depends on the target cosmology. We start by quantifying, in Figure 5, the error we make in approximating the expansion history by means of a constant . The panels show the matching error , defined in Eq. (5), for , and three

Figure 5. Matching error over the CPL parameter grid. The three panels fix , and . The axes are and . Numbers give and colours , with the same colour scale as Figure 6. The white frame marks the models used in the main analysis. On the middle panel, the white contours show the 68% and 95% confidence regions of the DESI DR2 constraint from DESI+CMB+DESY5, marginalised over , and the star marks its posterior mean. generally increases with and , and is largest in the upper-right corner of the left panel, .
values of the matter density, . As a property of the background expansion history, we have a single for each model, and we expect the accuracy of the matched simulation to degrade as increases. We can see that is smallest in the row, which is closest to a constant . It increases with and , and decreases with , i.e. with a smaller dark energy fraction. These trends are expected: the matching is better where the target is closer to a constant , and where dark energy is less important, i.e. for more negative or higher .
We focus on the models with (boxed in Figure 5). Within this range, is largest in the lower-right corner, and the maximum is at . When the models with positive are included, we find a much larger in the upper-right corner (, large ). In that region is far above at early times, so dark energy is not negligible at high redshift, which a constant is unable to reproduce. These models lie outside the DESI contours (Abdul Karim et al. 2025), and we use them only as a stress test (Sect. 3.5). The DESI DR2 constraint (DESI+CMB+DESY5, flat CDM, 68% and 95% contours), marginalised over , is drawn on the panel, the closest to the DESI value , and it covers cells with –, where the matching is excellent.
Figure 6 shows the power spectrum error, , and the stochasticity of the density field, , for the 100 simulation pairs with , at redshifts , , , and , coloured by the matching error . At all shown redshifts, the median error is below 0.2% at all scales and below 0.8% all the way up to the Nyquist frequency . The median follows the behaviour of the DESI-like pair: it increases from to a peak at and then decreases towards , where a sign change near appears as a dip. All models except six show sub-percent error in the power spectrum at all scales and at all redshifts, with the greatest discrepancy again appearing at . For , where baryons nevertheless become important and the reliability of dark-matter-only simulations decreases, the maximum error stays within 5%, with the largest deviation shown at .
Figure 6. Power spectrum error (top) and stochasticity (bottom) of the density field for the 100 models with at , , and (columns), coloured by . Solid black lines show the median and dashed black lines the 16th and 84th percentiles across models. Grey dashed lines mark and . The errors are strongly correlated with , and for most models the power spectrum error is sub-percent and the stochasticity is or below up to the Nyquist frequency. The power spectra of target and match agree well.
The median stochasticity follows the same behaviour as in the DESI-like pair, staying below for and reaching only near the Nyquist frequency; it is also largest at . For all models considered, the stochasticity remains sub-percent up to the Nyquist frequency. The errors are strongly correlated with : all models below the 90th percentile of , , have a power spectrum error below 1% and a stochasticity below at all scales and at all redshifts. All six exceptions have and lie in the top 10% of .
To test the non-Gaussianity of the field, we use the bispectrum, defined by ((Bernardeau et al. 2002; Scoccimarro 2000)). In particular, we focus on the reduced bispectrum , which largely removes the dependence on the power spectrum amplitude and isolates the mode coupling. We consider
three types of triangle configurations, which probe different aspects of mode coupling. Two of them fix and and vary the angle between them. The first, , probes the quasi-linear regime. The second, , is a squeezed configuration, which couples a large-scale mode to two nonlinear modes and therefore tests how small-scale structure responds to its large-scale environment. Finally, the equilateral configuration, from quasi-linear scales up to just below , follows the mode coupling at fixed shape from quasi-linear to nonlinear scales. We measure the bispectrum at with pylians3 (Villaescusa-Navarro 2018) on the same CIC mesh, correcting for the CIC window function. Shot noise is not subtracted, since it is nearly identical for target and match.
Figure 7 shows the error of the reduced bispectrum, , at . For the quasi-linear configuration (left panel), all models agree to better than 0.3% at all angles, with a median below 0.02%. When the large-scale mode combined with (middle panel), the residual depends only weakly on and is largest near , with a median below 0.15%. All models except two stay below 1%, with a maximum of 1.3%. For equilateral triangles (right panel), the median error is below 0.15% for and below 0.25% at all , with the largest values at –. All models except ten stay below 1%, with a maximum of 2.4%. The residuals of are strongly correlated with , similar to those of the power spectrum.

Figure 7. Reduced bispectrum error at for the models with . Left and middle: triangles with fixed and , as a function of the angle between and , with . Right: equilateral triangles as a function of . Colours and lines as in Figure 6. The reduced bispectra of target and match agree well.
Lagrangian, momentum and redshift-space fields
In addition to the density, we examine the Lagrangian displacement and velocity and the Eulerian momentum field (see Sect. 2.2), which are vector fields. For a vector field , which is , or , we define , and likewise for the cross power.
The cross-correlation coefficient is thus
which treats the three Cartesian components as a single field. The velocities and momentum of the match are rescaled as in Sect. 2.1 (see Eq. (7)); we also discuss the implications of rescaling further in Appendix B.
Figure 8 shows the power spectrum error of the Lagrangian displacement, Lagrangian velocity and Eulerian momentum and its dependence on redshift. The displacement is the most accurate of the three fields. Its median error is below 0.04% for and below 0.2% up to the Nyquist frequency. The models stay below 0.5% for and below 1.6% up to the Nyquist frequency. The displacement error grows with time and is largest at . For both the Lagrangian velocity and the momentum, the median error is below 0.3% for and below 0.8% up to the Nyquist frequency. For , at most eleven models exceed 1% in either field, and these are among the models with the largest . The Lagrangian velocity is the least accurate field, with errors up to 2.6% for and 6.4% up to the Nyquist frequency. We will revisit this point in Appendix A.
Figure 8. Power spectrum error of the Lagrangian displacement (top), Lagrangian velocity (middle) and Eulerian momentum (bottom), at , , and (columns). Colours and lines as in Figure 6. The displacement is the most accurate field and the Lagrangian velocity the least accurate, but all three fields are sub-percent for for most models.
Observations measure positions in redshift space, so we also compare the redshift-space density fields. We construct them in the plane-parallel approximation, taking each of the three box axes in turn as the line of sight, average the multipoles over the three directions, and compare target and match. The multipoles are the Legendre expansion of the redshift-space power spectrum , where is the cosine of the angle to the line of sight [30] (Kaiser 1987).
Here is the Legendre polynomial of order , and we measure the monopole (), quadrupole () and hexadecapole (). We present the residuals of all multipoles normalised by the target monopole, . The velocities used to construct the redshift-space positions are rescaled following Eq. (7) (see also Appendix B).
Figure 9 shows the residuals of the redshift-space monopole, quadrupole and hexadecapole, . For , the median is below 0.2% for all three multipoles. The residuals are within 1% for all models, except for the six models that also exceed 1% in the real-space power spectrum (Sect. 3.1), for which the hexadecapole reaches 1.8%. Up to the Nyquist frequency, the median remains below 1%. The largest residuals are in the hexadecapole at , with a maximum of about 5%. The matching is therefore as accurate in redshift space as in real space.
Figure 9. Residuals of the redshift-space monopole, quadrupole and hexadecapole (rows), normalised by the target monopole and averaged over three lines of sight, at , , and (columns). Colours and lines as in Figure 6. The multipoles agree to within 1% at for nearly all models. Towards the Nyquist frequency, the residuals of the quadrupole and hexadecapole reach a few percent for the small number of models with the largest .
Halo and void statistics
We compare the abundance of haloes at (Figure 10), following the procedure described in Sect. 2.2. To exclude poorly resolved haloes and sparsely populated bins, we restrict the comparison to masses from the 100-particle mass of each cosmology up to , where target and match contain at least 100 haloes per bin. The median is at all masses and largest at the highest masses, –, where haloes are rare, and the 84th percentile stays below 1%. Since target and match share the same initial phases, the Poisson noise largely cancels in the ratio, which allows a sub-percent comparison even where haloes are rare.
Figure 10. Halo mass function (HMF, left) and void size function (VSF, right) at , where voids are spheres with mean overdensity below . Top: target (solid) and match (dashed). Bottom: for bins with at least 100 objects in both members, where zero means equal counts. Haloes are binned in 0.4 dex in mass up to and voids in 3.9 in radius up to . Colours and lines as in Figure 6. Grey dashed lines mark 1%.
We also compare the void abundance at (Figure 10). We use the void finding procedure described in Sect. 2.2. The comparison covers –, where the target and match contain at least 100 voids per bin. The median increases with radius, from 0.01% at – to 0.09% at –, and the 84th percentile stays below 0.2%. The fraction of models in which target and match contain exactly the same number of voids increases from 5% at the smallest radii to 48% at the largest. Voids are reproduced more precisely than haloes, as expected for large, quasi-linear structures. For both statistics, the largest residuals belong to the models with the largest .
Comparison with the redshift-dependent matching of C16
As mentioned in Sect. 2.1, our matching trades a little accuracy for efficiency: a single constant- model serves all redshifts, so that one -body simulation provides all the snapshots of the target. The matching of C16, instead, treats each output redshift separately, with a constant- model that has the same comoving distance to the last-scattering surface and the same as the target. This reproduces the nonlinear matter power spectrum at each redshift to better than up to , but requires a separate -body simulation, with its own and , for every snapshot. For the DESI-like target, the C16 models range from at to at . We run these simulations with MG-GLaM, using the same initial phases and the same velocity rescaling (Eq. (7)) as for our match, and compare the two approaches in Figure 11, to quantify the accuracy we give up by using a single simulation.

Figure 11. Comparison between our (solid) and C16’s redshift-dependent (dashed) matching for the DESI-like target . Our matching obtains all snapshots from a single constant- simulation, whereas C16 requires a separate constant- simulation, with its own and , for each redshift. At , the two approaches are close, with for all fields. Towards the Nyquist frequency, the density error of our matching grows to about at and , compared with at most for C16. Our matching thus trades a small loss in accuracy for a large gain in efficiency. Top: power spectrum error . Bottom: stochasticity . Columns show the density, Lagrangian displacement, Lagrangian velocity and Eulerian momentum. The velocities of both approaches are rescaled with Eq. (7). Colours denote as indicated by the legend.
At , the C16 model, with , is very close to our match, , and the two approaches give nearly identical results. For all four fields, their power spectrum errors differ by less than 0.05% for , and the density stochasticity stays below for our match and for C16 in the same range. At , C16 is generally more accurate, in particular on small scales. The difference is largest at and 1, where the density up to near the Nyquist frequency reaches 0.86% and 0.81% for our match, compared with 0.12% and 0.045% for C16. These are the epochs at which the expansion history of our match departs most from that of the target, with up to 0.7% near (Figure 1, left panel). For , the density at stays below 0.24% for our match and 0.05% for C16. The momentum and the Lagrangian velocity behave in the same way, while the displacement errors of the two approaches are similar, for . The density stochasticity of C16 is also lower at , although both remain below for .
The two approaches therefore trade accuracy against efficiency. C16 is slightly more accurate at , in particular on small scales, but needs a separate simulation, with a different cosmology, for every output redshift, six in this comparison. Our matching uses a single simulation of one constant- cosmology for all redshifts, and its outputs form one continuous evolution, which is suitable for building light cones. For a small loss in accuracy, with errors of a few tenths of a percent for for the DESI-like target, we thus gain efficiency, and a constant- simulation suite or field-level emulator can reproduce a CPL target at all redshifts with a single input cosmology. We also note that, for , we are moving to the one-halo regime, where sub-percent agreement is difficult to achieve between different simulation codes, particularly at field level (Bayer et al. 2025).
Extreme cases
The 25 simulation pairs with test the matching outside the parameter range favoured by DESI. They are the more extreme cases, with matching errors up to for , three times the maximum for the models with . Figure 12 shows the results at , where the models with the largest also have the largest spectrum and field-level errors. For , six of the 25 pairs have a density power spectrum error above 1%, and five of them also have a stochasticity above 0.1%, up to 46%. These six pairs are the five with , one for each , and , all in the upper-right corner of the map (Figure 5). The redshift-space multipoles, the reduced bispectrum and the halo mass function of these models also deviate by more than 1%.
Figure 12. Power spectrum error (top) and stochasticity (bottom) at of the density, Lagrangian displacement, Lagrangian velocity and Eulerian momentum for the 25 simulation pairs with , coloured by . These models have non-negligible dark energy density at early times, making them difficult to reproduce with a fixed equation of state. Grey lines show the 100 simulation pairs with , and the black solid and dashed lines their median and 16th and 84th percentiles. Grey dashed lines mark . In this stress test, the models with the largest also have the largest spectrum and field-level errors.
No. We note where matching in these more extreme models is not an indication of failure by the general methodology developed here, but simply the consequence of the fact that a constant- expansion history fundamentally cannot well match the expansion history of the target. The failing models have a non-negligible dark energy density at early times. For the model with the largest , , the equation of state approaches at early times, and dark energy makes up 41% of the energy density at . For the five models with , this fraction increases from 7% for to 41% for . For , it is 3%, compared with less than 0.2% for every model with . A constant cannot follow a dark energy component that is important both at early and at late times. The matches of these models have to and a dark energy fraction of 2–19% at , so the expansion histories, and hence the particle trajectories, differ already when structures start to form. Early dark energy also changes nonlinear structure formation beyond the linear growth (Francis et al. 2009; Grossi & Springel 2009), and fitting functions for the nonlinear power spectrum show their largest errors in the same corner of parameter space, where approaches zero (Mead et al. 2021).
These cases therefore provide a stress test of our matching method with the additional constraint of in the matched cosmology. A single constant matches the expansion history only on average. This works well for the models with . For the models with and a non-negligible early dark energy fraction, the matching could still work, but requires more sophisticated matched models than and so is less useful in this particular context. This limitation is of little practical concern at present, as the region of parameter space favoured by current data lies at (Abdul Karim et al. 2025).
Conclusions
We have presented a method to reproduce the full output of an -body simulation with CPL dark energy at multiple redshifts, using a single simulation of a constant- cosmology. The mapping between the two is obtained by matching their expansion histories in superconformal time.
We assessed the accuracy of the method with MG–GLAM simulations of a DESI-like pair, with the target at the DESI+CMB+DESY5 posterior mean, and of 100 simulation pairs spanning with , which include the region favoured by DESI. Our main results are as follows.
DESI-like pair. For a target at the posterior mean of the DESI constraints, the expansion histories of the target and the match differ by less than 1% at all times. A single matched simulation reproduces the target at all output redshifts, . The power spectra of the matter density, the Lagrangian displacement and velocity, and the Eulerian momentum agree to sub-percent precision up to near the Nyquist frequency of our mesh. At the field level, the density fields of the target and the match are almost perfectly correlated, and their one-point distributions agree to sub-percent precision.
Models with . For the 100 simulation pairs with , the median error of the matter power spectrum is sub-percent up to near the Nyquist frequency, and the stochasticity of the density field is sub-percent. For , the power spectra of all fields and the redshift-space multipoles agree to sub-percent precision, except for the models with the largest matching errors. The reduced bispectrum and the abundances of haloes and voids also agree to sub-percent precision for most models. The errors of all statistics are strongly correlated with the matching error , which depends only on the background. The models near the DESI constraints have small and sub-percent errors.
Comparison with C16. For the DESI-like pair, the redshift-dependent matching of C16 gives nearly identical results at and is more accurate on small scales at , at the expense of requiring a separate simulation for each output redshift. Our matching needs a single simulation for all redshifts, with sub-percent errors for in all fields. It therefore trades a small loss in accuracy for a large gain in efficiency.
Our method allows existing constant- simulation suites and field-level emulators to be used for CPL cosmologies without retraining, with mapping errors below the percent-level accuracy of most current field-level emulators. It is therefore naturally suited to building future emulators, which could be trained on a reduced set of models and extended to other models by matching.
Two points mentioned briefly above merit a more detailed discussion. First, when implementing the matching, we required that the matched and target cosmologies have the same at , which means that they start from initial conditions with slightly different amplitude (but the same and random phases). This is a choice: the alternative is to use the same initial conditions (those of the target cosmology) for both simulations. That would have been a natural choice, because the matched simulation is only a surrogate, which does not necessarily carry physical content. While we have not tested this approach here, we expect it to give better agreement at higher and worse at low , with the overall accuracy again depending on . Our choice is based on a practical consideration: it allows us to repurpose existing constant- simulations to build emulators for CPL, without having to run new simulations.
Second, while the general matching method proposed here is exact, in the first application we have adopted constant- for the matched models, for its simplicity. This is because CPL itself is not a complicated model, and using a more sophisticated matched model would lose the advantage of the method. Indeed, the matching method here is strikingly simple: the matched models have identical cosmological parameters as the targets, such as , , , and . For more complex models, such as other forms of time-dependent dark energy EoS, coupled scalar fields (with no screening), interacting dark energy and the usual – parameterisation of modified gravity (e.g. (e.g. Pogosian & Silvestri 2016)), this method will still apply, as we will demonstrate in a forthcoming work, but the matched model will have different cosmological parameters, and might need to be shifted or rescaled to achieve an accurate matching. This, however, is not necessarily a disadvantage, for a few reasons. (1) the additional flexibility can allow the matching to be more accurate, i.e. smaller, which, as we have found, is the deciding factor for the accuracy of the method; (2) a single suite of surrogate simulations can then be used to build field-level emulators for a variety of DE and modified gravity models, making the method even more universal and efficient; (3) if a new suite of surrogate simulations is run, we could include the amplitude of the primordial power spectrum as an additional emulation parameter. This would turn the initial conditions into an extra dimension of the parameter space, rather than tying them to a matched model, and allow us to use the same initial conditions for the target and matched models. Together with a more accurate matching, this may remove the need for the growth factor matching and the velocity rescaling.
Finally, we stress that the matching works because the background enters the -body equations through a single function of time, . The -body equations, Eq. (4), are then entirely scale-free. Models with more freedom, such as those with massive neutrinos or scale-dependent modified gravity, cannot be described by a alone, so the method here will not apply straightforwardly. We leave adaptations of the method to these models for future work.
Note added. While completing this manuscript, we became aware of the related work of Demidov et al. (in prep.), which also examined reproducing dynamical dark energy by means of a fixed- cosmology at the field level. They adopt the matching of C16, and test it at for a DESI-like CPL model and two cosmologies beyond CPL. Our work differs in that the matching follows from an exact equivalence of the -body equations in different models when expressed in superconformal time, which also identifies the origin of the error as the mismatch in , and in that a single matched simulation gives all redshifts. With our method, the mismatch is quantified by a single number, , depending only on the background, with which the errors of all the summary statistics we tested are strongly correlated. These two studies are complementary. Demidov et al. explore the range of DE models and tracer types: at , they consider beyond-CPL EoS and extend the comparison to individual haloes and to the redshift-space clustering of mock galaxies. We explore the range of cosmologies and redshifts: for CPL, we cover a grid in at , and also test the Lagrangian displacement and velocity fields and the dependence on the -body code. Both methods work for general non-clustering DE models not limited to CPL.
Acknowledgements
We thank Jie Wang and Sownak Bose for helpful discussions, and Anatoly Klypin and Paco Prada for sharing the GLAM code, which MG-GLAM is based on.
YM is supported by a China Scholarship Council studentship (No. 202504910166). YM, DS, C-ZR and BL are supported by the European Research Council (ERC) Advanced Grant “UNCA” (UKRI Frontiers Research Guarantee No. EP/Z533877/1). KK is supported by UK STFC grant number ST/B001175/1.
This work used the DiRAC@Durham facility managed by the Institute for Computational Cosmology on behalf of the STFC DiRAC HPC Facility (www.dirac.ac.uk). The equipment was funded by BEIS capital funding via STFC capital grants ST/K00042X/1, ST/P002293/1, ST/R002371/1 and ST/S002502/1, Durham University and STFC operations grant ST/R000832/1. DiRAC is part of the National e-Infrastructure.
For the purpose of open access, we have applied a Creative Commons Attribution (CC BY) licence to any Author Accepted Manuscript version arising.
Data availability
The supporting research data are available upon reasonable request from the corresponding author.
A comparison of N-body codes
To test the extent to which our method is independent on the specific choice of -body solver employed to produce the relevant -body simulations, we simulate the DESI-like target and its match using the tree code PKDGRAV37 (Potter et al. 2017) and the TreePM code MP-GADGET8 (Feng et al. 2018).
All three codes start from the same 2LPT initial conditions generated with FML at , with particles in a box of side length , and use the same CPL background without radiation. PKDGRAV3 computes the forces with the fast multipole method; following Potter et al. (2017) we choose an opening angle of and a gravitational softening of of the mean interparticle separation (), and integrate the particles with individual time steps over 600 base steps. For MP-GADGET, following Bird et al. (2022), we compute the long-range forces on a mesh, and the short-range forces with a softening of of the mean interparticle separation, , and integrate the particles with individual time steps over about 570 base steps. The force resolution of MG-GLAM is instead set by its mesh cell size of , 7.5 and 12.5 times larger than the softening of MP-GADGET and PKDGRAV3. All statistics are measured as in Sect. 3, and the velocity rescaling of Eq. (7) is applied in all three codes.
For each code, we compare its own target and matched simulations in Figure A1 (top). In the bins of Figure A1, the power spectrum errors of the three codes agree to within for and up to near the Nyquist frequency, for all four fields and at all six redshifts. For the density and the momentum, they agree to within and . These differences are small compared with the matching errors themselves, which reach for the density near the Nyquist frequency. Differences in the absolute power spectra of the codes, for example from the force resolution, largely cancel in the target/match ratios, so the power spectrum error of the matching does not depend on the -body solver.
Figure A1. Power spectrum error (top) and stochasticity (bottom) of the density, Lagrangian displacement, Lagrangian velocity and Eulerian momentum for the DESI-like target, simulated with MG-GLAM (solid), PKDGRAV3 (dashed) and MP-GADGET (dotted) from the same initial conditions with particles. Each curve compares the target and match run with the same code, and the velocities are rescaled with Eq. (7). Eulerian fields are reproduced considerably better than individual particle positions and velocities, because particle dynamics inside haloes is chaotic. This is not specific to our method: at these scales, different -body codes disagree with one another on the trajectories of individual particles inside haloes, even when started from the same initial conditions.
The stochasticity, however, differs substantially between the codes (Figure A1, bottom). On large scales, , the three codes agree, with a stochasticity of less than in all of them. Towards higher and lower redshift, it grows faster in MP-GADGET and PKDGRAV3 compared to MG-GLAM. At and , the stochasticity reaches for the density and for the momentum in PKDGRAV3, and and in MP-GADGET, compared to and in MG-GLAM. For the Lagrangian displacement and velocity, it reaches and in PKDGRAV3 and and in MP-GADGET, compared with and in MG-GLAM. The Lagrangian fields are thus more affected than the Eulerian fields. At and , their stochasticity in the two tree codes is 1.5–2 orders of magnitude higher than in MG-GLAM, compared with 0.5–1 orders of magnitude for the density and the momentum. The Lagrangian velocity is almost uncorrelated on small scales, with a stochasticity of 0.84 and 0.72 near the Nyquist frequency in PKDGRAV3 and MP-GADGET.
We attribute this difference to the -body codes rather than to the matching method which, as we mentioned above, is exact for identical (Sect. 2.1). -body dynamics is chaotic on cluster scales: small differences between two runs, here caused by the slightly different expansion histories and initial conditions, grow quickly in dense regions, more so as the softening decreases ((Suto 1991; Hayes 2003; Genel et al. 2019; Asano & Portegies Zwart 2026)). Inside haloes, the trajectories of individual particles in the target and match therefore decorrelate, while the distribution of mass, and hence the Eulerian fields, remain much more similar ((Thiébaut et al. 2008; El-Zant et al. 2019)). Individual particle displacement and velocities are most affected, in particular the Lagrangian velocity, which on small scales is dominated by the orbital motion of particles in haloes. The PM force of MG-GLAM, with a resolution of one mesh cell size, smooths the potential inside haloes and suppresses this chaotic growth. Its low stochasticity, especially for the Lagrangian fields, therefore partly reflects this limited force resolution. The Eulerian fields, in contrast, remain well correlated in all three codes: even at , where the stochasticity is largest, it stays below for the density and for the momentum for .
Since observables such as the galaxy clustering and redshift-space distortions are measured in Eulerian space, the Eulerian fields are the most relevant for cosmological applications. For them, the power spectrum error does not depend on the code, and the stochasticity remains small in all three codes.
Velocity rescaling
Appendix B: Velocity rescaling
Figure B1 shows the effect of the velocity rescaling Eq. (7) at and 0.5.
Figure B1. Effect of the velocity rescaling at (left two columns) and (right two columns), before (first column of each pair) and after (second column)rescaling. Top and middle: power spectrum error of the Lagrangian velocity and Eulerian momentum. Bottom: residual of the redshift-space quadrupole, . Colours and lines as in Figure 6. Grey dashed lines in the bottom row mark error.
Without the rescaling, the power spectrum error of the Lagrangian velocity stays roughly a constant at , with a median of 0.28% at and −0.67% at , following the linear prediction of . The rescaling removes this constant offset and reduces the median error on large scales by one to two orders of magnitude. The momentum behaves in the same way.
At , the remaining error, with a median of a few tenths of a percent, arises from nonlinear evolution and so cannot be removed by a constant rescaling. In fact, the error on these scales has the opposite sign (hence the dip at in the log-scale plot of Figure B1), so the rescaling shifts the zero-crossing of the error to larger scales. This is also why, on nonlinear scales, the rescaled case has a slightly larger error than the unrescaled one. Because the rescaling is by a constant factor, the stochasticity of the velocity and momentum is unchanged.
The rescaling also affects the redshift-space distortions, because it enters the redshift-space positions through the velocities (Sect. 2.1). The bottom row of Figure B1 shows the residual of the quadrupole, normalised by the target monopole as in Sect. 3.2. At without the rescaling, the 16th–84th percentile range of the residuals is −0.1% to 1.8% on large scales ( to ), and the residuals of the models with the largest error reach . After the rescaling, the residuals of all models stay below 0.5% for and below 1.3% for , as in Figure 9. At , where the velocity offset is smaller, the residual is below 0.5% for both before and after the rescaling. The rescaling is therefore needed for accurate redshift-space statistics at intermediate redshift, where the quantity , as computed on the target and match models, differs the most.
This paper has been typeset from a TEX/LATEX file prepared by the author.
References
- [19]Euclid Collaboration et al., 2021, MNRAS, 505, 2840
- [30]Hamilton A. S. J., 1998, in Hamilton D., ed., Astrophysics and Space Science Library, Vol. 231, The Evolving Universe. p. 185 (arXiv:astro-ph/9708102), doi:10.1007/978-94-011-4960-0_17
- [57]Planck Collaboration et al., 2016, A&A, 594, A13
- [72]van Daalen M. P., Schaye J., Booth C. M., Dalla Vecchia C., 2011, MNRAS, 415, 3649









