Problem Statement
You are given integers , and a real number .
Implement the oracle on a quantum circuit with qubits acting on computational basis states as
for any integer such that .
Constraints
- Integers are encoded by little-endian notation, i.e., .
- Changes in the global phase are ignored.
- The submitted code must follow the specified format:
Sample Input
The implemented quantum circuit should perform the following transformation.