## Abstract

Interpreting high-energy, astrophysical phenomena, such as supernova explosions or neutron-star collisions, requires a robust understanding of matter at supranuclear densities. However, our knowledge about dense matter explored in the cores of neutron stars remains limited. Fortunately, dense matter is not probed only in astrophysical observations, but also in terrestrial heavy-ion collision experiments. Here we use Bayesian inference to combine data from astrophysical multi-messenger observations of neutron stars^{1,2,3,4,5,6,7,8,9} and from heavy-ion collisions of gold nuclei at relativistic energies^{10,11} with microscopic nuclear theory calculations^{12,13,14,15,16,17} to improve our understanding of dense matter. We find that the inclusion of heavy-ion collision data indicates an increase in the pressure in dense matter relative to previous analyses, shifting neutron-star radii towards larger values, consistent with recent observations by the Neutron Star Interior Composition Explorer mission^{5,6,7,8},^{18}. Our findings show that constraints from heavy-ion collision experiments show a remarkable consistency with multi-messenger observations and provide complementary information on nuclear matter at intermediate densities. This work combines nuclear theory, nuclear experiment and astrophysical observations, and shows how joint analyses can shed light on the properties of neutron-rich supranuclear matter over the density range probed in neutron stars.

## Main

The nuclear equation of state (EOS) describes dense matter probed in terrestrial experiments with atomic nuclei as well as in astrophysical observations of neutron stars. The nuclear EOS is governed by quantum chromodynamics (QCD), the theory of strong interactions, but direct calculations of dense matter in neutron stars based on QCD are not feasible at present. Hence, the nuclear EOS has to be determined through approximate theoretical calculations or from experimental or observational data. As a result, at densities well above nuclear saturation density, *n*_{sat} = 0.16 fm^{−3} (corresponding to a mass density of 2.7 × 10^{14} g cm^{−3}), for which experimental and theoretical information are less robust, the nuclear EOS is still highly uncertain and many open questions remain, such as whether a possible phase transition to exotic phases of matter exists in nature^{19}.

At densities below 1–2*n*_{sat}, the EOS and its theoretical uncertainty can be obtained from microscopic calculations based on chiral effective field theory (EFT) of QCD^{12,13,14,15,16,17}. To probe dense matter beyond these densities, further approaches, based on experimental and observational data, are necessary. A very promising tool is the multi-messenger astrophysics analysis of neutron stars and their collisions, which provides access to dense neutron-rich matter not accessible in terrestrial experiments at present. In recent years, the advent of gravitational-wave (GW) astronomy^{1} and new electromagnetic observations of neutron stars^{3,5,6}, including the Neutron Star Interior Composition Explorer (NICER) mission of the National Aeronautics and Space Administration (NASA)^{5,6}, led to new constraints on the EOS^{7,9,18,20,21,22,23,24,25,26,26}. However, these observations mainly probe the EOS at densities \(\gtrsim 2{n}_{{\rm{sat}}}\) and still carry considerable uncertainties, reflected in the ranges for predictions of neutron-star radii. More precise or new complementary information is required to reduce the uncertainties further.

The gap between our current knowledge of the EOS stemming from nuclear theory and experiment at low densities and astrophysical observations of neutron stars at higher densities can be bridged by heavy-ion collision (HIC) experiments. These experiments, performed with heavy-ion beam energies of up to 2 GeV per nucleon, probe the nuclear EOS mainly in a density range of 1–2*n*_{sat} at present^{10,11,27}, representing a new source of information^{28}.

In this work, we perform a global analysis of the nuclear EOS including information from nuclear theory (Fig. 1a), astrophysical observations of neutron stars (Fig. 1b) and results from HIC experiments that were performed at the Schwerionensynchrotron 18 accelerator located at the GSI Helmholtz Centre for Heavy Ion Research^{10,11} (Fig. 1c). We analyse the EOS and neutron-star properties by extending our Bayesian multi-messenger astrophysics framework^{9} to include information from the Four-Pi (FOPI)^{10} and the Asymmetric-Matter EOS (ASY-EOS) experimental campaigns^{11}. The combination of these experiments provides new constraints for neutron-rich matter in the range around 1–2*n*_{sat}. We also include the EOS constraint from ref. ^{27} for symmetric nuclear matter obtained from HIC experiments at the Bevalac accelerator at Lawrence Berkeley National Laboratory and the Alternating Gradient Synchrotron at Brookhaven National Laboratory. In all experiments, gold nuclei were collided. The information from this series of HIC experiments allows us to further constrain the EOS in a density range for which theoretical calculations become less reliable.

## Nuclear theory input

