← Atlas

Gates · Single-qubit gate

P phase gate

The generalized phase gate that fixes the |0⟩ amplitude at 1 and applies e^{iλ} to |1⟩, unifying S, T, and Z as special cases of one continuous parameter.

Exact & formalUpdated

View frozen graph

A small worked example, computed in your browser. It is not a result from this record's papers.

P(θ), phase by any angle you like

One qubit, put into |+⟩ = (|0⟩ + |1⟩)/√2 first, because on |0⟩ or |1⟩ alone this gate changes nothing a measurement or another gate can ever detect.

q0Step 1 of 2 · HHStep 2 of 2 · P(2π/5)P(2π/5)

Step 1 of 2 · H

Probability of each outcome after this step

  • 050%
  • 150%
  1. Puts the qubit into an equal superposition. Without this there is no second amplitude for the gate's phase to be measured against, and a phase on the whole state is not observable.

    Probability spreads from 1 outcome to 2. All 2 are equally likely.

  2. Multiplies the |1⟩ half of the state by a phase of 2π/5, and leaves |0⟩ alone. P takes any angle at all; Z, S and T are simply the three of them that earned their own names. The two outcomes stay equally likely — the difference is carried entirely in the phase between them, which is what the panel beside the bars shows.

    The outcome probabilities do not move at all. What this step changes is phase — 2 distinct relative phases across the state now — which no measurement can see until a later step turns it back into probability.

Readout Measuring gives 0 or 1, each half the time — exactly as it did before the gate. A single measurement of this qubit cannot detect this gate at all. Its effect becomes visible only when the phase is turned back into probability by a later interference step, which is what every algorithm that uses it does.

Open in Studio
  • Steps1
  • Wires1
  • Qubits1
  • Depth1 gate
  • Parameterλ (radians)
  • Papers2
Qubits
1
Depth
1 gate
Parameter
λ (radians)
Matrix
diag(1, e^{iλ})
Special cases
P(π/2)=S, P(π/4)=T, P(π)=Z
Relation to RZ
P(λ) = e^{iλ/2} RZ(λ)
Gate family
Clifford at λ=π/2,π; non-Clifford otherwise

References

Exact & formal
  • Unitary / matrix equivalence
  • Direct mathematics
  • Textbook / standard citation
Method
Compare the parametrized P matrix against diag(1, e^{iλ}) and evaluate it at λ = π/2, π/4, π to check agreement with S, T, and Z.
Result
Pass · P(π/2) = S, P(π/4) = T, and P(π) = Z, all exactly.
OpenQASM 3 standard gate set ↗
Kind
curated reference
Reviewed by
Leona Quantum curation pass
License
CC BY 4.0-compatible reference metadata
phaseparametrizedsingle qubit

Atlas stars stay in the public catalog. Saving this entry to your workspace starts an unstarred private copy.