In the Bernstein- Vazirani Algorithm, we check whether the secret number has a '1' at a specific index of the number. If it's 1, we apply a CNOT gate, and then the algorithm gives the accurate value of the secret number. So, my question is this, if we can ask the black box whether the secret number has a one at a specific location, doesn't that gives me the number without even using the algorithm?
Now, I know this sounds incredibly stupid, and I am missing something very obvious but I can't seem to figure out what that is. Thanx in advance!