Skip to main content

HOPPET: A Higher Order Perturbative Parton Evolution Toolkit

Project description

HOPPET: A Higher Order Perturbative Parton Evolution Toolkit

HOPPET is a package for carrying out DGLAP evolution and other common manipulations of parton distribution functions (PDFs) in particle physics. The core package is written in Fortran. This Python interface provides access to a key subset of the functionality, the part known in the documentation as the "streamlined" interface.

The full underlying code and documentation can be found at https://github.com/hoppet-code/hoppet.

Example usage

import hoppet as hp
import numpy as np

def main():
    # choose the underlying spacing in y=log(1/x): 
    # smaller spacing gives higher accuracy but slower evolution
    dy = 0.1  
    # choose NNLO evolution
    nloop = 3 
    # Start hoppet
    hp.Start(dy, nloop)
    
    asQ0 = 0.35
    Q0 = np.sqrt(2.0)
    # Do the evolution starting from a standard benchmark initial condition 
    hp.Evolve(asQ0, Q0, nloop, 1.0, hp.BenchmarkPDFunpol, Q0)

    # Evaluate the PDFs at some x values and print them
    xvals = [1e-5,1e-4,1e-3,1e-2,0.1,0.3,0.5,0.7,0.9]
    Q = 100.0

    print('')
    print('           Evaluating PDFs at Q =',Q, ' GeV')
    print('    x      u-ubar      d-dbar    2(ubr+dbr)    c+cbar       gluon')
    for ix in range(9):
        pdf_array = hp.Eval(xvals[ix], Q)
        print('{:7.1E} {:11.4E} {:11.4E} {:11.4E} {:11.4E} {:11.4E}'.format(
            xvals[ix],
            pdf_array[6 + 2] - pdf_array[6 - 2], 
            pdf_array[6 + 1] - pdf_array[6 - 1], 
            2 * (pdf_array[6 - 1] + pdf_array[6 - 2]),
            pdf_array[6 - 4] + pdf_array[6 + 4],
            pdf_array[6 + 0]
        ))

    hp.DeleteAll()

For more examples take a look at example_py. The above example is essentially identical to tabulation_example.py and prints the output of a typical benchmark PDF.

Citation policy

If you use this program in a scientific publication we ask that you cite

G.P. Salam, J. Rojo, 'A Higher Order Perturbative Parton Evolution Toolkit (HOPPET)', Comput. Phys. Commun. 180 (2009) 120-156, arXiv:0804.3755

and

