Theoretical Physics for Artificial Intelligence