The sentence was part of a plea deal after Lopez agreed to help prosecutors in the case of her ex-boyfriend, 31-year-old Jerry Salazar.
The couple shared the home where the bodies of 4-month-old Sebastian and 14-month-old Sariyah were found wrapped in plastic after they moved out.
Salazar reached a separate plea agreement in December and was received a life sentence.