Skip to content

pabloferm/CHIC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CHIC

C++ library for computing three-flavor neutrino oscillation probabilities and their derivatives.

Structure

  • src/: C++ source and headers
  • bindings/: Python package and bindings
  • examples/: Several examples for C++ and Python

Requirements

Build instructions

  • For the C++ CHIC library only
make clean
make 

or

make lib
  • For the python bindings (optional)
pip install ./bindings

and making it available in system-wide

export PYTHONPATH=$PWD/bindings/:$PYTHONPATH

Examples

  • For C++ library, you can check the following minimal example of the CHIC library for constant density media.
examples/cpp/example.cpp

or run a simple benchmark program.compile and run it as

examples/cpp/chic_benchmark.cpp
examples/cpp/chicdiff_benchmark.cpp

To compile them, just do

make examples

The executables will appear under the examples/cpp/ folder.

  • For the C++ library computing the oscillations through Earth, the syntax is similar. The user is invited to check.
examples/test_chicearth.cpp
  • For the python module, you can check the following minimal example:
python3 examples/python/example.py
  • Additionally, there is a Jupyter notebook containing both CHIC and CHICEARTH examples:
examples/python/example.ipynb

Reference

You can check and cite the associated paper here.

About

Computation of neutrino oscillation probabilities and their tangent spaces

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors