Fast gradient estimation for variational quantum algorithms