Quantum algorithm for solving generalized eigenvalue problems with application to the Schrödinger equation | Synapse