The purpose of this study is to compare the therapeutic strategies of rate control versus rhythm control in cardiac surgery patients who develop in-hospital postoperative atrial fibrillation or atrial flutter (AF). In patients who develop AF during hospitalization after cardiac surgery, the hypothesis is that a strategy of rhythm control will reduce days in hospital within 60 days of the occurrence of AF compared to a strategy of rate control.