The quantum transition state wavepacket method