They said the two accused, aged 13 and 12 years, are students of classes 7th and 5th.
The girl was admitted in a local hospital where her condition was stated to be serious, Salem Tabri Police Station SHO AS Brar said.
The alleged incident took place in a colony in Ludhiana, he said, adding that the accused have been nabbed and were being dealt with as per law.
The accused live on the upper storey of the same house as the girl, the SHO said, adding that the victim and accused are from poor families.
Get the latest election news, live updates and election schedule for Lok Sabha Elections 2019 on ndtv.com/elections. Like us on Facebook or follow us on Twitter and Instagram for updates from each of the 543 parliamentary seats for the 2019 Indian general elections.