Problem Statement
Using only Clifford gates, gate, and gate,
implement an oracle satisfying the following on a quantum circuit with qubits.
For any quantum state ,
Here, denotes the controlled- gate with qubit 1 as the control qubit and qubit 2 as the target qubit.
Constraints
- Only Clifford gates, gate, and gate can be used.
- The submitted code must follow the specified format:
from qiskit import QuantumCircuit
def solve() -> QuantumCircuit:
qc = QuantumCircuit(3)
# Write your code here:
return qcHints
Open
- simply means applying to .