I have the below Oracle function.
Below are the marked states for this Oracle function.
I wanted to implement Grover's algorithm on 4 qubits. I've been following the below Qiskit notebook: https://qiskit.org/textbook/ch-algorithms/grover.html
The part that's troubling me is the controlled Z gate and its implementation. Any help would be appreciated.