There is no compulsion in religion

I say, chughtai Sahab ! your information is not entirely correct.

By the law of sacred scrripture of islam , the divine book named holy quran, You wont have to face death penalty if you leave islam and choose some other religion on your free will. It is entirely upto Almighty Lord to decide the degree of punishment of apostate, in this world and hereafter.

Only an apostate with (proven) nefarious design to harm either :

(a) society,

(b) people,

(c) state

can be sentenced death penalty by court of law.