https://medium.com/@monocosmo77/how-probabilistic-circuits-work-part6-artificial-intelligence-6e4505825b27