Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time-like Anomalous dimensions #200

Closed
wants to merge 22 commits into from
Closed
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions src/ekore/anomalous_dimensions/unpolarized/time_like/__init__.py
Original file line number Diff line number Diff line change
@@ -1,21 +0,0 @@
r"""The unpolarized, time-like Altarelli-Parisi splitting kernels.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this file you need for sure since it is the entry point to your implementation - so instead of deleting it you should adjust it (take a look to the space-like counterpart)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes indeed, I had only removed it so I could add the actual functions once I am done with the as2 and as3 modules.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but you don't need to delete the file because of that, no? and for sure we start with LO first and once we established that we step forward ...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the file is still there, I had removed the functions which stated it is not implemented, to make way for the actual functions implementing the splitting functions. I will add the functions asap.


Normalization is given by

.. math::
\mathbf{P}(x) = \sum\limits_{j=0} a_s^{j+1} \mathbf P^{(j)}(x)

with :math:`a_s = \frac{\alpha_S(\mu^2)}{4\pi}`.
"""

import numba as nb


@nb.njit(cache=True)
def gamma_ns(_order, _mode, _n, _nf):
raise NotImplementedError("Polarised is not yet implemented")


@nb.njit(cache=True)
def gamma_singlet(_order, _n, _nf):
raise NotImplementedError("Polarised is not yet implemented")
129 changes: 129 additions & 0 deletions src/ekore/anomalous_dimensions/unpolarized/time_like/as1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
"""The following are the unpolarized time-like leading-order (LO) Altarelli-Parisi splitting kernels."""

import numba as nb
import numpy as np
from eko import constants



@nb.njit(cache=True)
def gamma_qq(N, s1):
"""Computes the LO quark-quark anomalous dimension.
Implements Eqn. (B.3) from hep-ph/0604160.

Parameters
----------
N : complex
Mellin moment
s1 : complex
Harmonic sum $S_{1}$

Returns
-------
gamma_qq : complex
LO quark-quark anomalous dimension $\gamma_{qq}^{(0)}(N)$

"""
t7phy marked this conversation as resolved.
Show resolved Hide resolved
return constants.CF * (-3.0 + (4.0 * s1) - 2.0 / (N * (N + 1.0)))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the same as

so you should not reimplement, but just redirect (same of course for all the others); only gamma_singlet changes if I understood correctly (so that one you keep)

Copy link
Member Author

@t7phy t7phy Jan 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well actually, only the 2 functions, namely gamma_ns and gamma_gg remain the same. gamma_gq and gamma_qg do differ by factors of nf. I think it would be better and clearer if we have the _ns and _gg functions clearly specified and not redirect to the space-like folder because it provides a cleaner and clearer separation between TL and SL and also allows for proper citation of references with functions.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even fine ... are there relations beyond LO between TL and SL?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, its only for the LO afaik, for NLO and NNLO, they vary, so there will be different functions there anyway

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then I'm also fine with duplicating two lines ... just remember to add a unit test that actually checks that


@nb.njit(cache=True)
def gamma_qg(N):
"""Computes the LO quark-gluon anomalous dimension.
Implements Eqn. (B.4) from hep-ph/0604160 and Eqn. (A1) from PhysRevD.48.116.
t7phy marked this conversation as resolved.
Show resolved Hide resolved

Parameters
----------
N : complex
Mellin moment

Returns
-------
gamma_qg : complex
LO quark-gluon anomalous dimension $\gamma_{qg}^{(0)}(N)$

"""
return - (N**2 + N + 2.0) / (N * (N + 1.0) * (N + 2.0))

@nb.njit(cache=True)
def gamma_gq(N, nf):
"""Computes the LO gluon-quark anomalous dimension.
Implements Eqn. (B.5) from hep-ph/0604160 and Eqn. (A1) from PhysRevD.48.116.

Parameters
----------
N : complex
Mellin moment
nf : int
No. of active flavors

Returns
-------
gamma_qg : complex
LO quark-gluon anomalous dimension $\gamma_{gq}^{(0)}(N)$

"""
return -4.0 * nf * constants.CF * (N**2 + N + 2.0) / (N * (N - 1.0) * (N + 1.0))

@nb.njit(cache=True)
def gamma_gg(N, s1, nf):
"""Computes the LO gluon-gluon anomalous dimension.
Implements Eqn. (B.6) from hep-ph/0604160.

Parameters
----------
N : complex
Mellin moment
s1 : complex
Harmonic sum $S_{1}$
nf : int
No. of active flavors

Returns
-------
gamma_qq : complex
LO quark-quark anomalous dimension $\gamma_{gg}^{(0)}(N)$

"""
return (2.0 * nf - 11.0 * constants.CA) / 3.0 + 4.0 * constants.CA * (s1 - 1.0 / (N * (N - 1.0)) - 1.0 / ((N + 1.0) * (N + 2.0)))

@nb.njit(cache=True)
def gamma_ns(N, s1):
"""Computes the LO non-singlet anomalous dimension.
At LO, $\gamma_{ns}^{(0)} = \gamma_{qq}^{(0)}$.

Parameters
----------
N : complex
Mellin moment
s1 : complex
Harmonic sum $S_{1}$

Returns
-------
gamma_ns : complex
LO quark-quark anomalous dimension $\gamma_{ns}^{(0)}(N)$

"""
return gamma_qq(N, s1)

@nb.njit(cache=True)
def gamma_singlet(N, s1, nf):
"""Computes the LO singlet anomalous dimension matrix.
Implements Eqn. (2.13) from PhysRevD.48.116.

Parameters
----------
N : complex
Mellin moment
s1 : complex
Harmonic sum $S_{1}$
nf : int
No. of active flavors

Returns
-------
gamma_singlet : numpy.array
LO singlet anomalous dimension matrix $\gamma_{s}^{(0)}$

"""
return np.array([[gamma_qq(N, s1), gamma_gq(N, nf)], [gamma_qg(N), gamma_gg(N, s1, nf)]], np.complex_)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""The following are the unpolarized time-like next-to-leading-order (NLO) Altarelli-Parisi splitting kernels."""
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""The following are the unpolarized time-like next-to-next-to-leading-order (NNLO) Altarelli-Parisi splitting kernels."""