Quantum spectral method for gradient and Hessian estimation | Synapse