Skip to main content

Fast and flexible phase space mappings

Project description

MadSpace

Modular and GPU-ready phase-space library

Arxiv Code style: black

Installation

Package

Packages on PyPI are available for Linux and MacOS X (with Apple silicon), for Python 3.11 to 3.14.

pip install madspace

Build

First install scikit_build_core with

pip install scikit_build_core

The pre-installed version of cmake under MacOS is outdated, so you might need to install a newer version, for example with

brew install cmake

Then check out the madspace repository and build and install it with

git clone git@github.com:madgraph-ml/madspace.git
cd madspace
pip install .

For a development version allowing for incremental build, use the following command instead:

pip install --no-build-isolation -Cbuild-dir=build -Ccmake.build-type=RelWithDebInfo .

This will create a directory build where you can run make directly to make development easier. To update the python module itself, make sure to also run the pip install command above again. This will not happen automatically, even if you make the installation editable! Build type RelWithDebInfo generates optimized code but includes debug symbols, so you can use lldb or gdb to debug the code.

Tests

To run the tests, you need to have the pytest, numpy and torch packages installed. One test optionally requires the lhapdf package (can be installed via conda or built from source) and the NNPDF40_nlo_as_01180 PDF set.

To run the tests, go to the root directory of the repository and run

pytest tests

Citation

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

@article{Heimel:2026hgp,
author = "Heimel, Theo and Mattelaer, Olivier and Winterhalder, Ramon",
title = "{MadSpace -- Event Generation for the Era of GPUs and ML}",
eprint = "2602.06895",
archivePrefix = "arXiv",
primaryClass = "hep-ph",
reportNumber = "MCNET-26-01, IRMP-CP3-26-04, TIF-UNIMI-2026-1",
month = "2",
year = "2026"}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

madspace-0.1.1-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (31.7 MB view details)

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

madspace-0.1.1-cp314-cp314t-macosx_14_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.14tmacOS 14.0+ ARM64

madspace-0.1.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (31.7 MB view details)

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

madspace-0.1.1-cp314-cp314-macosx_14_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.14macOS 14.0+ ARM64

madspace-0.1.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (31.7 MB view details)

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

madspace-0.1.1-cp313-cp313-macosx_14_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.13macOS 14.0+ ARM64

madspace-0.1.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (31.7 MB view details)

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

madspace-0.1.1-cp312-cp312-macosx_14_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

madspace-0.1.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (31.7 MB view details)

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

madspace-0.1.1-cp311-cp311-macosx_14_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

File details

Details for the file madspace-0.1.1-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for madspace-0.1.1-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6c24e4c886080862d7cf880c32c75820477b98bdd287ba68083090bce97bff9b
MD5 6f8e6d611abf0ca06172f5cf77c837ca
BLAKE2b-256 9cce59816fe272ee1c9a7622562a85b1c5e17dfce1940f44fd76a9714ba0ca1e

See more details on using hashes here.

Provenance

The following attestation bundles were made for madspace-0.1.1-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: madspace.yml on MadGraphTeam/MadGraph7

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

File details

Details for the file madspace-0.1.1-cp314-cp314t-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for madspace-0.1.1-cp314-cp314t-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 e06beaba6323d2967e64ef5d8fe1b36542012542c64d428622b4edf402fbccd2
MD5 437c74407b356f2ad41fb4ab7149737b
BLAKE2b-256 8ca22996b5a8ba7703ea23e02aceb36d1d5d73107615066000b86e6c552c430c

See more details on using hashes here.

Provenance

The following attestation bundles were made for madspace-0.1.1-cp314-cp314t-macosx_14_0_arm64.whl:

Publisher: madspace.yml on MadGraphTeam/MadGraph7

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

File details

Details for the file madspace-0.1.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for madspace-0.1.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 64f69d107a4728890b8633b74829b11700327a325f2f4e9088191a6ade0f84d3
MD5 fa8b31e3245f275fb4766ede275b90d6
BLAKE2b-256 fdd8caa5e768e14d77c051f3943d9ce33f51399285953f610365328bad59b75d

See more details on using hashes here.

Provenance

The following attestation bundles were made for madspace-0.1.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: madspace.yml on MadGraphTeam/MadGraph7

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

