You can use AP to come back, but you will be AOS, not H-1B status. If you want to keep H-1B, apply for a H-1B visa to come back.