{"id":34501525,"url":"https://github.com/ppanh-phy/nuoscprob_hamiltonian","last_synced_at":"2026-06-04T15:31:24.294Z","repository":{"id":324059590,"uuid":"1095656548","full_name":"PPAnh-phy/NuOscProb_Hamiltonian","owner":"PPAnh-phy","description":null,"archived":false,"fork":false,"pushed_at":"2025-11-13T14:45:20.000Z","size":444,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-13T16:32:29.432Z","etag":null,"topics":["computational-physics","neutrino-physics","python-3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PPAnh-phy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-13T10:45:57.000Z","updated_at":"2025-11-13T14:45:24.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/PPAnh-phy/NuOscProb_Hamiltonian","commit_stats":null,"previous_names":["ppanh-phy/nuoscprob_hamiltonian"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/PPAnh-phy/NuOscProb_Hamiltonian","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PPAnh-phy%2FNuOscProb_Hamiltonian","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PPAnh-phy%2FNuOscProb_Hamiltonian/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PPAnh-phy%2FNuOscProb_Hamiltonian/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PPAnh-phy%2FNuOscProb_Hamiltonian/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PPAnh-phy","download_url":"https://codeload.github.com/PPAnh-phy/NuOscProb_Hamiltonian/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PPAnh-phy%2FNuOscProb_Hamiltonian/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27992996,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-24T02:00:07.193Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["computational-physics","neutrino-physics","python-3"],"created_at":"2025-12-24T02:02:25.227Z","updated_at":"2025-12-24T02:02:44.498Z","avatar_url":"https://github.com/PPAnh-phy.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NuOscProb_Hamiltonian\n\nFor the purpose of serving ongoing and underdeveloped experiments such as JUNO, DUNE, Hyper-K, etc, which require an accurate and efficient computational tool for precise measurements, we examined the Hamiltonian approach to compute neutrino oscillation probability. our program vs analytical formulas and other approximate/exact packages. Both vacuum and matter effects are taken into account. This study benchmarks and optimises computational approaches for obtaining the eigenvalues of the Hamiltonians for a wide range of problems in medium- to long-baseline experiments. We also examined our program with other available packages. The results highlight the importance of precise treatment of the conversion parameters and trade-offs between precision and efficiency, providing practical guidelines for selecting computational strategies in neutrino oscillation simulations, and contributing to optimised analyses for current and future experiments.\n\n### Requirements\nThe program is fully written in Python 3, using standard modules that are available on most Python installations.\n- Python 3.8 or newer (tested with Python 3.11.4)\n- Install dependencies:\n  ```bash\n  pip install numpy scipy \n\n## Structure\n### Inside the Study packages file [7][8]:\n* **PMNS**: define parameters (we used NuFit 6.0 best fit data), and compute the PMNS matrix.\n* **hamiltonian_vs_packages**: compute neutrino oscillation probability and compare between packages (NuFAST and NuExact)\n* **plot**: create plots of neutrino oscillation probability and differences between packages\n* **running_time**: compute running time between packages \n* **Myglobaldefs**: my modified parameters for more precise results of NuExact packages (modifications used for NuFAST are already included in the file 'hamiltonian_vs_packages')\n---\n\n### Notes on Neutrino Oscillations\n\n* **Oscillation**: the process of changing flavour identity of neutrinos ($e, \\mu, \\tau$) after propagation through a distance and time. Detectors measure different mixing–mass states, indicating oscillation in the mass eigenstates.\n* **Explanation**: caused by mass differences ($\\Delta m^2 \\neq 0 \\ \\Rightarrow\\ m_i \\neq m_j \\\\Rightarrow\\ \\text{neutrinos are massive}$\n).\n\n### Quantum Mechanics \n\n* Start from the initial state $|\\nu_\\alpha\\rangle \\ \\(\\Psi(x, 0)\\)$;  $(\\alpha = e, \\mu, \\tau)$ to the final state $|\\nu_\\beta\\rangle \\ \\(\\Psi(x, t)\\)$; $(\\beta = e, \\mu, \\tau)$.\n* Apply time evolution: $\\Psi(x, t) = \\Psi(x, 0) \\. e^{-i H t}  $.\n* Oscillation probability is given by overlap $\\| \\Psi(x, t) \\|^2$.\n* In matter: Neutrinos propagating in matter interact with electrons and nucleons.\n* **CC interactions** ($\\nu_e + e^- \\to \\nu_e + e^-$) affect only electron neutrinos.\n* **NC interactions** ($\\nu_i + n,p \\to \\nu_i + n,p$) affect all flavours equally and thus do not change oscillations.\n\n**$\\Rightarrow$ Matter effect**: adds an extra potential `V_CC` in the Hamiltonian, modifying oscillation behaviour (MSW effect).\n\n---\n\n## References\n\n\\[1] Mark Thomson, *Modern Particle Physics*\n\n\\[2] G. Fantini, A. Gallo Rosso, and F. Vissani, *The Formalism of Neutrino Oscillations: An Introduction*, \\*\\*arXiv:\\*\\*hep-ph/1802.05781v2 (2020)\n\n\\[3] Son Van Cao, *Study of Antineutrino Oscillation Using Accelerator and Atmospheric Data in MINOS*, DOI: 10.2172/1151746\n\n\\[4]  Ivan Esteban, M. C. Gonzalez-Garcia, Michele Maltoni, Ivan Martinez-Soler, João Paulo Pinheiro, Thomas Schwetzh, *Updated global analysis of three-flavor\n neutrino oscillations*, \\*\\*arXiv:\\*\\*hep-ph/2410.05380v2 (2024)\n\n\\[5] Peter J. Mohr, David B. Newell, Barry N. Taylor, and Eite Tiesinga, *CODATA Recommended Values of the Fundamental Physical Constants: 2022*, \\*\\*arXiv:\\*\\*hep-ph/2409.03787v2 (2024)\n\n\\[6] Ara Ioannisian and Stefan Pokorski, *Three Neutrino Oscillations in Matter*, \\*\\*arXiv:\\*\\*hep-ph/1801.10488v4 (2018)\n\n\\[7] Peter B. Denton and Stephen J. Parke, *Fast and Accurate Algorithm for Calculating Long-Baseline Neutrino Oscillation Probabilities with Matter Effects: NuFast*, \\*\\*arXiv:\\*\\*hep-ph/2405.02400v1 (2024)\n\n\\[8] Mauricio Bustamante, *NuOscProbExact: a general-purpose code to compute exact two-flavor and three-flavor neutrino oscillation probabilities*, \\*\\*arXiv:\\*\\*hep-ph/1904.12391v2 (2019)\n\n\\[9] JUNO Collaboration, *JUNO Physics and Detector*, \\*\\*arXiv:\\*\\*hep-ph/2104.02562v2 (2021)\n\n---\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppanh-phy%2Fnuoscprob_hamiltonian","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fppanh-phy%2Fnuoscprob_hamiltonian","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppanh-phy%2Fnuoscprob_hamiltonian/lists"}