You need an instrument rating and type rating to log PIC under the IFR. If you are training for the instrument rating, by definition you don't yet have an instrument rating and therefore you can't log PIC whilst under the IFR. You log dual time, and the instructor logs PIC.