As the Rambam wrote, a mumar to idolatry, or one who desecrates Shabbat in public, or an apikoros, is like a non-Jew, and his shechitah is neveilah. As the Shulchan Aruch wrote, he grouped together one who serves idolatry, one who desecrates Shabbat in public, and one who does not believe in our rabbis, and his wine is yayin nesech.