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.0b1.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.0b1-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.0b1-cp314-cp314-macosx_15_0_arm64.whl (6.9 MB view details)

Uploaded CPython 3.14macOS 15.0+ ARM64

hoppet-2.0.0b1-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.0b1-cp313-cp313-macosx_15_0_arm64.whl (6.9 MB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

hoppet-2.0.0b1-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.0b1-cp312-cp312-macosx_11_0_arm64.whl (6.9 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

hoppet-2.0.0b1-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.0b1-cp311-cp311-macosx_11_0_arm64.whl (6.9 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

hoppet-2.0.0b1-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.0b1-cp310-cp310-macosx_11_0_arm64.whl (6.9 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

hoppet-2.0.0b1-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.0b1-cp39-cp39-macosx_11_0_arm64.whl (6.9 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

hoppet-2.0.0b1-cp38-cp38-macosx_11_0_arm64.whl (6.9 MB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: hoppet-2.0.0b1.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.0b1.tar.gz
Algorithm Hash digest
SHA256 bd2d2edc297e4c5d5aac3153af42d71d5d8a20384f84868e717514c001ab6cf6
MD5 50256cfb3857949212b6a6db0d00a0e5
BLAKE2b-256 7a786d51bb5577c9355cd60a23e199bd201f94779bd6eb1bc9b9742d60098844

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.0.0b1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1fd79250791491aa36a09fb7e3239113578966d68fe42bf4f92167e8f085b52b
MD5 bbae8e70b4f75a28d1e9cea9d84ab29f
BLAKE2b-256 59f9911ee1c99a7195fb8c892799adb57eef65091711faa27cf591ef801a8250

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.0.0b1-cp314-cp314-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 43f492e266e4927d21175a54d9cf68c9b4afe544644232025d1fe4774fce823d
MD5 6b8e828bfc14a55711bcbfc30c5122ce
BLAKE2b-256 de38ebfebdb6f6bdc09c4359f4f980e7aac9c1fd6bd89771b257d24264eca3f5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.0.0b1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 407655f0ff689bda772d6396d623860873be3c84b85359daff867c8da41b699a
MD5 55aee8f20f7c727cbf1a03a0bd5ac2ed
BLAKE2b-256 857db3dccdca24a5c5b78df4e7ef49b63db9ad2f90de6166c4adddfac2d55c1e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.0.0b1-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 f33f0b56227edbe96a992e82ac103fc2861ebdb436433d3f17a660ea4344bf70
MD5 876a16f4c8df21022e9839e7af7e3577
BLAKE2b-256 3f1eff8f432e2a2663d820a94a8b1400560ff5e2337dccf1ee6b4e2133c98c61

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.0.0b1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 74c1d8f6d42438dd58897d1d018a090d6341fb4cf74a554f461b730c71501645
MD5 8e660e2f68fbdf7cc14d61a3499b76e0
BLAKE2b-256 21e89ac0a0668665d5df0206226137b5d2d36d1ac16cb6396790a697f1192938

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.0.0b1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5ba1e5ad3851c37a068ecbe2634c27f60d0aee7675f14799b726fa0739ec101a
MD5 7c7c7f2a1a45d058f35b4d713f288773
BLAKE2b-256 f6e0de8cd8d79a5cbef480db83d10723ebfc50bfabddf9bddf4dbd416162fd2a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.0.0b1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a3d12baa30ad8a66faec655cbbb81893bc42a17fd982e98c79a7169d11b1ef0e
MD5 33002e67631610bf12b224dbdb556185
BLAKE2b-256 64116b23fb48445111e1ee963e3bcc0f39fea084ce27eb5a77a5a6f93f48f39c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.0.0b1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8ddcf22c9e57224e1c98f2e3cbcb786fa124846e82e05a21274cda5471b59157
MD5 b1dffd0d8fbd816a1a0c633db8245033
BLAKE2b-256 a47ca3c88a7a8a384a06997922611a1caf79048d6b0163b17d7b3acb87d79dd4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.0.0b1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2a2939bfd3643f5db9571ddff364027cb6882f7a16d0851ed2484a3d576889e2
MD5 67c345f5ab366823b547eebbc3235578
BLAKE2b-256 7e18c94fdbe6fde5ca104dd44d27c04b1934181cdaafd371e15df91d28c3849f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.0.0b1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ad912f7b06f3169c53520de1191aa933c16c600075e781f85740fbd791aff698
MD5 49ab5fea596d685c70c3b0b2c0d280ca
BLAKE2b-256 8fd032aeb52967147529e0bde2e9fe325634441bd201507708b302e3879a2f21

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.0.0b1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4794e2bcd0624bc9f8017a8636b58b10ffbcf0e40c69ba894e68106c22229903
MD5 0cf6476c163a1ab47c7105e01b8924ec
BLAKE2b-256 b85c7d00896e4ac07c946bc6f8ca7317ccde901e61c0e1c4b5b36eb8aedff741

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.0.0b1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 61966b78e3941cfdae229c30a8cd4b0ec1518ebfae89c4cc64a4c20085779119
MD5 ae2880ecc724d66a1c0e425814904df4
BLAKE2b-256 26cf8665f5ac3e37d69f6270088ad82cb2267e5df2ac0bcd2af1969f1c4fa94a

See more details on using hashes here.

File details

Details for the file hoppet-2.0.0b1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for hoppet-2.0.0b1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1ae3347d3891e7191dfe1f13af18faad0d707448b648a4d18de94f13293a468b
MD5 b44926f67e634779a3382113f53a9e43
BLAKE2b-256 c4f88d020c49ad319c2e184d61a7895f83a0b757ca30ef9cf8d7a4b87085b2ae

See more details on using hashes here.

File details

Details for the file hoppet-2.0.0b1-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for hoppet-2.0.0b1-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 14de56f147eed8865c1bf11c0f0bd56baf90e7515c75a2513a78186977c626cd
MD5 d04d8b0557c1ede47c63302a709c2e41
BLAKE2b-256 34c758f659e69da881539f26e558bd07c54cee9969ecd6156eb30f8b88533480

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