File details

Details for the file madspace-0.1.1-cp314-cp314-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for madspace-0.1.1-cp314-cp314-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 b012ac773cc92343ef4aef40445f2ecc4bc4bbfd322d60ef141b87a64cfaa283
MD5 a48c0b1a92d1e095a04e5539cd3fdf7d
BLAKE2b-256 ce3e3230b01bfca8945b03da7c5358d232c77d95e709dc9a1a6482c68ffab40d

See more details on using hashes here.

Provenance

The following attestation bundles were made for madspace-0.1.1-cp314-cp314-macosx_14_0_arm64.whl:

Publisher: madspace.yml on MadGraphTeam/MadGraph7

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

File details

Details for the file madspace-0.1.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for madspace-0.1.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 74bfe67aa28f044d479114a829e41f8c248948a229a10c66b5ace3017e363fd5
MD5 76bdeea567e61c5f9c2453606469bd22
BLAKE2b-256 aedca84e24e9b2c29f81c5c8cc90692f48fa38960d279e93e072d0eed309b498

See more details on using hashes here.

Provenance

The following attestation bundles were made for madspace-0.1.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: madspace.yml on MadGraphTeam/MadGraph7

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

File details

Details for the file madspace-0.1.1-cp313-cp313-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for madspace-0.1.1-cp313-cp313-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 cbd5e2c7833d5822cab38de960e31e703fdcc774c87ac3bd41c8ee34b89a9363
MD5 4292e2013f176de013374c29d0ce4f0c
BLAKE2b-256 7328bb37c92a2578e4b56092ac42de4c90280d5690565719a4c2cb4b33e9981e

See more details on using hashes here.

Provenance

The following attestation bundles were made for madspace-0.1.1-cp313-cp313-macosx_14_0_arm64.whl:

Publisher: madspace.yml on MadGraphTeam/MadGraph7

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

File details

Details for the file madspace-0.1.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for madspace-0.1.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5b2f283f799a050b8d45c17d6b9eb2ccccfc61266775e5f0fc261ac0eb83fb09
MD5 12213c03cd38272d7087d1bc08525adc
BLAKE2b-256 d19cdc3ada6699374708863b3d18f9188879718bb234d88ba89708f8327cfe37

See more details on using hashes here.

Provenance

The following attestation bundles were made for madspace-0.1.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: madspace.yml on MadGraphTeam/MadGraph7

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

File details

Details for the file madspace-0.1.1-cp312-cp312-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for madspace-0.1.1-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 9bbda3b88ae20cd9eb3d7c1ea3a0c8bb87037c2145f08d6f465e8c8b329419c5
MD5 fe0e641f688b1d5443a7cfb08214ace2
BLAKE2b-256 f246c62346e8e6b0afd3c8e897c89d6ba37c25a1e281db3cc3ed7ae9f4c4332c

See more details on using hashes here.

Provenance

The following attestation bundles were made for madspace-0.1.1-cp312-cp312-macosx_14_0_arm64.whl:

Publisher: madspace.yml on MadGraphTeam/MadGraph7

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

File details

Details for the file madspace-0.1.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for madspace-0.1.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 40bdbcd10889d65e0000ae158259a6d9f9793990461cf169bdcc63ddcf9d83f5
MD5 226d9a32ccbc64a387b361fcff28c46c
BLAKE2b-256 80abbdea0c35dd13e497a15f36f4f97e41c5b708648c9e1bdb1f9900e8bd7aa8

See more details on using hashes here.

Provenance

The following attestation bundles were made for madspace-0.1.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: madspace.yml on MadGraphTeam/MadGraph7

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

File details

Details for the file madspace-0.1.1-cp311-cp311-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for madspace-0.1.1-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 a3cbde362c622282b32001ada3c1da977432b8164fc532ef53a6e99b424b8fa3
MD5 d5e689a7c133bb5c6f5ae755005f1148
BLAKE2b-256 ac76f511d4d3457bc40d375e970b530881fc299cb011948130882d15d4553012

See more details on using hashes here.

Provenance

The following attestation bundles were made for madspace-0.1.1-cp311-cp311-macosx_14_0_arm64.whl:

Publisher: madspace.yml on MadGraphTeam/MadGraph7

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