A neural network that teaches itself the laws of physics could help to solve quantum-mechanics mysteries.