 Iwakami and Shinbo recruited Yuki Kajiura to compose the soundtrack for the series after Urobuchi recommended her . Shinbo had previously worked with Kajiura on Le Portrait de Petit Cossette , and Urobuchi told of the inspiration the music from that series had on him while writing parts of the script . Stating that he had long been a fan of her anime soundtracks , Urobuchi also praised Kajiura 's work ethic , remarking that she would always fully familiarize herself with the plotline of the story while composing for it . Japanese pop music duo ClariS was also commissioned to perform " Connect " ( コネクト , Konekuto ) , the opening theme of the series . Iwakami involved himself directly in the song 's development to ensure that it would fit with the series , marking one of the only times that he explicitly intervened in an aspect of the production . Both " Connect " and the ending theme , " Magia " by Kalafina , were revealed in a television commercial several weeks before the series ' premiere in Japan . 
