Many-body study of the photoisomerization of the minimal model of the retinal protonated Schiff base