A. Karlberg, P. Nason, G.P. Salam, G. Zanderighi & F. Dreyer arXiv:2510.09310.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hoppet-2.2.1.tar.gz (13.8 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

hoppet-2.2.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (13.6 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

hoppet-2.2.1-cp314-cp314-macosx_15_0_arm64.whl (12.0 MB view details)

Uploaded CPython 3.14macOS 15.0+ ARM64

hoppet-2.2.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (13.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

hoppet-2.2.1-cp313-cp313-macosx_15_0_arm64.whl (12.0 MB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

hoppet-2.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

hoppet-2.2.1-cp312-cp312-macosx_11_0_arm64.whl (12.0 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

hoppet-2.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

hoppet-2.2.1-cp311-cp311-macosx_11_0_arm64.whl (12.0 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

hoppet-2.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.9 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

hoppet-2.2.1-cp310-cp310-macosx_11_0_arm64.whl (12.0 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

hoppet-2.2.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.9 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

hoppet-2.2.1-cp39-cp39-macosx_11_0_arm64.whl (12.0 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

File details

Details for the file hoppet-2.2.1.tar.gz.

File metadata

  • Download URL: hoppet-2.2.1.tar.gz
  • Upload date:
  • Size: 13.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hoppet-2.2.1.tar.gz
Algorithm Hash digest
SHA256 efd989d716e1162270e63e7c9e7fe6fe97fb752b16bb06a8526914611a60e45b
MD5 9bffb1e07b192c9140aa1460f4850afa
BLAKE2b-256 047e0a7cc219d4b3ae248551e18ec007ad8a0d6f739bfa9e8cf8942e230970a6

See more details on using hashes here.

File details

Details for the file hoppet-2.2.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for hoppet-2.2.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 74bcc5bebb9b901c2100c822668da318918cf7d4e1a2c3c4208e0f7af69fc1d2
MD5 3210daf6ef39da225d4bbbe4b44f4d91
BLAKE2b-256 a5f9c385b14a6c92e1f15021cc3cf65d17057b9cdf04d3324fddd84e1a04e1fb

See more details on using hashes here.

File details

Details for the file hoppet-2.2.1-cp314-cp314-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for hoppet-2.2.1-cp314-cp314-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 9d15cc393bd89eba398b9ba12634286610b9aeee4e2373d1f5b4f90b5a3b1f94
MD5 1ef7251ac306e40196286f71b36b3e1e
BLAKE2b-256 69379e269753379159b315f1770372b9c3318e2015ff80364f9220f47162d960

See more details on using hashes here.

File details

Details for the file hoppet-2.2.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for hoppet-2.2.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0fdf9329cadfe428485d6f8ee6b166ccb3bb224148f34f263e3ad607da5a2575
MD5 295d925384f599fce2afd0390b598382
BLAKE2b-256 024109f715e50cbf3ef6d2e0e8191b994dbcfb5c841fa78eae76ef83e8318892

See more details on using hashes here.

File details

Details for the file hoppet-2.2.1-cp313-cp313-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for hoppet-2.2.1-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 eb65bbbb817652b9bb7c06905392758bbc82686dd81bf6357040d8d4715e4353
MD5 f5597de41a1f0a19b61178c0957673dc
BLAKE2b-256 f118c0b19c7193e83fb8c5a8cd78d0b460d880ca4b65f96765e7d55b311e1197

See more details on using hashes here.

File details

Details for the file hoppet-2.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for hoppet-2.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d3f67e656353f3a5830cef51097d286be4010e92e61e7ed48706c5ea021e493e
MD5 163717179315da9eb9c94590a31b13f8
BLAKE2b-256 5de7e06cbbd4b5165270a15ddbd7c7854a36113e96ba63c1e6cd56171d3812fb

See more details on using hashes here.

File details

Details for the file hoppet-2.2.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for hoppet-2.2.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 375f439c30397eff97d0e802a881eaabe3f4bf369285ae8e8233e15ef0de5334
MD5 bb9345ee936f5425d593caeae086f473
BLAKE2b-256 2b76f3d5e06d2c94418d8e616df53715d8ef9d019a0944845f259c10bf5d1e94

See more details on using hashes here.

File details

Details for the file hoppet-2.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for hoppet-2.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e6d6f74c05c147e1c047d707a9474a8adca2a62360dcc6578da4f3dbf3dcd2a3
MD5 50256529a6783dc6c6766018fe373c5b
BLAKE2b-256 761ff222daaf4a21a1e04542d3ece3c30d2e64759c05713d59360e752e696fc5

See more details on using hashes here.

File details

Details for the file hoppet-2.2.1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for hoppet-2.2.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9d7b5a639378a901f3de6e07a65cbece07b7ed2f8d9e219146c1ee3ab98286af
MD5 74d702dac31971a768cfb5ee0ad970a8
BLAKE2b-256 d80ff6ffebabd094b3c2e1df26b7b7db745cc05ef76dc01286ac36d42e9e969c

See more details on using hashes here.

File details

Details for the file hoppet-2.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for hoppet-2.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 466638b4ef1aca99548599f2b986ceb02fa99cfb9db60354b699826f82dfebda
MD5 de1ea7ba5ba8597c15ff52c3b89bb6ca
BLAKE2b-256 789419a5596d1591a553ede4a4975f5ba4d265094e8e004eb227c13032a7c593

See more details on using hashes here.

File details

Details for the file hoppet-2.2.1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for hoppet-2.2.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f1f6169a8cc4138c37273aa16d7579cf79dea0a318e61efa8594fc8510272158
MD5 959dbdd9485c290c959379c3a2df0959
BLAKE2b-256 3e4010dcc0ca40d3a582e9ec520f8f2e41731e1459048eb82823e9391769d9be

See more details on using hashes here.

File details

Details for the file hoppet-2.2.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for hoppet-2.2.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 879e1bfb1555a415ae11af22de6fa6ba14c14c5407208f332135f6d9f6b769a6
MD5 52d0a135efc4427f54d4e4a1405a5ea9
BLAKE2b-256 5fd1cb55147701ef12ebf4b7ddf5a88db861b0e56e19ea9a6f9b790f3f3af162

See more details on using hashes here.

File details

Details for the file hoppet-2.2.1-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for hoppet-2.2.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 150212cd633fd78390c6b0204e00e1a2d2f6a64577c82100af67e42353e629ca
MD5 e801f8ba4b2d46627677cc11a14deafa
BLAKE2b-256 592b1563ea2ec07d65870ae61ea75ab2913804c585ee557ad19db00fb2af56fd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page