Quantum state preparation by controlled dissipation in finite time: From classical to quantum controllers