https://medium.com/@monocosmo77/how-probabilistic-circuits-work-part3-artificial-intelligence-293f99f4e003