Magic in generalized Rokhsar-Kivelson wavefunctions | Synapse