The Illusionist
(2006)

Sophie was never killed.  It was all an illusion to get her safely away from the Prince so she and Eisenhiem could be together.   

Thanks Cat!