Understanding and compensating for noise on IBM quantum computers