Skip to main content
Problem List
Q44.CNOT Direction Reversal with HadamardsMedium

Q44.CNOT Direction Reversal with Hadamards

Circuit IdentitiesQubits: 2Q
Reverse the direction of a CNOT gate (making Q1 control and Q0 target) using 4 Hadamard gates: CX1,0=(HH)CX0,1(HH)CX_{1,0} = (H \otimes H) CX_{0,1} (H \otimes H).
Target Objective:
Prepare Q1 in 1|1\rangle, apply Hadamards on both qubits, apply CX(0->1), and apply Hadamards again to flip Q0 to 1|1\rangle.
Judge Acceptance Criteria:

Statevector fidelity must reach ≥ 99.9% with the target unitary solution.

Gates:
q[0]|0⟩
S0
S1
S2
S3
S4
S5
S6
S7
q[1]|0⟩
S0
S1
S2
S3
S4
S5
S6
S7
Click slot to place selected gate. Right-click to remove.0 gates in circuit
Click "Submit" in the top bar to run automated test cases against your circuit.