If your time is limited, I recommend taking a one-day tour from Amman. It's a long day — 12 hours — but this gives you six full hours to explore Petra on your own. You can also choose to combine this with a Petra by Night experience or pair your visit to Petra with the picturesque Wadi Rum.