In Learning Quantum Computation using Qiskit chapter 3.4 I encountered the Deutsch-Josza Algorithm. At the end of the chapter I was presented with a homework problem where the code:
from qiskit_textbook.problems import dj_problem_oracle oracle = dj_problem_oracle(1)
gives me a gate called 'oracle' and I was supposed to do find out whether it was balanced or constant. I encountered a problem when appending 'oracle' into my circuit, it kept telling me that 'The amount of qubit/clbit arguments does not match the gate expectation.'
After alot of headscratching and try and error I found out that the gate was stuck at a size of 5 (or n=4 if you've done the problem). Because the entire chapter was taught from the view of n qbits, I tried to solve the problem by writing an algorithm for n qbits(so that I can choose how many qbits my circuit contains).
I think that some more detail should be added into the text of that chapter so that things like this don't confuse newcomers like me, or just make it an n sized gate. I'd be grateful if someone could pass this message on to the good men and women managing the site.