Manifold learning via quantum dynamics