Electrophysiology (EP) is a test used to diagnose abnormal heart rhythm or arrhythmias.