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

Uploaded CPython 3.14macOS 15.0+ ARM64

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

Uploaded CPython 3.13macOS 15.0+ ARM64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10macOS 11.0+ ARM64

hoppet-2.1.4-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.4-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.4.tar.gz.

File metadata

  • Download URL: hoppet-2.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 3131af508a92384d7a89b0ecd851e937e715443d3e75ba1703fe52854d956cdf
MD5 731c8197a5ec4ed9fa283eb453c6feb1
BLAKE2b-256 c76c6e14e6c84f6022cd6dd70cfcf98963a1d9f59717cf7f9a7e99b32eb8225e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.1.4-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 87b5fa5a9ace30299aa3142d85028eaf65409dc5275886d12c5ce46163ef3437
MD5 cceacba1f9b20e97fcc1f39723e4fade
BLAKE2b-256 0c702b90f8b04df5848e71f415ea6e63a2bbe67a19c0d7ea88928ae18c0d1463

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.1.4-cp314-cp314-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 08ea6ec9e88b17803611d9f415aa0320cc756744f7442c3889ada3e71741315c
MD5 b3bc2850a52c971446d54f1f05961a56
BLAKE2b-256 b17db38147f3eac9b155254fac0706cba9de5e559decb3c686791b0710cd4a20

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.1.4-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d554a4c250002efffe726a501327a6b80552e0086042883ace9a8a729128ee7e
MD5 93a325bee7d833151b4dd75a6fde2ae1
BLAKE2b-256 fb7779b491072173bc97107a550d3a5cfc748fe1c71d439fdac5f561b4582dca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.1.4-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 e1e7e8d61578393be28bcf417177740a3b713d942638f6076f81a0050d5ae3b6
MD5 ad36ac76545fe235ea1d69c6c4228f00
BLAKE2b-256 9e4c501582eb824a6688cd13185c68d0433e3849eac5aaa17786fefd775d4281

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.1.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9951d8129c69c68a248f78e3f001696356030fefe5aa3a673046e643404d5ffa
MD5 7b2890aaebfb7ab9626eac8d6e2fcb8f
BLAKE2b-256 cd9877eadd37b5aa0157a7772054a62cadf06c7f2082aed4163fe99bc2a42eb4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.1.4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c0be0b90ecde3c9a05ecb1803d9c804ee1097f2367c1f017702de514fec002a6
MD5 3499302d745b0e9e2cf0e909d97654c8
BLAKE2b-256 d9ad85331928fea90dcfc5a68c679cd1a0a03b1f229580308e7cc88f0cb4b0aa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.1.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3403a94b07eac369b4e0e5ee32aa5e1e9f2e366ebf8d87ca559dec00947c7cb6
MD5 92a1f994f3870f72e87b20bb0e9bef01
BLAKE2b-256 d6878b4030fdd023bb39a25924958df6c2a4f81e92325c9e4d9abe042ed23133

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.1.4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ed8cc582fa4a8343d521f0294ee226e4ee5901e6aa4ebff39d3955ad8b7340d0
MD5 71d644bfc9b521f940c88d2bed286ff6
BLAKE2b-256 00be3082b750471725cb933e8cdc38f235a95f512c36a67614a17a72cc58a765

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.1.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a43e8eba0877c8f2b32031718ccc1fa36da302687cc20af38f7098f802bad799
MD5 9ab45acc8412d478ed72710da67fc83c
BLAKE2b-256 c2fde28eb4fe20f74ea6b783a74c42538dac160dbc0a90fd79c25d31eba4023a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.1.4-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cc48895266b09d616f2b86828f29f126a59b63d9a251bb98140f2783cd770b1e
MD5 fd3916a2ed723c7127e7b992fef05ab4
BLAKE2b-256 62f49528f4b0201dc70a030e5a95460106607a89e0eb65bdfb49ff69e5d50325

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.1.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5d436fa6b4d7303740346511229219571bc9a1445c076b3e5df717422ed466cd
MD5 5f7c01f330eefda1c20f54fb3dc1bada
BLAKE2b-256 4e999c5d4a48bc67dddc42690590badcb998c00cb80bcd130603c4900ac01a50

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.1.4-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aedd64f599396ef4846d15e54f7b04d0f3ed066f17f060801f118618706f5077
MD5 0a040f4997244b5aabf804668859b2c6
BLAKE2b-256 0a3fcb741b0884a3eabfad0a05616632882d0c64ab0a87d8a71e705ac8af772f

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