Preselecting paths for multiphoton dynamics using artificial intelligence