Skip to main content

Local-first particle decay simulator

Project description

ColliderX

ColliderX is a local-first particle decay simulator (MVP).

Run a short end-to-end flow: event simulation → Feynman diagram → summary plots.

Install

python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

Install Graphviz (optional, only needed for rendered feynman.png):

macOS:

brew install graphviz

Linux (Debian/Ubuntu):

sudo apt-get update
sudo apt-get install -y graphviz

Windows (PowerShell):

# Option 1: winget
winget install Graphviz.Graphviz

# Option 2: Chocolatey
choco install graphviz

Verify Graphviz is available:

dot -V

Note: pip install colliderx cannot reliably auto-install system Graphviz (dot) across all OS/package managers. ColliderX will still run without it and fall back to DOT-only output (feynman.dot).

Quick Run

Default (interactive, show-only):

python main.py -p "Muon" -n 1000

Save outputs to disk and avoid interactive windows:

python main.py -p "Muon" -n 1000 --save --no-show -o artifacts/flow_muon

Run with a seed:

python main.py -p "Muon" -n 1000 -s 42

CLI Flags (short)

  • -p, --particle : parent particle name (positional also supported)
  • -n, --events : number of events to simulate
  • -s, --seed : random seed
  • -E, --energy : override parent energy (MeV)
  • --save : persist generated files to -o/--out
  • --no-show : do not open interactive plot windows
  • -o, --out : output directory (default artifacts/run_<timestamp>)
  • --decay : force a particular root decay mode
  • --afb : enable forward-backward asymmetry (where applicable)

Saved Outputs (--save)

  • feynman.dot (DOT source)
  • feynman.png (if Graphviz is available and rendering enabled)
  • graphs/ (PNG plots: decay modes, spectra, process-specific plots)
  • summary.txt (run summary and counts)

Tests

pytest -q

If Graphviz is not installed, the tool falls back to writing DOT files only and continues the flow.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

colliderx-0.1.0.tar.gz (57.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

colliderx-0.1.0-py3-none-any.whl (77.3 kB view details)

Uploaded Python 3

File details

Details for the file colliderx-0.1.0.tar.gz.

File metadata

  • Download URL: colliderx-0.1.0.tar.gz
  • Upload date:
  • Size: 57.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.3

File hashes

Hashes for colliderx-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8a5e15b7c8467fac45e2755259b21a1c604ff9c47a19bd01753505b42a7c1ed9
MD5 29af87533ffb20af70529b3adb212218
BLAKE2b-256 ef3199ee5c61483fc0acbb86f60b6520d4049f55f12627c849b0215816117df6

See more details on using hashes here.

File details

Details for the file colliderx-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: colliderx-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 77.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.3

File hashes

Hashes for colliderx-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 920693fbb3c68d8a7bbc66ac993c309f8ade76c19a1dfe3c4a8e27d89349248f
MD5 207ef86d3e5af7a5ae6560777d6e5db2
BLAKE2b-256 8916b646a5b9f01052411f7b8b833b30cbfec1d5da83a206227a274476ca5b21

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page