GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — DOC: use EvtGen in all examples by redeboer · Pull Request #602 · ComPWA/tensorwaves

Conversation

@redeboer

@redeboer redeboer commented Nov 8, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Note

This draft documents a possible direction and is not meant to be merged as is. It is based on phase-space-backends-evtgen, which merges #598 and #599.

  • Relates to Add EvtGen as phase space backend #600
  • Relates to Generate phase space samples without TensorFlow by default #601

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.

All reactions
redeboer added 3 commits November 8, 2026 10:31
@redeboer
DOC: compare phase space backends for four-body decays and in a bench…
c90f21f
…mark
@redeboer
DX: build documentation with native uv support on Read the Docs
b9e5844
@redeboer
DOC: use EvtGen in all examples
088a548
@redeboer redeboer added this to the 0.5.0 milestone Nov 8, 2026
@redeboer redeboer added the 📝 Docs Improvements or additions to documentation label Nov 8, 2026
@redeboer
ENH: drop TF prefix from phase space generators
29438c8
@redeboer redeboer added the ⚙️ Enhancement Improvements and optimizations of existing features label Nov 8, 2026
redeboer added 2 commits November 8, 2026 20:40
@redeboer
MAINT: merge branch 'phasespace-numpy-backend' into evtgen-documentat…
335430d
…ion-examples

# Conflicts:
#	docs/usage/phase-space.ipynb
@redeboer
MAINT: lock pyevtgen version that is available on test index
f5c776d

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

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

Projects

None yet

Milestone

0.6.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@redeboer
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.