Computing marginal and conditional divergences between decomposable models with applications in quantum computing and earth observation | Synapse