Single-junction quantum-circuit refrigerator