Optimal Quantum Circuits for General Phase Estimation | Synapse