Yes, I should just use the keys of the dict to evaluate nqubits.