Atrial fibrillation and ventricular fibrillation are both types of irregular heartbeats (arrhythmias). Atrial fibrillation (AFib) affects the two upper chambers of your heart. Ventricular fibrillation ...