Quantum thermodynamic method to refrigerate a qubit on a quantum processing unit