Skip to main content

This module contains a small number of tools useful for analyzing contributions to the muon’s magnetic moment from (lattice) QCD vacuum polarization. The functions or classes include:

moments(G)

Compute moments of jj correlator G.

mom2taylor(mom)

Convert moments mom into Taylor coefficients for q2-expansion.

taylor2mom(tayl)

Convert Taylor expansion coefficients tayl into moments.

vacpol(mom)

Create a Pade approximant for the subtracted vacuum polarization (PI-hat) from the jj correlator whose moments (or Taylor coefficients) are in mom.

fourier_vacpol(G)

Create subtracted vacuum polarization (PI-hat) by Fourier transforming jj correlator G(t).

a_mu(pihat, Q)

Compute the contribution to the muon’s g-2 anomaly from function pihat (usually built by vacpol).

R2G(E, R)

Compute the Euclidean G(t) corresponding to data for Re+e-.

R2a_mu(E, R)

Compute the leading-order contribution to the muon’s g-2 anomaly corresponding to data for Re+e-.

TanhWin(t0, t1, dt)

Create a filter for applying a t-window in monents(...) or fourier_vacpol(...).

pade_gvar(f, m, n)

General-purpose code for determining Pade approximants to a power series whose coefficients are GVars (ie, Gaussian random variables, for error propagation).

pade_svd(f, m, n)

General-purpose code for determining Pade approximants for a power series whose coefficients are floats. Uses svd regularization to stabilize results when the input data are noisy.

Information on how to install the module is in the file INSTALLATION.

To test the module try make tests.

Documentation is in the doc directory: open doc/html/index.html or look online at <https://g2tools.readthedocs.io>.

The examples directory has a complete example, showing how to go from Monte Carlo data for a jj correlator to a contribution to the muon’s magnetic moment anomaly aµ. See also the introduction in the documentation.

The general technique that underlies this module is described in Chakraborty et al, Phys.Rev. D89 (2014) no.11, 114501. Google arXiv:1403.1778 to find a preprint on the web.

Created by G. Peter Lepage (Cornell University) on on 2014-09-13.
Copyright (c) 20014-22 G. Peter Lepage.
https://zenodo.org/badge/66222496.svg

Metadata

Release files for g2tools 1.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for g2tools 1.4.2
File Size Uploaded
g2tools-1.4.2.tar.gz 508.5 kB Details

Release files / g2tools-1.4.2.tar.gz

Download URL g2tools-1.4.2.tar.gz
Size 508.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6797591de9de68a6ae6cbc92a0f9ac31acc97e9c34b9ced8adfa658cf3fea176
BLAKE2b-256 checksum
How to use checksums
545811664111b85d9907e69b825843f5d7ec7102d5600cf10fbf867784a1f1d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.11.3 pkginfo/1.9.6 requests/2.28.1 requests-toolbelt/0.9.1 tqdm/4.64.1 CPython/3.10.9

Release history Release notifications | RSS feed

This release

1.4.2 This release

1 release file

1.4.1

1 release file

1.4

1 release file

1.3.4

1 release file

1.3.2

1 release file

1.3

1 release file

1.2.1

1 release file

1.2

1 release file

1.1

1 release file

1.0.1

1 release file

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page