Move the initialization of the QD vector into the device