Envoyer par SMS: Optimal quantum circuits for general phase estimation