Project

Muon g-2 & PSXM modelling

Research · April and July–September 2026 · Scientific Python

Two research studies connected to the muon g-2 experiment: a toy analysis of decay-positron time spectra, followed by a numerical study of a six-coil steering magnet for spiral injection.

Python Simulation Data analysis
A conceptual decay waveform and six-coil magnetic field
Concept illustration. Original project evidence follows below.

Toy Monte Carlo analysis

The toy study extracts the anomalous precession frequency ωa from simulated decay-positron times and compares the fitted value with the known input. One saved fit differs from that input by 0.64 reported standard errors; this is a single-fit comparison.

Analysis and implementation

The toy pipeline uses N(t) = N₀ e−t/τ[1 + A cos(ωat + φ)] for the five-parameter time-spectrum fit. I worked on its Python generation and analysis code, debugging, fitting and visualisation, with AI-assisted implementation in the first version. Saved outputs contain 10.99 million selected positron counts. I compared toy and ROOT-data residuals using FFT analysis and documented assumptions and mismatches in a 12-page technical report.

Try it: fit the wiggle by hand

Each press of "New toy data" draws a fresh decay spectrum from the five-parameter model with hidden values of A, ωa and φ, plus Poisson-like noise. Move the sliders until the curve follows the data; χ²/ndf near 1 means a statistically good fit. The script fits the same model with SciPy.

PSXM Magnet Design

Shanghai Jiao Tong University · Summer research, July–September 2026

I formulated a six-coil magnet model in Python/NumPy and used least-squares current solves to investigate dipole and quadrupole field patterns. I compared numerical results with an analytic ideal-shell reference and examined the trade-off between shielding radius and field capability within the 2D approximation.

I co-authored a 19-page design report with Zejia Lu under Professor Liang Li and presented the study to SJTU–KEK collaborators. The results describe a numerical magnetostatic model, not measured hardware performance.

Results & evidence

Muon g-2 toy Monte Carlo data and five-parameter wiggle fits
Original Toy Monte Carlo time spectra and five-parameter wiggle fits.
Comparison of residual structures in muon g-2 spectra
Residual comparison used to identify structure not captured by the toy model.
Solved PSXM magnetic field lines and coil currents
A related design study of the inner PSXM coil system for spiral injection.

The toy model is deliberately simplified. The reports distinguish simulated behaviour, adopted design benchmarks, and limitations from claims about the full experiment.