-
Notifications
You must be signed in to change notification settings - Fork 2
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
Changes from 8 commits
d434cd7
5a85aec
8df49c0
78a0739
6d31c8b
86614dc
d995a0e
7f0ee3f
5ccbcd5
3016d63
569c615
0b93753
fe0a49a
98b3e24
9558e22
53356ae
561648e
2d8bede
6bdd487
b4e8bb9
feb2dce
7307c6e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +0,0 @@ | ||
r"""The unpolarized, time-like Altarelli-Parisi splitting kernels. | ||
|
||
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") | ||
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))) | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is the same as
gamma_singlet changes if I understood correctly (so that one you keep)
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Even fine ... are there relations beyond LO between TL and SL? There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 There was a problem hiding this comment. Choose a reason for hiding this commentThe 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.""" |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 ...
There was a problem hiding this comment.
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.