https://medium.com/@monocosmo77/how-probabilistic-circuits-work-part1-artificial-intelligence-ca972e12690b