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.2-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.2-cp314-cp314t-macosx_14_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.14tmacOS 14.0+ ARM64

madspace-0.1.2-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.2-cp314-cp314-macosx_14_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.14macOS 14.0+ ARM64

madspace-0.1.2-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.2-cp313-cp313-macosx_14_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.13macOS 14.0+ ARM64

madspace-0.1.2-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.2-cp312-cp312-macosx_14_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

madspace-0.1.2-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.2-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.2-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for madspace-0.1.2-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 888b1c21f73e31c1570cf1612885d6d9919e238c2b94e77d81470931d2d8d739
MD5 19908aba42129f1e63653d1b48ed80ab
BLAKE2b-256 4c4d4b892270ab9da15783609f46187314d3863ad197570124fd2b7e8ff58a6b

See more details on using hashes here.

Provenance

The following attestation bundles were made for madspace-0.1.2-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.2-cp314-cp314t-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for madspace-0.1.2-cp314-cp314t-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 5920408252a48dc2fbc2aca8f4aaa5a8da8aef907f1c7955cff59bb43a81eaca
MD5 6706d11ec67fc014062d63bb7e9681ba
BLAKE2b-256 1d051bbacd62634e2f9334b830779116acec0e9a0b05d657af92cc845ff22607

See more details on using hashes here.

Provenance

The following attestation bundles were made for madspace-0.1.2-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.2-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for madspace-0.1.2-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a07cad8d3e6b3fbbc30adda27c8595aab43a7ce8350b82a007bb16dd02bac150
MD5 a08d7144105624427b2d1c58881e2b22
BLAKE2b-256 8265da6435fb1cba16bb26dfe7259b887d23b8a41acd66bff611f86ff22fe1fb

See more details on using hashes here.

Provenance

The following attestation bundles were made for madspace-0.1.2-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.2-cp314-cp314-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for madspace-0.1.2-cp314-cp314-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 e8b13f316ada754d66fd9852b83ebbbba17a3508ef759c432074ffafbf533bf9
MD5 8d6c9544b9a52abf3531a071a3de407c
BLAKE2b-256 4f10e4a68904a63e6098fc6cc25f81e1291ecdb76eb548a7c932a2c5482f5fba

See more details on using hashes here.

Provenance

The following attestation bundles were made for madspace-0.1.2-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.2-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for madspace-0.1.2-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a3ae1d5ec69b8aa1f331c3378077f4d7c348b296541fa2c838fbf0a2a017cf55
MD5 34ff0bdac03112daa6092c3ba27ea9e0
BLAKE2b-256 dbbd04cc97d85b92f7a7e17f07fafc6398c00544c2b3afeb5c112e63694ceea8

See more details on using hashes here.

Provenance

The following attestation bundles were made for madspace-0.1.2-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.2-cp313-cp313-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for madspace-0.1.2-cp313-cp313-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 3212807a19b6744d0bb226bda26a061293251df08ec316aebe74a46082879608
MD5 1fd67e4c2717d99ad2402d8007a6614b
BLAKE2b-256 b7f9a7d7dd7a397c2bb1bc3cf98e8f26150633c2194b3d61152e7e1e8516af6d

See more details on using hashes here.

Provenance

The following attestation bundles were made for madspace-0.1.2-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.2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for madspace-0.1.2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c4ed14afea9474a86b279b8d567d6dab931490293eb7d6b16faf6e0cca2b9533
MD5 20be5101eb4b1452a00c19ab8ebfdcac
BLAKE2b-256 cd17862df5f068044187456be113f92473b056a4dd6306601f466f589498b3df

See more details on using hashes here.

Provenance

The following attestation bundles were made for madspace-0.1.2-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.2-cp312-cp312-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for madspace-0.1.2-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 136c0ce1e6333f17c2a7a5c918d154061e24d749f5522cbdd861db82446f47ad
MD5 3faa130a576f58c3f6af6915709ee926
BLAKE2b-256 d5785e3483f26515b10964de7d7282234b290b1c89991a956256427e3af763e3

See more details on using hashes here.

Provenance

The following attestation bundles were made for madspace-0.1.2-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.2-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for madspace-0.1.2-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7947bb2954874f8490415e878910008b56829586f9fd3851387d0b22fcae1322
MD5 e3697de1ddf21ece26edb6e676a4abee
BLAKE2b-256 b83b0ae37a42f6c444dba8326c28f0d63ffb60e645f8d73a04f17680e79a6ae8

See more details on using hashes here.

Provenance

The following attestation bundles were made for madspace-0.1.2-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.2-cp311-cp311-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for madspace-0.1.2-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 636ecbcddc73a418cee322e4d492b3e09245ceb2976e5c78b2efecc4d8c32436
MD5 2e0ff50caa0488917be353426e6409de
BLAKE2b-256 6de0450a1f646cad2f8cd6637032a0f93f9355e4eb1bb9e24641da9aae07fca9

See more details on using hashes here.

Provenance

The following attestation bundles were made for madspace-0.1.2-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