GeezerVison is showing github.com — DOC: use EvtGen in all examples by redeboer · Pull Request #602 · ComPWA/tensorwaves
Conversation
redeboer
commented
Nov 8, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Preview of the changed documentation pages: Phase space generators, Amplitude analysis, Analytic continuation, and Installation
⚙️ Enhancements
TFPhaseSpaceGenerator and TFWeightedPhaseSpaceGenerator are renamed to PhaseSpaceGenerator and WeightedPhaseSpaceGenerator, because they no longer require TensorFlow. The old names remain available as aliases, so existing code keeps working.
📝 Documentation
- All examples, including Amplitude analysis and Analytic continuation, now generate phase space samples with
EvtGenPhaseSpaceGenerator. The intensity-based sample uses the unweighted EvtGen sample as its domain, so it no longer needs WeightedPhaseSpaceGenerator.
- The Phase space generators page recommends EvtGen and presents
PhaseSpaceGenerator with its NumPy, JAX, and TensorFlow backends as an alternative for environments where pyevtgen is unavailable. With the NumPy backend, phasespace only depends on NumPy, so this may include Pyodide, which has not been tested.
- The benchmark on that page combines the benchmark of BEHAVIOR: generate phase space with NumPy #599 with EvtGen: it times all generators for three-body decays of increasing sample size and for three to eight pions, both for the unweighted generators and for
WeightedPhaseSpaceGenerator. EvtGen is the fastest unweighted generator, for instance 0.07 s against 5 s for the fastest phasespace backend for 10,000 six-pion events. The page explains that this is caused by the hit-and-miss step of PhaseSpaceGenerator: phasespace normalizes its weights to a loose upper bound, so the acceptance equals the mean weight, which drops from 0.27 for three pions to 10⁻⁵ for eight. The page therefore recommends WeightedPhaseSpaceGenerator as the domain of an IntensityDistributionGenerator.
- The four-body section from BEHAVIOR: generate phase space with NumPy #599 compares the Cabibbo–Maksymowicz variables of all four generators.
- The limitation of EvtGen is described as depending on the final state masses, instead of dropping by a factor of ten per additional particle.
Squash commit messages
* ENH: drop TF prefix from phase space generators
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…ion-examples
# Conflicts:
# docs/usage/phase-space.ipynb
This branch has not been deployed
No deployments
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
📝 Docs
Improvements or additions to documentation
⚙️ Enhancement
Improvements and optimizations of existing features
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|