We solve master equations for the diagonal terms of a density matrix for a one mode laser state or condensation N Bosons state with the following form
Zhangxudong93/laser_entropy
Numerical solution to master equations of lasers and condensation N bosons
Jupyter Notebook