Question: what is qyburn doing in the black cells?
Answer: Cersei has Qyburn torture the Blue Bard in the black cells, to convince him to give evidence against Queen Margaery Tyrell. ... After Cersei is arrested by the Faith, Qyburn is allowed to visit her in her cell and inform her of all that has happened since her arrest.