Skip to main content
Problem List
Q59.Synthesize a Controlled-S GatePremiumHard

Q59.Synthesize a Controlled-S GatePremium Question

Foundations & PrimitivesQubits: 2Q
The last step of the Toffoli decomposition is a controlled-SS, built from T gates: Ta Tb CX Tb† CXT_a\,T_b\,\text{CX}\,T_b^\dagger\,\text{CX} with T†=Z S TT^\dagger = Z\,S\,T. Apply it to ∣++⟩|{+}{+}\rangle to obtain 12(∣00⟩+∣01⟩+∣10⟩+i∣11⟩)\frac{1}{2}(|00\rangle + |01\rangle + |10\rangle + i|11\rangle).
Target Objective:
Start from ∣++⟩|{+}{+}\rangle. Apply CNOT(0→1), then T†T^\dagger on Qubit 1 with a TT on Qubit 0, a second CNOT(0→1), and a final TT on 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%