betaFeedback

WorksPhysics and Astronomy

Fourier Transforms of Color Glass Condensate Multi-Wilson-Line Correlators via Filon Quadrature

Abstract

Calculating cross sections in the Color Glass Condensate effective theory requires Fourier transforms of multi-Wilson-line correlators from transverse coordinate space to transverse momentum space. Under the common assumption of impact-parameter independence, each transform reduces to a set of Hankel transforms whose Bessel-function kernels oscillate rapidly at phenomenologically relevant momenta, making direct quadrature prohibitively expensive. We present a Filon-type quadrature, applicable to any integrand, that integrates these oscillatory factors in closed form on the stored coordinate grid, reducing each Hankel transform to a precomputed weight vector and the full nested transform chain to a sequence of matrix products. We develop and validate the method on the deep inelastic scattering dijet cross section beyond the correlation-limit approximation, where an exprel-based reformulation of the quadrupole Wilson-line correlator removes a numerical 0/00/0 instability inherent to its standard parametrization. Porting the calculation to the Graphics Processing Unit (GPU), with custom CUDA kernels that fuse the momentum-space contraction directly into the correlator evaluation, brings the runtime for one dipole input down to about two minutes on a single NVIDIA A800, from several hours on a multi-core Central Processing Unit (CPU). We further generalize the algorithm to three sequential Hankel transforms and validate the resulting six-dimensional transform against an analytic Gaussian integrand family with closed-form results at every stage. This general, process-independent algorithm is directly applicable to next-to-leading-order proton-nucleus and electron-ion scattering cross-section calculations performed without the correlation-limit approximation. The code is publicly available at https://github.com/CCNU-CGC-py/FFT_filon.

Introduction

At high energy, the gluon density inside a hadron or nucleus grows rapidly and eventually saturates, giving rise to a new regime of strong-interaction dynamics governed by a large intrinsic momentum scale, the saturation scale Qs(x)Q_{\mathrm{s}}(x). The Color Glass Condensate (CGC) effective theory provides a systematic framework for this regime: the dense small-xx gluon fields are treated as classical color fields radiated by fast color sources, and scattering off these fields is encoded in Wilson lines that resum multiple interactions with the target to all orders in the strong coupling. Observables such as inclusive and semi-inclusive cross sections in deep-inelastic scattering (DIS) and in proton-nucleus collisions are then expressed through correlators of these Wilson lines [1, 2, 3, 4, 5, 6, 7]. Because the underlying dynamics is formulated in transverse coordinate space, where the small-xx evolution equations for the correlators take their simplest form, while physical cross sections are measured differentially in transverse momentum, cross sections in momentum space are obtained by Fourier transforming these correlators from transverse coordinate space to transverse momentum space. Numerically, this places nested two-dimensional Fourier transforms of multi-point correlators at the center of CGC phenomenology [8, 9, 10, 11, 12, 13, 14].

A common and often adequate approximation is to neglect the impact-parameter dependence of the correlators, which restores rotational invariance and reduces each two-dimensional transform to a set of Bessel (Hankel) transforms of angular modes. Even so, the oscillatory nature of the Bessel functions at the large gluon momenta of phenomenological interest remains a serious numerical obstacle. For dijet correlations, going beyond the back-to-back correlation-limit approximation requires solving for the full four-point correlator and Fourier transforming it from coordinate to momentum space, which arises already at leading order and in the large-NcN_{\mathrm{c}} limit in DIS and in proton-nucleus collisions [10, 11, 15]. A few studies have tackled the numerical Fourier transform of the four-point Wilson-line correlator [12, 16], but only at relatively low transverse momenta, where the Bessel oscillations are still mild enough for direct quadrature; at larger pTp_{\mathrm{T}} the cancellations between neighboring oscillations degrade any fixed-order scheme. The complementary strategy has been the Factorized Dipole Approximation [17, 18, 19, 20], which simplifies the quadrupole into a product of dipoles and thereby bypasses the complicated Fourier transform. But this assumes that color fluctuations are independent and uncorrelated. It is valid only in the region Qs2S⊥≫1Q_s^2 S_\perp\gg1, with S⊥S_\perp the effective transverse area of the proton/nucleus, and it discards the genuinely connected multi-gluon correlations that are important for gluon saturation effects. Extending full CGC calculations to the higher-pTp_T region relevant for comparison with experimental data therefore requires an efficient and accurate method for evaluating these multi-point Wilson-line correlator transforms across the full kinematic range.

This work develops a quadrature designed for exactly this problem: a Filon-type rule, applied directly on the stored coordinate grid, in which the oscillatory factors are integrated in closed form. This collapses every Hankel transform into a precomputable weight vector, so that each transform, and the full nested chain built from them, reduces to a sequence of matrix products. The method is formulated for the general case of three nested transforms and is independent of the specific form of the integrand. We develop and validate the method on one concrete observable, the deep inelastic scattering dijet cross section at full angle and at fixed photon virtuality [10, 11], for two reasons. First, it offers an easier testing ground compare to the proton-nucleus case: only two of the three coordinate integrals carry a momentum transfer, so every intermediate result can be saved and inspected for validation. Second, the dijet computation beyond the correlation limit is of direct physical interest in its own right, and the tables produced here feed a CGC event generator described in a companion paper [21]. The general three-momentum algorithm is nevertheless implemented in full and validated against an analytic integrand family with closed-form solutions.

The paper is organized as follows. § 2 sets up the dijet cross section, fixes the notation, and lays out the components of the calculation; § 3 assembles them into the CPU reference implementation; § 4 moves the expensive stage to the GPU, first keeping the inner table (§ 4.1) and then removing it altogether (§ 4.4); § 5 presents the extension of the algorithm to the general case of three sequential Hankel transforms, validated on an analytic family, with production use deferred to forthcoming proton-nucleus applications.

The deep-inelastic scattering di-parton cross section

Physical setup

We first consider inclusive di-parton (dijet) production in deep-inelastic scattering, γ∗(qγ)+p/A→q(k1) qˉ(k2)+X\gamma^*(q_\gamma)+p/A\to q(k_1)\,\bar{q}(k_2)+X, in the dipole picture of small-xx DIS. In light-cone perturbation theory the virtual photon of virtuality Q2Q^2 splits into a quark-antiquark pair carrying light-cone momentum fractions zz and 1−z1-z of the photon. The qqˉq\bar{q} pair then scatters eikonally off the strong color field of the target, picking up Wilson-line phases, before fragmenting into the final state hadrons. Because at the leading order, the splitting vertex appears once in the matrix element and once in its complex conjugate, the cross section involves the transverse dipole configuration r\mathbf{r} in the matrix element and r′\mathbf{r}' in its complex conjugate, together with an impact-parameter variable b\mathbf{b} that separates the two dipoles’ centers. Eikonal scattering off the target correlates all four endpoints of these two dipoles, producing the four-Wilson-line (“quadrupole”) correlator S(4)S^{(4)} that appears below. This process is also the standard tool for accessing the small-xx gluon Wigner distribution and gluon TMDs through dijet azimuthal correlations, and for constraining the dipole/quadrupole Wilson-line correlators that encode gluon saturation [11, 22, 23, 24].

Both photon transverse (TT) and longitudinal (LL) polarizations require the same type of integral, so let us denote the integrand as a function G(r,r′,b;ε)G(\mathbf{r},\mathbf{r}',\mathbf{b};\varepsilon). In the case of DIS [11],

I=∫d2r d2r′ d2b e−ik1⋅(r−r′)e−iq⋅bGT/L(r,r′,b;ε),(1)I=\int\mathrm{d}^{2}\mathbf{r}\,\mathrm{d}^{2}\mathbf{r}'\,\mathrm{d}^{2}\mathbf{b}\,e^{-i\mathbf{k}_{1}\cdot(\mathbf{r}-\mathbf{r}')}e^{-i\mathbf{q}\cdot\mathbf{b}}G_{T/L}(\mathbf{r},\mathbf{r}',\mathbf{b};\varepsilon), \tag*{(1)}

where

GT(r,r′,b;ε)=r⋅r′∣r∣ ∣r′∣K1(ε∣r∣)K1(ε∣r′∣)S(4)(r,r′,b),GL(r,r′,b;ε)=K0(ε∣r∣)K0(ε∣r′∣)S(4)(r,r′,b),(2)\begin{aligned} G_T(\mathbf{r},\mathbf{r}',\mathbf{b};\varepsilon)&=\frac{\mathbf{r}\cdot\mathbf{r}'}{|\mathbf{r}|\,|\mathbf{r}'|}K_1(\varepsilon|\mathbf{r}|)K_1(\varepsilon|\mathbf{r}'|)S^{(4)}(\mathbf{r},\mathbf{r}',\mathbf{b}),\\ G_L(\mathbf{r},\mathbf{r}',\mathbf{b};\varepsilon)&=K_0(\varepsilon|\mathbf{r}|)K_0(\varepsilon|\mathbf{r}'|)S^{(4)}(\mathbf{r},\mathbf{r}',\mathbf{b}), \tag*{(2)} \end{aligned}

and the overall polarization prefactors [(1−z)2+z2]ε2[(1-z)^2+z^2]\varepsilon^2 and 4Q2z2(1−z)24Q^2z^2(1-z)^2 multiply the transverse and longitudinal results once at the end. The modified Bessel functions K0K_0, K1K_1 and the scale ε2=z(1−z)Q2\varepsilon^2=z(1-z)Q^2 are the familiar output of the γ∗→qqˉ\gamma^*\to q\bar{q} light-cone wavefunction. The scale 1/ε1/\varepsilon sets the characteristic transverse size of the qqˉq\bar{q} fluctuation. Throughout this work, momentum variables and scales, including q\mathbf{q}, k1\mathbf{k}_1, QQ, and ε\varepsilon, are quoted in GeV, while transverse coordinate distances are quoted in GeV−1\mathrm{GeV}^{-1}. The functions K0K_0 and K1K_1, with the angular factor r⋅r′/(∣r∣∣r′∣)\mathbf{r}\cdot\mathbf{r}'/(|\mathbf{r}||\mathbf{r}'|) for K1K_1, arise from the spin structure of the longitudinally and transversely polarized photon vertices, respectively. The momentum k1\mathbf{k}_1 is the transverse momentum of the tagged parton, while q\mathbf{q}, which is conjugate to b\mathbf{b}, is the net transverse momentum transferred to the target (the recoil of the qqˉq\bar{q} pair as a whole). This differs from next-to-leading order forward dihadron production in pApA collisions, where two independent final-state momenta together with a fluctuating target impact parameter generally require Fourier transforms with respect to three independent transverse momenta [25, 26]. In DIS dijet production, by contrast, the cross section depends only on the relative dipole momentum k1\mathbf{k}_1 and the pair recoil q\mathbf{q}. Under the assumption of impact-parameter independence, the target’s overall impact parameter integrates out trivially, leaving only two Fourier conjugate pairs.

The four-point correlator is built from the dipole correlator S(r)S(\mathbf{r}), taken either from the Golec-Biernat–Wüsthoff (GBW) parametrization [27] or from a tabulated solution of small-xx evolution in which a neural network is used to extract an unparametrized initial dipole correlator, subsequently evolved with the collinearly-improved BK equation and fit globally to small-xx experimental data [28, 29]. The resulting form is

