Python API

Reference for the classes and free functions exposed by the madspace Python module, one page per class or function.

Phase-space mappings

Invertible maps between the unit hypercube and physical phase space; each also returns its Jacobian weight.

Function generators

Builders that assemble compute-graph functions for channel weights, energy scales and network outputs.

Phase-space building blocks

Supporting types shared by the mappings: topologies, cuts, observables and density grids.

Compute graph

The typed value model and the builder API used to record and compile functions from instructions.

Driver and runtime

The high-level driver plus the tensor and device layer it runs on: integration, unweighting, event output and execution.

Utilities

Lower-level helpers and containers.