Available Oscillation-Probability Functions
This page lists every user-facing osc_prob_* function Magνs ships,
grouped by environment and scenario, with the exact function name for each
flavor count. It complements the API reference (generated from the
docstrings directly, see the API Reference section in the sidebar) by
showing the shape of the whole family at a glance – useful when you know
roughly what you want (“3-flavor, matter, with NSI”) but not the exact name.
The internal middle layer these wrappers dispatch through
(osc_prob_vacuum, osc_prob_matter_std_potential,
osc_prob_matter_nsi, osc_prob_liv, and
osc_prob_energy_baseline) is deliberately not listed
here; see Code Architecture for what it does and when you would call it
directly.
See Code Architecture for how these functions are organized internally (the wrapper/middle/primordial layering), and Command-Line Calculator for the command-line calculator that wraps the same functions.
Every function below returns a full \(d \times d\) probability matrix
(\(P[i][j] = P(\nu_i \to \nu_j)\)), or a single channel if nu_i
and nu_f are both given; every one also accepts nubar=True to
compute the antineutrino probability. Standard oscillation parameters
left as None default to the NuFit 6.0 best fit (normal ordering);
sterile-sector parameters (4th/5th flavor) default to zero mixing.
Vacuum
No matter potential – the flavor Hamiltonian is just the vacuum mass/mixing term, evaluated once and scaled by \(1/E\).
Flavors |
Standard |
LIV |
|---|---|---|
2 |
||
3 |
||
4 (3+1 sterile) |
||
5 (3+2 sterile) |
There is no “vacuum + NSI” family: NSI couplings scale the matter potential, and vacuum has none to scale (the CLI rejects this combination explicitly; see Command-Line Calculator).
Matter, constant density
A user-supplied matter density, uniform along the trajectory (rho,
in \(\text{g cm}^{-3}\) by default).
Flavors |
Standard |
NSI |
LIV |
|---|---|---|---|
2 |
|||
3 |
|||
4 |
|||
5 |
Matter, exponential density
A user-supplied matter density profile \(\rho(l) = \rho_{\rm central}\, e^{-l/l_{\rm scale}}\).
Flavors |
Standard |
NSI |
LIV |
|---|---|---|---|
2 |
|||
3 |
|||
4 |
|||
5 |
Earth
The Preliminary Reference Earth Model (PREM) density profile, along a
chord specified either by the cosine of the zenith angle (plus a
baseline) or by two named locations (loc_ini/loc_fin; see
magnus.earth.loc_coords_dms for the predefined sites).
Flavors |
Standard |
NSI |
LIV |
|---|---|---|---|
2 |
|||
3 |
|||
4 |
|||
5 |
Sun
The built-in exponentially-falling solar electron-density profile (see
magnus.oscprob.osc_prob_sun()), from an initial radial
position L0 (default: the center) to a final radial position L.
Flavors |
Standard |
NSI |
LIV |
|---|---|---|---|
2 |
|||
3 |
|||
4 |
|||
5 |
Generic entry points
For anything the tables above don’t cover – any other number of flavors, or a Hamiltonian that doesn’t fit the vacuum/matter/NSI/LIV mold – three functions accept an arbitrary user-supplied Hamiltonian directly:
osc_prob()– the primordial function: any Hamiltonian, any dimension, any environment you build yourself.osc_prob_earth()– likeosc_prob, but handles the Earth-crossing geometry and PREM potential for you.osc_prob_sun()– likeosc_prob, but handles the solar density profile for you.
See Code Architecture for how these three relate to the osc_prob_{N}nu_*
functions above (they are, in fact, what those functions call internally).