Python-Based Visualization of Fermi-Dirac and Bose-Einstein Distributions in Three-Dimensional Ideal Quantum Gases
DOI:
https://doi.org/10.32734/jotp.v8i2.25924Keywords:
Bose–Einstein Distribution, Computational Simulation, Fermi–Dirac Distribution, Python, Quantum StatisticsAbstract
Quantum statistics describe the behavior of indistinguishable particles through the Fermi–Dirac (FD) and Bose–Einstein (BE) distributions. This study compares both distributions directly to emphasize their fundamental statistical differences. A Python-based computational model was developed to visualize the contrasting behaviors of FD and BE distributions in a unified 3D representation. The simulation uses NumPy and Matplotlib with an energy interval of 0.01–1.00, temperatures ranging from 100 K to 600 K, and a chemical potential of The results show that the FD distribution forms a sharp profile near the Fermi energy and becomes step-like at low temperatures, while the BE distribution rises sharply as the chemical potential is approached, reflecting the characteristic mathematical divergence of Bose–Einstein statistics rather than indicating actual Bose–Einstein condensation. As temperature increases, the differences between the Fermi–Dirac and Bose–Einstein distributions become less pronounced, consistent with the expected high-temperature limit. The model yields an average relative deviation below 0.5%, confirming numerical stability and accuracy. This work provides an open-source Python framework for the visualization and comparative analysis of ideal quantum statistical distributions, intended primarily for educational and computational purposes rather than for predicting new physical phenomena.
Downloads
References
[1] T. Price and R. H. Swendsen, "Numerical computation for teaching quantum statistics," American Journal of Physics, vol. 81, no. 11, pp. 866–872, 2013, doi: 10.1119/1.4822174.
[2] A. Mouton and T. Rey, "On deterministic numerical methods for the quantum Boltzmann–Nordheim equation. I. Spectrally accurate approximations, Bose–Einstein condensation, Fermi–Dirac saturation," Journal of Computational Physics, vol. 488, p. 112197, 2023, doi: 10.1016/j.jcp.2023.112197.
[3] F. Vicentini, D. Hofmann, A. Szabó, D. Wu, C. Roth, C. Giuliani, et al., "NetKet 3: Machine learning toolbox for many-body quantum systems," SciPost Physics Codebases, p. 007, 2022, doi: 10.21468/SciPostPhysCodeb.7.
[4] P. Weinberg and M. Bukov, "QuSpin: A Python package for dynamics and exact diagonalisation of quantum many-body systems. Part II: Bosons, fermions and higher spins," SciPost Physics, vol. 7, no. 2, p. 020, 2019, doi: 10.21468/SciPostPhys.7.2.020.
[5] F. Caruso, V. Oguri, and F. Silveira, "Applications of the Numerov method to simple quantum systems using Python," Revista Brasileira de Ensino de Física, vol. 44, p. e20220098, 2022, doi: 10.48550/arXiv.2203.15262.
[6] L. Fioroni et al., "A Python GPU-accelerated solver for the Gross–Pitaevskii equation and applications to many-body cavity QED," SciPost Physics Codebases, p. 38, 2024, doi: 10.21468/SciPostPhysCodeb.38.
[7] T. Kloss, J. Weston, B. Gaury, B. Rossignol, C. Groth, and X. Waintal, "Tkwant: A software package for time-dependent quantum transport," New Journal of Physics, vol. 23, no. 2, p. 023025, 2021, doi: 10.1088/1367-2630/abddf7.
[8] S. K. Jha, S. S. Rawat, M. K. Verma, and P. K. Mishra, "quTARANG: A Python GPE solver to study turbulence in quantum systems," arXiv preprint arXiv:2301.08275, 2023, doi: 10.48550/arXiv.2301.08275.
[9] R. Li, Y. Lu, and Y. Wang, "A highly efficient asymptotic preserving IMEX method for the quantum BGK equation," arXiv preprint arXiv:2312.16585, 2023, doi: 10.1016/j.jcp.2024.113619.
[10] Z. Vendeiro et al., "Machine-learning-accelerated Bose–Einstein condensation," Physical Review Research, vol. 4, no. 4, p. 043216, 2022, doi: 10.1103/PhysRevResearch.4.043216.
[11] R. K. Pathria and P. D. Beale, Statistical Mechanics, 4th ed., Elsevier, 2022, doi: 10.1016/C2017-0-01713-5.
[12] M. Murnia, R. Dwicahyani, and N. D. Ramadhani, "BE-FD-Simulation: Visualization and analysis of Bose–Einstein and Fermi–Dirac distributions in 3D identical particle systems," version 1.0.0, Zenodo, 2025, doi: 10.5281/zenodo.17559238.
[13] C. Kittel and H. Kroemer, Thermal Physics, 3rd ed., W. H. Freeman, New York, 2019.
[14] W. Ketterle, "When atoms behave as waves: Bose–Einstein condensation and the atom laser," Reviews of Modern Physics, vol. 74, no. 6, pp. 1131–1151, 2002, doi: 10.1103/RevModPhys.74.1131.
[15] N. W. Ashcroft and N. D. Mermin, Solid State Physics, Saunders College Publishing, New York, 1976.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Journal of Technomaterial Physics

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.









