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

Uploaded CPython 3.14macOS 15.0+ ARM64

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

Uploaded CPython 3.13macOS 15.0+ ARM64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10macOS 11.0+ ARM64

hoppet-2.1.2-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.2-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.2.tar.gz.

File metadata

  • Download URL: hoppet-2.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 91f5d5f808c57622b0ea25d6b05309d11028bc7a6ad9f77eab706c01c15c299e
MD5 61cc56482d0cb07ac56ff92b21fa0d1c
BLAKE2b-256 fce7004f2cfe8c5fc6b29c76d3fddb941f96bcf0669df680d65d221633770adc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.1.2-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ff4e7a0621f32fc3844acf519e9f4c1322aa2298ccfbe980c5d3bbcd9a24aaba
MD5 d315f575e5d8b7f4e500765a1423e768
BLAKE2b-256 c3337ad39391db5390af8368b9f7e4f5349e9ce9a7b171b573bf38939ef2844f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.1.2-cp314-cp314-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 b6221b33da79fc0c95d519089b47ec7967964527f42fc2413d03321809417ab6
MD5 20fac09a00a6eb9fce634f8b9a2bd41f
BLAKE2b-256 ee6abd19d1a7478b7770228ec5587d4e2def1f7daf024e96fe0d3270486ee6ad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.1.2-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7131544709521f6022a3b6adda32dc2b42d362cdf83eb56f2a02636ca57854ee
MD5 631287cbccfcf570a122e40ee9906cb5
BLAKE2b-256 409b8aa8d0d3ca51b76bb3b77a73e5d690c651562b4955e666f4b4f0061b73c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.1.2-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 da7dd85a51714536513482d196195287e9e081933753e595b8da7cd36e84185e
MD5 221091b5818701ff2b0969da34ef874e
BLAKE2b-256 721e10168ed43f6e6c73692a84b8d34e8f9e3cf9f452fb74bcd689ebfc3be047

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.1.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 abd27e04fbba22ce2975a96053da764d13374923d40940faf86e5cf7332168e7
MD5 d95e57c8e919f7becfa93f8e77fa8bd7
BLAKE2b-256 b6112710ee7e135dc60895baaf5409810ec45b11154ffd2f0db55ea46e4e6b86

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.1.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 235232e3b0b03edeec84ddfcec8824849db8986192441237049baa5d488230fd
MD5 5254e6731118448ed2a6a5c67eb50b31
BLAKE2b-256 b6ba5e47cbfd6d1dde5c7881fb068cd16a55f366463f7357eca63c5cf6b3ce18

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1b90f1eccab6dcb1fca404c8f42cbdbc9c6d982aa1070fcc0815332ce4149d34
MD5 566604962372bd16ce0872e57c49582d
BLAKE2b-256 a984147092f950c268d362057fa6058d4c03994ac0f9c2bcf201c7f2871ad1a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.1.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 87179cb727cc19d2206bf1747c844d225827bbba86c8c35dc64deb17d671fe88
MD5 2244a30e684d829737d9c01c60ebe9ff
BLAKE2b-256 a8882c00aaa67f1ff074c9d0ff679bd2424a8d7bbd53ee38a4225ce7b13fb0a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cf6d714d6492074379f13ee75a13e85f89e87f8df9c038466e157c13e44c5663
MD5 e0f683c9368634bb55e823bd635dcd91
BLAKE2b-256 4b0cc3e2ddb4b9e1256b098dc7010742a305065d2051326074bfae3d3ed6abb0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.1.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3ab29b332902f7d103cc23ed343f19f6b572b60980a1ecfd89ca1aecebbe981e
MD5 ec55bb6ec17c6f891601b59914e1753e
BLAKE2b-256 1837104756d21429ce7fcf8d7d40071d0dd9d6cfc9f7e8c93f57db5fbb90e933

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 505de730b9e52e98d5aee99df2ae431bd97499f5a8a1a6085a9d7dbb8626fb2f
MD5 4852af665d084144ee9b1385da986cb0
BLAKE2b-256 eb7f30ab29a6441249492a38aa975d19d1e3ea4b2f0158d84634513b80a0f9b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.1.2-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b856f847a14fac0029858b1620750bd5c406a3126bba765af7b9795392edd9e0
MD5 77e6e1a6297fba182873b3ed27c5979c
BLAKE2b-256 61b67525bcfe92fe54c6072733e3ff2afe22c350a877d33d3be71e47c64fd599

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