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.3-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (33.7 MB view details)

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

madspace-0.1.3-cp314-cp314t-macosx_14_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.14tmacOS 14.0+ ARM64

madspace-0.1.3-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (33.6 MB view details)

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

madspace-0.1.3-cp314-cp314-macosx_14_0_arm64.whl (2.1 MB view details)

Uploaded CPython 3.14macOS 14.0+ ARM64

madspace-0.1.3-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (33.6 MB view details)

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

madspace-0.1.3-cp313-cp313-macosx_14_0_arm64.whl (2.1 MB view details)

Uploaded CPython 3.13macOS 14.0+ ARM64

madspace-0.1.3-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (33.6 MB view details)

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

madspace-0.1.3-cp312-cp312-macosx_14_0_arm64.whl (2.1 MB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

madspace-0.1.3-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (33.6 MB view details)

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

madspace-0.1.3-cp311-cp311-macosx_14_0_arm64.whl (2.1 MB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

File details

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

File metadata

File hashes

Hashes for madspace-0.1.3-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 631bda21903f472c29aa213137173a7296d04dba408e63a630a1eaf7e1acdb17
MD5 4909f5f9e9ff9c9f4b089827253c168b
BLAKE2b-256 076277f3ea61ddb2b55b329946aff1cfb35d1ee9f7dd9682a323506c61d30030

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madspace-0.1.3-cp314-cp314t-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 ddd12135803825b1d27f1ec25d394494d996046825490d7e6a2d8e8a702e1b03
MD5 d21f0dc3b89464640425977815c88cdf
BLAKE2b-256 55dee1fc263ccf01123319a3cdaa28ef1e25a0f3b9a8325af99e82efd17ea080

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madspace-0.1.3-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7ad5fc174309af6e588b126d7b862bafd1fdae2737a02b924c18943cc4f4e3eb
MD5 22fe89c87a2f29e141d7a829e0103d70
BLAKE2b-256 878f03c1c0a1c0d9bfc9acb94080ef4854b19a212a1fa80d05ff2ee2944a8b91

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madspace-0.1.3-cp314-cp314-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 6984272c164fa47fe73f8c4f3e513657ced9443c2c43f592d83d1580c152979b
MD5 40f5d7f7ece72f9366edc43bda396423
BLAKE2b-256 2f594eea6639f5c45d430fd29a2114f3b99a41cd416b53c429bd994b5842a6ce

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madspace-0.1.3-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 54cebe7eae4fb18da13b421d2ac2979a37b349fcf58db081f42787ab96b90558
MD5 a8d216e56aecba103cf98fcf881f17b6
BLAKE2b-256 6b7acca18ad28d5b1bd5aa7ad8d17a17b434c999850d0a830e14b6335eddc384

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madspace-0.1.3-cp313-cp313-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 0a5834d78325b64fc70b439c2fe6e48a9a06eb9bb74110c09f055865a4473042
MD5 fc96fe8921d547c9e77abf7726165cfa
BLAKE2b-256 137904bc9a096f4677019718feed1f8d6d25f5902ecbfbbffcfa655e4c6e0a9c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madspace-0.1.3-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7946824a189f2a7cdffc4d1805101c6e77f514a41cf1adc40cf8531c7163345f
MD5 f4e2a11d858a1af76a6f601add6ea6dc
BLAKE2b-256 d3c84a55fa8cc41f02e14558431e12b1bd7c0cfe73acbd8bbc63e7b96819e23f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madspace-0.1.3-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 1928ef2a436ba2569ee0f642a7cc33452866ada8aee90b82360969defa89a595
MD5 3a0343bb5bc01b4c3822ccc630a6bece
BLAKE2b-256 ecd6c1d15dc7460ee10ecd3acab231c2f120a0171ba9f5ce7a4911233b6aa3dc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madspace-0.1.3-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 52aac81ef1b22041ab9e27d15b3e937a2e8dfb10fb3daacb3fc3d7f7d526d8ef
MD5 82a426738ea1b51fae907220ab08c665
BLAKE2b-256 8ea5555c22675c003b594efa85fbf677226c1f83efd4217141712f7251fbda3a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madspace-0.1.3-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 0dbd7920bb8e5780d53e1654f833202de84b4a3b9d92aba0c72018f98d755968
MD5 17797fa6213ba3e6f0ad8362d1ed1e83
BLAKE2b-256 6ca1de08b2dfe9400ce3ad3336dd29e1b0ea6728ea4bedc5adc3ad22fba12ae9

See more details on using hashes here.

Provenance

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