Deutsch-Jozsa algorithm implementation and execution on a real quantum device.
Given a hiden boolean function
It is guaranteed that the function to either be balanced or constant. A constant function returns all
The problem is to determine whether the given function is balanced or constant.
In the best case, two queries can determine if the hidden boolean function,
In the worst case, if we continue to see the same output for each input we try, we will have to check exactly half of all possible inputs plus one in order to be certain that
This problem can be solved with 100% confidence after only one call to the function