Optimization of Experimental Setups and Readout for Superconducting Qubits