Skip to main content
Problem List
Q65.Add Three in the Fourier BasisMedium

Q65.Add Three in the Fourier Basis

Fourier & PhaseQubits: 2Q
In the Fourier basis a number is stored as phases, and adding is a phase rotation. The Fourier state of x=0x = 0 is ∣++⟩|{+}{+}\rangle; adding 3 applies the phase e2πi⋅3/2=−1e^{2\pi i \cdot 3/2} = -1 to Qubit 0 and e2πi⋅3/4=−ie^{2\pi i \cdot 3/4} = -i to Qubit 1.
Target Objective:
Prepare ∣++⟩|{+}{+}\rangle, then apply ZZ to Qubit 0 and S†S^\dagger (as ZZ then SS) to Qubit 1.
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%