GFlowNets for Hamiltonian decomposition in groups of compatible operators