We prove that, given any finite link L in ℝ³, there is a high-energy complex-valued eigenfunction of the harmonic oscillator such that its nodal set contains a union of connected components diffeomorphic to L. This solves a problem of Berry on the existence of knotted zeros in bound states of a quantum system.