Quantum machine learning beyond kernel methods