Born Anne Patricia Pery, she attended Chelsea Polytechnic, where she sat the London University Intermediate examination in Physics, Chemistry, Pure and Applied Mathematics in 1946. This qualification enabled her to join Oxford University in 1947, where she was a member of St Hugh's College, Oxford. She received a BA Hons degree in Physics and Mathematics in 1950 and stayed on for a further four years as a post-graduate.