Statistics for Surface Code Threshold Calculation and Flux Qubit Coupling