Problem Statement
You are given integers and .
Implement the oracle on a quantum circuit with qubits, which multiplies all the probability amplitudes of by .
Constraints
- Changes in the global phase are ignored.
- Integers are encoded by little-endian notation, i.e., .
- The submitted code must follow the specified format:
Sample Input
The implemented oracle should perform the following transformation.
Hints
Open
- You can apply the multi-controlled gate of any quantum gate as follows: