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:2509.XXXXX.

Version numbering

A version number X.Y.Z.a means that the interface uses hoppet version X.Y.Z. The .a part of the version number gets incremented when the Python pip package and/or wheels are updated, but the underlying hoppet code stays the same.

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.0.0.tar.gz (12.9 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.0.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (6.0 MB view details)

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

hoppet-2.0.0-cp314-cp314-macosx_15_0_arm64.whl (7.0 MB view details)

Uploaded CPython 3.14macOS 15.0+ ARM64

hoppet-2.0.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (6.0 MB view details)

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

hoppet-2.0.0-cp313-cp313-macosx_15_0_arm64.whl (7.0 MB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

hoppet-2.0.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

hoppet-2.0.0-cp312-cp312-macosx_11_0_arm64.whl (7.0 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

hoppet-2.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

hoppet-2.0.0-cp311-cp311-macosx_11_0_arm64.whl (7.0 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

hoppet-2.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.9 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

hoppet-2.0.0-cp310-cp310-macosx_11_0_arm64.whl (7.0 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

hoppet-2.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.9 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

hoppet-2.0.0-cp39-cp39-macosx_11_0_arm64.whl (7.0 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

File details

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

File metadata

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

File hashes

Hashes for hoppet-2.0.0.tar.gz
Algorithm Hash digest
SHA256 0529944f5ab60f896a08ce916ed90e927b1a2001336b2ce44b663df2fd076452
MD5 9a86f92764e737b450ae41cbb3b47d5e
BLAKE2b-256 791863b3db2a49b1b8eb0bbdea0ff377b532f13b92278a7b2a09d948b86acbd5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.0.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 beedb1ef926c0cb40471e93d8b8a622aa3b7e8547257255b8be834294ce1482b
MD5 328109a31b1f00b99b8dcb8737128a04
BLAKE2b-256 96bd0b06a3e48629f2fbd1a7aaa7603fed86df7f82ec7f7a54238cfcb245a7df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.0.0-cp314-cp314-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 383329bd907aafa06d581ed24a77446a38604f6faca31a8470448bfa0806a7d2
MD5 fe4faa319fa3138cc90691e256f7ddf1
BLAKE2b-256 b26dfc58c3a45755bf69525ce6e68191961cebaa07a189ef5292b77bd882aaf5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.0.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 34964cd80f6a6b43a211787dedbcbe843ee77cc9c18f1247b04c8b15e26e9ff5
MD5 402ca9c2f89f1c6d1fde5c5396247a88
BLAKE2b-256 25c8fa9fd7215c47ec988b31293a45244ba8f8a253fff2022dffaf998a0d8ab5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.0.0-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 e83624dcb9227acbf301ef387c7330e3ba112072214456e5fc8b42f7d6fa5e6e
MD5 032d617346c7f9fa8b67d03d313331d4
BLAKE2b-256 ced822ee687bd42b852c39791ad45b1f7a1359f6087cdededd59aca4f53d596b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.0.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 32d7c21ebab1985c32d207e56221e05cd6a9dec0c709874c6bdb66473538bdca
MD5 6d6ef0254a3d20f9fd28b9cd67fa8289
BLAKE2b-256 80283f17ded4627c1152222bc9cfcfda576643dca1166d20d2e2af2f8fc8efcf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.0.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fc102f9a8528f6f9f1b778878673f3b857a75d1c4012a1f176bde2a8e0244208
MD5 bb533fb4ac9c11968b35d440f840390e
BLAKE2b-256 230e1fbd1bfc0e45bbe1d9039ee689c470d9c5ab70d0a37da9e3a6a6bc795eb6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e153fc981d87e8301ac0bbadc81a2cbab467d7cc23407c15de4e6818b8580c9b
MD5 81fcbaa0a5d32f97b82708cc45eb36ce
BLAKE2b-256 68cc2d06e174c4f66414052ec99e25ac534741991d4aee8376f8044f47939662

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.0.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 97548ce80df8d3cb6b188c92938185eca4025fb4f6976df98070a51bbe5eeaba
MD5 e7d283bb8376092c8d5a3b91e1ad119a
BLAKE2b-256 1b4ff94f7c7f089e95f9deba1e3dabb7c89a18b24f7f8a75f1a4443f259a894f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bea59478032ca924bdcc82e976e14e6b206eb9d774ca0708adcb52b304e1dd4f
MD5 694dd374ac7881df2c4797fb8a2ffb91
BLAKE2b-256 fdab8bfa83dd146820cdcfa025d318ac0e63504ae24444a24e4fc0002beda7d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.0.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e6d5f855e76a6991008be1061b424e2bcfc84d1529bcf4b3acb37270cceac636
MD5 8743bdfdf21f9af918a58363365a3fb9
BLAKE2b-256 3518b1829865c4689cf142bacd0843f07fc301b9244a09344974e41b867e3537

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 20a7d47bb2cc5979def0f36720eef2e9ea2cea215f1294923755a3c919f9f791
MD5 cc243b9448821ae1d56d85c31f34746f
BLAKE2b-256 a02470260e6a8fe11f8ff552b3b08b68682002ac357545a70dbea466f5cc9932

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.0.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 183f9ca9588b2fedfcc73ec3a9c8253bdd1eca1b454fe3db562191da8b67b976
MD5 cf1ac97e01565a6dae57beecdbaac4ca
BLAKE2b-256 0f8f87627ebfa6eeb6b8eabf04d8dd8d45440ff165136a9991ddeb7404d65677

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