Candle wax has an oil-base. You'll need a solvent that can eat through oil. One DIY solvent that most have is acetone. If you have nail polish remover, then this will work.
Acetone with rubbing alcohol will remove wax from your carpet.