Telefona gönder: Optimal quantum circuits for general phase estimation