Our analysis starts with a set of 15,000 EOSs that are constrained by nuclear theory calculations at low densities. In particular, we utilize calculations using local chiral EFT interactions^{14,29}. Chiral EFT is an effective theory of QCD that describes strong interactions in terms of nucleon and pion degrees of freedom using a systematic momentum expansion of nuclear forces^{30,31}. In particular, the EFT expansion enables estimates of theoretical uncertainties^{16,32}. On the basis of local chiral two- and three-nucleon interactions, we use quantum Monte Carlo methods, which are among the most precise many-body methods to solve the nuclear many-body problem^{33}. The breakdown scale of the chiral EFT expansion was estimated to be about 500–600 MeV/*c*, in which *c* is the speed of light^{16}. Therefore, we constrain our EOS set using chiral EFT input only up to 1.5*n*_{sat} (corresponding to Fermi momenta of the order of 400 MeV/*c*), but a variation in the range 1–2*n*_{sat} shows no substantial impact on our final results for neutron-star radii^{34} (Extended Data Table 1). The 15,000 EOSs are sampled such that they span the theoretical uncertainty range of the chiral EFT calculation.

We extend each EOS above 1.5*n*_{sat} using an extrapolation in the speed of sound (*c*_{s}) in neutron-star matter^{35}. This extrapolation is constrained only by causality (*c*_{s} ≤ *c*) and stability of neutron-star matter (*c*_{s} ≥ 0). In contrast to refs. ^{21,22}, we do not take into account any information at asymptotically high densities from perturbative QCD calculations. In addition, at this level we require all EOSs in the prior to support neutron stars with masses of at least 1.9 solar masses (\(1.9{M}_{\odot }\)), to remove EOSs that support only neutron stars with maximum masses well below the lower limit from the combined observations of heavy pulsars^{36,37,38}. Hence, this lower bound ensures that the resulting EOS prior has reasonable support for massive-pulsar observations that we include at the first state of our Bayesian framework^{9}. These general assumptions lead to a broad uncertainty for the EOS at higher densities (Fig. 1a), as well as for neutron-star masses and radii (Fig. 2a). The EOS prior is then used to analyse astrophysical observations and HIC experiments.

## Multi-messenger astrophysics information

The astrophysical data are incorporated using a Bayesian multi-messenger framework^{9,39}, which analyses each EOS with respect to its agreement with a variety of observational data. We start with the mass measurements of the massive neutron stars PSR J0348+0432 (ref. ^{36}) and PSR J1614-2230 (ref. ^{37}), to obtain a lower bound on the maximum mass, and the constraint on the maximum mass of neutron stars derived from the binary neutron-star collision GW170817 (refs. ^{40,41}) in which a black hole was formed after the coalescence, to obtain an upper bound on the maximum mass. Information obtained from X-ray pulse-profile modelling of PSR J0030+0451 and PSR J0740+6620 using data from NICER and the X-ray Multi-Mirror Mission (XMM-Newton)^{5,7,8} are incorporated. Moreover, we use Bayesian inference techniques to analyse GW information from the two neutron-star mergers GW170817 (ref. ^{1}) and GW190425 (ref. ^{2}) by matching the observed GW data with theoretical GW models that depend on neutron-star properties. For our analysis, we use a GW model^{42} that is an improved version of the main waveform model used by the Laser Interferometer Gravitational-Wave Observatory/Virgo Collaboration for the study of GW170817 (ref. ^{43}) and GW190425 (ref. ^{2}). Similarly to the GW analysis, we also include information from the kilonova AT2017gfo (ref. ^{3}) associated with the GW signal. Kilonovae originate from the radioactive decay of heavy atomic nuclei created in nucleosynthesis processes during and after the merger of neutron stars, and are visible in the optical, infrared and ultraviolet spectra. The electromagnetic observations are analysed with full radiative transfer simulations^{44} to extract information from the observed light curve and spectra^{4}.

The above astrophysical information leads to important constraints on the neutron-star EOS, as shown in Fig. 1b. The constraints are strongest above 1.5*n*_{sat}, for which the extrapolation in the speed of sound is used for the EOSs. The high-density astrophysical constraints affect mostly the high-mass region in the mass–radius plane and exclude the stiffest EOSs that lead to the largest radii (Fig. 2b).

## Data from HIC experiments

To further constrain the EOS, we implement data from HIC experiments. The FOPI^{10} and ASY-EOS^{11} experiments performed at GSI provide information respectively on the symmetric nuclear matter EOS (that is, matter with the same amount of protons and neutrons) and on the symmetry energy, which describes the energy cost of changing protons into neutrons in nuclear matter. For both experiments, ^{197}Au nuclei were collided at relativistic energies (0.4 to 1.5 GeV per nucleon), forming an expanding fireball in the collision region. This expansion is dictated by the achieved compression and therefore depends on the EOS of hot and dense matter. Owing to the initial neutron-to-proton asymmetry of the Au–Au system, the expansion of the emitted nucleons is sensitive to the nuclear symmetry energy. Constraints on the symmetry energy (from ASY-EOS) can be translated into a constraint on the pressure of neutron-star matter as a function of the baryon density when empirical information on symmetric nuclear matter from experiments (FOPI) with atomic nuclei is used. In addition to the GSI experiments, we include constraints on the pressure of symmetric nuclear matter at larger densities obtained from model calculations of ref. ^{27} that were used to analyse experimental data from Lawrence Berkeley National Laboratory and Brookhaven National Laboratory in which ^{197}Au nuclei were collided at energies up to 10 GeV per nucleon. These are sensitive to higher densities, 2–4.5*n*_{sat}, but we include their constraints only up to 3*n*_{sat}, where the sensitivity of the ASY-EOS experiment ends. We find that the inclusion of this further constraint has only minimal impact, but keep it to ensure the completeness of our study (Supplementary Information).

In Fig. 1c, we show the combined HIC experimental constraints (labelled HIC data) at 68% and 95% credibility as well as the resulting posterior distribution for the neutron-star EOS. Whereas the FOPI experiment delivers an EOS constraint for symmetric nuclear matter at densities in the range 1–3*n*_{sat}, the ASY-EOS experiment probes the symmetry energy roughly between 1 and 2*n*_{sat}. The HIC pressure-density constraint includes various sources of uncertainties. First, it includes systematic and statistical uncertainties of the experiments and the analysis of its data^{10,11}. We have explicitly checked the robustness of our results when varying the details of the analysis and models used, and generally found that our results do not substantially depend on individual model choices (Extended Data Table 2, Extended Data Fig. 2 and Supplementary Information). Second, when extracting the HIC constraint on neutron-star matter, we vary nuclear matter properties, such as the incompressibility parameter and the symmetry energy at *n*_{sat}, according to the measurements from FOPI and ASY-EOS. We have explicitly checked that increasing these uncertainties in agreement with theoretical estimates^{17} leads to only minor changes of our final results (Extended Data Table 3).

To enforce the ASY-EOS constraints only at densities for which the experiment is sensitive, we use the sensitivity curve for neutrons and charged particles^{11} as a prior for the probed density range. We have checked the variation of our results for alternative choices of the sensitivity curve^{11} and found that this has no substantial impact on our final results (Extended Data Table 4). We find that the HIC constraints tend to prefer EOSs stiffer than the ones favoured by astrophysical observations (that is, EOSs that have higher pressures at densities up to 2*n*_{sat}; Fig. 1c, e).

We note that results of the ASY-EOS experiment, in their sub-saturation density extension, are compatible with recent experimental findings from isobaric analogue states supplemented with further constraints from neutron-skin data^{45}, HICs using isospin-diffusion observables measured in mid-peripheral collisions of Sn isotopes^{46}, and other nuclear structure information^{47,48}. More recently, the S*π*rit campaign at RIKEN has identified spectral yield ratios of charged pions in collisions of various tin isotopes near threshold as sensitive probes of the slope of the symmetry energy near and beyond nuclear saturation density^{49}. The obtained value is compatible with the ASY-EOS result but offers no further strong constraint at present owing to its large uncertainty^{49,50}.

## Combining microscopic and macroscopic collisions

The final EOS constraints are obtained through the combination of both the HIC information and astrophysical multi-messenger observations (Fig. 1d). The multi-messenger data rule out the most extreme EOS behaviour, and the HIC data favour larger pressures around 1–1.5*n*_{sat}, for which the experimental sensitivity is highest. This is similar to the effect of recent NICER observations on the EOS^{7,18}. Hence, the two complementary approaches, HIC experiments and astrophysical observations, show a remarkable agreement (Fig. 1e). At low densities, HIC results have a clear impact on the total posterior for the EOS, whereas the EOS at higher densities (\(\gtrsim 2{n}_{{\rm{sat}}}\)) is mostly determined by astrophysical observations. At these densities, HIC results deviate only mildly from the prior (Fig. 1f). This is also reflected in the radii of neutron stars shown in Fig. 2e, f. As astrophysical observations mainly probe neutron stars with \(M\gtrsim 1.4{M}_{\odot }\), for which the probed densities are higher, HIC information influences the radii of these neutron stars to a smaller degree. The radius of low-mass stars with \(M\approx 1.0{M}_{\odot }\), on the other hand, is also constrained by HIC information. Our final result for a typical \(1.4{M}_{\odot }\) neutron star is \({12.01}_{-0.38}^{+0.37}\,{\rm{km}}\) at 68% uncertainty (\({12.01}_{-0.77}^{+0.78}\,{\rm{km}}\) at 95% uncertainty; Table 1). Comparing this value to the result without any HIC information, \({11.93}_{-0.41}^{+0.39}\,{\rm{km}}\) at 68% confidence, highlights the benefit of combining these various sources of information in a statistically robust framework. We find that the HIC information has a high impact on the EOS at densities below 1.5*n*_{sat} (Supplementary Information). Finally, we quantify the possibility for the presence of a strong first-order phase transition to a new phase of QCD matter in the core of neutron stars. For this, we calculate the Bayes factor in favour of the presence of such a phase transition against its absence, and find it to be 0.419 ± 0.012 < 1. Therefore, its presence is slightly disfavoured given current astrophysical and experimental data.

To summarize, the interdisciplinary analysis of EOS constraints from HIC experiments and multi-messenger astrophysics shows remarkable agreement between the two, and provides important information to constrain the nuclear EOS at supra-saturation densities. Going forward, it is important that both statistic and systematic sources of uncertainty for HIC experiments are further improved. For example, the impact of choosing different quantum molecular dynamics models when analysing HIC experiments needs to be further investigated (Extended Data Figs. 1 and 2), and advancing HIC experiments to probe higher densities, above 2–3*n*_{sat}, will be key (Extended Data Table 5). Combining the latter with a reduction of experimental uncertainties, data from HICs have great potential to provide complementary EOS information, bridging nuclear theory and astrophysical observations. In the next few years, the ASY-EOS-II and Compressed Baryonic Matter experiments at the upcoming Facility for Antiproton and Ion Research at GSI will provide a unique opportunity to study nuclear matter at densities probed in the core of neutron stars and their mergers, and might detect new phases of QCD matter, possibly involving hyperons and, ultimately, the transition to a deconfined quark matter phase at the highest densities (see, for example, refs. ^{51,52}). Together with experiments at the Rare Isotope Beam Facility at RIKEN in Japan and the Nuclotron-Based Ion Collider Facility in Russia, the robust combination of experimental HIC constraints and astrophysical observations has the potential to revolutionize our understanding of the EOS.

## Methods

### Nuclear EOSs from chiral EFT

The EOS set used in this work is constrained at low densities by microscopic calculations of neutron matter using interactions from chiral EFT. In these microscopic calculations, the Schrödinger equation for the many-body system is solved numerically. This requires a nuclear Hamiltonian and a method to solve the Schrödinger equation with controlled approximations.

To obtain the Hamiltonian describing the dense matter EOS studied in this work, we use chiral EFT. Chiral EFT is a low-energy effective theory of QCD, and describes strong interactions in terms of nucleon and pion degrees of freedom instead of quarks and gluons^{30,31}. To construct the interactions, the most general Lagrangian in terms of nucleons and pions, consistent with all symmetries of QCD, is expanded in powers of momenta. Using a power counting scheme, the individual contributions are arranged according to their importance. By going to higher orders, the description of interactions becomes more precise, but the individual contributions become more involved. The chiral EFT Lagrangian explicitly includes pion-exchange interactions among nucleons whereas all high-energy details that are not explicitly resolved are expanded in terms of general contact interactions. These are accompanied by low-energy couplings, which are fitted to experimental data.

Chiral EFT interactions have several benefits over phenomenological interaction models: they naturally include many-body forces consistent with two-nucleon interactions, they can be systematically improved, and they enable theoretical uncertainty estimates^{16,32}. The last of these can be extracted from order-by-order calculations and are important when analysing astrophysical observations for which interactions are extrapolated to conditions that cannot be recreated in experiments at present.

In this work, we constrain our EOSs with theoretical calculations at zero temperature using local chiral EFT interactions^{14,53,54,55}. We use quantum Monte Carlo methods^{33}, in particular the auxiliary-field diffusion Monte Carlo method, which are among the most precise many-body methods to solve the nuclear many-body problem. The results of these calculations provide constraints on the EOS up to densities of around 2*n*_{sat} (ref. ^{29}).

The region of applicability of the chiral EFT expansion is determined by the so-called breakdown scale, which is estimated to be of the order of 500–600 MeV/*c* (ref. ^{56}). Hence, the chiral EFT expansion breaks down at densities \(\gtrsim 2{n}_{{\rm{sat}}}\), indicated by increasing uncertainty estimates between 1 and 2*n*_{sat}. At these densities, high-energy physics that is encoded in short-range contact interactions needs to be explicitly taken into account. Therefore, chiral EFT cannot be used to constrain the EOS at higher densities as probed in the cores of neutron stars. To extend the EOS to these densities, we use a general extrapolation scheme in terms of the speed of sound^{35} (see also ref. ^{57}).

To construct the neutron-star EOS set, we first extend our chiral EFT calculation to *β*-equilibrium and add a crust^{58}. We use microscopic input up to 1.5*n*_{sat} to constrain the EOS, but a variation in the range 1–2*n*_{sat} shows no substantial impact on our final results for neutron-star radii^{34}. Above this density, we sample a set of six randomly distributed points in the speed of sound plane at baryon densities between 1.5 and 12*n*_{sat}, enforcing 0 ≤ *c*_{s} ≤ *c* at each point. A variation of the number of sampled points between 5 and 10 does not impact our findings. We then connect these points by line segments, reconstruct the EOS and solve the Tolman–Oppenheimer–Volkoff equations to extract neutron-star properties. For each EOS, we also construct a partner EOS that includes a segment with vanishing speed of sound to explicitly simulate strong first-order phase transitions. We sample the onset density and width of this segment randomly.

Our EOS set includes 15,000 different EOS samples for which the prior on the radii of neutron stars is naturally determined by the EOS expansion scheme. We have explicitly checked the differences among a prior uniform in the radius of a typical 1.4\({M}_{\odot }\) neutron star and the ‘natural’ prior and found only minor changes once astrophysical and HIC data are included (Extended Data Table 1).

Recently, first results for the EOS of symmetric nuclear matter between 3 and 10*n*_{sat} from functional renormalization group calculations that are based on QCD became available^{59}. This offers a very promising future tool to constrain dense neutron-star matter when calculations for asymmetric matter will become available.

### Multi-messenger analysis of astrophysical data

To constrain the set of EOSs derived from chiral EFT with astrophysical data, we use a multi-step procedure in which results from individual steps are used as a prior for the next part of the analysis^{9} (Extended Data Fig. 3). First, we incorporate constraints on the maximum mass of neutron stars. For this, we implement the mass measurements of the heavy radio pulsars PSR J0348+0432 (ref. ^{36}) and PSR J1614-2230 (ref. ^{37}). As we make use of the NICER and XMM mass–radius information of PSR J0740+6620 (refs. ^{7,8}) at a later stage, we do not include the mass measurement of PSR J0740+6620 (ref. ^{38}) to avoid double counting. The combination of these observations^{9,60} of high-mass neutron stars provides a lower bound on the maximum mass of neutron stars. By contrast, an upper bound of the maximum mass is obtained from the observation of the merger remnant of the neutron-star merger GW170817 (ref. ^{41}). Among other arguments, the observation of a bright, red kilonova component and the observation of a short gamma-ray burst 2 s after the merger of the two neutron stars indicate that the remnant experienced a delayed \(({\mathscr{O}}({\rm{100ms}}))\) collapse to a black hole, so that an upper limit on the maximum mass can be derived. The combined estimate of the maximum mass, \({2.21}_{-0.13}^{+0.10}{M}_{\odot }\) at 68% uncertainty, already provides important information about the internal structure of neutron stars and disfavours both too stiff and too soft EOSs (that is, EOSs with too large and too small pressures, respectively).

In the next step, we incorporate NICER’s mass and radius measurement of PSR J0030+0451 (ref. ^{5}) and PSR J0740+6620 (refs. ^{7,8}). NICER, located on board of the International Space Station, is a NASA telescope measuring the X-ray pulse profile of pulsars. By correlation of the observed profile and brightness with theoretical predictions, it is possible to extract information on the configuration (for example, on the location and properties of hotspots on the neutron-star surface, the rotation rate of the star, and its compactness, which determines the light bending around the pulsar). This information enables constraints on the pulsar’s mass and radius. In addition to NICER, the XMM-Newton telescope^{61,62} has been used for the analysis of PSR J0740+6620 (ref. ^{7}) to improve the total flux measurement. For PSR J0740+6620, we average over the results obtained in refs. ^{7,8}, whereas for PSR J0030+0451 we use only results of ref. ^{5}.

Next, we analyse the GW signal emitted from the binary neutron-star merger GW170817 (ref. ^{1}), as well as its observed kilonova AT2017gfo (ref. ^{3}). Finally, we also incorporate the second confirmed GW signal from a binary neutron-star merger GW190425 (ref. ^{2}). For GW170817 and GW190425, we assumed both of them to be emitted by binary neutron star mergers. To test the robustness of the GW analysis, we have explored a number of different GW models and found only a minimal impact on the final EOS constraint^{9}. Results shown in the main text are obtained using the parallel bilby software^{63} and the waveform model IMRPhenomPv2_NRTidalv2 (ref. ^{42}) for cross-correlation with the observed data^{1}. IMRPhenomPv2_NRTidalv2 is an updated model of the waveform model used in previous analyses by the Laser Interferometer Gravitational-Wave Observatory (LIGO)/Virgo Collaboration^{2,43} and, hence, allows for a more accurate measurement of tidal effects. The likelihood function for the GW analysis \({ {\mathcal L} }_{{\rm{GW}}}\) is given by^{64}

in which \(\mathop{d}\limits^{ \sim }(\,f)\), \(\mathop{h}\limits^{ \sim }(\,f)\) and *S*_{n}(*f*) are the observed data, the waveform template and the power spectral density of the noise, respectively. To ensure full coverage of the binary neutron stars’ inspiral signal, we have analysed the data up to 2,048 Hz. To avoid the low-frequency noise wall in the detectors, a low-frequency bound of 20 Hz is used.

Similarly, we use Bayesian inference to analyse the observed kilonova AT2017gfo. The likelihood function for the light curve analysis \({ {\mathcal L} }_{{\rm{EM}}}\) is given by^{65}

in which \({m}_{i}^{j,{\rm{est}}}\) are the estimated or theoretically predicted apparent magnitudes for a given filter *j* (a passband for a particular wavelength interval) at observation time *t*_{i} with *n*_{j} data points for filter *j*. Moreover, \({m}_{i}^{j}\) and \({\sigma }_{i}^{j}\) are the observed apparent magnitude and its corresponding statistical uncertainties, respectively. For this analysis, the probability distribution of a chi-squared distribution with a degree of freedom of 1, \({\chi }_{1}^{2}\), is taken as the likelihood measurement. To reduce the systematic error of the kilonova modelling below the statistical error, a further uncertainty of 1 mag is added to the measurement error. To analyse AT2017gfo, we use the radiative transfer code POSSIS^{44} to produce grids of light curves for multidimensional kilonova models with the following free parameters: the dynamical ejecta mass, the disk wind ejecta mass, the opening angle of the lanthanide-rich dynamical-ejecta component, and the viewing angle. To enable inference, we combine the grid with a framework combining Gaussian process regression and singular value decomposition^{66} to compute generic light curves for these parameters. To connect the ejecta parameters, which determine the exact properties of the light curve, with the binary neutron-star system parameters, we assume that the total ejecta mass is a sum of two components: dynamical ejecta, released during the merger process through torque and shocks, and disk-wind ejecta. Both components, the dynamical ejecta^{66} and the disk-wind ejecta^{9}, are correlated to source parameters of the binary neutron-star system based on numerical relativity simulations^{9,66,67}.

### Constraining the symmetric nuclear matter EOS at high density with HICs

Over the last two decades, major experimental efforts have been devoted to measuring the nuclear EOS with HIC experiments performed at relativistic incident energies^{27,68,69}. These collisions of atomic nuclei form a hot, dense fireball of hadronic matter in the overlapping region, which expands in time and reaches the surrounding detectors as baryons and mesons. The phase-space distribution of particles flowing from the fireball during the expansion phase is strongly dictated by the compression achieved in the colliding region and is, therefore, sensitive to the EOS of the hot and dense nuclear matter created in the collision. Important progress has been made recently in modelling intermediate-energy HICs, but theoretical uncertainties still remain^{70,71}. In the present analysis, results obtained with different models are found to be compatible within their quoted errors.

The so-called elliptic flow (*v*_{2}) of emerging particles is the main observable, which has been used to experimentally constrain symmetric nuclear matter at supranuclear densities with HICs. It is described by the second moment of the Fourier expansion of the distribution of the azimuthal angle *Φ* of the emitted particles with respect to that of the reaction plane *Φ*_{RP}

in which all expansion coefficients *v*_{n} are functions of longitudinal rapidity \(y=\frac{1}{2}\,\mathrm{ln}\left(\frac{E+{p}_{z}}{E-{p}_{z}}\right)\), with *p*_{z} being the momentum along the beam axis and *E* being the total energy, and of transverse momentum \({p}_{{\rm{t}}}=\sqrt{{p}_{x}^{2}+{p}_{y}^{2}}\) of the particle, with *p*_{x} and *p*_{y} denoting the momentum components perpendicular to the beam axis.

In the experiment, the orientation of the reaction plane is event-wise reconstructed from the azimuthal distribution of particles recorded in the forward and backward hemispheres, and the Fourier coefficients are corrected for the finite resolution of this procedure^{72}. The coincident particle and fragment emissions are also used for the reconstruction of the impact parameter of each reaction event^{11}. A positive elliptic flow *v*_{2} indicates a preferred emission in the reaction plane whereas a negative flow indicates an emission out of the reaction plane.

It has been shown that the elliptic flow *v*_{2} of protons emitted at rapidities intermediate between projectile and target rapidity (mid-rapidity) in HICs at incident energies of several hundred MeV per nucleon offers the strongest sensitivity to the nuclear EOS^{10,27,73}, as evident from calculations made with various transport models. This dependence on the nuclear EOS is predicted by quantum molecular dynamics (QMD)^{10,73,74,75} and Boltzmann–Uehling–Uhlenbeck^{27} models. The origin of the phenomenon has been investigated in detail elsewhere^{76}. As shown in ref. ^{27}, at higher beam energies between 1 and 10 GeV per nucleon, the sensitivity of the directed flow *v*_{1} to the stiffness of the EOS of symmetric nuclear matter becomes comparable to that of *v*_{2}. Overall, from HICs performed at incident beam energies of a few hundred MeV per nucleon up to around 10 GeV per nucleon, the flow data indicate an EOS for symmetric nuclear matter with an incompressibility *K* below 260 MeV. Using FOPI data on the elliptic flow in gold–gold collisions between 400 MeV and 1.5 GeV per nucleon, thanks to the broad acceptance of the detector, an enhanced precision in the determination of the EOS could be achieved. Including the full rapidity and transverse momentum dependence of the elliptic flow of protons and heavier isotopes^{10} in the analysis with the Isospin-QMD (IQMD) transport model, the incompressibility was determined as *K* = 190 ± 30 MeV. This result was confirmed by interpreting the same data with three Skyrme energy-density functionals introduced into the ultrarelativistic QMD (UrQMD) transport model^{75}, leading to *K* = 220 ± 40 MeV. The interval of confidence used in the present study, *K* = 200 ± 25 MeV, reflects both predictions. The densities probed were estimated to range between 1 and 3*n*_{sat} by analysing the densities effective in building the elliptic flow in IQMD simulations^{10}. Note that the constraints deduced from the analysis of elliptic flow are compatible with earlier findings of the Kaon Spectrometer Collaboration obtained from comparisons of QMD predictions with experimental *K*^{+} meson production yields from gold–gold and carbon–carbon collisions performed at GSI between 0.6 and 1.5 GeV per nucleon^{77,78}.

### The ASY-EOS experiment to measure the symmetry energy

Nuclear experiments can help to constrain the EOS of neutron matter (see, for example, the PREX experiment measuring the neutron-skin thickness in lead nuclei^{79,80,81,82}). It has been suggested^{83} that flows of particles in HICs can be used to constrain the EOS of neutron matter through the symmetry energy at supra-saturation density. However, nuclear matter that can be studied in laboratory experiments using HICs is not very neutron rich. Therefore, the effect of the symmetry energy on *v*_{2} remains small, close to or below the uncertainties of the main contribution of the symmetric nuclear matter EOS. To enhance observable effects related to the symmetry energy, the use of the elliptic flow ratio of particles with large isospin difference, ideally the ratio for neutrons over protons \({v}_{2}^{{\rm{np}}}={v}_{2}^{{\rm{n}}}/{v}_{2}^{{\rm{p}}}\), was proposed^{84}. This method has been adopted for the ASY-EOS experiment performed at GSI in Darmstadt, studying collisions of gold nuclei of 400 MeV per nucleon incident energy and gold targets. The description of the experiment and the analysis with the UrQMD transport model are given in detail elsewhere^{11}. ASY-EOS benefited from the Large-Area Neutron Detector (LAND)^{85} permitting the detection of neutrons and charged particles within the same acceptance. LAND was placed to cover mid-rapidity emissions over a large *p*_{t} interval. Its isotopic resolution in this experiment was not sufficient to uniquely identify protons. Elliptic flow ratios as a function of *p*_{t} were, therefore, determined for neutrons with respect to all charged particles within the LAND acceptance. We note that for the selected collisions (central up to semi-central) and angular region, the yield of charged particles consists of light isotopes, mainly protons (around 50%) according to FOPI data for the same reaction. Confronted with UrQMD transport model predictions (and confirmed with other models, IQMD^{74} and Tübingen QMD^{86}), the resulting flow ratio enabled deduction of a constraint for the symmetry energy, which is so far the most precise for supra-saturation densities obtained from HICs. The results are detailed in the following section. As indicated by QMD model predictions, densities probed by the elliptic flow ratio in the ASY-EOS experiment extend up to about 2*n*_{sat}.

### Implementation of nuclear EOS constraints from HICs

For analysing the experimental elliptic flow data, an EOS functional needs to be fed into the QMD simulations for both symmetric and asymmetric nuclear matter. This is given by the parameterization for the energy per particle

with the baryon density *n* = *n*_{n} + *n*_{p} and the isospin asymmetry *δ* = (*n*_{n}*−n*_{p})/*n* = 1 − 2*x*, in which *n*_{n} and *n*_{p} are the neutron and proton densities, respectively, and *x* = *n*_{p}/*n* is the proton fraction. *E*/*A*(*n*, 0) is the energy of symmetric nuclear matter, *E*/*A*(*n*, 1) corresponds to pure neutron matter, and *S*(*n*) is the symmetry energy defined here as the difference between the two. For the analysis of the FOPI experiment, the first term in equation (4) has been parameterized with

with the saturation density *n*_{sat}, the Fermi energy *E*_{F}, and in which the parameters *α*, *β* and *γ* are fixed by the incompressibility *K*, the binding energy *B* of symmetric nuclear matter at *n*_{sat}, and the condition that the pressure of symmetric nuclear matter is zero at saturation density:

In the ASY-EOS analysis, the *S*(*n*) term of equation (4) has been parameterized as

At saturation density, the kinetic part has been set to *E*_{kin,0} = 12 MeV and *E*_{pot,0} = S_{0} − *E*_{kin,0}. The parameter *γ*_{asy} was extracted from fits to experimental data of the *p*_{t} dependence of the elliptic flow ratio of neutrons over charged particles around mid-rapidity. In particular, this results in *γ*_{asy} = 0.68 ± 0.19 for *S*_{0} = 31 MeV and *γ*_{asy} = 0.72 ± 0.19 for *S*_{0} = 34 MeV (see Extended Data Fig. 4 for a comparison with microscopic neutron matter calculations). Here we interpolate *γ*_{asy} assuming a linear function with *S*_{0}, for which the uncertainty is chosen to be 0.19 independent of *S*_{0}. We have studied the behaviour of *γ*_{asy} as a function of *S*_{0} for two different QMD models (Extended Data Fig. 1) and confirmed that the linear interpolation in the *S*_{0} range is suitable.

The pressure constraint is given by the density derivative of the energy per particle of equation (4)

and depends on *n*, *δ*, *n*_{sat}, *B*, *K* and *S*_{0}. We enforce this constraint only at densities for which the experiment is sensitive. The density region of the HIC constraint is set by the sensitivity of the neutrons-over-charged-particles flow ratio determined for the ASY-EOS experiment^{11} (see also the previous section). This sensitivity curve covers the density range from 0.5*n*_{sat} up to 3*n*_{sat} and peaks between *n*_{sat} and about 2*n*_{sat}, for which the experiment is most sensitive.

Neutron-star matter is composed of neutrons, protons, electrons and muons in *β*-equilibrium. To apply the ASY-EOS constraint to neutron stars, we need to determine the proton fraction *x*_{ASY-EOS} accordingly. For simplicity, we neglect muons because they have only a small impact on the neutron-star EOS in the considered density range. Then, the density of electrons is equal to the proton density owing to local charge neutrality, and the proton fraction *x* at a given baryon density *n* is fixed by the *β*-equilibrium condition

in which *μ*_{n,p,e} is the chemical potential of the respective particle species. We calculate the neutron and proton chemical potentials consistently with equations (4)–(7). Electrons are modelled as an ultrarelativistic degenerate Fermi gas with pressure *P*_{e} = *E*_{e}/(3*V*), energy density \({E}_{{\rm{e}}}/V=\hbar c{(3{{\rm{\pi }}}^{2}{n}_{{\rm{e}}})}^{4/3}/(4{{\rm{\pi }}}^{2})\) and chemical potential \({\mu }_{{\rm{e}}}=\hbar c{(3{{\rm{\pi }}}^{2}{n}_{{\rm{e}}})}^{1/3}\), in which \(\hbar \) is the reduced Planck constant and V the volume.

The final pressure constraint is obtained using *E*_{F} = 37 MeV and by varying the parameters *n*_{sat}, *B*, *K* and *S*_{0} within specific ranges. For the parameters describing symmetric nuclear matter, we use the values consistent with the FOPI analysis given by *n*_{sat} = 0.16 fm^{−3}, *B* = 16 MeV, and a Gaussian distribution for *K* with *K* = 200 ± 25 MeV at 1*σ*. Regarding *S*_{0}, we apply a uniform prior in the range 31–34 MeV. We further use results for the pressure of symmetric nuclear matter deduced elsewhere^{27} and disregard all parameter sets, which lead to a pressure that is not consistent with their constraint in the overlapping density range for which ASY-EOS remains sensitive, between 2 and 3*n*_{sat} (Extended Data Fig. 5). We note that the value of *K* has very little influence on the observables measured by ASY-EOS to extract the symmetry energy^{86}. We have explicitly checked the robustness of our results when using larger uncertainty ranges for all nuclear matter parameters in agreement with theoretical predictions^{17} and found their influence on our final result to be negligible (Extended Data Table 3). In particular, we have used a larger range for *S*_{0} between 30 and 35 MeV and the following Gaussian distributions for *n*_{sat}, *B* and *K*: *n*_{sat} = 0.164 ± 0.007 fm^{−3}, *B* = 15.86 ± 0.57 MeV and *K* = 215 ± 40 MeV at the 1*σ* level.

### Combination of the astronomical and HIC constraints

To combine the experimental and observational EOS constraints, we use Bayesian inference. The EOS posterior is given by

in which MMA denotes multi-messenger astrophysics, \({ {\mathcal L} }_{{\rm{HIC}}}({\rm{EOS}})\) is the likelihood of the HIC measurements for a given EOS, and \({{\mathscr{P}}}_{{\rm{MMA}}}({\rm{EOS}})\) is the posterior probability distribution on the EOS based on the multi-messenger observations, which acts as prior for this analysis. From the HIC experiments, we obtain a posterior of the pressure at a given density, \(p(P|n,{\rm{HIC}})\). By combining this with the distribution of probed densities from the neutrons-over-charged particles sensitivity curve^{11}, \(p(n|{\rm{HIC}})\), the joint posterior \(p(n,P|{\rm{HIC}})=p(P|n,{\rm{HIC}})p(n|{\rm{HIC}})\) is obtained. Therefore, the relative faithfulness of the experimental results at various densities is accounted for. The likelihood \({ {\mathcal L} }_{{\rm{HIC}}}({\rm{EOS}})\) is given by

in which we used the pressure as a function of density for a given EOS.

## Data availability

The datasets generated and/or analysed during the current study are available from the corresponding authors and on Zenodo (https://doi.org/10.5281/zenodo.6092717). The GW data strain that we have analysed in this work was obtained from the Gravitational Wave Open Science Center (ref. ^{87} at https://www.gw-openscience.org), and the NICER data were obtained from Zenodo (https://doi.org/10.5281/zenodo.3473466, https://doi.org/10.5281/zenodo.4670689 and https://doi.org/10.5281/zenodo.4697625).

## Code availability

All GW models used are implemented in the publicly available software LALSuite (https://git.ligo.org/lscsoft). The bilby and parallel bilby software packages are available at https://git.ligo.org/lscsoft/bilby and https://git.ligo.org/lscsoft/parallel_bilby, respectively. The gwemlightcurve software is available at https://gwemlightcurves.github.io/. The exact code versions of bilby, parallel bilby, LALSuite and gwemlightcurve that we have used for this work are also available (ref. ^{88}).

## References

Abbott, B. P. et al. GW170817: observation of gravitational waves from a binary neutron star inspiral.

*Phys. Rev. Lett.***119**, 161101 (2017).Abbott, B. et al. GW190425: observation of a compact binary coalescence with total mass ∼ 3.4

*M*_{☉}.*Astrophys. J. Lett.***892**, L3 (2020).Abbott, B. P. et al. Gravitational waves and gamma-rays from a binary neutron star merger: GW170817 and GRB 170817A.

*Astrophys. J.***848**, L13 (2017).Coughlin, M. et al. Toward rapid transient identification and characterization of kilonovae.

*Astrophys. J.***849**, 12 (2017).Miller, M. C. et al. PSR J0030+0451 mass and radius from NICER data and implications for the properties of neutron star matter.

*Astrophys. J. Lett.***887**, L24 (2019).Riley, T. E. et al. A NICER view of PSR J0030+0451: millisecond pulsar parameter estimation.

*Astrophys. J. Lett.***887**, L21 (2019).Miller, M. C. et al. The radius of PSR J0740+6620 from NICER and XMM-Newton data.

*Astrophys. J. Lett.***918**, L28 (2021).Riley, T. E. et al.A NICER view of the massive pulsar PSR J0740+6620 informed by radio timing and XMM-Newton spectroscopy.

*Astrophys. J. Lett.***918**, L27 (2021).Dietrich, T. et al. Multimessenger constraints on the neutron-star equation of state and the Hubble constant.

*Science***370**, 1450–1453 (2020).Le Fèvre, A., Leifels, Y., Reisdorf, W., Aichelin, J. & Hartnack, C. Constraining the nuclear matter equation of state around twice saturation density.

*Nucl. Phys. A***945**, 112–133 (2016).Russotto, P. et al. Results of the ASY-EOS experiment at GSI: the symmetry energy at suprasaturation density.

*Phys. Rev. C***94**, 034608 (2016).Hebeler, K., Lattimer, J. M., Pethick, C. J. & Schwenk, A. Equation of state and neutron star properties constrained by nuclear physics and observation.

*Astrophys. J.***773**, 11 (2013).Tews, I., Krüger, T., Hebeler, K. & Schwenk, A. Neutron matter at next-to-next-to-next-to-leading order in chiral effective field theory.

*Phys. Rev. Lett.***110**, 032504 (2013).Lynn, J. E. et al. Chiral three-nucleon interactions in light nuclei, neutron-α scattering, and neutron matter.

*Phys. Rev. Lett.***116**, 062501 (2016).Drischler, C., Hebeler, K. & Schwenk, A. Chiral interactions up to next-to-next-to-next-to-leading order and nuclear saturation.

*Phys. Rev. Lett.***122**, 042501 (2019).Drischler, C., Furnstahl, R. J., Melendez, J. A. & Phillips, D. R. How well do we know the neutron-matter equation of state at the densities inside neutron stars? A Bayesian approach with correlated uncertainties.

*Phys. Rev. Lett.***125**, 202702 (2020).Huth, S., Wellenhofer, C. & Schwenk, A. New equations of state constrained by nuclear physics, observations, and QCD calculations of high-density nuclear matter.

*Phys. Rev. C***103**, 025803 (2021).Raaijmakers, G. et al. Constraints on the dense matter equation of state and neutron star properties from NICER’s mass–radius estimate of PSR J0740+6620 and multimessenger observations.

*Astrophys. J. Lett.***918**, L29 (2021).Annala, E., Gorda, T., Kurkela, A., Nättilä, J. & Vuorinen, A. Evidence for quark-matter cores in massive neutron stars.

*Nat. Phys.***16**, 907–910 (2020).Bauswein, A., Just, O., Janka, H.-T. & Stergioulas, N. Neutron-star radius constraints from GW170817 and future detections.

*Astrophys. J.***850**, L34 (2017).Annala, E., Gorda, T., Kurkela, A. & Vuorinen, A. Gravitational-wave constraints on the neutron-star-matter equation of state.

*Phys. Rev. Lett.***120**, 172703 (2018).Most, E. R., Weih, L. R., Rezzolla, L. & Schaffner-Bielich, J. New constraints on radii and tidal deformabilities of neutron stars from GW170817.

*Phys. Rev. Lett.***120**, 261103 (2018).Abbott, B. P. et al. GW170817: measurements of neutron star radii and equation of state.

*Phys. Rev. Lett.***121**, 161101 (2018).Radice, D. & Dai, L. Multimessenger parameter estimation of GW170817.

*Eur. Phys. J.***A55**, 50 (2019).Capano, C. D. et al. Stringent constraints on neutron-star radii from multimessenger observations and nuclear theory.

*Nat. Astron.***4**, 625–632 (2020).Legred, I., Chatziioannou, K., Essick, R., Han, S. & Landry, P. Impact of the PSR J0740+6620 radius constraint on the properties of high-density matter.

*Phys. Rev. D***104**, 063003 (2021).Danielewicz, P., Lacey, R. & Lynch, W. G. Determination of the equation of state of dense matter.

*Science***298**, 1592–1596 (2002).Tsang, M. B., Lynch, W. G., Danielewicz, P. & Tsang, C. Y. Symmetry energy constraints from GW170817 and laboratory experiments.

*Phys. Lett. B***795**, 533–536 (2019).Tews, I., Carlson, J., Gandolfi, S. & Reddy, S. Constraining the speed of sound inside neutron stars with chiral effective field theory interactions and observations.

*Astrophys. J.***860**, 149 (2018).Epelbaum, E., Hammer, H.-W. & Meissner, U.-G. Modern theory of nuclear forces.

*Rev. Mod. Phys.***81**, 1773–1825 (2009).Machleidt, R. & Entem, D. R. Chiral effective field theory and nuclear forces.

*Phys. Rep.***503**, 1–75 (2011).Epelbaum, E., Krebs, H. & Meißner, U.-G. Improved chiral nucleon-nucleon potential up to next-to-next-to-next-to-leading order.

*Eur. Phys. J. A***51**, 53 (2015).Carlson, J. et al. Quantum Monte Carlo methods for nuclear physics.

*Rev. Mod. Phys.***87**, 1067 (2015).Essick, R., Tews, I., Landry, P., Reddy, S. & Holz, D. E. Direct astrophysical tests of chiral effective field theory at supranuclear densities.

*Phys. Rev. C***102**, 055803 (2020).Tews, I., Margueron, J. & Reddy, S. Critical examination of constraints on the equation of state of dense matter obtained from GW170817.

*Phys. Rev.***C98**, 045804 (2018).Antoniadis, J. et al. A massive pulsar in a compact relativistic binary.

*Science***340**, 1233232 (2013).Arzoumanian, Z. et al. The NANOGrav 11-year data set: high-precision timing of 45 millisecond pulsars.

*Astrophys. J. Suppl. Ser.***235**, 37 (2018).Fonseca, E. et al. Refined mass and geometric measurements of the high-mass PSR J0740+6620.

*Astrophys. J. Lett.***915**, L12 (2021).Pang, P. T. H. et al. Nuclear physics multimessenger astrophysics constraints on the neutron star equation of state: adding NICER’s PSR J0740+6620 measurement.

*Astrophys. J.***922**, 14 (2021).Margalit, B. & Metzger, B. D. Constraining the maximum mass of neutron stars from multi-messenger observations of GW170817.

*Astrophys. J.***850**, L19 (2017).Rezzolla, L., Most, E. R. & Weih, L. R. Using gravitational-wave observations and quasi-universal relations to constrain the maximum mass of neutron stars.

*Astrophys. J.***852**, L25 (2018).Dietrich, T. et al. Improving the NRTidal model for binary neutron star systems.

*Phys. Rev. D***100**, 044003 (2019).Abbott, B. P. et al. Properties of the binary neutron star merger GW170817.

*Phys. Rev. X***9**, 011001 (2019).Bulla, M. POSSIS: predicting spectra, light curves and polarization for multi-dimensional models of supernovae and kilonovae.

*Mon. Not. R. Astron. Soc.***489**, 5037–5045 (2019).Danielewicz, P. & Lee, J. Symmetry energy II: isobaric analog states.

*Nucl. Phys. A***922**, 1–70 (2014).Tsang, M. B. et al. Constraints on the density dependence of the symmetry energy.

*Phys. Rev. Lett.***102**, 122701 (2009).Zhang, Z. & Chen, L.-W. Constraining the symmetry energy at subsaturation densities using isotope binding energy difference and neutron skin thickness.

*Phys. Lett. B***726**, 234–238 (2013).Brown, B. A. Constraints on the skyrme equations of state from properties of doubly magic nuclei.

*Phys. Rev. Lett.***111**, 232502 (2013).Estee, J. et al. Probing the symmetry energy with the spectral pion ratio.

*Phys. Rev. Lett.***126**, 162701 (2021).Yong, G.-C. Symmetry energy extracted from the SπRIT pion data in Sn+Sn systems.

*Phys. Rev. C***104**, 014613 (2021).Orsaria, M. G. et al. Phase transitions in neutron stars and their links to gravitational waves.

*J. Phys. G***46**, 073002 (2019).Brandes, L., Kaiser, N. & Weise, W. Fluctuations and phases in baryonic matter.

*Eur. Phys. J. A***57**, 243 (2021).Gezerlis, A. et al. Quantum Monte Carlo calculations with chiral effective field theory interactions.

*Phys. Rev. Lett.***111**, 032501 (2013).Gezerlis, A. et al. Local chiral effective field theory interactions and quantum Monte Carlo applications.

*Phys. Rev. C***90**, 054323 (2014).Tews, I., Gandolfi, S., Gezerlis, A. & Schwenk, A. Quantum Monte Carlo calculations of neutron matter with chiral three-body forces.

*Phys. Rev. C***93**, 024305 (2016).Drischler, C., Melendez, J. A., Furnstahl, R. J. & Phillips, D. R. Quantifying uncertainties and correlations in the nuclear-matter equation of state.

*Phys. Rev. C***102**, 054315 (2020).Greif, S., Raaijmakers, G., Hebeler, K., Schwenk, A. & Watts, A. L. Equation of state sensitivities when inferring neutron star and dense matter properties.

*Mon. Not. R. Astron. Soc.***485**, 5363–5376 (2019).Tews, I. Spectrum of shear modes in the neutron-star crust: estimating the nuclear-physics uncertainties.

*Phys. Rev. C***95**, 015803 (2017).Leonhardt, M. et al. Symmetric nuclear matter from the strong interaction.

*Phys. Rev. Lett.***125**, 142502 (2020).Tews, I. et al. On the nature of GW190814 and its impact on the understanding of supranuclear matter.

*Astrophys. J. Lett.***908**, L1 (2021).Struder, L. et al. The European Photon Imaging Camera on XMM-Newton: the pn-CCD camera.

*Astron. Astrophys.***365**, L18–L26 (2001).Turner, M. J. L. et al. The European Photon Imaging Camera on XMM-Newton: the MOS cameras.

*Astron. Astrophys.***365**, L27–L35 (2001).Smith, R. J. E., Ashton, G., Vajpeyi, A. & Talbot, C. Massively parallel Bayesian inference for transient gravitational-wave astronomy.

*Mon. Not. R. Astron. Soc.***498**, 4492–4502 (2020).Veitch, J. et al. Parameter estimation for compact binaries with ground-based gravitational-wave observations using the LALInference software library.

*Phys. Rev. D***91**, 042003 (2015).Coughlin, M. W. et al. Constraints on the neutron star equation of state from AT2017gfo using radiative transfer simulations.

*Mon. Not. R. Astron. Soc.***480**, 3871–3878 (2018).Coughlin, M. W., Dietrich, T., Margalit, B. & Metzger, B. D. Multimessenger Bayesian parameter inference of a binary neutron star merger.

*Mon. Not. R. Astron. Soc.***489**, L91–L96 (2019).Dietrich, T. & Ujevic, M. Modeling dynamical ejecta from binary neutron star mergers and implications for electromagnetic counterparts.

*Class. Quantum Gravity***34**, 105014 (2017).Fuchs, C. & Wolter, H. H. Modelization of the EOS.

*Eur. Phys. J. A***30**, 5–21 (2006).Zhang, Y. et al. Progress of quantum molecular dynamics model and its applications in heavy ion collisions.

*Front. Phys.***15**, 54301 (2020).An, X. et al. The BEST framework for the search for the QCD critical point and the chiral magnetic effect.

*Nucl. Phys. A***1017**, 122343 (2022).Colonna, M. et al. Comparison of heavy-ion transport simulations: mean-field dynamics in a box.

*Phys. Rev. C***104**, 024603 (2021).Andronic, A., Łukasik, J., Reisdorf, W. & Trautmann, W. Systematics of stopping and flow in Au+Au collisions.

*Eur. Phys. J. A***30**, 31–46 (2006).Reisdorf, W. et al. Systematics of azimuthal asymmetries in heavy ion collisions in the 1 A GeV regime.

*Nucl. Phys. A***876**, 1–60 (2012).Hartnack, C. et al. Modeling the many body dynamics of heavy ion collisions: present status and future perspective.

*Eur. Phys. J. A***1**, 151–169 (1998).Wang, Y. et al. Determination of the nuclear incompressibility from the rapidity-dependent elliptic flow in heavy-ion collisions at beam energies 0.4 A –1.0 A GeV.

*Phys. Lett. B***778**, 207–212 (2018).Le Fèvre, A., Leifels, Y., Hartnack, C. & Aichelin, J. Origin of elliptic flow and its dependence on the equation of state in heavy ion reactions at intermediate energies.

*Phys. Rev. C***98**, 034901 (2018).Sturm, C. T. et al. Evidence for a soft nuclear equation of state from kaon production in heavy ion collisions.

*Phys. Rev. Lett.***86**, 39–42 (2001).Fuchs, C. et al. The nuclear equation of state probed by K

^{+}production in heavy ion collisions.*J. Phys. G***28**, 1615–1622 (2002).Adhikari, D. et al. Accurate determination of the neutron skin thickness of

^{208}Pb through parity-violation in electron scattering.*Phys. Rev. Lett.***126**, 172502 (2021).Reed, B. T., Fattoyev, F. J., Horowitz, C. J. & Piekarewicz, J. Implications of PREX-II on the equation of state of neutron-rich matter.

*Phys. Rev. Lett.***126**, 172503 (2021).Essick, R., Tews, I., Landry, P. & Schwenk, A. Astrophysical constraints on the symmetry energy and the neutron skin of

^{208}Pb with minimal modeling assumptions.*Phys. Rev. Lett.***127**, 192701 (2021).Biswas, B. Impact of PREX-II and combined radio/NICER/XMM-Newton’s mass–radius measurement of PSR J0740+6620 on the dense-matter equation of state.

*Astrophys. J.***921**, 63 (2021).Li, B.-A. Probing the high density behavior of nuclear symmetry energy with high-energy heavy ion collisions.

*Phys. Rev. Lett.***88**, 192701 (2002).Russotto, P. et al. Symmetry energy from elliptic flow in

^{197}Au +^{197}Au.*Phys. Lett. B***697**, 471–476 (2011).Blaich, T. et al. A large area detector for high-energy neutrons.

*Nucl. Instrum. Methods Phys. Res. A***314**, 136–154 (1992).Cozma, M. D. Feasibility of constraining the curvature parameter of the symmetry energy using elliptic flow data.

*Eur. Phys. J. A***54**, 40 (2018).Vallisneri, M., Kanner, J., Williams, R., Weinstein, A. & Stephens, B. The LIGO Open Science Center.

*J. Phys. Conf. Ser.***610**, 012021 (2015).Dietrich, T. et al. Multi-messenger constraints on the neutron-star equation of state and the Hubble constant – data and codes. Zenodo https://doi.org/10.5281/zenodo.4114141 (2020).

Gezerlis, A. & Carlson, J. Low-density neutron matter.

*Phys. Rev. C***81**, 025803 (2010).Tews, I., Lattimer, J. M., Ohnishi, A. & Kolomeitsev, E. E. Symmetry parameter constraints from a lower bound on neutron-matter energy.

*Astrophys. J.***848**, 105 (2017).Hebeler, K., Bogner, S. K., Furnstahl, R. J., Nogga, A. & Schwenk, A. Improved nuclear matter calculations from chiral low-momentum interactions.

*Phys. Rev. C***83**, 031301(R) (2011).Drischler, C., Hebeler, K. & Schwenk, A. Asymmetric nuclear matter based on chiral two- and three-nucleon interactions.

*Phys. Rev. C***93**, 054314 (2016).

## Acknowledgements

We thank D. Cozma, C. Hartnack, P. Landry, P. Russotto, Y. Wang and LIGO’s extreme matter group for valuable comments and useful discussions. This work was supported by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) – Project-ID 279384907 – SFB 1245 (S.H. and A.S.); the research programme of the Netherlands Organization for Scientific Research (NWO; P.T.H.P. and C.V.D.B.); the US Department of Energy, Office of Science, Office of Nuclear Physics, under contract number DE-AC52-06NA25396, the Laboratory Directed Research and Development programme of Los Alamos National Laboratory under project numbers 20190617PRD1 and 20190021DR, and the US Department of Energy, Office of Science, Office of Advanced Scientific Computing Research, Scientific Discovery through Advanced Computing (SciDAC) programme (I.T.); and the Max Planck Society (T.D.). M.B. acknowledges support from the Swedish Research Council (registration number 2020-03330) and M.W.C. acknowledges support by the National Science Foundation with grant numbers PHY-2010970 and OAC-2117997. A.L.F. and W.T. acknowledge the support of the French-German Collaboration Agreement between IN2P3 - DSM/CEA and GSI. K.A. acknowledges the support from the Bundesministerium für Bildung und Forschung (BMBF, German Federal Ministry of Education and Research) – Project-ID 05P19VTFC1 and Helmholtz Graduate School for Hadron and Ion Research (HGS-HIRe). Computations were performed on the national supercomputer Hawk at the High Performance Computing Center Stuttgart (HLRS) under the grant number 44189 and on SuperMUC-NG at Leibniz Supercomputing Centre Munich under project number pn29ba. In addition, computational resources have also been provided by the Los Alamos National Laboratory Institutional Computing Program, which is supported by the US Department of Energy National Nuclear Security Administration under contract number 89233218CNA000001, and by the National Energy Research Scientific Computing Center (NERSC), which is supported by the US Department of Energy, Office of Science, under contract nmber DE-AC02-05CH11231. This research has made use of data, software and/or web tools obtained from the Gravitational Wave Open Science Center (https://www.gw-openscience.org), a service of LIGO Laboratory, the LIGO Scientific Collaboration and the Virgo Collaboration. LIGO is funded by the US National Science Foundation. Virgo is funded by the French Centre National de Recherche Scientifique (CNRS), the Italian Istituto Nazionale della Fisica Nucleare (INFN) and the Dutch Nikhef, with contributions by Polish and Hungarian institutes.

## Author information

### Authors and Affiliations

### Contributions

Conceptualization: S.H., P.T.H.P., I.T., T.D., A.L.F., A.S.; methodology: S.H., P.T.H.P., I.T., T.D., A.L.F., A.S., M.B., M.W.C.; data curation: S.H., P.T.H.P., I.T., T.D., M.W.C.; software: S.H., P.T.H.P., I.T., T.D., A.L.F., M.B., M.W.C.; validation: S.H., P.T.H.P., I.T., T.D., A.L.F., A.S., W.T.; formal analysis: S.H., P.T.H.P., I.T., T.D.; resources: I.T., T.D., A.L.F., A.S.; funding acquisition: I.T., T.D., A.L.F., A.S., C.V.D.B.; project administration: I.T., T.D., A.S.; supervision: I.T., T.D., A.L.F., A.S., C.V.D.B.; visualization: S.H., P.T.H.P.; writing—original draft: S.H., P.T.H.P., I.T., T.D., A.L.F., A.S., W.T., K.A.; writing—review and editing: S.H., P.T.H.P., I.T., T.D., A.L.F., A.S., W.T., K.A.

### Corresponding authors

## Ethics declarations

### Competing interests

The authors declare no competing interests.

## Peer review

### Peer review information

*Nature* thanks Aleksi Vuorinen and the other, anonymous, reviewer(s) for their contribution to the peer review of this work.

## Additional information

**Publisher’s note** Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

## Extended data figures and tables

### Extended Data Fig. 1 Constraints on γ_{asy} versus symmetry energy S_{0} from two Quantum Molecular Dynamics models.

We show the exponent γ_{asy} of the density dependence of the potential part of the symmetry energy, see Eq. (7), as deduced from the analysis of ASY-EOS experimental data using the UrQMD model used in this work^{11} (red points) and new simulations from the IQMD model (blue points). The red line indicates the mean value for γ_{asy} along the linear interpolation for the chosen range of *S*_{0}. Overall, the models are in good agreement with each other and the results suggest that a linear interpolation is reasonable.

### Extended Data Fig. 2 Comparison between different sensitivity curves.

We show three sensitivity-to-density curves for different observables and incident energies. In particular, the neutron-over-charged-particle (n/ch, used here) and the neutron-over-proton (n/p) sensitivity curves for 400 MeV/nucleon incident energy from Russotto *et al.*^{11} are compared with the density curve reported by Le Fèvre *et al*.^{10} for the sensitivity of the elliptic flow of protons in Au+Au collisions at 1 GeV/nucleon.

### Extended Data Fig. 3 Constraint on the neutron-star mass and radius with successive astrophysics information.

In each panel (except for panel A), EOSs within (outside of) 95% credible interval are shown as blue (grey) lines. Lower panels indicate the probability distribution function (PDF) for the radius of a \(1.4{M}_{\odot }\) neutron star, with the 95% confidence range indicated by dashed lines, in panels (B)-(F) the prior from panel (A) is shown in grey. (A) The EOS prior set constrained by chiral EFT calculations up to 1.5*n*_{sat} and \({M}_{\max }\ge 1.9{M}_{\odot }\). (B) The EOS set restricted by incorporating information from mass measurements of PSR J0348+0432, PSR J1614-2230, and the maximum-mass constraints obtained from GW170817/AT2017gfo. The 95% confidence interval of the maximum mass posterior probability distribution is shown by the purple band. (C) The EOS set further restricted by the NICER mass-radius measurement of PSR J0030+0451 (purple contours at 68% and 95% confidence) and PSR J0740+6620 (orange contours at 68% and 95% confidence). Note that the latter shows the average of the results obtained by Miller *et al*.^{7} and Riley *et al*.^{8}. (D) Further restrictions on the EOS set from a reanalysis of the GW170817 using Bayesian inference. Contours at 68% and 95% confidence show the mass-radius measurements of the primary (red) and secondary (orange) neutron stars. (E) We use the chirp mass, mass ratio, and the EOSs as Bayesian prior for our analysis of AT2017gfo. (F) Further restrictions by analysing GW190425. Again, contours at 68% and 95% confidence show the mass-radius measurements of the primary (red) and secondary (orange) neutron stars. (G) The radius constraint at each step of this analysis with 95% confidence ranges. The radius constraint after including HIC experimental data is also shown.

### Extended Data Fig. 4 Constraints for pure neutron matter.

Energy per particle *E*/*N* of neutron matter as a function of density *n* for various many-body calculations using chiral EFT interactions from Hebeler *et al*.^{12}, Tews *et al.*^{13}, Lynn *et al*. (used here)^{14}, Drischler *et al*. PRL^{15} and GP-B^{16}, and low-density quantum Monte Carlo results from Gezerlis and Carlson^{89}. Overall, the results from these calculations are in good agreement with each other. We also show the energy per particle of a unitary Fermi gas of neutrons, which has been proposed as a lower bound for the energy of neutron matter^{90}. Finally, we compare the theoretical results with the constraint from the ASY-EOS and FOPI experiments (red), which is used as a constraint for neutron matter in the main work.

