Finite-group and model-building utilities interfacing with GAP
Project description
FlavorBuilder
A unified Python framework for model building with finite flavor symmetries in particle physics. It integrates group-theory computations via GAP with model-building tools for constructing and analyzing flavor models. This package serves as a core component supporting our work in arXiv:2506.08080 [hep-ph].
PyDiscrete: a Python reimplementation of the Mathematica package Discrete, enabling group-theory computations via GAP. It extracts group properties, character tables, computes Kronecker products and Clebsch-Gordan coefficients. See the tutorial notebook "TutorialPyDiscrete.ipynb" for more details.
Model2Mass: a symbolic and numerical framework for constructing Lagrangians, derive mass matrices, and compute phenomenologically relevant quantities for BSM flavor models with finite flavor symmetry.
The Tutorials folder in the GitHub contains Jupyter notebooks demonstrating how to use the two core packages. The FastEvaluation folder in the GitHub includes a notebook with all the necessary code to derive the analytical expressions for the mass matrices and compute the corresponding χ² values using the parameters stored in the .txt files. This notebook can also be used to validate the neutrino flavor models presented in arXiv:2506.08080 [hep-ph] .
Requirements:
- Python ≥ 3.9
- GAP ≥ 4.11.1
- Dependencies: numpy, sympy, pandas, json, os, itertools, random, collections, numbers, subprocess, ast, re, pickle and the optionally IPython (for LaTeX table visualization)
Installation
Option 1: You can install FlavorBuilder from PyPI with pip by running
pip install FlavorBuilder
Option 2: You can also download the package from GitHub and add it to your Python path:
import sys, os
src_path = "path/FlavorBuilder/src"
sys.path.insert(0, os.path.abspath(src_path))
from FlavorBuilder.PyDiscrete import Group
from FlavorBuilder.Model2Mass import Model2Mass
References and Citations
If you use FlavorBuilder in academic work, please cite the following:
- GAP library: The GAP Group. GAP – Groups, Algorithms, and Programming, Version 4.14.0, https://www.gap-system.org (2024)
- Discrete: Mathematica Discrete by Martin Holthausen, and Michael A. Schmidt arXiv:1111.1730
- Flavorpy: A. Baur, "FlavorPy", Zenodo, 2024, doi: 10.5281/zenodo.11060597
- If you use the NuFit experimental data in FlavorPy, please also cite: I. Esteban, M. C. González-García, M. Maltoni, T. Schwetz, and A. Zhou, The fate of hints: updated global analysis of three-flavor neutrino oscillations, JHEP 09 (2020), 178, arXiv:2007.14792 [hep-ph], https://www.nu-fit.org.
- Our work: J. B. Baretz, M. Fieg, V. Ganesh, A. Ghosh, V. Knapp-Perez, J. Rudolph and D. Whiteson, "Towards AI-assisted Neutrino Flavor Theory Design", arXiv:2506.08080 [hep-ph]
Credit
PyDiscrete is partly the translation of Discrete
Contact and Maintenance
The FlavorBuilder software is authored by Victoria Knapp Pérez and Jake Rudolph. For questions, bug reports, or collaboration inquiries, please contact Victoria by email or open an issue on the GitHub repository.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flavorbuilder-0.3.1.tar.gz.
File metadata
- Download URL: flavorbuilder-0.3.1.tar.gz
- Upload date:
- Size: 28.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a948bf1f55b9d5259305e726ee0104d0543cadd00c66d2399d2e57fe7ce94f05
|
|
| MD5 |
13d5da8aa155c94805cfb353fd30d262
|
|
| BLAKE2b-256 |
59d1c0f1fd19087f40ac6a65907d037c0cf5829bdb69430e8455730237a58892
|
File details
Details for the file flavorbuilder-0.3.1-py3-none-any.whl.
File metadata
- Download URL: flavorbuilder-0.3.1-py3-none-any.whl
- Upload date:
- Size: 27.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
807ce74d28123ccbce540f3f02947e98c9cd0c79b54f0c5532763fc0b1ab9d68
|
|
| MD5 |
2ed3d57c479f8e1dc5f538fa39cbe02b
|
|
| BLAKE2b-256 |
3b5614cbb403e4d55aef3ab93578ff298def6c9189f8678b884dd7b9e4e67287
|