S gate
A one-qubit gate that multiplies the 1 amplitude by i while leaving the 0 amplitude unchanged. Applying S twice gives the Z gate.
Also called phase gate, Phase S gate
On this page
Plain-language explanation
S adds a quarter-turn of relative phase in the computational basis. Its inverse, often written S-dagger, adds the opposite phase. Four applications give identity. The gate is useful for changing measurement axes and composing larger circuits. Where phase gate is ambiguous, the angle or matrix identifies the operation.
This gives beginners a stepping stone between a simple sign flip and general phase rotations. It also makes the dagger notation for inverse gates concrete.
Example
S applied to plus produces (|0> + i|1>)/sqrt(2). A computational-basis measurement remains fifty-fifty, but the state has moved to a different equatorial direction on the Bloch sphere. Applying S again gives the minus state, the same result as Z on plus.
Scope and limits
S does not change computational-basis probabilities by itself, but it can change later results through interference. Invisibility to one immediate measurement does not mean the gate has no effect.
T gate is a related idea. S adds a quarter-turn of relative phase. T adds an eighth-turn; two T gates equal S. The smaller angle has a distinct role in common universal gate sets.
Sources
Verification scope
Recorded source check ·
Reversible circuits, gates, universality and information constraints
Ideal circuit model does not establish physical gate costs.
Verification scope
Recorded source check ·
Circuit notation, gate operations and qubit-order conventions
Software diagram conventions can differ; retain explicit ordering.