Scripts for training neural networks resistant to photon shot noise with quantization-aware training, together with the code for simulating neural network performance under shot noise.