We observe that the classical theorem of Hardy on Fourier transform pairs can be reformulated in terms of the heat kernel associated with the Laplacian on the Euclidean space. This leads to an interesting version of Hardy's theorem for the sublaplacian on the Heisenberg group. We also consider certain Rockland operators on the Heisenberg group and Schrödinger operators on ℝⁿ related to them.