Spectral methods: crucial for machine learning, natural for quantum computers?