Exponential suppression of bit or phase errors with cyclic error correction