index kerr-nonlinearity notebook