Xsuite is an integrated suite for particle accelerator simulations, combining tracking, beam dynamics, and analysis tools. Current version 0.51.4 (released 2025), with regular updates. Requires Python >=3.11.
pip install xsuiteNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Create a simple accelerator line with a drift and track a particle for 10 turns.
Replace `import xline` with `import xtrack` and update API calls.
Use direct imports: `import xtrack`, `import xpart`, etc.
Use `mass0=xp.ELECTRON_MASS_EV` -> `mass=xp.ELECTRON_MASS_EV`, `q0=1` -> `charge=1`.
Always assign `line.particle_ref` before calling `line.build_tracker()`.
Use `import xtrack` instead. Replace `xline.Line` with `xt.Line`.
Import directly: `import xtrack` (not `from xsuite import xtrack`).
Set `line.particle_ref = xp.Particles(...)` before calling `line.build_tracker()`.
No dependency data recorded yet.
No resource links recorded.