### Extended Data Fig. 5 Comparison of the pressure of symmetric nuclear matter for experiment and theory.

The pressure band from the FOPI experiment^{10} at the 1*σ* level (red) for the incompressibility is consistent with the chiral EFT constraint from Drischler *et al.*^{15,59} at N^{2}LO (light blue) and N^{3}LO (dark blue). The experimental uncertainty band is smaller than the theoretical one because the empirical saturation point used for extracting the experimental results has smaller uncertainties compared to theoretical estimates from chiral EFT. Between 2-3*n*_{sat}, we additionally constrain the FOPI results with the constraint from Danielewicz *et al.*^{27} (green), which has no statistical interpretation. This excludes the highest values for the incompressibility *K* from the FOPI distribution and also influences symmetric matter at smaller densities, which depends on the range of incompressibility *K*. However, both constraints are in very good agreement with each other and the impact of the additional Danielewicz *et al*. constraint is small in our analysis.

## Supplementary information

### Supplementary Information

This file contains legends for Supplementary Tables 1–5.

## Rights and permissions

**Open Access** This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/.

## About this article

### Cite this article

Huth, S., Pang, P.T.H., Tews, I. *et al.* Constraining neutron-star matter with microscopic and macroscopic collisions.
*Nature* **606**, 276–280 (2022). https://doi.org/10.1038/s41586-022-04750-w

Received:

Accepted:

Published:

Issue Date:

DOI: https://doi.org/10.1038/s41586-022-04750-w

## Comments

By submitting a comment you agree to abide by our Terms and Community Guidelines. If you find something abusive or that does not comply with our terms or guidelines please flag it as inappropriate.