Axion-Gauge Interactions
Since version 2.0, \(\mathcal{C}\mathtt{osmo}\mathcal{L}\mathtt{attice}\) includes a module to evolve pseudoscalar fields coupled to \(\mathrm{U}(1)\) gauge fields via an interaction of the form \(\phi F\tilde F\). These pseudoscalar fields are commonly known as axion-like-particles (ALPs). As opposed to charged complex scalars described in Scalar-Gauge Interactions, the pseudoscalar fields we consider here are not charged under a gauge symmetry. Note that while ALPs can also couple to non-Abelian gauge fields in nature (via \(\phi G\tilde G\)), currently only the Abelian \(\mathrm{U}(1)\) interactions are implemented in the code. These models can be considered as an extension of the standard scalar and Abelian gauge dynamics: fields, program variables, input-file syntax, potential functions, and standard outputs follow the same conventions to a large extent, and we recommend the reader to be familiar with the Scalar-Gauge Interactions section of this manual first. In this section, we emphasize the additional details that arise from introducing this type of non-canonical coupling.
This section is structured as follows. We first introduce in Axion-gauge continuum dynamics the continuum equations of motion for the axion and the \(\mathrm{U}(1)\) gauge-field, as well as for the self-consistent expansion of the scale factor. In Model and input files for axion-\(\mathrm{U}(1)\) theories we describe an example model and input parameters, and also explain how it can be modified to create a different model of axion-\(\mathrm{U}(1)\) interactions. Finally, in The axion-\(\mathrm{U}(1)\) physics inside \(\mathcal{C}\mathtt{osmo}\mathcal{L}\mathtt{attice}\) we detail the axion-specific initialization and evolution algorithms.
Axion-gauge dynamics in the continuum
The action of an axion-\(\mathrm{U}(1)\) gauge theory that can be simulated in \(\mathcal{C}\mathtt{osmo}\mathcal{L}\mathtt{attice}\) is the following:
We use the same spatially-flat FLRW background metric introduced in Eq. (1) of Scalar-Scalar interactions. The variation of the action yields the continuum equations of motion for the axion and the gauge fields. Using cosmic time and working in the temporal gauge, \(A_0=0\), they take the form
If we consider that the background expansion is driven by both the ALP and the gauge field, the Friedmann equations can be written as,
Regarding \(\mathcal{C}\mathtt{osmo}\mathcal{L}\mathtt{attice}\), we define program variables and \(\alpha\)-time exactly as in Scalar-Gauge Interactions and Scalar-Scalar Interactions. Thus, the matter dynamics and constraints to be simulated read as follows,
Example model and input files for axion-\(\mathrm{U}(1)\) theories
An example model to simulate an ALP coupled to a \(\mathrm{U}(1)\) gauge field is given by the \(\texttt{axionU1_m2phi2.h}\) model file. This contains one scalar singlet field, \(N_\mathrm{s}=1\), which represents the axion-like particle, and one \(\mathrm{U}(1)\) gauge field, \(N_{\mathrm{U}(1)}=1\). The potential of this model is chosen to consist of a single term, \(N_{\rm pot}=1\), given by
To simulate this model, an example parameter file is provided, \(\texttt{models/parameter-files/axionU1_m2phi2.in}\), which reads
The parameter syntax for lattice parameters, output frequencies and scalar initial conditions is the same as in Section Running the program with an input parameter file. The axion-gauge-specific additions and new restrictions are:
| Parameters | Explanation |
|---|---|
alphaLambda_AxionU1 |
Dimensionless coupling constant \(\alpha_{\Lambda}\) between the axion-like particle and the \(\mathrm{U}(1)\) gauge field. It defaults to \(\alpha_\Lambda=1\) if unspecified. |
evolver |
Axion-gauge models can only be used with one of the Runge-Kutta evolvers, such as RK2, RK3_3, RK3_4, or RK4_5. |
tNonLinearAxionU1 |
If a value between t0 and tMax is specified for this variable, the evolution between the start of the simulation and this time will take place in the linear regime. Further details are provided in Section Linear Regime. |
flagChiralPS |
Setting this parameter to true triggers the generation of the \(\texttt{spectra_chiral_U1_0.txt}\) and \(\texttt{spectra_chiral_Elec_U1_0.txt}\) files, which contain the chiral spectra \(A^{\pm}\) and \(E^{\pm}\), respectively. More details are provided in the Output part of this section. |
In addition, this particular model requires the keyword Mass that specifies the mass of the axion in GeV. In addition, initial conditions are provided via initial_amplitudes and initial_momenta, both of which contain only one entry corresponding to the axion field \(\phi\).
Fixed background expansion
Axion-gauge models in \(\mathcal{C}\mathtt{osmo}\mathcal{L}\mathtt{attice}\) can also be run in a fixed-expanding background. This is activated by indicating
in the parameter file. In such case, the scale factor is not sourced by the lattice fields, but by an external homogeneous component with constant equation of state \(\omega_{\rm EoS}\), see Eq. (11) of Scalar-Scalar interactions.Output files
An axion-\(\mathrm{U}(1)\) simulation generates the standard output files for both the scalar-singlet (the axion) and the \(\mathrm{U}(1)\) gauge field, following the default conventions described in Scalar-Gauge Interactions, as well as two additional files related to the power spectra. The specific novelties and additional files for this module are:
- Gauss Constraint: The Gauss constraint evaluation is adapted to the specific axion-\(\mathrm{U}(1)\) expression given in Eq.\(~\)\eqref{eqn:Gauss_pralpha}. The file output format remains identical to the standard gauge setup.
- Energy Conservation: When evolving within the linear regime (see Section Linear regime), the total energy density calculation used for the energy conservation check does not include the contribution from the gauge sector.
- Chiral Spectra: If
flagChiralPS = true, the module generates additional output files containing the chiral spectra of the gauge field and conjugate momentum. We now comment on how the chiral spectra are determined.
The procedure for computing the chiral power spectra of the gauge field and its conjugate momenta follows the standard methodology of computing power spectra in \(\mathcal{C}\mathtt{osmo}\mathcal{L}\mathtt{attice}\), followed by an additional step consisting of the projection from the Cartesian basis, \((A_i, E_i)\), into the chiral basis, \((A^{\pm}, E^{\pm})\). This transformation is performed using a chiral projector, which is implicitly constructed in \(\texttt{definitions/chiralpowerspectrum.h}\). The reader is referred to chapter 4 of \(\,\texttt{The}\,\texttt{Art}\)-\(\texttt{II}\) 1 for a detailed definition and mathematical construction of this chiral projector in both the continuum and the discrete lattice formulation.
The output files related to the chiral power spectra are:
-
spectra_chiral_U1_0.txtChiral power spectra of the \(\mathrm{U}(1)\) gauge field, containing the columns:
\(\tilde{k}\), \(\widetilde{\Delta}_{\widetilde{A}^{+}} (\tilde k)\), \(\widetilde{\Delta}_{\widetilde{A}^{-}} (\tilde k)\), \({\tilde n}_{\tilde k}\), \(\Delta n_{\rm bin}\)
-
spectra_chiral_Elec_U1_0.txtChiral power spectra of the \(\mathrm{U}(1)\) electric field, containing the columns:
\(\tilde{k}\), \(\widetilde{\Delta}_{\widetilde{E}^{+}} (\tilde k)\), \(\widetilde{\Delta}_{\widetilde{E}^{-}} (\tilde k)\), \({\tilde n}_{\tilde k}\), \(\Delta n_{\rm bin}\)
The axion-\(\mathrm{U}(1)\) model file
To define a new axion-\(\mathrm{U}(1)\) model, one can use as a starting point the example model file \(\texttt{models/axionU1_m2phi2.h}\). As of July 2026, the axion-gauge module of \(\mathcal{C}\mathtt{osmo}\mathcal{L}\mathtt{attice}\) only allows for the simulation of a single scalar species coupled to a single Abelian gauge field, although this may change in the future. The field number is specified in the ModelPars structure within the model file, the interaction is also activated using the CouplingsManager class
The definition of a ScalarU1AxionCouplings alias activates the axion-\(\mathrm{U}(1)\) interactions. Its first template argument is the total number of scalar fields (NScalars), its second is the total number of \(\mathrm{U}(1)\) gauge fields (NU1Flds), and the final boolean flag, if true, activates the axion-like interaction between them. Once this is set, \(\mathcal{C}\mathtt{osmo}\mathcal{L}\mathtt{attice}\) will automatically simulate axion-gauge interactions as given in Eq.\(~\)\eqref{eq_AxionAction}.
Current scope of the axion-gauge module
As of version 2.0 of \(\mathcal{C}\mathtt{osmo}\mathcal{L}\mathtt{attice}\), it is only possible to run axion-gauge simulations with a single scalar field. This will be extended in the future to make it possible to simulate multiple ALPs and also scalar species not coupled to the topological term.
The potential and its derivatives
In addition to specifying the number of fields and setting on the axion-gauge coupling, you also need to specify the model potential. For the provided example, the model only contains one term, Eq.\(~\)\eqref{eq_AxionExampleProgramPotential}, which is the inflationary potential:
Its first derivative is
where OneType() is a default class that returns one adapted to the particular context of its evaluation.
Axion-\(\mathrm{U}(1)\) physics inside \(\mathcal{C}\mathtt{osmo}\mathcal{L}\mathtt{attice}\)
Initial conditions
By default, simulations of ALPs initialize each chirality of the \(\mathrm{U}(1)\) gauge field and its conjugate momenta (the electric field) using the Bunch-Davies (BD) solution, while the longitudinal components of both fields are set to zero. Consequently, the user does not need to specify any initialization parameters in the input parameter file for the Abelian gauge sector, as the BD initial conditions are automatically applied across the momentum range \([\tilde{k}_{\rm IR}, \tilde{k}_{\rm UV}]\).
To satisfy the initial Gauss constraint—which, under BD initial conditions for the gauge fields implies that the divergence of the electric field vanishes—the scalar field and its time derivative are set to be initially homogeneous. Their initial values are determined entirely by the standard parameters provided in the input file using the initial_amplitudes and initial_momenta keywords, for the amplitude of the field and its derivative, respectively. For a more detailed discussion on the theoretical background and the current implementation of these initial conditions, see Bunch-Davies transverse Abelian fields in the Initial Conditions section.
Following the initialization in the BD vacuum, it is recommended to evolve the fields in the linear regime to prevent the appearance of discretization effects related to UV modes of the BD spectrum. More details on this regime and how to control it are provided in Linear Regime.
Evolution equations
For self-consistent expansion, \(\mathcal{C}\mathtt{osmo}\mathcal{L}\mathtt{attice}\) evolves the fields by solving a set of first-order differential equations. Defining the conjugate momenta
and the scale-factor kernel reads:
The matter kernels \(\mathcal{K}_{\phi}^{\rm L}\) and \(\mathcal{K}_{A_i}^{\rm L}\) represent the discrete lattice formulations that govern the dynamical evolution of the system. All terms not coupled to the axion-like parameter \(\alpha_\Lambda\) follow the standard spatial discretization that strictly respects lattice gauge invariance. This default procedure can be reviewed in Section Scalar-Gauge Interactions or in \(\,\texttt{The}\,\texttt{Art}\)-\(\texttt{I}\) 2.
However, due to the chiral coupling between the axion-like particle and the Abelian gauge field, the lattice formulation must additionally capture the topological nature of the \(\phi F\tilde{F}\) term while preserving the aforementioned gauge symmetries. To achieve this, we make use of the redefined discrete electric and magnetic fields, \(\left(\tilde{\pi}_{A}\right)^{(2)}_i\) and \(\tilde{B}^{(4)}_i\), which are defined at each lattice site \(\mathbf{n}\) as:
The use of these specifically averaged operators guarantees that:
- The continuous topological properties and gauge invariances are preserved at the discrete level.
- The standard second-order spatial accuracy, \(\mathcal{O}(dx^2)\), is maintained.
- Discrete Bianchi identities are satisfied.
For a comprehensive technical discussion of this lattice gauge-invariant implementation, the reader is referred to chapter 4 of \(\,\texttt{The}\,\texttt{Art}\)-\(\texttt{II}\) 1 or to the original paper where this lattice formulation was first introduced, Ref\(~\)3. Moreover, the user can find the implementation of the axion-gauge couplings used in the evolution kernels in \(\texttt{definitions/axioncouplings.h}\), and the functions of the redefined electric and magnetic field in \(\texttt{TempLat/lattice/algebra/axionalgebra/electricfield2.h}\) and \(\texttt{TempLat/lattice/algebra/axionalgebra/magneticfield4.h}\) within TempLat.
As a final comment, we note that axion-\(\mathrm{U}(1)\) interactions introduce an inherent dependence on the conjugate momenta \(\left(\tilde{\pi}_{A}\right)_j\) directly inside the gauge-field kernel \(\mathcal{K}_{A_i}^{\rm L}\). Because the evaluation of these kernels requires simultaneous knowledge of the fields and their respective conjugate momenta, standard symplectic algorithms such as LF, VV, or PV cannot be employed, and simulations will fail if they are indicated in the parameter file. Non-symplectic algorithms, such as the Runge-Kutta family, must be used instead, for example:
Linear Regime
The linear regime represents a specific simplified case of the full axion-gauge dynamics where the backreaction from the gauge sector onto the axion field is switched off. Operationally, this means the topological backreaction term proportional to \(\sum_i \left(\tilde{\pi}_A\right)_i^{(2)}\tilde{B}_i^{(4)}\) is explicitly removed from the axion equation of motion. As a direct consequence of neglecting this backreaction, no spatial gradients are generated for the axion field, which is initially homogeneous. This causes the spatial Laplacian to vanish (\(\sum_i \tilde{\nabla}_i^-\tilde{\nabla}_i^+ \tilde{\phi} = 0\)) and, as a consequence, the discrete terms containing spatial derivatives of the axion field in the gauge field kernel become strictly zero
Additionally, the contribution of the gauge sector to the cosmic expansion is completely neglected in the linear regime. The energy density of the gauge fields is omitted from both the dynamical evolution of the scale factor and the Hubble constraint. Since the axion field remains homogeneous (setting the axion gradient energy to zero, \(\tilde{E}^{\phi}_{G} = 0\)), the scale factor kernel simplifies to:
The motivation for simulating linearly from an initial time t0 up to tNonLinearAxionU1, and only then switching to the full non-linear dynamics until tMax, stems from the physical behavior of the initial state. In certain scenarios, the UV tail of the initial Bunch-Davies vacuum solution can unphysically dominate the early-time dynamics rather than remaining subdominant. Through this multi-stage procedure, instead, we allow the gauge modes to first undergo chiral excitation within the homogeneous scalar field background. Once this physical excitation grows to dominate over the unphysical UV tail, the full non-linear dynamics can be safely activated. Crucially, this transition must be triggered before the backreaction of the gauge sector becomes non-negligible.
Note that any preliminary analysis—such as determining the optimal time thresholds, assessing the impact of the UV tail for the specific range of momentum modes simulated on the lattice, etc.—is not performed automatically by \(\mathcal{C}\mathtt{osmo}\mathcal{L}\mathtt{attice}\). It is the user's responsibility to fix the tNonLinearAxionU1 parameter and carry out these checks beforehand to ensure the correct and physical application of this hybrid evolution scheme.
-
J. Baeza-Ballesteros, D. G. Figueroa, A. Florio, J. Lizarraga, N. Loayza, K. Marschall, T. Opferkuch, B. A. Stefanek, F. Torrentí, and A. Urio. The art of simulating the early universe. part ii. non-canonical cases & gravitational waves. JCAP, 06:087, 2026. arXiv:2512.15627, doi:10.1088/1475-7516/2026/06/087. ↩↩
-
D. G. Figueroa, A. Florio, F. Torrenti, and W. Valkenburg. The art of simulating the early universe – part i: integration techniques and canonical cases. JCAP, 04:035, 2021. arXiv:2006.15122, doi:10.1088/1475-7516/2021/04/035. ↩
-
D. G. Figueroa and M. Shaposhnikov. Lattice implementation of abelian gauge theories with chern–simons number and an axion field. Nucl. Phys. B, 926:544, 2018. arXiv:1705.09629, doi:10.1016/j.nuclphysb.2017.12.001. ↩