https://medium.com/@monocosmo77/how-probabilistic-circuits-work-part4-artificial-intelligence-55ddaae451b1