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.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.1.1-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.1-cp314-cp314-macosx_15_0_arm64.whl (11.5 MB view details)

Uploaded CPython 3.14macOS 15.0+ ARM64

hoppet-2.1.1-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.1-cp313-cp313-macosx_15_0_arm64.whl (11.5 MB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

hoppet-2.1.1-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.1-cp312-cp312-macosx_11_0_arm64.whl (11.5 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

hoppet-2.1.1-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.1-cp311-cp311-macosx_11_0_arm64.whl (11.5 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

hoppet-2.1.1-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.1-cp310-cp310-macosx_11_0_arm64.whl (11.5 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

hoppet-2.1.1-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.1-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.1.tar.gz.

File metadata

  • Download URL: hoppet-2.1.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.1.1.tar.gz
Algorithm Hash digest
SHA256 30d45bbb0ad379394d2a12eb21227d4f3ad073787b0bed93dcf342f369b29722
MD5 3edd895718620a94842b5248741feb48
BLAKE2b-256 07ededc13e361b1cc29b63e84c60045b7fdf1a6987fc2f65ef5384a75197711a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.1.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 49e4889553df003b2d4056f56e4570048c80cd4cacb8402504d524761e8dcd5d
MD5 9faab7bc4637ff768cd50b72a36632b7
BLAKE2b-256 e447be19f72bf309b4c681f4ccc58d65bd75e6bd8f3ac873acf86c5e7dd4ed36

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.1.1-cp314-cp314-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 8ee40ebc10435ef3574fa0e45e8b9be8af370db5b2762a32687a0f22da881a84
MD5 6c6dfd3019e52d280717a4292476017c
BLAKE2b-256 3e05d141fb793bbc4fcf883106921acf572755d1a7503b9effdf25e2910fda99

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.1.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 519cb432207bbabdaddf06175b257f6e5ec48aaafc078fc53cfc890ea3edeaca
MD5 ffa634e3eaa6361f95cdb91044aab8ba
BLAKE2b-256 e36c00997b7cb395b23d5892e341a43cbebf3faa5b8c9a7ccf2d3d1d85e438c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.1.1-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 c2b6c557ccc590f316ce369fc32537c44426e250102599b079f0ef628aefd64f
MD5 ab1b8d0b44d49871333f98e4e1b5afc9
BLAKE2b-256 b715ba557041e40bbdcc64612d5f4a23f1b517cd2fb7ba63ba53306df87fac33

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.1.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 97720d3d5df58cd0707c330affa1aadc641851595725d25929e47e628fb81454
MD5 c962a4d656500347f5b05fd4b1096c46
BLAKE2b-256 ba8e4950ed1f39a8d6cce693508a36f164470659e53506af128d8dafefe0ef53

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.1.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 53d9106929be372848de5c0954702d7adb761de13e0a5e12c36ba05c4805be26
MD5 adebfd4dd69bbad196c60e8d03cbda74
BLAKE2b-256 f4fdbb6a2f5f10c722891c52b1048dc31544da434a95a257a4ebc14cffed33a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 df611a6d02a4fca3247f193598155b17e3df7ef6623ceb29af4c0a026352f7be
MD5 79c89588b746f034f00c5fc5db940518
BLAKE2b-256 2b7b6d0209be206696ca108e765588f875902909d57ba6263097ec4a7065a66e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.1.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9e636ea88aa6f519aef9eab26918d97b56fa5d718ebafabc349aa004f717b01b
MD5 f6a5299a30ee8b94c8b4d1a065d36311
BLAKE2b-256 11f4b11f00c5a9aa8da5a9bab074b380a44f949ee103008ab7534a93c9d7cab7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 eeb81a26b35a2018504ee72f60a539edd7213e71d564915684486949c9b6cec7
MD5 862b7d0a83fc2b813add7c500421fa1b
BLAKE2b-256 d9d3f511c2592ce34efe8d7355c4fa063f61219ca4f99f385342c750d4390e0e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.1.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3bf183cc252c338a518c36ae92bc1f2912343c85646cbc0e7d3b3000660cc893
MD5 a8a31588e26b54a3cab33ecce87ef030
BLAKE2b-256 543bbced151ac1ff487691e026c2daf5216539768ca1a07c07db0354c5813bf4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d8da5e18bc44fe25f6bbf687ef433d4a20d09fceec98363ec5cfe7ea69d0dd2e
MD5 70a2378859665c1f7645b2743c61d39e
BLAKE2b-256 e3ba2664edea04559fe7726bb00273d9a16237fdb34fd53cc2671e7578abfc90

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.1.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1f1b93285992b2d511ccb0dbcf585726cf22980e9d54047bfd265ac9b18a4847
MD5 f1682acb63c4406c9d178c657c9636e5
BLAKE2b-256 06cf6f688c2b18ee617f7812f2c873a807f12f146207c5d2358fd730a8e8555d

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