Skip to main content
Problem List
Q64.Two-Qubit Quantum Fourier TransformPremiumHard

Q64.Two-Qubit Quantum Fourier TransformPremium Question

Fourier & PhaseQubits: 2Q
Apply the two-qubit QFT (without the final swap) to ∣x=1⟩|x = 1\rangle: Hadamard on Qubit 1, controlled-SS from Qubit 0, Hadamard on Qubit 0. The result is 12(∣0⟩+i∣1⟩)q1(∣0⟩−∣1⟩)q0\frac{1}{2}(|0\rangle + i|1\rangle)_{q_1}(|0\rangle - |1\rangle)_{q_0}.
Target Objective:
Load x=1x = 1, apply HH to Qubit 1, build the controlled-SS from T gates and two CNOTs, and finish with HH on Qubit 0.
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
Live Python / Qiskit Code (Edit to Update Circuit)
 
Type Qiskit Python code above to update gates on wires automatically0 gates · 2Q
0 gates placed2 Qubits · 8 Steps
State Measurement Distribution:4 non-zero basis states
|10⟩0.0%
|11⟩0.0%
|00⟩100.0%
|01⟩0.0%