Fast and flexible phase space mappings
Project description
Modular and GPU-ready phase-space library
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
- Download URL: madspace-0.1.1-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 31.7 MB
- Tags: CPython 3.14t, manylinux: glibc 2.27+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c24e4c886080862d7cf880c32c75820477b98bdd287ba68083090bce97bff9b
|
|
| MD5 |
6f8e6d611abf0ca06172f5cf77c837ca
|
|
| BLAKE2b-256 |
9cce59816fe272ee1c9a7622562a85b1c5e17dfce1940f44fd76a9714ba0ca1e
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
madspace-0.1.1-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl -
Subject digest:
6c24e4c886080862d7cf880c32c75820477b98bdd287ba68083090bce97bff9b - Sigstore transparency entry: 937762245
- Sigstore integration time:
-
Permalink:
MadGraphTeam/MadGraph7@ffb1610612422ea5d42ec315e318b3de316d2e09 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/MadGraphTeam
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
madspace.yml@ffb1610612422ea5d42ec315e318b3de316d2e09 -
Trigger Event:
release
-
Statement type:
File details
Details for the file madspace-0.1.1-cp314-cp314t-macosx_14_0_arm64.whl.
File metadata
- Download URL: madspace-0.1.1-cp314-cp314t-macosx_14_0_arm64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.14t, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e06beaba6323d2967e64ef5d8fe1b36542012542c64d428622b4edf402fbccd2
|
|
| MD5 |
437c74407b356f2ad41fb4ab7149737b
|
|
| BLAKE2b-256 |
8ca22996b5a8ba7703ea23e02aceb36d1d5d73107615066000b86e6c552c430c
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
madspace-0.1.1-cp314-cp314t-macosx_14_0_arm64.whl -
Subject digest:
e06beaba6323d2967e64ef5d8fe1b36542012542c64d428622b4edf402fbccd2 - Sigstore transparency entry: 937762290
- Sigstore integration time:
-
Permalink:
MadGraphTeam/MadGraph7@ffb1610612422ea5d42ec315e318b3de316d2e09 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/MadGraphTeam
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
madspace.yml@ffb1610612422ea5d42ec315e318b3de316d2e09 -
Trigger Event:
release
-
Statement type:
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
- Download URL: madspace-0.1.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 31.7 MB
- Tags: CPython 3.14, manylinux: glibc 2.27+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64f69d107a4728890b8633b74829b11700327a325f2f4e9088191a6ade0f84d3
|
|
| MD5 |
fa8b31e3245f275fb4766ede275b90d6
|
|
| BLAKE2b-256 |
fdd8caa5e768e14d77c051f3943d9ce33f51399285953f610365328bad59b75d
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
madspace-0.1.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl -
Subject digest:
64f69d107a4728890b8633b74829b11700327a325f2f4e9088191a6ade0f84d3 - Sigstore transparency entry: 937762337
- Sigstore integration time:
-
Permalink:
MadGraphTeam/MadGraph7@ffb1610612422ea5d42ec315e318b3de316d2e09 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/MadGraphTeam
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
madspace.yml@ffb1610612422ea5d42ec315e318b3de316d2e09 -
Trigger Event:
release
-
Statement type:
File details
Details for the file madspace-0.1.1-cp314-cp314-macosx_14_0_arm64.whl.
File metadata
- Download URL: madspace-0.1.1-cp314-cp314-macosx_14_0_arm64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.14, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b012ac773cc92343ef4aef40445f2ecc4bc4bbfd322d60ef141b87a64cfaa283
|
|
| MD5 |
a48c0b1a92d1e095a04e5539cd3fdf7d
|
|
| BLAKE2b-256 |
ce3e3230b01bfca8945b03da7c5358d232c77d95e709dc9a1a6482c68ffab40d
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
madspace-0.1.1-cp314-cp314-macosx_14_0_arm64.whl -
Subject digest:
b012ac773cc92343ef4aef40445f2ecc4bc4bbfd322d60ef141b87a64cfaa283 - Sigstore transparency entry: 937762503
- Sigstore integration time:
-
Permalink:
MadGraphTeam/MadGraph7@ffb1610612422ea5d42ec315e318b3de316d2e09 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/MadGraphTeam
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
madspace.yml@ffb1610612422ea5d42ec315e318b3de316d2e09 -
Trigger Event:
release
-
Statement type:
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
- Download URL: madspace-0.1.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 31.7 MB
- Tags: CPython 3.13, manylinux: glibc 2.27+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74bfe67aa28f044d479114a829e41f8c248948a229a10c66b5ace3017e363fd5
|
|
| MD5 |
76bdeea567e61c5f9c2453606469bd22
|
|
| BLAKE2b-256 |
aedca84e24e9b2c29f81c5c8cc90692f48fa38960d279e93e072d0eed309b498
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
madspace-0.1.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl -
Subject digest:
74bfe67aa28f044d479114a829e41f8c248948a229a10c66b5ace3017e363fd5 - Sigstore transparency entry: 937762426
- Sigstore integration time:
-
Permalink:
MadGraphTeam/MadGraph7@ffb1610612422ea5d42ec315e318b3de316d2e09 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/MadGraphTeam
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
madspace.yml@ffb1610612422ea5d42ec315e318b3de316d2e09 -
Trigger Event:
release
-
Statement type:
File details
Details for the file madspace-0.1.1-cp313-cp313-macosx_14_0_arm64.whl.
File metadata
- Download URL: madspace-0.1.1-cp313-cp313-macosx_14_0_arm64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.13, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cbd5e2c7833d5822cab38de960e31e703fdcc774c87ac3bd41c8ee34b89a9363
|
|
| MD5 |
4292e2013f176de013374c29d0ce4f0c
|
|
| BLAKE2b-256 |
7328bb37c92a2578e4b56092ac42de4c90280d5690565719a4c2cb4b33e9981e
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
madspace-0.1.1-cp313-cp313-macosx_14_0_arm64.whl -
Subject digest:
cbd5e2c7833d5822cab38de960e31e703fdcc774c87ac3bd41c8ee34b89a9363 - Sigstore transparency entry: 937762464
- Sigstore integration time:
-
Permalink:
MadGraphTeam/MadGraph7@ffb1610612422ea5d42ec315e318b3de316d2e09 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/MadGraphTeam
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
madspace.yml@ffb1610612422ea5d42ec315e318b3de316d2e09 -
Trigger Event:
release
-
Statement type:
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
- Download URL: madspace-0.1.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 31.7 MB
- Tags: CPython 3.12, manylinux: glibc 2.27+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b2f283f799a050b8d45c17d6b9eb2ccccfc61266775e5f0fc261ac0eb83fb09
|
|
| MD5 |
12213c03cd38272d7087d1bc08525adc
|
|
| BLAKE2b-256 |
d19cdc3ada6699374708863b3d18f9188879718bb234d88ba89708f8327cfe37
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
madspace-0.1.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl -
Subject digest:
5b2f283f799a050b8d45c17d6b9eb2ccccfc61266775e5f0fc261ac0eb83fb09 - Sigstore transparency entry: 937762211
- Sigstore integration time:
-
Permalink:
MadGraphTeam/MadGraph7@ffb1610612422ea5d42ec315e318b3de316d2e09 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/MadGraphTeam
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
madspace.yml@ffb1610612422ea5d42ec315e318b3de316d2e09 -
Trigger Event:
release
-
Statement type:
File details
Details for the file madspace-0.1.1-cp312-cp312-macosx_14_0_arm64.whl.
File metadata
- Download URL: madspace-0.1.1-cp312-cp312-macosx_14_0_arm64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.12, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bbda3b88ae20cd9eb3d7c1ea3a0c8bb87037c2145f08d6f465e8c8b329419c5
|
|
| MD5 |
fe0e641f688b1d5443a7cfb08214ace2
|
|
| BLAKE2b-256 |
f246c62346e8e6b0afd3c8e897c89d6ba37c25a1e281db3cc3ed7ae9f4c4332c
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
madspace-0.1.1-cp312-cp312-macosx_14_0_arm64.whl -
Subject digest:
9bbda3b88ae20cd9eb3d7c1ea3a0c8bb87037c2145f08d6f465e8c8b329419c5 - Sigstore transparency entry: 937762106
- Sigstore integration time:
-
Permalink:
MadGraphTeam/MadGraph7@ffb1610612422ea5d42ec315e318b3de316d2e09 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/MadGraphTeam
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
madspace.yml@ffb1610612422ea5d42ec315e318b3de316d2e09 -
Trigger Event:
release
-
Statement type:
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
- Download URL: madspace-0.1.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 31.7 MB
- Tags: CPython 3.11, manylinux: glibc 2.27+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40bdbcd10889d65e0000ae158259a6d9f9793990461cf169bdcc63ddcf9d83f5
|
|
| MD5 |
226d9a32ccbc64a387b361fcff28c46c
|
|
| BLAKE2b-256 |
80abbdea0c35dd13e497a15f36f4f97e41c5b708648c9e1bdb1f9900e8bd7aa8
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
madspace-0.1.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl -
Subject digest:
40bdbcd10889d65e0000ae158259a6d9f9793990461cf169bdcc63ddcf9d83f5 - Sigstore transparency entry: 937762155
- Sigstore integration time:
-
Permalink:
MadGraphTeam/MadGraph7@ffb1610612422ea5d42ec315e318b3de316d2e09 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/MadGraphTeam
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
madspace.yml@ffb1610612422ea5d42ec315e318b3de316d2e09 -
Trigger Event:
release
-
Statement type:
File details
Details for the file madspace-0.1.1-cp311-cp311-macosx_14_0_arm64.whl.
File metadata
- Download URL: madspace-0.1.1-cp311-cp311-macosx_14_0_arm64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.11, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3cbde362c622282b32001ada3c1da977432b8164fc532ef53a6e99b424b8fa3
|
|
| MD5 |
d5e689a7c133bb5c6f5ae755005f1148
|
|
| BLAKE2b-256 |
ac76f511d4d3457bc40d375e970b530881fc299cb011948130882d15d4553012
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
madspace-0.1.1-cp311-cp311-macosx_14_0_arm64.whl -
Subject digest:
a3cbde362c622282b32001ada3c1da977432b8164fc532ef53a6e99b424b8fa3 - Sigstore transparency entry: 937762380
- Sigstore integration time:
-
Permalink:
MadGraphTeam/MadGraph7@ffb1610612422ea5d42ec315e318b3de316d2e09 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/MadGraphTeam
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
madspace.yml@ffb1610612422ea5d42ec315e318b3de316d2e09 -
Trigger Event:
release
-
Statement type: