Problem Statement
Implement the oracle on a quantum circuit with qubits acting on computational basis states as
where denotes the XOR operator.
Constraints
- Global phase is ignored in judge.
- The submitted code must follow the specified format:
Sample Input
- : The implemented oracle should perform the following transformation.
Hints
Open
- You can apply the quantum gate to the qubit as follows: