The emerging quantum technological applications call for fast and accurate initialization of the corresponding devices to low-entropy quantum states. To this end, we theoretically study a recently demonstrated quantum-circuit refrigerator in the case of nonlinear quantum electric circuits such as superconducting qubits. The maximum refrigeration rate of transmon and flux qubits is observed to be roughly an order of magnitude higher than that of usual linear resonators, increasing flexibility in the design. We find that for typical experimental parameters, the refrigerator is suitable for resetting different qubit types to fidelities above 99.99% in a few or a few tens of nanoseconds depending on the scenario. Thus the refrigerator appears to be a promising tool for quantum technology and for detailed studies of open quantum systems.