Skip to main content

Library for neural importance sampling

Project description

MadNIS

Neural Multi-Channel Importance Sampling

Build Status Arxiv Code style: black pytorch

MadNIS is a Python library for neural multi-channel importance sampling based on PyTorch. It will be used for Monte Carlo LHC event generation in future versions of MadGraph. This repository provides the MadNIS code as a stand-alone library that can be applied to arbitrary Monte Carlo integration and importance sampling tasks.

This repository contains a refactored version of the code used in our publication The MadNIS reloaded. It is still under active development and will receive frequent updates and bugfixes.

The documentation of the madnis package can be found under docs.madnis.ai.

Installation

You can either install the latest release using pip

pip install madnis

or clone the repository and install the package in dev mode

# clone the repository
git clone https://github.com/madgraph-ml/madnis.git
# then install in dev mode
cd madnis
pip install --editable .

Citation

If you use this code or parts of it, please cite:

@article{Heimel:2023ngj,
  author = "Heimel, Theo and Huetsch, Nathan and Maltoni, Fabio and Mattelaer, Olivier and Plehn, Tilman and Winterhalder, Ramon",
  title = "{The MadNIS reloaded}",
  eprint = "2311.01548",
  archivePrefix = "arXiv",
  primaryClass = "hep-ph",
  reportNumber = "IRMP-CP3-23-56, MCNET-23-12",
  doi = "10.21468/SciPostPhys.17.1.023",
  journal = "SciPost Phys.",
  volume = "17",
  number = "1",
  pages = "023",
  year = "2024"}

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

madnis-0.2.2.tar.gz (37.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

madnis-0.2.2-py3-none-any.whl (43.3 kB view details)

Uploaded Python 3

File details

Details for the file madnis-0.2.2.tar.gz.

File metadata

  • Download URL: madnis-0.2.2.tar.gz
  • Upload date:
  • Size: 37.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for madnis-0.2.2.tar.gz
Algorithm Hash digest
SHA256 a4cab69964e042bc0b4bc179936b80b1d0cb459c704716203d5d19d9aa688cb6
MD5 67d6c461a3c95dd23a4b4505723744a6
BLAKE2b-256 3af3558a5133ddcb947c9553e0e1000a1831fdb70c5f5f9aac7c2425e909ad29

See more details on using hashes here.

Provenance

The following attestation bundles were made for madnis-0.2.2.tar.gz:

Publisher: release.yml on madgraph-ml/madnis

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file madnis-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: madnis-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 43.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for madnis-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7e2af637d1e94f7d8aae58fcdc54cc688d9e7ed8f4ba177aaf6b029cb33a8d90
MD5 9b410172bfb64e4f8bdecd438af6f0a2
BLAKE2b-256 1d9db608b3170b089adc43ed218bbcc77e2aca7ac392c9289cd6cc6c05696970

See more details on using hashes here.

Provenance

The following attestation bundles were made for madnis-0.2.2-py3-none-any.whl:

Publisher: release.yml on madgraph-ml/madnis

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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