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.
- BufferUnweighter
- CachedPdf
- CachedScale
- ChannelWeightNetwork
- CustomFunction
- CutItem
- Cuts
- DifferentialCrossSection
- DiscreteHistogram
- EnergyScale
- FunctionGenerator
- HistItem
- Integrand
- IntegrandProbability
- MLP
- MadnisLoss
- MatrixElement
- MomentumPreprocessing
- MultiChannelFunction
- MultiChannelIntegrand
- Observable
- ObservableHistograms
- ObservableValues
- PartonDensity
- PropagatorChannelWeights
- RunningCoupling
- SubchannelWeights
- Unweighter
- VegasHistogram
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.
- AdamOptimizer
- ChannelEventGenerator
- Context
- Device
- DiscreteOptimizer
- EventGenerator
- EventHistogramSpec
- EventHistograms
- GeneratorConfig
- GeneratorStatus
- Histogram
- LHECompleter
- LHEEvent
- LHEFileWriter
- LHEHeader
- LHEMeta
- LHEParticle
- LHEProcess
- Logger
- MadnisConfig
- MadnisTraining
- MatrixElementApi
- MixMaxRandom
- MultiMadnisTraining
- PdfGroupInfo
- PdfMemberSpec
- PrettyBox
- StatusFile
- SubprocArgs
- SubprocessObservables
- SubprocessSystArgs
- SystematicsCalculator
- SystematicsConfig
- Tensor
- TrainingArgs
- Variation
- VegasGridOptimizer
- Verbosity
- available_backends
- compute_generation_batch_event_count
- cpu_device
- cuda_device
- default_context
- default_cuda_context
- default_hip_context
- format_progress
- format_si_prefix
- format_with_error
- hip_device
- select_combine_channel_index
- set_lib_path
- set_simd_vector_size
Utilities¶
Lower-level helpers and containers.