Using qubits to search for dark matter