Red Sister by Mark Lawrence.
Here is the description from Amazon:
At the Convent of Sweet Mercy, young girls are raised to be killers. In some few children the old bloods show, gifting rare talents that can be honed to deadly or mystic effect. But even the mistresses of sword and shadow don’t truly understand what they have purchased when Nona Grey is brought to their halls.
A bloodstained child of nine falsely accused of murder, guilty of worse, Nona is stolen from the shadow of the noose. It takes ten years to educate a Red Sister in the ways of blade and fist, but under Abbess Glass’s care there is much more to learn than the arts of death. Among her class Nona finds a new family—and new enemies.
Despite the security and isolation of the convent, Nona’s secret and violent past finds her out, drawing with it the tangled politics of a crumbling empire. Her arrival sparks old feuds to life, igniting vicious struggles within the church and even drawing the eye of the emperor himself.
Beneath a dying sun, Nona Grey must master her inner demons, then loose them on those who stand in her way.
--Really interesting world building Scifi Fantasy.