Variational learning algorithms for quantum query complexity | Synapse