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.1.3.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.1.3-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (12.9 MB view details)

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

hoppet-2.1.3-cp314-cp314-macosx_15_0_arm64.whl (11.5 MB view details)

Uploaded CPython 3.14macOS 15.0+ ARM64

hoppet-2.1.3-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (12.9 MB view details)

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

hoppet-2.1.3-cp313-cp313-macosx_15_0_arm64.whl (11.5 MB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

hoppet-2.1.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

hoppet-2.1.3-cp312-cp312-macosx_11_0_arm64.whl (11.5 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

hoppet-2.1.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

hoppet-2.1.3-cp311-cp311-macosx_11_0_arm64.whl (11.5 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

hoppet-2.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.2 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

hoppet-2.1.3-cp310-cp310-macosx_11_0_arm64.whl (11.5 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

hoppet-2.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.2 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

hoppet-2.1.3-cp39-cp39-macosx_11_0_arm64.whl (11.5 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: hoppet-2.1.3.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.1.3.tar.gz
Algorithm Hash digest
SHA256 e347a053a877d77c7c2c4e6f6dd318289412cf1854026df738e6e16004f0b890
MD5 91b3e40567b411d64b1a7e51144e7f05
BLAKE2b-256 adde4ee33ad01ca21a2f6555a843bad60a6acc4925b9b9049c6bb36000b0e721

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.1.3-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fedc1e3390c9846e197cf8322455138e81edbcb72f258385cf9387a2f962536c
MD5 ba8fb5defd2ef54740aeb14ee9b4ca88
BLAKE2b-256 5e2f2233d80f99949d0cc09d72928fc8e53d15604d0d139b5025c19ccae64f28

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.1.3-cp314-cp314-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 e0ec432109ee0eb08cf2139189f83186632fe2ccf5a810e2204ca591067a46ea
MD5 83eef0c7f4c42bae641b9c957f915dbc
BLAKE2b-256 11d5823e991b6358b1d8afa2551cf2ae3c0006541a865452d337e1f0b9f5ad15

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.1.3-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f602e424e880c58cedbc73294cc660825b9c0984589cb45d88e167ea25410126
MD5 6687bd5275f165b9a2194f7eadd0840f
BLAKE2b-256 4cd98bdd35b401d08d8ca0de614da519d87b179ee280f775d3aedd9f334a21e0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.1.3-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 db0edab231cb08d9ce842539b9c9b7d50caf84663f3aefbc009612447dabb1ab
MD5 2ce4054ed24972a44fd48c9e8a3cbb06
BLAKE2b-256 c58c9d1d4b8ed00e28f0e755598ce4b767a04fcc57303373c1b4bc115dc03430

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.1.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 192b7dddc35779d6b7bf1e7db2899b3551aeb976b1e695056384ccf890b20b14
MD5 2d8576501d86e2cf711d9ea82378e291
BLAKE2b-256 771a068bdfb3a33960583bba668d6f71c845ebd44b9f92928692a22157ec1172

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.1.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ba088cd13e69f8b55b3783453aab0635a9f0df55256c097c119e879a89b32cad
MD5 863a7ad81aec7d1084adf4fdc731ee23
BLAKE2b-256 16fe0cf9c777d6b93cd6df88b8d2204c90a9337e5ed3ec357defcbed71142e92

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.1.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 69ed6054f1f8dcd8c062d3e75c620f134892dd053c8121d7aa7984d1c7083cb8
MD5 065f2e511e55953bd14b004b2b54de7b
BLAKE2b-256 5bd478c7c2e4e6f64c6319eb35e4bf58433b85ef52a19e0ba16729774d077563

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.1.3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 402b76da89c7e8d078950aa1d5d0d98e0408e83b4b543e4fb190016567d74f45
MD5 04865af66a94fe0aa5eac459cb504700
BLAKE2b-256 a06e3662b759f9abcef96fbe2076a50c505eb588dfe477356afffcbab6e69004

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dfe114166e899380069f34676183ac49ab2ffcd3d3c46adea68f09f5e63633ab
MD5 aca8fee432cd9f6228d99ea535125c69
BLAKE2b-256 27616c9a510440c25515515f30a4be9459b9dc5b0a0a30eb7e3810e6b3747346

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.1.3-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a690df033672cb1c5bddcaddc38754951108d1fea363676f69138d4c4b6add81
MD5 f35e1a2b06b3edd0f904e657f5f8ad1e
BLAKE2b-256 fc56c7eb534126dd333cbe9bfbfb58d568a624a560b7520a4f8e405a3475a2da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1922eccdb02fc42d2df9003544a5d725beabcaff80da7ecc0ca03f65ba90862d
MD5 d098d16439c3df22dffd7b067acc0ff9
BLAKE2b-256 f17cb4f9cd82539c8f7f40b757683391086b0b3d38e9da437337d0a6863acaf6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.1.3-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7e22ba9a4f75e91363c16ce8dd281fa920b3ce2be2bbe647aa416dd84bdaaed4
MD5 e1905f200211134a276bfae3afc348d7
BLAKE2b-256 aae2181f19ad3a8ecb8275975274bd4a719cc5176e945c43263a9cbbf94211b6

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