Phase transition in stabilizer entropy and efficient purity estimation | Synapse