Quantum, Quantum Computing, Algebra, Logic Gates.
qc.s(0) # Apply S-gate to qubit 0 qc.sdg(0) # Apply Sdg-gate to qubit 0 qc.draw() 3. The T-gate The T-gate is a P-gate with ϕ=π/4: As with the S-gate, the T-gate is sometimes also known as the 4√Z-gate. qc = QuantumCircuit(1) qc.t(0) # Apply T-gate to qubit 0 qc.tdg(0) # Apply Tdg-gate to qubit 0