New method improves quantum chemistry simulations