S(4)(r,r′,b)=−ND[S(r)S(r′)−S(∣Δ+b∣)S(b)],N=F(r+b,b;0,r′),D=F(r+b,0;b,r′)(3)S^{(4)}(\mathbf{r},\mathbf{r}',\mathbf{b})=-\frac{N}{D}\left[S(\mathbf{r})S(\mathbf{r}')-S(|\boldsymbol{\Delta}+\mathbf{b}|)S(\mathbf{b})\right], \qquad N=F(\mathbf{r}+\mathbf{b},\mathbf{b};0,\mathbf{r}'),\qquad D=F(\mathbf{r}+\mathbf{b},0;\mathbf{b},\mathbf{r}') \tag*{(3)}

where Δ=r−r′\boldsymbol{\Delta}=\mathbf{r}-\mathbf{r}', and F(x1,x2;x3,x4)=ln⁡S(∣x1−x3∣)+ln⁡S(∣x2−x4∣)−ln⁡S(∣x1−x4∣)−ln⁡S(∣x2−x3∣)F(\mathbf{x}_1,\mathbf{x}_2;\mathbf{x}_3,\mathbf{x}_4)=\ln S(|\mathbf{x}_1-\mathbf{x}_3|)+\ln S(|\mathbf{x}_2-\mathbf{x}_4|)-\ln S(|\mathbf{x}_1-\mathbf{x}_4|)-\ln S(|\mathbf{x}_2-\mathbf{x}_3|). Physically, S(4)S^{(4)} is the target average of four Wilson lines sitting at the endpoints of the two dipoles r\mathbf{r} and r′\mathbf{r}', separated by b\mathbf{b}. It encodes the interference between the eikonal phase picked up in the matrix element and in its complex conjugate. Equation (3) is the Gaussian approximation and large-NcN_c limit reduction of this quadrupole to products of dipole SS-matrices, including the elastic and inelastic terms [11, 22, 23, 24]. Only the two-point function S(r)S(\mathbf{r}), evolved by the BK equation, is needed as external input. The dimensionless combinations NN and DD implement this reduction exactly. Equation (3) takes the form 0/00/0 when D→0D\to0, or equivalently when S(r)S(r′)→S(∣Δ+b∣)S(b)S(\mathbf{r})S(\mathbf{r}')\to S(|\boldsymbol{\Delta}+\mathbf{b}|)S(\mathbf{b}). We avoid this form using

S(r)S(r′)−S(∣Δ+b∣)S(b)=S(r)S(r′)(1−e−D)(4)S(\mathbf{r})S(\mathbf{r}')-S(|\boldsymbol{\Delta}+\mathbf{b}|)S(\mathbf{b})=S(\mathbf{r})S(\mathbf{r}')\left(1-e^{-D}\right) \tag*{(4)}

and as a result,

S(4)=−N S(r)S(r′)exprel⁡(−D)(5)S^{(4)} = -N\,S(\mathbf{r})S(\mathbf{r}')\operatorname{exprel}(-D) \tag*{(5)}

where exprel⁡(x)=(ex−1)/x\operatorname{exprel}(x) = (e^x - 1)/x and exprel⁡(0)=1\operatorname{exprel}(0) = 1. For ∣D∣<10−7|D| < 10^{-7} we use exprel⁡(x)=1+x(12+x6)\operatorname{exprel}(x) = 1 + x\left(\frac{1}{2} + \frac{x}{6}\right); otherwise we use the direct definition.

Reduction of the integral for numerical evaluation

Here we focus on the integral involving only two Fourier transforms and exploit this structure to reduce it analytically before numerical evaluation. For the given integrand G(r,r′,b;ε)G(\mathbf{r},\mathbf{r}',\mathbf{b};\varepsilon),

I=∫d2r d2r′ d2b e−ik1⋅(r−r′)e−iq⋅bG(r,r′,b;ε).(6)I = \int\mathrm{d}^{2}r\,\mathrm{d}^{2}r'\,\mathrm{d}^{2}b\,e^{-i\mathbf{k}_{1}\cdot(\mathbf{r}-\mathbf{r}')}e^{-i\mathbf{q}\cdot\mathbf{b}}G(\mathbf{r},\mathbf{r}',\mathbf{b};\varepsilon). \tag*{(6)}

with Δ=r−r′\boldsymbol{\Delta} = \mathbf{r} - \mathbf{r}', i.e. r=Δ+r′\mathbf{r} = \boldsymbol{\Delta} + \mathbf{r}', and define the relative angles

α=θΔ−θr′,β=θb−θr′.(7)\alpha= \theta_{\Delta} - \theta_{r'}, \qquad\beta= \theta_{b} - \theta_{r'}. \tag*{(7)}

Here θΔ,θr′,θb\theta_{\Delta}, \theta_{r'}, \theta_b are the ordinary polar angles of Δ\boldsymbol{\Delta}, r′\mathbf{r}', b\mathbf{b}, and α\alpha, β\beta measure them relative to r′\mathbf{r}', which is the only vector shared by both phases below and whose overall orientation is therefore integrated out first. Writing G~(Δ,r′,b,α,β;ε)=G(Δ+r′,r′,b;ε)\widetilde{G}(\boldsymbol{\Delta},r',b,\alpha,\beta;\varepsilon) = G(\boldsymbol{\Delta}+\mathbf{r}',\mathbf{r}',\mathbf{b};\varepsilon), the integral becomes

I=∫0∞Δ dΔ∫0∞r′ dr′∫0∞b db∫02πdθr′∫02πdα∫02πdβ×e−ik1Δcos⁡(α+θr′)e−iqbcos⁡(β+θr′−θq)G~(Δ,r′,b,α,β;ε),(8)\begin{aligned} I ={}& \int_{0}^{\infty}\Delta\,\mathrm{d}\Delta\int_{0}^{\infty}r'\,\mathrm{d}r'\int_{0}^{\infty}b\,\mathrm{d}b\int_{0}^{2\pi}\mathrm{d}\theta_{r'}\int_{0}^{2\pi}\mathrm{d}\alpha\int_{0}^{2\pi}\mathrm{d}\beta\\ &\quad\times e^{-ik_{1}\Delta\cos(\alpha+\theta_{r'})}e^{-iqb\cos(\beta+\theta_{r'}-\theta_q)}\widetilde{G}(\boldsymbol{\Delta},r',b,\alpha,\beta;\varepsilon), \tag*{(8)} \end{aligned}

There are only two Fourier phases. Expanding each gives

e−ik1Δcos⁡(α+θr′)=∑m(−i)mJm(k1Δ)eimθr′eimα,e−iqbcos⁡(β+θr′−θq)=∑l(−i)lJl(qb)eilθr′eilβe−ilθq.(9)\begin{aligned} e^{-ik_{1}\Delta\cos(\alpha+\theta_{r'})} &= \sum_{m}(-i)^m J_m(k_{1}\Delta)e^{im\theta_{r'}}e^{im\alpha},\\ e^{-iqb\cos(\beta+\theta_{r'}-\theta_q)} &= \sum_{l}(-i)^l J_l(qb)e^{il\theta_{r'}}e^{il\beta}e^{-il\theta_q}. \tag*{(9)} \end{aligned}

The θr′\theta_{r'} integral enforces the following selection rule.

∫02πdθr′ ei(m+l)θr′=2πδm+l,0⇒l=−m,(10)\int_{0}^{2\pi}\mathrm{d}\theta_{r'}\,e^{i(m+l)\theta_{r'}} = 2\pi\delta_{m+l,0}\quad\Rightarrow\quad l=-m, \tag*{(10)}

while the angular Fourier modes are

G~m,l(Δ,r′,b;ε)=∫02πdα∫02πdβ eimαeilβG~(Δ,r′,b,α,β;ε).(11)\widetilde{G}_{m,l}(\Delta,r',b;\varepsilon)=\int_{0}^{2\pi}d\alpha\int_{0}^{2\pi}d\beta\,e^{im\alpha}e^{il\beta}\widetilde{G}(\Delta,r',b,\alpha,\beta;\varepsilon). \tag*{(11)}

Using δm,−l\delta_{m,-l}, and integrating out the radial variable r′r',

Gm(Δ,b;ε)=∫0∞r′ dr′ G~m,−m(Δ,r′,b;ε).(12)G_m(\Delta,b;\varepsilon)=\int_{0}^{\infty}r'\,dr'\,\widetilde{G}_{m,-m}(\Delta,r',b;\varepsilon). \tag*{(12)}

Here Gm(Δ,b;ε)G_m(\Delta,b;\varepsilon) is the mm-th azimuthal partial wave of the original integrand after the radial r′r' integration, and should not be confused with G(r,r′,b;ε)G(r,r',b;\varepsilon) itself. Introducing the double Bessel transform

Im=∫0∞Δ dΔ∫0∞b db Jm(k1Δ)Jm(qb) Gm(Δ,b;ε),(13)\mathcal{I}_m=\int_{0}^{\infty}\Delta\,d\Delta\int_{0}^{\infty}b\,db\,J_m(k_1\Delta)J_m(qb)\,G_m(\Delta,b;\varepsilon), \tag*{(13)}

one obtains the two-Bessel radial form

I=2π∑m=−MM(−1)meimθqIm.(14)I=2\pi\sum_{m=-M}^{M}(-1)^m e^{im\theta_q}\mathcal{I}_m. \tag*{(14)}

where the sum over the integer azimuthal harmonic mm is in principle infinite but is truncated at ∣m∣=M|m|=M, once Im\mathcal{I}_m becomes negligible at the required numerical precision. In practice, MM is set by the smoothness of GG in the angles α,β\alpha,\beta, i.e. by how quickly its angular Fourier coefficients fall off. Since Im=I−m\mathcal{I}_m=\mathcal{I}_{-m}, caused by the real S(4)S^{(4)} and reflection symmetry of α→−α,β→−β\alpha\to-\alpha,\beta\to-\beta of G~\widetilde{G}, this can be written as

I=2πI0+4π∑m=1M(−1)mcos⁡(mθq)Im.(15)I=2\pi\mathcal{I}_0+4\pi\sum_{m=1}^{M}(-1)^m\cos(m\theta_q)\mathcal{I}_m. \tag*{(15)}

For the Hankel transform, we use Filon quadrature [30] that will be described next subsection. The scheduling of these contractions on Central Processing Unit (CPU) and Graphics Processing Unit (GPU), including memory management and custom CUDA kernel fusion, is described in the later sections.

Filon–Bessel quadrature with closed-form local moments

The double Bessel transform of Eq. (13) is evaluated sequentially, with the bb integral performed first. Its smooth factor is Gm(Δ,b;ε)G_m(\Delta,b;\varepsilon) at Δ\Delta. Since the $\Delta dependence plays no role in the bb integral, we suppress it for brevity and write Gm(b)G_m(b). The transforms ∫bJm(qb) Gm(b) db\int b J_m(qb)\,G_m(b)\,\mathrm{d}b are oscillatory: at production-level momenta, qbq b reaches O(103)\mathcal{O}(10^3) across the bb grid, so any quadrature rule that directly resolves the oscillation requires a prohibitively fine mesh. Instead, we use a Filon-type rule [30] on the stored grid. On each interval [bi,bi+1][b_i,b_{i+1}] the smooth function GmG_m is fit by a degree-dd polynomial (default d=4d=4) in the local coordinate u=b−biu=b-b_i,

Gm(bi+u)≈∑r=0dCr(i)ur,(16)G_m(b_i+u) \approx\sum_{r=0}^{d} C_r^{(i)}u^r, \tag*{(16)}

with NbN_b nodes in total on the grid. The fit for interval ii uses the five points Li={bi−2,bi−1,bi,bi+1,bi+2}L_i=\{b_{i-2},b_{i-1},b_i,b_{i+1},b_{i+2}\}, while the resulting polynomial is integrated only over the interval [bi,bi+1][b_i,b_{i+1}].

The oscillation is then integrated exactly against each monomial via local moments, which admit a closed analytic form. Given the interval, with bib_i and qq held fixed, we expand the Bessel factor as a Taylor series in uu about u=0u=0. The chain rule gives

Jm(q(bi+u))=∑n≥0qnJm(n)(qbi)n!un,(17)J_m\bigl(q(b_i+u)\bigr)=\sum_{n\geq0}\frac{q^n J_m^{(n)}(qb_i)}{n!}u^n, \tag*{(17)}

where Jm(n)(qbi)J_m^{(n)}(qb_i) is the nn-th derivative of JmJ_m evaluated at qbiq b_i. On this interval, the Bessel function is thus replaced by a polynomial in uu, which can be integrated against uru^r exactly. The elementary integral is

∫0hiur du=hir+1r+1,(18)\int_0^{h_i}u^r\,\mathrm{d}u=\frac{h_i^{r+1}}{r+1}, \tag*{(18)}

where hi=bi+1−bih_i=b_{i+1}-b_i is the width of the iith interval. Applying this term-by-term gives the moments

Mr(m)(q;bi)=∫0hiurJm(q(bi+u)) du=hir+1∑n≥0Jm(n)(qbi)n!(qhi)nr+n+1.(19)M_r^{(m)}(q;b_i)=\int_0^{h_i}u^r J_m\bigl(q(b_i+u)\bigr)\,\mathrm{d}u =h_i^{r+1}\sum_{n\geq0}\frac{J_m^{(n)}(qb_i)}{n!}\frac{(qh_i)^n}{r+n+1}. \tag*{(19)}

By Stirling’s formula, (qhi)n/n!≈(eqhi/n)n(q h_i)^n/n!\approx(e q h_i/n)^n, so the terms in the series grow until n≈eqhin\approx e q h_i and decay factorially beyond it. The required truncation order therefore scales with the interval width hih_i. Since we evaluate all intervals with a single, common truncation order (to allow the local moments to be computed simultaneously through vectorization), this order must be set by the widest interval, hmax⁡h_{\max}, defined as the maximum value among {hi}\{h_i\}. We take N=⌈eqhmax⁡⌉+30N = \lceil e q h_{\max}\rceil+ 30, with the ceiling ⌈⋅⌉\lceil\cdot\rceil rounds that estimate up to an integer, capped at N≤400N \le400. Because hmax⁡h_{\max} gives the slowest-converging case, this choice guarantees convergence on every interval, not just the widest one.

Filon weight vectors

The fit of § 2.3 uses five sampled values on each interval. For interval ii, let j0,…,j4∈Lij_0,\ldots,j_4 \in L_i denote the global grid indices of these five fit points, and define the local offsets uk=bjk−biu_k = b_{j_k} - b_i and sampled values yk=Gm(bjk)y_k = G_m(b_{j_k}), for k=0,…,4k = 0,\ldots,4. The coefficients of the degree-4 polynomial satisfy

∑r=04cr(i)urk=yk,k=0,…,4.(20)\sum_{r=0}^{4} c_r^{(i)} u_r^k = y_k,\qquad k = 0,\ldots,4. \tag*{(20)}

These are five equations for the five unknown coefficients c0(i),…,c4(i)c_0^{(i)},\ldots,c_4^{(i)}. Their coefficient matrix Vkr=ukrV_{kr}=u_k^r is a Vandermonde matrix, with

det⁡V=∏0≤k<l≤4(ul−uk)≠0,(21)\det V = \prod_{0\leq k<l\leq4}(u_l-u_k)\ne0, \tag*{(21)}

and the five grid nodes are distinct. Equation (20) therefore has a unique solution.

Rather than solving Eq. (20) separately for every set of sampled values, we construct the solution using the Lagrange cardinal polynomials

ℓk(u)=∏l=0l≠k4u−uluk−ul,k=0,…,4.(22)\ell_k(u)=\prod_{\substack{l=0\\l\ne k}}^{4}\frac{u-u_l}{u_k-u_l},\qquad k=0,\ldots,4. \tag*{(22)}

For example, the polynomial associated with the first fit point is

ℓ0(u)=(u−u1)(u−u2)(u−u3)(u−u4)(u0−u1)(u0−u2)(u0−u3)(u0−u4),(23)\ell_0(u)=\frac{(u-u_1)(u-u_2)(u-u_3)(u-u_4)}{(u_0-u_1)(u_0-u_2)(u_0-u_3)(u_0-u_4)}, \tag*{(23)}

and by construction, ℓk(ul)=δkl\ell_k(u_l)=\delta_{kl}. The unique interpolating polynomial is therefore

Gm(bi+u)≈∑k=04ykℓk(u).(24)G_m(b_i+u)\approx\sum_{k=0}^{4}y_k\ell_k(u). \tag*{(24)}

Indeed, setting u=ulu = u_l in Eq. (24) kills every term except k=lk = l, since ℓk(ul)=δkl\ell_k(u_l) = \delta_{kl}, leaving ylℓl(ul)=yly_l\ell_l(u_l) = y_l. Uniqueness of this interpolant then follows from Eq. (21).

To obtain the polynomial coefficients, we expand each cardinal polynomial in the monomial basis,

ℓk(u)=∑r=04Wrk(i)ur.(25)\ell_k(u) = \sum_{r=0}^{4} W_{rk}^{(i)} u^r. \tag*{(25)}

Inserting Eq. (25) into Eq. (24) gives cr(i)=∑k=04Wrk(i)ykc_r^{(i)} = \sum_{k=0}^{4} W_{rk}^{(i)} y_k. Relabeling each column by the corresponding global grid index gives the form used below,

cr(i)=∑j∈LiWrj(i)Gm(bj).(26)c_r^{(i)} = \sum_{j \in L_i} W_{rj}^{(i)} G_m(b_j). \tag*{(26)}

The matrix Wrj(i)W_{rj}^{(i)} depends only on the five node offsets, not on the sampled values, and is constructed once for each interval. In the implementation, the offsets are first divided by the width of the five-node window before solving the equivalent system, the rrth coefficient is then divided by the rrth power of that width. This rescaling keeps the system well conditioned as the grid is refined.

Combining Eq. (26) with the moments of Eq. (19), with b=bi+ub = b_i + u, the contribution of one interval is

∫bibi+1b Jm(qb) Gm(b) db≈∑r=0dcr(i)[biMr(m)(q;bi)+Mr+1(m)(q;bi)].(27)\int_{b_i}^{b_{i+1}} b\,J_m(qb)\,G_m(b)\,\mathrm{d}b \approx\sum_{r=0}^{d} c_r^{(i)} \left[ b_i M_r^{(m)}(q;b_i) + M_{r+1}^{(m)}(q;b_i) \right]. \tag*{(27)}

The two bracketed terms are the constant and varying parts of the Jacobian b=bi+ub = b_i + u, the constant bib_i multiplies the moment at the fit power, while the varying part uu raises the fit power by one and yields the moment one order up. With the fit coefficients still grouped, substituting Eq. (26) into Eq. (27) and summing over intervals gives

∫0bmax⁡b Jm(qb) Gm(b) db≈∑i∑r=0d(∑k∈LiWrk(i)Gm(bk))[biMr(m)(q;bi)+Mr+1(m)(q;bi)].(28)\begin{aligned} \int_{0}^{b_{\max}} b\,J_m(qb)\,G_m(b)\,\mathrm{d}b &\approx\sum_i \sum_{r=0}^{d} \left(\sum_{k \in L_i} W_{rk}^{(i)} G_m(b_k)\right) \left[ b_i M_r^{(m)}(q;b_i) + M_{r+1}^{(m)}(q;b_i) \right]. \tag*{(28)} \end{aligned}

The parenthesized quantity is precisely cr(i)c_r^{(i)}. Expanding the parenthesis and reordering the sums so that the samples appear first,

∫0bmax⁡bJm(qb)Gm(b) db≈∑i∑k∈LiGm(bk)∑r=0dWrk(i)[biMr(m)(q;bi)+Mr+1(m)(q;bi)]=∑j=1Nbwmj(q)Gm(bj).(29)\begin{aligned} \int_{0}^{b_{\max}} b J_m(qb)G_m(b)\,\mathrm{d}b &\approx\sum_i \sum_{k\in L_i} G_m(b_k)\sum_{r=0}^{d} W_{rk}^{(i)}\left[b_i M_r^{(m)}(q;b_i)+M_{r+1}^{(m)}(q;b_i)\right] \\ &= \sum_{j=1}^{N_b} w_m^j(q)G_m(b_j). \tag*{(29)} \end{aligned}

The second line merely regroups the first by grid node: each interval contributes five numbers, one to the weight-vector entry of each of its five fit points and since a node belongs to at most five fit sets, each entry wmj(q)w_m^j(q) is the sum of at most five such contributions. Explicitly,

wmj(q)=∑i:j∈Li∑r=0dWrj(i)[biMr(m)(q;bi)+Mr+1(m)(q;bi)],(30)w_m^j(q)=\sum_{i:j\in L_i}\sum_{r=0}^{d}W_{rj}^{(i)}\left[b_i M_r^{(m)}(q;b_i)+M_{r+1}^{(m)}(q;b_i)\right], \tag*{(30)}

where the outer sum runs over the (at most five) intervals whose fit set contains node jj. Here no further index is needed, because the fit points in LiL_i are labeled by their global grid indices, so the column Wrj(i)W_{rj}^{(i)} is defined whenever j∈Lij\in L_i.

Every factor on the right of Eq. (29) is now accounted for: W(i)W^{(i)} depends only on the node positions, while the moments depend on the grid, the momentum qq, and the order mm. The integrand enters the transform only through its sampled values Gm(bj)G_m(b_j), and only linearly. The weight vector wm(q)w_m(q) is therefore a property of the (grid, momentum, order) triple, computed once and then reused for both polarizations and every dipole table on that grid. Stacking the rows over mm and over the target momenta turns each Hankel transform of the chain in § 2.2 into a single matrix product. The following sections describe how these products are scheduled on the CPU and GPU.

The CPU reference implementation

The first production implementation runs on the CPU and is deliberately plain. Exact library functions evaluate the Bessel factors K0K_0, K1K_1, and a cubic spline in rr interpolates ln⁡S\ln S through the dipole’s tabulated nodes. Every later implementation is checked against this reference. Its structure is shared by all implementations and follows directly from the reduction of § 2.2. The computation separates into two stages.

  1. Stage 1 evaluates the angular modes of Eq. (11) and the r′r' integral of Eq. (12), producing the inner table Gm(Δ,b;ε)G_m(\Delta,b;\varepsilon) on the stored (Δ,b)(\Delta,b) grid. No momentum enters this stage.

  1. Stage 2 applies the two Hankel transforms of Eq. (13) as Filon weight-vector contractions (§ 2.4), turning the table into the angular modes of the cross section Im(q,k1)I_m(q,k_1). All momentum dependence lives here.

The inner table connects the two stages: stage 1 writes it, stage 2 reads it, and nothing else crosses the boundary. Because the table is momentum-free, the expensive stage is paid once per dipole and ε\varepsilon, while the cheap stage can be repeated on any momentum grid. Algorithm 1 gives the pseudocode, and Figure 1 shows the workflow. The two stages are detailed below.

Workflow of the CPU reference implementation: dipole $S(r)$ from GBW or tabulated small-$x$ evolution; Stage 1 builds $G_m$ through $\ln S$ interpolation, $r'$-free factors, integrand evaluation, angular projection, and Gauss–Legendre accumulation; the momentum-free inner table $G_m(\Delta,b;\varepsilon)$ is passed to Stage 2 Hankel transforms using momentum grids $(q,k_1)$, producing $I_m(q,k_1)$ for both polarizations.

Figure 1. Workflow of the CPU reference implementation. Light rounded boxes are compute stages. Sharp rectangles are data, the double frame marks data saved to disk, and dashed rounded frames are loop scopes. Momentum never enters stage 1, and the momentum-free inner table is the only object that passes between them.

Algorithm 1 The CPU reference implementation. Stage 1 builds the momentum-free inner table; stage 2 contracts it with Filon weight vectors; the inner table is the only object crossing the stage boundary.

Stage 1 builds the inner table without momentum.

  1. precompute the (Δ,b)(\Delta,b) grids, angular sample points, the ln⁡S\ln S interpolation, Gauss–Legendre rule (rn′,ωn)n=1Nr′(r'_n,\omega_n)_{n=1}^{N_{r'}}

  2. for all bb-chunks (one worker process per chunk) do

  3. evaluate the r′r'-free factors ln⁡S(b)\ln S(b), ln⁡S(∣Δ+b∣)\ln S(\lvert\Delta+b\rvert)

  4. for n=1,…,Nr′n=1,\ldots,N_{r'} do

  5. evaluate the guarded integrands of Eqs. (2) and (5) on the (Δ,bchunk,α,β)(\Delta,b_{\mathrm{chunk}},\alpha,\beta) block

  6. project onto the angular modes of Eq. (11); add with weight ωn\omega_n

  7. end for

  8. end for

  9. multiply the polarization prefactors onto the finished arrays

Inner table Gm(Δ,b;ε)G_m(\Delta,b;\varepsilon) is held in memory, archived on disk.

Stage 2 performs the momentum-dependent Hankel transforms.

  1. build the Δ\Delta-grid weight rows wm(Δ),l(k1)w_m^{(\Delta),l}(k_1) for every k1k_1 ▷ § 2.4

  2. for each qq of the momentum grid do

  3. build the bb-grid weight rows wm(b),s(q)w_m^{(b),s}(q)

  4. contract over bb and then over Δ\Delta using Eq. (32) for all (k1,m)(k_1,m)

  5. end for

From continuous to discrete

Every integral of § 2 is replaced by a finite sum. The angles are sampled on NϕN_\phi equally spaced points, αi=2π(i−1)/Nϕ\alpha_i=2\pi(i-1)/N_\phi, i=1,…,Nϕi=1,\ldots,N_\phi, and likewise βj\beta_j. The r′r' axis carries a Gauss–Legendre rule on [0,Rr′][0,R_{r'}] with nodes rn′r'_n and weights ωn\omega_n, n=1,…,Nr′n=1,\ldots,N_{r'}. The values Δl\Delta_l, l=1,…,NΔl=1,\ldots,N_\Delta, and bsb_s, s=1,…,Nbs=1,\ldots,N_b are the stored coordinate grids.

The angular Fourier transform, Eq. (11), becomes the equally spaced double sum. For a smooth 2π2\pi-periodic integrand this sum is exact for every Fourier mode below the sampling limit, so the one requirement is Nϕ>2Mmax⁡N_\phi>2M_{\max}. With l=−ml=-m, the two phases combine into eim(α−β)e^{im(\alpha-\beta)}, and for the real integrands of Eq. (2) only its cosine survives. Applying the r′r' rule to Eq. (12) then gives the discrete inner table on the stored grid points,

Gm(Δl,bs;ε)=∑n=1Nr′ωnrn′(2πNϕ)2∑i,j=1Nϕcos⁡(m(αi−βj))G~(Δl,rn′,bs,αi,βj;ε).(31)G_m(\Delta_l,b_s;\varepsilon)=\sum_{n=1}^{N_{r'}}\omega_n r'_n\left(\frac{2\pi}{N_\phi}\right)^2\sum_{i,j=1}^{N_\phi}\cos\left(m(\alpha_i-\beta_j)\right)\widetilde{G}(\Delta_l,r'_n,b_s,\alpha_i,\beta_j;\varepsilon). \tag*{(31)}

The two Hankel transforms of Eq. (13) are discretized by the Filon weight vectors of § 2.4, one axis at a time. The bb axis is transformed first, with rows built on the bb grid at momentum qq, then the Δ\Delta axis, with rows built on the Δ\Delta grid at momentum k1k_1. Substituting the first contraction into the second,

Im(q,k1)=∑l=1NΔwm(Δ),l(k1)∑s=1Nbwm(b),s(q)Gm(Δl,bs;ε).(32)\mathcal{I}_m(q,k_1)=\sum_{l=1}^{N_\Delta}w_m^{(\Delta),l}(k_1)\sum_{s=1}^{N_b}w_m^{(b),s}(q)G_m(\Delta_l,b_s;\varepsilon). \tag*{(32)}

The superscript in parentheses names the grid on which a weight row is built, and the accompanying index (ss on the bb grid, ll on the Δ\Delta grid) labels the grid node. The subscript mm is the Bessel order, common to both transforms by the selection rule of § 2.2. The argument is the momentum at which the row was built. Every weight depends only on its (grid, momentum, order) triple, independent of the dipole and polarization, so the same rows serve both polarizations and every dipole table. Stacking the rows over the momentum grid then turns each of the two sums in Eq. (32) into a matrix product.

The inner table

The product of stage 1 is a pair of real arrays (transverse and longitudinal) of shape (Mmax⁡+1)×NΔ×Nb(M_{\max}+1)\times N_\Delta\times N_b, and ε\varepsilon determines RΔR_\Delta and NΔN_\Delta. The photon splitting wavefunction enters through K0(ε∣r∣)K_0(\varepsilon|r|) and K1(ε∣r∣)K_1(\varepsilon|r|), which vary on the scale 1/ε1/\varepsilon. As ε\varepsilon decreases, K1(εr)K_1(\varepsilon r) rises like 1/(εr)1/(\varepsilon r) toward the origin, and the wavefunction reaches larger ∣r∣|r| before dying off, so resolving it takes many points over a wider range. The bb direction is untouched by ε\varepsilon because the wavefunction depends only on ∣r∣|r| and ∣r′∣|r'|, so the bb profile of the table is set by the quadrupole correlator. The quadrupole falls off slowly at large bb, as seen directly in Figure 4, so the bb grid is sized once for that long tail and reused unchanged for every ε\varepsilon. Here we set Nb=2048N_b=2048 in every production table.

Figure 4. Inner table Gm(Δ,b;ε)G_m(\Delta,b;\varepsilon) for a proton dipole at x=0.01x=0.01 and ε=4\varepsilon=4 GeV, modes m=0m=0, respectively. Each row contains the transverse (left) and longitudinal (right) polarizations. The color scale is symmetric logarithmic.

In production the range depends on ε\varepsilon. We use RΔ=15 GeV−1R_\Delta=15\ \mathrm{GeV}^{-1} at ε≥1 GeV\varepsilon\ge1\ \mathrm{GeV}, growing to RΔ=107 GeV−1R_\Delta=107\ \mathrm{GeV}^{-1} at the smallest production value ε=0.1 GeV\varepsilon=0.1\ \mathrm{GeV}. The Δ\Delta grid is uniform for ε≥1 GeV\varepsilon\ge1\ \mathrm{GeV}; for ε<1 GeV\varepsilon<1\ \mathrm{GeV} it uses the quadratic map Δj=RΔ[j/(NΔ−1)]2\Delta_j = R_\Delta[j/(N_\Delta- 1)]^2, which concentrates points near Δ=0\Delta= 0. The point count follows the range as NΔ=⌈200RΔ/(15 GeV−1)⌉N_\Delta= \lceil200\sqrt{R_\Delta/(15\ \mathrm{GeV}^{-1})} \rceil, giving NΔ=200N_\Delta= 200 at the reference range and NΔ=535N_\Delta= 535 at ε=0.1\varepsilon= 0.1 GeV.1 The r′r' integral widens and deepens alongside, Rr′=60→100R_{r'} = 60 \to100 GeV−1^{-1} and Nr′=256→384N_{r'} = 256 \to384, which raises the build cost but not the table size.

The resulting table size follows directly. With Mmax⁡=31M_{\max} = 31 and Nb=2048N_b = 2048, the pair of arrays occupies disk storage about 0.2 GB at ε≥1\varepsilon\ge1 GeV and about 0.6 GB at ε=0.1\varepsilon= 0.1 GeV. The table is held in system memory and archived on disk as a plain-text table, one row per (m,Δ,b)(m,\Delta,b) entry with a small metadata file alongside. The text storage inflates the raw numbers roughly tenfold, so the largest production tables reach about 5 GB each on disk. The table is momentum-free, so angular modes of the cross section on a new momentum grid require only stage 2 to be rerun. A production set nevertheless spans many (x,ε)(x,\varepsilon) combinations at gigabytes each, and this storage burden is one of the motivations for the fused implementation of § 4.4, which produces the angular modes without ever materializing the table.

Profile

The wall time splits cleanly between the two stages. Table 1 reports the measured breakdown. All ε≥1\varepsilon\ge1 GeV share the same grid (NΔ=200N_{\Delta}=200, Nr′=256N_{r'}=256) and therefore the same cost, so a single measurement suffices.

ε\varepsilon [GeV]NΔN_{\Delta}Nr′N_{r'}stage 1 (16 cores)stage 2total
≥1\geq120025619 943 s (5.5 h)26 s5.5 h
0.1 (scaled)53538480 022 s (22 h)69 s22 h

Table 1. Wall-time breakdown of the CPU reference implementation on 16 cores (Nb=2048N_b = 2048, Nϕ=64N_{\phi} = 64, Mmax⁡=31M_{\max} = 31, proton dipole at x=0.01x = 0.01, measured on 16 cores of a 20-core desktop).

The ε=0.1\varepsilon= 0.1 GeV row is scaled from the measured per-point cost, which is constant per r′r' node and per bb-chunk across ε\varepsilon. Only the time that needed to start the worker processes is not scaled.

Convergence and validation

Three convergence properties are checked. First, the angular mode sum of § 2.2 must saturate. The accumulated partial sum ∑m=0M\sum_{m=0}^{M} at fixed (q,k1)(q, k_1) should flatten well before M=Mmax⁡M = M_{\max}. Figure 2 demonstrates this for representative momenta.

Figure 2. Convergence of the angular mode sum MM for the proton dipole at x=0.01x = 0.01. The accumulated sum at q=2q = 2 GeV, k1=5k_1 = 5 GeV is normalized by its converged value with Mmax⁡=31M_{\max} = 31, for five momentum angles θq\theta_q and three photon scales ε\varepsilon, quoted in GeV (transverse polarization). The horizontal axis is linear up to angular mode sum M=8M = 8 and logarithmic beyond.

Figure 2 establishes angular convergence at representative points, but the default CPU production resolution, Nϕ=64N_{\phi} = 64 and Mmax⁡=31M_{\max} = 31, does not resolve the entire small-ε\varepsilon region. At ε=0.5\varepsilon= 0.5 GeV, some production-grid points retain significant high-mode contributions and can even yield a negative truncated angular reconstruction. Resolving them requires increasing both the angular sampling and the retained mode count. Because the dominant stage-1 work scales as Nϕ2N_{\phi}^{2}, increasing NϕN_{\phi} from 64 to 256 multiplies the angular work by sixteen. Applied to the multi-hour and day-scale CPU costs in Table 1, such a convergence study would require an unreasonable amount of CPU time. This computational limitation is one of the motivations for the GPU implementation.

We therefore defer the demanding small-ε\varepsilon test to § 4.3, after the GPU algorithm and its agreement with the CPU reference have been established. There we use the GPU to reach Nϕ=256N_{\phi}=256 and Mmax⁡=127M_{\max}=127 in a practical wall time and show explicitly that the same algorithm recovers a stable, positive result once sufficient angular resolution is supplied.

Second, the Filon weight contraction must converge with the grid. At fixed momentum and mode, the transform computed on progressively finer grids (or with increasing fit degree) should settle to a stable value. Figure 3 shows the relative change as a function of grid refinement.

Convergence plots of the Filon contraction versus b-grid refinement for modes $m=0$, $m=5$, and $m=10$, with curves for $q=2\,\mathrm{GeV}$, $q=5\,\mathrm{GeV}$, and $q=9\,\mathrm{GeV}$

Figure 3. Convergence of the Filon weight contraction with bb-grid refinement for the proton table at x=0.01x=0.01 and ε=4\varepsilon=4 GeV. The curves show the relative deviation of Im(q,k1=5 GeV)\mathcal{I}_{m}(q,k_{1}=5\ \mathrm{GeV}) from the full-grid (Nb=2048N_{b}=2048) result, for modes m=0,5,10m=0,5,10 and momenta q=2,5,9q=2,5,9 GeV. The coarse grids keep every 16th to every 2nd node; the finest grids remove every 4th to every 256th node, always keeping the endpoint so the integration range is unchanged. At Nb=2048N_{b}=2048 the deviation is identically zero by construction.

Third, the inner table and the final cross sections are inspected visually. Figure 4, and Figure 5 shows a heatmap of the inner table for a proton dipole, and Figure 6 shows slices of the resulting cross sections.

Figure 5. Inner table Gm(Δ,b;ε)G_m(\Delta,b;\varepsilon) for a proton dipole at x=0.01x=0.01, ε=4\varepsilon=4 GeV, and modes m=1m=1, respectively. Each row contains the transverse (left) and longitudinal (right) polarizations. The color scale is symmetric logarithmic.

Figure 6. Cross sections for a proton dipole at x=0.01x = 0.01, ε=4\varepsilon= 4 GeV in the transverse polarization. The folded mode sum ∣I(q,k1,θq)∣|I(q,k_1,\theta_q)| is plotted against k1k_1 at fixed q=2,5,9q = 2,5,9 GeV for three momentum angles on a log scale. The sharp dips are deep cancellation minima rather than zero crossings. The mode sum remains positive at every plotted point.

This reference implementation is the baseline against which all GPU implementations are checked. The following sections make the build itself fast by moving it to the GPU.

The GPU implementations

Two GPU implementations are presented below. Both leave the mathematics of the preceding sections untouched and use the same reduction, Filon weight vectors, and guarded integrand. The first (§ 4.1) keeps the two-stage structure of § 3 exactly and ports stage 1, which carries essentially all the cost, to CUDA for speed; the inner table remains a stored, reusable object. The second (§ 4.4) goes one step further and removes the stage boundary itself: the Hankel contraction is a linear sum over table entries, so it can be applied to each piece of the table as that piece is computed, and the full table never needs to exist. The three-transform case developed later requires this capability.

The CUDA table builder

The first GPU implementation is designed for speed. It computes the same inner table as § 3.2 and uses the same stage 2: that stage performs the weight contraction of Eq. (32) and runs on either processor. What changes is how stage 1 evaluates its 4×10114 \times10^{11} integrand samples. Two ideas provide the speedup.

First, the special functions are tabulated before the GPU calculation. Every transcendental ingredient is precomputed on the CPU as interpolation coefficients and evaluated on the GPU by polynomial interpolation. The first table stores ln⁡S(r)\ln S(r) on a uniform grid and is exact for the GBW dipole, whose ln⁡S\ln S is a parabola in rr. The regular combinations xK0(x)xK_0(x) and xK1(x)xK_1(x) (finite at x=0x=0, where K0K_0 and K1K_1 themselves diverge) are stored in two additional tables. The tables are sized so that the lookup error is negligible compared to double precision.

Second, each factor of the integrand is computed only on the set of variables it actually depends on, instead of being recomputed at every point of the four-dimensional block. A naive kernel evaluates everything on (Δ,r′,α,β)(\Delta, r', \alpha, \beta) for every bb; here four custom kernels split the work as shown in Table 2.

kerneldepends onfrequencycomputes
wavefunction(Δ,r′,α)(\Delta, r', \alpha)per Δ\Delta-chunk∣r∣=∣Δ+r′∣|r| = |\Delta+ r'|, K0(ϵ∣r∣)K_0(\epsilon|r|), K1(ϵ∣r∣)K_1(\epsilon|r|) via table lookup; S(r)S(r′)=eln⁡S(r)+ln⁡S(r′)S(r)S(r') = e^{\ln S(r)+\ln S(r')}
S(∣Δ+b∣)S(b)S(|\Delta+ b|)S(b)(Δ,α,β)(\Delta, \alpha, \beta)per bbln⁡S(∣Δ+b∣)\ln S(|\Delta+ b|) and ln⁡S(b)\ln S(b); their sum and its exponential S(∣Δ+b∣)S(b)S(|\Delta+ b|)S(b)
ln⁡S(∣b−r′∣)\ln S(|b-r'|)(Δ,r′,β)(\Delta, r', \beta)per bbln⁡S(∣b−r′∣)\ln S(|b-r'|)
final S(4)S^{(4)} assembly(Δ,r′,α,β)(\Delta, r', \alpha, \beta)per bbln⁡S(∣r+b∣)\ln S(|r+b|), NN, DD, and S(4)=−NS(r)S(r′)exprel⁡(−D)S^{(4)}=-N S(r)S(r')\operatorname{exprel}(-D)

Table 2. Kernel decomposition of stage 1 on the GPU. The first three kernels evaluate factors reused in the final assembly of S(4)S^{(4)}.

The only correlator evaluated is S(4)S^{(4)}, whose logarithmic combinations are

N=ln⁡S(∣r+b∣)+ln⁡S(∣b−r′∣)−ln⁡S(∣Δ+b∣)−ln⁡S(b),D=ln⁡S(r)+ln⁡S(r′)−ln⁡S(∣Δ+b∣)−ln⁡S(b).(33)\begin{aligned} N &= \ln S(|r+b|) + \ln S(|b-r'|) - \ln S(|\Delta+b|) - \ln S(b),\\ D &= \ln S(r) + \ln S(r') - \ln S(|\Delta+b|) - \ln S(b). \tag*{(33)} \end{aligned}

The products S(r)S(r′)S(r)S(r') and S(∣Δ+b∣)S(b)S(|\Delta+b|)S(b), together with ln⁡S(∣b−r′∣)\ln S(|b-r'|), are evaluated on smaller domains and reused. The remaining term ln⁡S(∣r+b∣)\ln S(|r+b|) completes NN and depends on the full (Δ,r′,α,β)(\Delta, r', \alpha, \beta) block at fixed bb, so the ratio N/DN/D and the guarded result S(4)=−NS(r)S(r′)exprel⁡(−D)S^{(4)}=-N S(r)S(r')\operatorname{exprel}(-D) are assembled only on that full block. This split avoids recomputing the reusable factors at every point. The angular projection then uses one dense matrix product per bb, followed by the weighted r′r' contraction.

This decomposition is specific to the DIS dijet integrand of Eq. (2); a different observable would require its own kernel split, because the factorization exploits the particular dependence of the wavefunction and correlator on the integration variables.

Memory is scheduled around a GPU memory budget: the Δ\Delta axis is cut into chunks, and the two integrand buffers dominate, occupying about 2×8Nr′Nϕ2≈172 \times8 N_{r'}N_{\phi}^{2} \approx17 MB per Δ\Delta row at production sizes. Each finished bb column of the projected table is copied to system memory when complete. The assembled table is stored in system memory and archived exactly as in § 3.2: it remains momentum-free and reusable, but is produced faster. Algorithm 2 gives the pseudocode, and Figure 7 shows the workflow; the stage separation of Figure 1 is unchanged.

Workflow diagram showing Stage 1 builds $G_m$, the inner table, and Stage 2 Hankel transforms: dipole $S(r)$; CPU preparation of the $\ln S$ spline-coefficient table, $xK_0/xK_1$ tables, $r'$ rules, angular mode matrix; wavefunction kernel on $(\Delta,r',\alpha)$, $K_0$, $K_1$ lookups, $S(r)S(r')$; evaluate reusable $b$-dependent factors of {xref}`Eq. (33)`; evaluate $S^{(4)}=-N S(r)S(r')\operatorname{exprel}(-D)$ on the 4-D block; angular projection (cuBLAS) + $r'$ contraction; copy finished $b$ column to system memory; inner table momentum-free $G_m(\Delta,b;\varepsilon)$, system memory + plain-text archive, as in {xref}`Sec. 3.2`; $b$- and $\Delta$-Hankel weight contractions, {xref}`Eq. (32)` (CPU or GPU); momentum grids $(q,k_1)$; $\mathcal{I}_m(q,k_1)$, both polarizations.

Figure 7. Workflow of the CUDA table builder. Dark rounded boxes are CUDA stages; all other conventions are as in Figure 1. The two-stage structure and the inner table between the stages are unchanged from the CPU implementation; only the production of the table moves to the GPU.

Algorithm 2 The CUDA table builder. Stage 2 is unchanged from Algorithm 1; only the production of the inner table moves to the GPU.

Stage 1 builds the inner table with CUDA.

  1. prepare the grids, angular mode matrix, and r′r' rules on the CPU; spline-coefficient tables for ln⁡S\ln S, xK0xK_0, xK1xK_1; upload to the GPU

  2. for all Δ\Delta-chunks (GPU memory budget) do

  3. wavefunction kernel on (Δ,r′,α)(\Delta,r',\alpha) evaluates K0K_0, K1K_1 lookups, S(r)S(r′)S(r)S(r')

  4. for each of the NbN_b bb values do

  5. evaluate the reusable bb-dependent factors of Eq. (33)

  6. evaluate S(4)=−NS(r)S(r′)exprel⁡(−D)S^{(4)}=-N S(r)S(r')\operatorname{exprel}(-D) on (Δ,r′,α,β)(\Delta,r',\alpha,\beta) after the remaining ln⁡S\ln S lookup

  7. angular projection (dense matrix product); r′r' contraction

  8. copy the finished bb column to system memory

  9. end for

  10. end for

Inner table Gm(Δ,b;ε)G_m(\Delta,b;\varepsilon) resides in system memory and is archived on disk.

Stage 2 performs the Hankel transforms as in Algorithm 1 (CPU or GPU).

Kernel profiling and wall-time breakdown

The decomposition of Table 2 keeps the final S(4)S^{(4)} assembly compute-bound rather than memory-bound; this is the only stage that touches the full four-dimensional block. Table 3 reports the hardware metrics measured by NVIDIA Nsight Compute for the five kernels at production grid sizes. The streaming multiprocessor (SM) and dynamic random-access memory (DRAM) entries are the achieved percentages of the corresponding limits [31]. An SM value between 83 and 95 percent means that the processing resources are already operating near their sustained limit, while a DRAM value between 5 and 11 percent means that global-memory bandwidth remains far from saturation. In the Roofline interpretation, the large separation between these values identifies a compute-bound regime rather than a memory-bound one [32, 33]: the available memory bandwidth is therefore sufficient, and the limiting factor is the hardware’s compute capacity.

kernelbottleneckSM [%]DRAM [%]occupancy [%]
wavefunctioncompute871197
S(∣Δ+b∣)S(b)S(\lvert\Delta+b\rvert)S(b)compute83893
ln⁡S(∣b−r′∣)\ln S(\lvert b-r'\rvert)compute86894
final S(4)S^{(4)} assemblycompute871096
angular projection (cuBLAS)compute95516

Table 3. Kernel profiling with NVIDIA Nsight Compute on an RTX 3090 at production grid sizes (ε=4\varepsilon= 4 GeV). SM and DRAM columns report the fraction of peak sustained throughput; all five kernels are compute-bound.

Table 4 reports the end-to-end wall time for one inner-table build on two GPUs. The NVIDIA RTX 3090 has a 1/64 FP64 rate, while the NVIDIA A800 has a full FP64 rate.2 The breakdown into stage 1 and stage 2 is reported separately.

GPUε\varepsilon [GeV]stage 1stage 2total
RTX 30904.0167 s20 s186 s
RTX 30900.1666 s24 s691 s
A8004.023 s40 s62 s
A8000.174 s48 s122 s

Table 4. Wall-time breakdown for one inner-table build on an RTX 3090 and an A800. Proton dipole at x=0.01x = 0.01. Only the stage-1 times are stable GPU measurements; stage 2 is dominated by the CPU construction of the Filon weight rows, so it reflects the CPU rather than the GPU and varies with CPU load. In production the weight rows are built once per ε\varepsilon and reused for every dipole, so the stage-2 cost is amortized.

The percentages in Table 3 are normalized to the RTX 3090’s own peak rates and do not represent the same absolute throughput on different GPUs. Stage 1 is dominated by double-precision arithmetic and is compute-bound, so the A800 accelerates this stage by providing much more FP64 throughput, which is the resource that limits the calculation. Table 4 shows this directly: the stage-1 time decreases from 167 to 23 seconds at ε=4\varepsilon= 4 GeV and from 666 to 74 seconds at ε=0.1\varepsilon= 0.1 GeV, corresponding to speedups of about 7.3 and 9.0. Stage 2 does not follow this trend because its time is set mainly by the CPU construction of the Filon weights.

Figure 8 closes the loop on correctness: the folded cross sections produced by the GPU table path lie on top of the CPU reference across momenta and angles, including through the deep cancellation minima of the log panels. The small residual discrepancies can be partially attributed to the improved treatment of the r′r^\prime integral in the GPU path relative to the CPU reference.

Figure 8. Cross sections from the GPU table builder (open triangles, every third momentum point) overlaid on the CPU reference implementation (lines) for the proton dipole at x=0.01x = 0.01 and ε=4\varepsilon= 4 GeV in the transverse polarization. The quantity ∣I(q,k1,θq)∣|I(q, k_1, \theta_q)| is plotted against k1k_1 at three fixed values of qq for three momentum angles on a log scale.

Figure 9 quantifies the same CPU–GPU agreement at the discrete GPU marker positions. The largest relative errors occur near the deep cancellation minima, where the CPU reference in the denominator becomes small.

Figure 9. Pointwise relative error corresponding to Figure 8, defined as δrel=∣IGPU∣−∣ICPU∣∣ICPU∣\delta_{\mathrm{rel}} = \frac{|I_{\mathrm{GPU}}| - |I_{\mathrm{CPU}}|}{|I_{\mathrm{CPU}}|}. Only the GPU marker positions shown in Figure 8 (every third k1k_1 point) are used, and the curves connect these sampled values. The three panels use the same fixed qq values and the colors and line styles denote the same momentum angles θq\theta_q; both axes are logarithmic.

High-resolution angular convergence

The comparison in Figure 8 establishes that the GPU implementation reproduces the CPU reference at the default production resolution. Its speed also makes it possible to increase the angular resolution far beyond what is practical in the CPU study. We now return to the small-ε\varepsilon limitation identified in § 3.4 and use the GPU to test whether the apparent failure is a truncation effect or a failure of the algorithm itself.

For the proton dipole at x=0.01x = 0.01 and ε=0.5\varepsilon= 0.5 GeV, replaying the angular scan at the default Nϕ=64N_{\phi} = 64, Mmax⁡=31M_{\max} = 31 resolution identifies an unconverged point at q=4.47q = 4.47 GeV, k1=4.51k_1 = 4.51 GeV, whose longitudinal result is most negative at θ∗=0.17π\theta_* = 0.17\pi. Figure 10 shows the complete k1k_1 slice through this value of qq. The GPU calculation permits us to repeat the same calculation at Nϕ=128N_{\phi} = 128, Mmax⁡=64M_{\max} = 64 and at the alias-safe resolution Nϕ=256N_{\phi} = 256, Mmax⁡=127M_{\max} = 127. As the angular resolution and retained mode count increase, the calculation progressively approaches the converged result: the 128/64 result is already substantially improved, while the 256/127 result recovers a positive angular minimum at the selected point.

Figure 10. Angular-resolution stress test for the proton dipole at x=0.01x = 0.01, ε=0.5 GeV\varepsilon= 0.5\,\mathrm{GeV}, and q=4.47 GeVq = 4.47\,\mathrm{GeV}. The upper row shows the longitudinal mode sum as a function of k1k_1 at the fixed angle θ∗=0.17π\theta_* = 0.17\pi, where the selected default point is negative. The lower row shows, independently at each k1k_1, the smallest value over a dense 512-point scan of 0≤θq≤π0 \leq\theta_q \leq\pi; hence the minimizing angle need not be the same at different k1k_1. The default Nϕ=64N_\phi= 64, Mmax⁡=31M_{\max} = 31 result is compared with Nϕ=128N_\phi= 128, Mmax⁡=64M_{\max} = 64 (left) and Nϕ=256N_\phi= 256, Mmax⁡=127M_{\max} = 127 (right). Red points mark unconverged data in the default calculation.

The recovery is seen more directly by following the partial mode sum at the selected point. Figure 11 retains its sign and therefore displays both the oscillatory approach and the zero crossings. The default truncation terminates on the negative branch, whereas the finer angular FFT supplies the additional modes needed to reach the stable positive result. The Nϕ=256N_\phi= 256 calculation is performed only once, through Mmax⁡=127M_{\max} = 127. All intermediate cutoffs shown are partial sums of this same saved set of angular modes.

Figure 11. Signed angular partial sums at the selected unconverged point q=4.47 GeVq = 4.47\ \mathrm{GeV}, k1=4.51 GeVk_1 = 4.51\ \mathrm{GeV}, and θq=0.17π\theta_q = 0.17\pi, for transverse (top) and longitudinal (bottom) polarization. The default Nϕ=64N_\phi= 64, Mmax⁡=31M_{\max} = 31 curve is compared with the refined Nϕ=128N_\phi= 128, Mmax⁡=64M_{\max} = 64 and Nϕ=256N_\phi= 256, Mmax⁡=127M_{\max} = 127 calculations. The circles on the high-resolution curve mark M=64,80,90,100,110,M = 64, 80, 90, 100, 110, and 127127.

Taking the absolute value exposes the tail over several orders of magnitude. Figure 12 shows that the oscillations damp and the result reaches a plateau. At the selected angle, the longitudinal partial sum at M=110M = 110 differs from the M=127M = 127 result by 8.0×10−58.0 \times10^{-5} in relative terms. The GPU calculation therefore shows that the small-ε\varepsilon failure at the default resolution is purely an angular-truncation effect: the algorithm recovers the fully converged result once sufficient resolution is supplied.

Figure 12. Absolute values of the same partial sums as in Figure 11, shown on a logarithmic vertical scale. The decay of the longitudinal oscillations and the common high-MM plateau make the convergence of the refined angular calculation explicit.

Computing the transforms without storing the inner table

The dijet calculation can afford to store Gm(Δ,b;ε)G_m(\Delta,b;\varepsilon) because this table has only two coordinate indices and one angular-mode index, and remains smaller than one gigabyte. The three-transform calculation discussed in § 1 would add another coordinate index and another mode index; its table would be larger by orders of magnitude, and a separate table would be required for every combination of Bjorken xx and ε\varepsilon. We therefore construct the transformed result without storing the inner table. The dijet calculation provides a setting in which this method can be tested before it is used for the three-transform case.

The starting point is an observation about Eq. (32): both Hankel transforms are linear sums over table entries, so nothing requires the table to be complete before the sums begin. Split the contraction into its two steps,

Hm(q,Δl)=∑s=1Nbwm(b),s(q)Gm(Δl,bs;ε),Im(q,k1)=∑l=1NΔwm(Δ),l(k1)Hm(q,Δl),(34)\begin{aligned} H_m(q,\Delta_l) &= \sum_{s=1}^{N_b} w_m^{(b),s}(q)G_m(\Delta_l,b_s;\varepsilon),\\ \mathcal{I}_m(q,k_1) &= \sum_{l=1}^{N_\Delta} w_m^{(\Delta),l}(k_1)H_m(q,\Delta_l), \tag*{(34)} \end{aligned}

and evaluate the first line as the values of GmG_m are constructed: a small set of GmG_m values is multiplied by the bb weights and added to HH, and those values are then discarded. After all bb values have been included, the Δ\Delta weights are applied to HH to obtain Im\mathcal{I}_m. The full inner table is never formed or saved. This changes only the order of the additions, so the two implementations agree within rounding errors (Table 6).

Table 6. Agreement between the two GPU paths at production grid sizes. Both paths compute the angular modes Im(q,k1)\mathcal{I}_m(q, k_1) of the cross section for the proton dipole at x=0.01x = 0.01 on identical 48×4848 \times48 momentum grids with geometrically spaced qq, k1∈[1,25]k_1 \in[1, 25] GeV. The table builder stores the full inner table and contracts it with the Filon weights afterwards. The fused path contracts on the fly with the r′r' sum folded into the build kernel. Quoted are the largest absolute and relative entry-wise differences over all 48×48×3248 \times48 \times32 angular modes and both polarizations.

ε\varepsilon [GeV]GPUmax abs diffmax rel diff
4.0RTX 30902×10−182 \times10^{-18}6×10−56 \times10^{-5}
0.1RTX 30904×10−134 \times10^{-13}7×10−47 \times10^{-4}
4.0A8003×10−183 \times10^{-18}7×10−57 \times10^{-5}
0.1A8001×10−121 \times10^{-12}7×10−47 \times10^{-4}

The grids, the r′r' integration rules, the angular-mode matrix, the Bessel values, and the Filon weights are the same for every dipole at fixed ε\varepsilon, and are therefore computed once; a new dipole requires only its ln⁡S\ln S spline coefficients. The momenta qq and k1k_1 must be chosen when the Filon weights are computed, so changing these momenta requires repeating the calculation. This is the price of avoiding the stored table, which could otherwise be transformed again at new momenta.

Figure 13 shows the calculation. It is repeated over the Δ\Delta grid, and the bb values are handled one at a time. For each bb, S(4)S^{(4)} is evaluated and summed over r′r' in the same step, so the result depends only on (Δ,α,β)(\Delta,\alpha,\beta) and is projected directly onto the angular modes; multiplication by the bb weights then adds this contribution to HH. After all bb values have been included, the Δ\Delta weights give Im(q,k1)\mathcal{I}_m(q,k_1). The full (Δ,r′,α,β)(\Delta,r',\alpha,\beta) integrand is never stored. At any point, the calculation stores only the current intermediate values, HH of order 10 MB, and the final result of a few MB; only the final result is copied from the GPU. The output contains about 1.5×1051.5 \times10^5 rows instead of a table several gigabytes in size.

Flowchart of evaluation without storing the inner table

Figure 13. Evaluation without storing the inner table. Each contribution is summed over r′r^\prime and transformed as it is evaluated. Only the finished result is copied from the GPU.

Fused profiling and correctness

Table 5 reports the total wall time of the fused implementation alongside the table-builder path of § 4.1 at the same ε\varepsilon and GPU. Because the fused path replays the same build kernels for the dipole correlator, any difference in total time reflects the cost of the incremental weight contraction versus the cost of writing and later reading the full table; the two are expected to be comparable.

Table 5. Wall time of the fused implementation vs the two-stage table builder on the same GPU and grid, proton dipole at x=0.01x = 0.01. The fused time is end-to-end and includes building the Filon weight rows. It is to be compared with the sum of the two table-builder stages. As in Table 4, stage 2 and the weight-construction part of the fused path are CPU-bound.

GPUε\varepsilon [GeV]table builderfused
stage 1stage 2
RTX 30904.0167 s20 s149 s
RTX 30900.1666 s24 s279 s
A8004.023 s40 s49 s
A8000.174 s48 s84 s

Because the fused path folds the r′r' sum into the build kernel and processes one bb node at a time, the order in which the same finite sums are accumulated differs from that of the table builder. Table 6 reports the maximum absolute and relative differences between the fused and table-builder angular modes of the cross section Im(q,k1)\mathcal{I}_m(q, k_1) across all modes, momenta, and both polarizations.

The six-dimensional Fourier transform

The dijet computation in the previous sections uses only two of the three sequential Hankel transforms, appropriate for the leading-order deep-inelastic-scattering process. This section presents the algorithm for the general case and validates it on an analytic family. Its production deployment is deferred to forthcoming next-to-leading-order proton–nucleus applications, where the third momentum is physical. The general problem attaches an independent momentum to each of the three working variables,

F(k,p,q)=∫d2Δ d2r′ d2b e+i(k⋅Δ+p⋅r′+q⋅b) G(Δ,r′,b,α,β),(35)\mathcal{F}(\mathbf{k},\mathbf{p},\mathbf{q}) = \int\mathrm{d}^{2}\Delta\,\mathrm{d}^{2}r'\,\mathrm{d}^{2}b\,e^{+i(\mathbf{k}\cdot\Delta+\mathbf{p}\cdot r'+\mathbf{q}\cdot b)}\,\mathcal{G}(\Delta,r',b,\alpha,\beta), \tag*{(35)}

which is a genuinely six-dimensional Fourier transform, evaluated as three sequential Hankel transforms. The fused implementation of § 4.4 was designed for precisely this case: the momentum-free intermediate now carries three coordinate axes and two mode indices, far too large to store per Bjorken-xx and ε\varepsilon, so only the fused path is viable. The algorithm does not require a specific form of G\mathcal{G}. We test it below with an integrable function whose transform is known exactly.

Angular reduction with three phases

The angular reduction proceeds as in § 2.2, but with three phases the integral over the global angle now enforces m1+m2+m3=0m_1+m_2+m_3=0, so only two signed mode indices survive. Storing the pair (m,n)(m,n) for the Δ\Delta- and bb-angle modes fixes the r′r' order to −(m+n)-(m+n), and with k\mathbf{k} chosen along the xx axis,

Cmn(Δ,r′,b)=1(2π)2∫02π∫02πe+i(mα+nβ)G dα dβ,C_{mn}(\Delta,r',b)=\frac{1}{(2\pi)^2}\int_{0}^{2\pi}\int_{0}^{2\pi}e^{+i(m\alpha+n\beta)}\mathcal{G}\,\mathrm{d}\alpha\,\mathrm{d}\beta,
Amn(k,p,q)=∫0∞∫0∞∫0∞Δ r′ b Jm(kΔ)J−(m+n)(pr′)Jn(qb) Cmn dΔ dr′ db,A_{mn}(k,p,q)=\int_{0}^{\infty}\int_{0}^{\infty}\int_{0}^{\infty}\Delta\,r'\,b\,J_m(k\Delta)J_{-(m+n)}(pr')J_n(qb)\,C_{mn}\,\mathrm{d}\Delta\,\mathrm{d}r'\,\mathrm{d}b,
F=(2π)3∑m,ne−i[−(m+n)φp+nφq]Amn(k,p,q),(36)\mathcal{F}=(2\pi)^3\sum_{m,n}e^{-i[-(m+n)\varphi_p+n\varphi_q]}A_{mn}(k,p,q), \tag*{(36)}

where φp\varphi_p, φq\varphi_q are the momentum azimuths. All three phases carry +i+i, and the powers of ii from the three Bessel expansions cancel identically in this combination.

Streaming the three-transform contraction

The coefficient Cmn(Δ,r′,b)C_{mn}(\Delta,r',b) is too large to store on the full coordinate grid. Instead, G\mathcal{G} is evaluated for a subset of the Δ\Delta grid and successive bb values; for each bb, the angular dependence is projected onto (m,n)(m,n) and the bb sum is performed immediately. The r′r' and Δ\Delta sums are then applied in sequence,

Hmn(q,Δ,r′)=∑swn(b),s(q) Cmn(Δ,r′,bs),Kmn(q,p;Δ)=∑iw−(m+n)(r′),i(p) Hmn(q,Δ,ri′),Amn(k,p,q)=∑lwm(Δ),l(k) Kmn(q,p,Δl).(37)\begin{aligned} H_{mn}(q,\Delta,r') &= \sum_s w_n^{(b),s}(q)\,C_{mn}(\Delta,r',b_s),\\ K_{mn}(q,p;\Delta) &= \sum_i w_{-(m+n)}^{(r'),i}(p)\,H_{mn}(q,\Delta,r'_i),\\ A_{mn}(k,p,q) &= \sum_l w_m^{(\Delta),l}(k)\,K_{mn}(q,p,\Delta_l). \tag*{(37)} \end{aligned}

So the full coefficient Cmn(Δ,r′,b)C_{mn}(\Delta,r',b) is not stored. If HH is too large for the full qq grid, the same calculation is performed for successive groups of qq values. For a real integrand, A−m,−n=Amn∗A_{-m,-n}=A^*_{mn}, so only m≥0m \ge0 is computed and the remaining modes are reconstructed by this symmetry. Algorithm 3 summarizes the calculation.

Algorithm 3 The fully fused three-momentum calculation.

  1. build the three Filon weight families wn(b)(q)w_n^{(b)}(q), w−(m+n)(r′)(p)w_{-(m+n)}^{(r')}(p), and wm(Δ)(k)w_m^{(\Delta)}(k)

  2. for all successive groups of qq values do

  3. &nbsp;&nbsp;&nbsp;&nbsp;for all successive subsets of the Δ\Delta grid do

  4. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set H=0H=0

  5. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for each bb value do

  6. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;evaluate G(Δ,r′,b,α,β)\mathcal{G}(\Delta,r',b,\alpha,\beta)

  7. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;project onto (m,n)(m,n) and add the bb-weighted result to HH

  8. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end for

  9. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;apply the r′r' weights to HH to obtain KK

  10. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;apply the Δ\Delta weights to KK and add the result to AA

  11. &nbsp;&nbsp;&nbsp;&nbsp;end for

  12. end for

Angular projection at each coordinate point

At each (Δ,r′,b)(\Delta,r',b) point, G\mathcal{G} is sampled on the Nϕ×NϕN_{\phi} \times N_{\phi} angular grid. The coefficients CmnC_{mn} are obtained by first summing over α\alpha and then over β\beta, retaining only the required values of (m,n)(m,n). Each coefficient is multiplied by its bb weight and added directly to HH in Eq. (37); the r′r' and Δ\Delta weights are then applied to obtain AmnA_{mn}. This is the calculation stated in Algorithm 3.

Validation against an analytic Gaussian family

We test the algorithm with the integrable function

Gtest=exp⁡(−aΔ2−b0r′2−cb2+g1Δr′cos⁡α+g2r′bcos⁡β+g3Δbcos⁡(α−β))(38)\mathcal{G}_{\mathrm{test}} = \exp\left(-a\Delta^2-b_0r'^{2}-cb^2+g_1\Delta r'\cos\alpha+g_2r'b\cos\beta+g_3\Delta b\cos(\alpha-\beta)\right) \tag*{(38)}

where the constants are chosen so that the quadratic form is positive definite, and whose six-dimensional Fourier transform is known analytically. We use Mmax⁡=25M_{\max}=25, Nϕ=64N_{\phi}=64, and 320 nodes on [0,10][0,10] GeV−1^{-1} for each radial coordinate. The numerical and exact results agree to better than 4×10−64\times10^{-6} at every point in Figure 14, verifying the angular projection, the three Hankel transforms, and the final sum over angular modes.

Figure 14. Analytical (lines) and our numerical (open triangle points) results of the Eq. (36) for the test function in Eq. (38), shown as a function of kk at p=0.8p=0.8 GeV and q=1.2q=1.2 GeV for three angle pairs.

Outlook for physical applications

We have not yet applied the three-transform algorithm to a specific physical process. The correlators and kinematic factors depend on the chosen process and determine both the coordinate grids and the GPU calculation. We leave this application in the next-leading order p-A CGC calculations and its performance study to future work.

Conclusion

We have developed a Filon-based algorithm for the nested two-dimensional Fourier transforms that arise from multi-Wilson-line correlators in Color Glass Condensate calculations, and validated it through an incremental sequence of implementations. Starting from the deep inelastic scattering dijet cross section without the correlation-limit approximation, we showed that the exprel identity of Eq. (5) removes the numerical instability of the quadrupole correlator near the codimension-one surface where the naive parametrization takes the form 0/0, and that a Filon-type quadrature converts each oscillatory Hankel transform into a precomputed weight vector, turning the full transform chain into a sequence of matrix products. Each mathematical reduction and each numerical step was validated before being carried into the next implementation. The CPU reference implementation of § 3 was checked against direct convergence tests in the angular mode number and the Filon grid, the CUDA table builder of § 4.1 was checked against the CPU reference, and the fused GPU implementation of § 4.4 was checked against the table-based path. The resulting calculation evaluates the DIS dijet cross section over the full kinematic range relevant for phenomenology within a practical runtime, reducing the computation from several hours on a multi-core CPU to on the order of one to two minutes on a single commercial GPU.

The experience gained from this staged development, encapsulated in Algorithms 1–3, allowed us to generalize the method to three sequential two-dimensional Fourier transforms. Because the corresponding momentum-free intermediate would be too large to store for a realistic range of Bjorken-xx and ε\varepsilon values, this general algorithm is implemented directly in the fused, streaming form of § 4.4. We validated the resulting six-dimensional transform against an analytic Gaussian integrand family with a closed-form solution at every stage of the calculation, confirming the angular projection, the three Hankel transforms, and the final reconstruction of the physical result.

The three-transform algorithm has not yet been deployed for a production CGC observable. Different processes involve different combinations of correlators and kinematic prefactors, so each physical application requires its own CUDA kernels, memory layout, and optimization, and a timing measurement obtained with the analytic test function would not be representative of a process-specific calculation. The production coordinate and momentum grids likewise depend on the observable under consideration. We therefore defer the production implementation and performance study to future work on next-to-leading-order proton-nucleus and electron-ion scattering cross sections computed without the back-to-back correlation-limit approximation. The present algorithm and its validated GPU implementation provide a direct foundation for these applications.

Published Code: The CPU, CUDA, and fused GPU implementations described in this paper, together with the scripts used to generate the validation figures, are publicly available at https://github.com/CCNU-CGC-py/FFT_filon.

Acknowledgements

We thank Xiaolong Liu for reviewing the manuscript. This work was supported in part by the Outstanding Leading Talent Team Program of Central China Normal University (XJ2026000302). This work was also supported in part by the 2025 Cross Research Project of the Fundamental Research Funds for the Central Universities of Central China Normal University, “Advanced Detection and Artificial Intelligence at the Frontiers of Physics” (No. 30101250317). C. Y is supported in part by National Natural Science Foundation of China (NSFC) under Grant No. 12547164 and the China Postdoctoral Science Foundation under Grant Number 2025M783388. H. D is partially supported by NSFC under Grant No. 12535010.

References

  1. [1]Y. V. Kovchegov, E. Levin, Quantum Chromodynamics at High Energy, Vol. 33, Oxford University Press, 2013. doi:10.1017/9781009291446.
  2. [2]L. McLerran, The color glass condensate, Nucl. Phys. A 702 (2002) 49–64. doi:10.1016/S0375-9474(02)00688-7.DOI
  3. [3]E. Iancu, R. Venugopalan, The Color glass condensate and high-energy scattering in QCD, 2003, pp. 249–3363. arXiv:hep-ph/0303204, doi:10.1142/9789812795533_0005.
  4. [4]H. Weigert, Evolution at small x(bj): The Color glass condensate, Prog. Part. Nucl. Phys. 55 (2005) 461–565. arXiv:hep-ph/0501087, doi:10.1016/j.ppnp.2005.01.029.
  5. [5]F. Gelis, E. Iancu, J. Jalilian-Marian, R. Venugopalan, The Color Glass Condensate, Ann. Rev. Nucl. Part. Sci. 60 (2010) 463–489. arXiv:1002.0333, doi:10.1146/annurev.nucl.010909.083629.DOI
  6. [6]J. L. Albacete, C. Marquet, Gluon saturation and initial conditions for relativistic heavy ion collisions, Prog. Part. Nucl. Phys. 76 (2014) 1–42. arXiv:1401.4866, doi:10.1016/j.ppnp.2014.01.004.DOI
  7. [7]A. Morreale, F. Salazar, Mining for Gluon Saturation at Colliders, Universe 7 (8) (2021) 312. arXiv:2108.08254, doi:10.3390/universe7080312.DOI
  8. [8]D. Kharzeev, E. Levin, L. McLerran, Jet azimuthal correlations and parton saturation in the color glass condensate, Nucl. Phys. A 748 (2005) 627–640. arXiv:hep-ph/0403271, doi:10.1016/j.nuclphysa.2004.10.031.DOI
  9. [9]C. Marquet, Forward inclusive dijet production and azimuthal correlations in p(A) collisions, Nucl. Phys. A 796 (2007) 41–60. arXiv:0708.0231, doi:10.1016/j.nuclphysa.2007.09.001.DOI
  10. [10]F. Dominguez, B.-W. Xiao, F. Yuan, k_t-factorization for Hard Processes in Nuclei, Phys. Rev. Lett. 106 (2011) 022301. arXiv:1009.2141, doi:10.1103/PhysRevLett.106.022301.DOI
  11. [11]F. Dominguez, C. Marquet, B.-W. Xiao, F. Yuan, Universality of Unintegrated Gluon Distributions at small x, Phys. Rev. D 83 (2011) 105005. arXiv:1101.0715, doi:10.1103/PhysRevD.83.105005.DOI
  12. [12]T. Lappi, H. Mantysaari, Forward dihadron correlations in deuteron-gold collisions with the Gaussian approximation of JIMWLK, Nucl. Phys. A 908 (2013) 51–72. arXiv:1209.2853, doi:10.1016/j.nuclphysa.2013.03.017.DOI
  13. [13]A. Stasto, S.-Y. Wei, B.-W. Xiao, F. Yuan, On the Dihadron Angular Correlations in Forward pA collisions, Phys. Lett. B 784 (2018) 301–306. arXiv:1805.05712, doi:10.1016/j.physletb.2018.08.011.DOI
  14. [14]P. Caucal, Z.-B. Kang, P. Korcyl, F. Salazar, B. Schenke, T. Stebel, R. Venugopalan, W. Zhao, Probing gluon saturation with forward dihadron correlations in proton-nucleus collisions, Phys. Lett. B 879 (2026) 140599. arXiv:2512.21466, doi:10.1016/j.physletb.2026.140599.DOI
  15. [15]T. Altinoluk, A. Kovner, Particle Production at High Energy and Large Transverse Momentum - ’The Hybrid Formalism’ Revisited, Phys. Rev. D 83 (2011) 105004. arXiv:1102.5327, doi:10.1103/PhysRevD.83.105004.DOI
  16. [16]H. Mäntysaari, N. Mueller, F. Salazar, B. Schenke, Multigluon Correlations and Evidence of Saturation from Dijet Measurements at an Electron-Ion Collider, Phys. Rev. Lett. 124 (11) (2020) 112301. arXiv:1912.05586, doi:10.1103/PhysRevLett.124.112301.DOI
  17. [17]A. Kovner, A. H. Rezaeian, Double parton scattering in the color glass condensate: Hanbury-Brown-Twiss correlations in double inclusive photon production, Phys. Rev. D 95 (11) (2017) 114028. arXiv:1701.00494, doi:10.1103/PhysRevD.95.114028.DOI
  18. [18]M. Li, V. V. Skokov, First saturation correction in high energy proton-nucleus collisions. Part III. Ensemble averaging, JHEP 01 (2022) 160. arXiv:2111.05304, doi:10.1007/JHEP01(2022)160.DOI
  19. [19]A. Kovner, V. V. Skokov, Bose enhancement, the Liouville effective action and the high multiplicity tail in p-A collisions, Phys. Rev. D 98 (1) (2018) 014004. arXiv:1805.09296, doi:10.1103/PhysRevD.98.014004.DOI
  20. [20]H. Duan, A. Kovner, V. V. Skokov, CGC for ultra-peripheral Pb+Pb collisions at the Large Hadron Collider: a more realistic calculation, JHEP 12 (2022) 077. arXiv:2208.05000, doi:10.1007/JHEP12(2022)077.DOI
  21. [21]H. Duan, C. Yi, S.-W. Dai, S.-Y. Wei, W. Zhao, L. Zheng, in preparation (2026). arXiv:2026.08xxx.
  22. [22]J. P. Blaizot, F. Gelis, R. Venugopalan, High-energy pA collisions in the color glass condensate approach. 2. Quark production, Nucl. Phys. A 743 (2004) 57–91. arXiv:hep-ph/0402257, doi:10.1016/j.nuclphysa.2004.07.006.DOI
  23. [23]H. Fujii, F. Gelis, R. Venugopalan, Quark pair production in high energy pA collisions: General features, Nucl. Phys. A 780 (2006) 146–174. arXiv:hep-ph/0603099, doi:10.1016/j.nuclphysa.2006.09.012.DOI
  24. [24]A. H. Rezaeian, CGC predictions for p+A collisions at the LHC and signature of QCD saturation, Phys. Lett. B 718 (2013) 1058–1069. arXiv:1210.2385, doi:10.1016/j.physletb.2012.11.066.DOI
  25. [25]G. A. Chirilli, B.-W. Xiao, F. Yuan, Inclusive Hadron Productions in pA Collisions, Phys. Rev. D 86 (2012) 054005. arXiv:1203.6139, doi: 10.1103/PhysRevD.86.054005.DOI
  26. [26]Y. Shi, L. Wang, S.-Y. Wei, B.-W. Xiao, Pursuing the Precision Study for Color Glass Condensate in Forward Hadron Productions, Phys. Rev. Lett. 128 (20) (2022) 202302. arXiv:2112.06975, doi: 10.1103/PhysRevLett.128.202302.DOI
  27. [27]K. J. Golec-Biernat, M. Wusthoff, Saturation effects in deep inelastic scattering at low Q**2 and its implications on diffraction, Phys. Rev. D 59 (1998) 014017. arXiv:hep-ph/9807513, doi:10.1103/PhysRevD.59.014017.
  28. [28]S.-W. Dai, F.-P. Li, L.-G. Pang, G.-Y. Qin, S.-Y. Wei, H.-Z. Zhang, W. Zhao, Physics-Informed Global Extraction of the Universal Small-x Dipole Amplitude (3 2026). arXiv:2603.08008.arxiv.org/abs/2603.08008
  29. [29]S.-W. Dai, H. Duan, L.-G. Pang, G.-Y. Qin, S.-Y. Wei, H.-Z. Zhang, W. Zhao, Unbiased Data-Driven Determination of the Nuclear Dipole Amplitude in the Color Glass Condensate (7 2026). arXiv:2607.27603.arxiv.org/abs/2607.27603
  30. [30]L. N. G. Filon, Iii.—on a quadrature formula for trigonometric integrals, Proceedings of the Royal Society of Edinburgh 49 (1930) 38–47. doi: 10.1017/S03701646000026262.
  31. [31]NVIDIA Corporation, NVIDIA Nsight Compute Profiling Guide, accessed 16 August 2026. URL https://docs.nvidia.com/nsight-compute/ProfilingGuide/index.html
  32. [32]S. Williams, A. Waterman, D. Patterson, Roofline: An insightful visual performance model for multicore architectures, Communications of the ACM 52 (4) (2009) 65–76. doi:10.1145/1498765.1498785.DOI
  33. [33]H. He, Making deep learning go brrr from first principles (2022). URL https://horace.io/brrr_intro.html

Paper details

vlnc:W_gt6m2p69
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 3

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Physics and Astronomy

Not recorded for this paper

View statement
Looking for related papers…
Contents