We describe a new technique (published in [1]) to determine the contribution to the anomalous magnetic moment of the muon coming from the hadronic vacuum polarisation using lattice QCD. Our method uses Padé approximants to reconstruct the Adler function from its derivatives at q2=0. These are obtained simply and accurately from time-moments of the vector current-current correlator at zero spatial momentum. We test the method using strange quark correlators calculated on MILC Collaboration's nf=2+1+1 HISQ ensembles at multiple values of the lattice spacing, multiple volumes and multiple light sea quark masses (including physical pion mass configurations). We find the (connected) contribution to the anomalous moment from the strange quark vacuum polarisation to be aμs=53.41(59)×10−10, and the contribution from charm quarks to be aμc=14.42(39)×10−10−1% accuracy is achieved for the strange quark contribution. The extension of our method to the light quark contribution and to that from the quark-line disconnected diagram is straightforward.