Quantum gate deployment laws for Oracle on Grover's algorithm


I was trying to understand the Oracle construction method for the multi-qubit Grover algorithm, but apparently this document confused me even more. For example, 7 quantum bits, 0001010, 1111001, 1100110 three are labeled quantum states, how can Oracle be constructed in code? If I change the number of quantum bits as well as the labeled states, what law should Oracle be deployed according to?

Hey @R-X! I think this question is pretty similar to the one you asked here. Let me know if my answer there helps :slight_smile: