Theory and Analysis of Nonreciprocity for Superconducting Qubits Coupled to a Waveguide