A general quantum algorithm for numerical integration | Synapse