Text this: Error analysis in quantum circuits