If you use this code in your own work or research presented in a publication, we ask that you please cite: Lucini, B., Mason, D., Piai, M., Rinaldi, E., & Vadacchino, D. (2023). First-order phase transitions in Yang-Mills theories and the density of state method. arXiv preprint arXiv:2305.07463.