Problem Statement
Implement the oracle on a quantum circuit with qubits acting on computational basis states as
where denotes the XOR operator.
Constraints
- Changes in the global phase are ignored.
- 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: