Counts the number of marked states for a given oracle. This is a common utility function used by both QAA and Grover algorithms.
Number of qubits in the system
Oracle function identifying marked items
Number of marked states
Counts the number of marked states for a given oracle. This is a common utility function used by both QAA and Grover algorithms.