Improving gradient methods via coordinate transformations: Applications to quantum machine learning | Synapse