https://github.com/alphal00p/gammaloop
Computation of differential cross-sections with Local Unitary
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.0%) to scientific vocabulary
Repository
Computation of differential cross-sections with Local Unitary
Basic Info
- Host: GitHub
- Owner: alphal00p
- License: other
- Language: Rust
- Default Branch: main
- Size: 9.86 MB
Statistics
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 1
- Releases: 4
Metadata Files
README.md
Computation of differential cross-sections using Local Unitarity.
See www.alphaloop.ch for details on the theoretical framework and related literature.
See the wiki for more information on the project.
TL;DR: I want to be running γLoop already!
We salute the eagerness of our users!
If you want to jump right in, run the following to immediately start integrating the scalar three-loop mercedes diagram,
bash
git clone https://github.com/alphal00p/gammaloop.git && cd gammaloop
./bin/compile.sh
./bin/gammaloop example/cards/scalar_mercedes.gL
or a one-loop hexagon diagram from the scattering process $\gamma \gamma \rightarrow \gamma \gamma \gamma \gamma$ (through a top-quark loop) with:
bash
./bin/gammaloop examples/cards/physical_1L_AA_AAAA.gL
You can also generate diagrams for the computation of cross-sections or amplitudes with: ```bash
./bin/gammaloop -c "importmodel sm;\ generateamplitude d d~ > d d~ e+ e- | u d g ghg e- a QED=2 [{2} QCD=2];\ output MyProcess -exp -mr -ef mathematica --yamlonly;" [...] INFO : A total of 2214 graphs have been generated in 00:00:49.142.
You can then visualize all diagrams with:bash cd ./MyProcess/sources/amplitudes/GLddxddxepem/drawings/dot make -j &> /dev/null ls feynmandiagrams.pdfand import their corresponding symbolic expressions from:bash ls ./MyProcess/sources/amplitudes/GLddxddxepem/expressions [...] GL1016exp.json GL1223exp.json GL1426exp.json GL1816exp.json [...] head -2 ./MyProcess/sources/amplitudes/GLddxddxepem/expressions/GL84_exp.json [ "-2/3 𝑖 ee^2 G^6 Metric[mink[4,6],mink[4,13]] Metric[mink[4,7],mink[4,12]] Metric[mink[4,8],mink[4,11]] Metric[mink[4,9],[mink[4,10]] T[coad[8,10],cof[3,9],dind[cof[3,8]]] T[coad[8,13],cof[3,12],dind[cof[3,11]]] [...]", ``` which can be further processed to your liking using e.g. Mathematica, Symbolica and / or spenso.
Process generation syntax is detailed on γLoop's wiki.
Installation
> Requirements
The installation may be successful with older versions than the ones indicated below, but it was not tested.
Rust: v1.81+ You can easily install Rust with this one-linerPython3: v3.12+ (equipped withpip, and thepython-develdependency)GNU gcc: v14+git
Windows users are encouraged to use WSL 2.
> Installation using pip
bash
pip install gammaloop
gammaloop --build_dependencies
> Installation from sources
bash
git clone https://github.com/alphal00p/gammaloop.git
cd gammaloop
./bin/compile.sh
The relevant binaries will then be in ./bin/ and the gammaloop python module is located at ./python/gammaloop.
Note: Alternatively, the dependencies can be built within a python virtual environment as follows:
```bash ./bin/builddependencies.sh clean ./bin/builddependencies.sh with_venv
From within a bash shell, use the command below
source ./bin/gammaloop -venv
From within a fish shell, use the command below
. (./bin/gammaloop -venv).fish ```
Tests
> Testing an installation from pip
From within the installation directory of the gammaloop module, which you can cd into with e.g.:
bash
bash -c 'cd `python -c "import os; import gammaloop; print(os.path.dirname(gammaloop.__file__))"`; pwd'
You can test your gammaLoop installation by running (incl. only tests with a maximum runtime of 15 seconds):
bash
python -m pytest --max-runtime 15.0
> Testing an installation from sources
From within the installation directory, run:
bash
/bin/run_tests.sh python
/bin/run_tests.sh rust
Usage
There are three entry points to the GammaLoop functionalities:
Preferred method is through the Python command-line interface
gammaloop.Alternatively, the same functionalities can be accessed programmatically, e.g. in a Jupyter notebook, through the Python API, by importing the
gammalooplibrary.Finally, expert users may also find it useful to steer some of functionalities directly from the rust binary
gammaloop_rust_cli.
Both executables gammaloop and gammaloop_rust_cli are made available as scripts in the bin directory.
The gammaloop Python module is also exposed after installation and ready to be imported by custom Python scripts.
1. Usage from the Python command-line interface: ./gammaloop
GammaLoop is typically used through the python command-line interface gammaloop.
Place your list of commands in a file named e.g. cmd.gL, for instance:
```bash
Content of file 'cmd.gL'
importmodel sm --format ufo
exportmodel ./sm.yaml --format yaml
and run it with:
bash
./bin/gammaloop cmd.gL
You can find more information on the syntax of the available commands in the [wiki](https://wiki.alphaloop.ch/) and by running:
bash
./bin/gammaloop --help
to get an overview of available commands and:
bash
./bin/gammaloop -c "help import_model"
```
to get help on any specific command.
You can find example of command files in the <MODULE_PATH>/data/run_cards/ directory.
2. Usage from within a Jupyter notebook: the Python API
Follow the example jupyter notebook given in example to get started with the Python API.
cd <GAMMALOOP_INSTALLATION_DIRECTORY>/examples/jupyter
jupyter notebook steer_gammaloop.ipynb
3. Usage from the rust binary executable: ./gammalooprustcli
All typical usecases of GammaLoop are available through the Python command-line interface mentioned earlier.
However, expert users might want to steer the Monte-Carlo integration directly using the gammaloop_rust_cli binary.
This is possible throught the gammaloop_rust_cli binary, which can be used as follows:
bash
./bin/gammaloop_rust_cli --config <MODULE_PATH>/gammaloop/data/run_cards/rust_run_config.yaml
Note: You have to manually define your desired external momenta in this default rust_run_config.yaml file.
You will find more information on the content of the run configuration file and steering options in the wiki and by running:
bash
./bin/gammaloop_rust_cli --help
Owner
- Name: alphaLoop
- Login: alphal00p
- Kind: organization
- Email: valentin.hirschi@gmail.com
- Location: Switzerland
- Website: www.alphaloop.ch
- Repositories: 4
- Profile: https://github.com/alphal00p
Projects relating to Local Unitarity
GitHub Events
Total
- Release event: 3
- Watch event: 2
- Issue comment event: 13
- Push event: 603
- Pull request review comment event: 2
- Pull request event: 15
- Pull request review event: 12
- Fork event: 1
- Create event: 16
Last Year
- Release event: 3
- Watch event: 2
- Issue comment event: 13
- Push event: 603
- Pull request review comment event: 2
- Pull request event: 15
- Pull request review event: 12
- Fork event: 1
- Create event: 16
Issues and Pull Requests
Last synced: 10 months ago
All Time
- Total issues: 0
- Total pull requests: 6
- Average time to close issues: N/A
- Average time to close pull requests: 3 months
- Total issue authors: 0
- Total pull request authors: 3
- Average comments per issue: 0
- Average comments per pull request: 0.67
- Merged pull requests: 2
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 5
- Average time to close issues: N/A
- Average time to close pull requests: 1 day
- Issue authors: 0
- Pull request authors: 3
- Average comments per issue: 0
- Average comments per pull request: 0.6
- Merged pull requests: 2
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
- lcnbr (14)
- ValentinHirschi (11)
- GraDje13 (6)
- APN-Pucky (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- pypi 71 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 8
- Total maintainers: 3
pypi.org: gammaloop
Gammaloop computes differential cross-sections using Local Unitarity
- Documentation: https://gammaloop.readthedocs.io/
- License: other
-
Latest release: 0.3.3
published about 1 year ago
Rankings
Maintainers (3)
Dependencies
- PyYAML >=6.0.1
- symbolica >=0.1.0
- PyYAML >=6.0.1
- symbolica >=0.1.0