This is the function we will use in Grover's search algorithm. In this case the value we are searching for is 257.
| 117 | // This is the function we will use in Grover's search algorithm. In this |
| 118 | // case the value we are searching for is 257. |
| 119 | bool is_key (unsigned long n) |
| 120 | { |
| 121 | return n == 257; |
| 122 | } |
| 123 | |
| 124 | // ---------------------------------------------------------------------------------------- |
| 125 |
no outgoing calls
no test coverage detected