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.2.0.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.2.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (13.6 MB view details)

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

hoppet-2.2.0-cp314-cp314-macosx_15_0_arm64.whl (12.0 MB view details)

Uploaded CPython 3.14macOS 15.0+ ARM64

hoppet-2.2.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (13.6 MB view details)

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

hoppet-2.2.0-cp313-cp313-macosx_15_0_arm64.whl (12.0 MB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

hoppet-2.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

hoppet-2.2.0-cp312-cp312-macosx_11_0_arm64.whl (12.0 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

hoppet-2.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

hoppet-2.2.0-cp311-cp311-macosx_11_0_arm64.whl (12.0 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

hoppet-2.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.9 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

hoppet-2.2.0-cp310-cp310-macosx_11_0_arm64.whl (12.0 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

hoppet-2.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.9 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

hoppet-2.2.0-cp39-cp39-macosx_11_0_arm64.whl (12.0 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: hoppet-2.2.0.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.2.0.tar.gz
Algorithm Hash digest
SHA256 530a3c6f20dff94e9cc2cdecfce3f9201ebcd8d3f206086e5f259f730d7535b5
MD5 27a5cfdfa85c5cd0e2a45a5b21cf3f33
BLAKE2b-256 278197fc1e3eeda3ab263ce21fc120bf6d0b3df7835c2a91ffa60e111a3cbf21

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.2.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5a88b859f044e3d697365f8cfe504ad4642bb91c5b87ea4f6534490758ee0bf3
MD5 2761c690bc891fe120b28d04d4f9b880
BLAKE2b-256 d9dff6f84eda5197ff0defa682d093e245639eb28ceb9abb14a3e1029030562d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.2.0-cp314-cp314-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 755d86e619a7204f751041d87a2acd45c6f5f5941565814e5d098d13b0d459ed
MD5 1af284537294f1de1735fa7fcfd4bc39
BLAKE2b-256 0457bc566c1c9113323c8a4e7851e7c2d4dbb1bef3768d61454d1871b75012d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.2.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d0526fca3ca867bdf3e1f5424e21176c28bc215e4340969e40925d64ed9d7567
MD5 ef763e9d603b137db9f0cc11f2b53869
BLAKE2b-256 da006246dc183e7c764b188becefeb504ed98aa62607207d651a965d62eaa73f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.2.0-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 c54fbf20578e5e9ce9b97bd491ef6cce26b9b1fc4e95d2ae77ebcce1deaed2d7
MD5 1aa9925355d794b53cf7bfe810d4c972
BLAKE2b-256 5b4e0d23c3fe2ce38b2b51eeaa4adb153d824f2f8dfb33035e41e2bd019e0f2f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f6fb5e7dd72f4013ad1375c9d83b450f6a3edf9faf119c9b156f184204ed0351
MD5 b05ae636e3441cbb41989ff5797cb78f
BLAKE2b-256 2303bbb4641a603dd18276d0ee9575090c1b7c0991bc4f09e57a2be2932edc1f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.2.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 231ed0005637436510976f3548cdb3a69a8bfb595defe60c99df7ba1d44ace3c
MD5 648d3637a192404b1f2902cda693eec1
BLAKE2b-256 8a70d9ed83d08d45f3badd333442af5d52d01fbce2beeab65bc2c915a5821899

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f544c7143c5dd730972d8123dd1bf5271f56ec5c59239773a82bf3ac1786b4d8
MD5 b220f5e2abbe52acba0bd5613323d209
BLAKE2b-256 037060e0ce933e21ff2d3ce3d9471b7b044a520785c904f19cc942f286b41da7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.2.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cc2a9c5194c632d01677195e0eb5bce6e17a048db2414bfe9818df3cbc7f4dfb
MD5 e4305cfb8da882609d7a24320fc2cd4d
BLAKE2b-256 f5fddd0a999121bbb7d3b40ccec8a8fe13911db917178a65b5b82348675ebbee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1401d79a3deba86483da12ac5b2c78838b2eda622322fa929a91f29a365e93fe
MD5 d97a7c61cd6d94bed1900a51fce22ccb
BLAKE2b-256 a406cbe606d0dd27411c7880bbffd9d4ab63dfb75cc6d7d5c7e1208c18d486e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.2.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1976501d40db0af4f36286013ceb2ea26b355e4f60ab7e56a156a44ae05a894b
MD5 0422abbcf40a247652f0c916e1fda41a
BLAKE2b-256 bd2716961aea01734c246025fcc2382aeb43b77c08e943241650017c9db77ebe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a6adcf84e7db4e16a95d924a9567ecca29546bd3887651988298754ea2537152
MD5 868b47661c26661246d7eae2120625e2
BLAKE2b-256 a2378b086eafc728ae9c8b94df43e25a17e018f0285228e835c6fc1e3b4bf258

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppet-2.2.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 77edbc0ff3c93bf895383a91d726281710acdf12e7b330d0468671e62c3bdae7
MD5 d45e84ea0a4019be881b18ea0233302a
BLAKE2b-256 37ffd1bc7add879bb0bee069a454699ec75eec5fc0d317a92fb0b61898bcc0bf

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