We study the approximation of functions from anisotropic Sobolev classes B(Wpr([0,1]d)) and H¨older-Nikolskii classes B(Wpr([0,1]d)) in the L q([0,1] d) norm with q ≤ p in the quantum model of computation.We determine the quantum query complexity of this problem up to logarithmic factors.It shows that the quantum algorithms are significantly better than the classical deterministic or randomized algorithms.