PhD: Optimal characterization & calibration of quantum computers for error correction & applications