Photonic simulations