QuantumSimulator
Interactive Course
Interactive chapters from intuition to mastery
Structured Lessons
Eight modules with formulas and self-checks
Quantum Brain
Navigate lessons, laws, gates, devices, and tools
Guided Experiments
Hands-on circuits that teach one idea each
Circuit Lab
Build circuits, run them, and see the results
Gate Reference
Quick reference for all quantum gates
Cryostat Studio
3D cryostat design and simulation
Component Catalog
Browse all cryostat components
System Checks
Check your design for errors
Menu
physics
Interactive Course
Interactive chapters from intuition to mastery
Structured Lessons
Eight modules with formulas and self-checks
Quantum Brain
Navigate lessons, laws, gates, devices, and tools
Guided Experiments
Hands-on circuits that teach one idea each
simulator
Circuit Lab
Build circuits, run them, and see the results
Gate Reference
Quick reference for all quantum gates
wiringStudio
Cryostat Studio
3D cryostat design and simulation
Component Catalog
Browse all cryostat components
System Checks
Check your design for errors
Home/Quantum Physics/Lessons/U3 Gate (Universal Single-Qubit)
U3

U3 Gate (Universal Single-Qubit)

RotationSingle-qubituniversal

The most general single-qubit gate, capable of any rotation via three angle parameters.

Intuition

U3 can produce any single-qubit operation. It has three parameters. The first, θ, controls how far the qubit tilts from the north pole toward the south pole (the polar angle on the Bloch sphere). The second, ϕ, controls the azimuthal phase of the starting direction. The third, λ, controls the azimuthal phase of the ending direction. Together, these three angles let you move the qubit to any point on the Bloch sphere from any starting point. Every other single-qubit gate (H, X, Z, Phase, RX, RY, RZ) is a special case of U3 with specific values of θ,ϕ, and λ.

Matrix representation
(cos2θ​eiϕsin2θ​​−eiλsin2θ​ei(ϕ+λ)cos2θ​​)
Action on states
U3​(θ,ϕ,λ)∣ψ⟩
Bloch sphere
|0⟩
→
U3(π/2,0,π)|0⟩
Circuit
q0U3
State comparison
Before U3 Gate
|0⟩
|0\u27E9
100%
|1\u27E9
0%
Bloch: (0.00, 0.00, 1.00)
→
After U3 Gate
U3(π/2,0,π)|0⟩
|0\u27E9
50%
|1\u27E9
50%
Bloch: (1.00, 0.00, 0.00)
Full technical statement

U3(θ,ϕ,λ) is parameterized by three Euler angles (angles that specify a rotation by decomposing it into three steps around fixed axes). The matrix is [[cos(θ/2), −exp(iλ)sin(θ/2)], [exp(iϕ)sin(θ/2), exp(i(ϕ+λ))cos(θ/2]]. This covers all of SU(2) (the group of all 2×2 unitary matrices with determinant 1) up to global phase. The decomposition corresponds to RZ(ϕ) RY(θ) RZ(λ). A 2×2 unitary matrix has four real parameters, but one is a global phase (a prefactor that multiplies the entire state and is physically unobservable). That leaves three free parameters, which is exactly why three angles suffice. Special cases: U3(π,0,π)= X, U3(0, 0, π= Z, U3(π/2,0,π)≈ H.

What changes in measurements

Can change both measurement probabilities and phase simultaneously, depending on the parameter values.

What stays hidden until later

Contains every single-qubit gate as a special case.

Bloch sphere

Performs an arbitrary rotation on the Bloch sphere. θ controls the polar angle (tilt from north to south). ϕ and λ control azimuthal phases (rotation around the Z axis before and after the tilt).

Step-by-step example

Recovering known gates from U3

  1. 1Set θ=π,ϕ=0,λ=π. The matrix becomes [[0, 1], [1, 0]]. This is the X gate.
  2. 2Set θ=0,ϕ=0,λ=π. The matrix becomes [[1, 0], [0, −1]]. This is the Z gate.
  3. 3Set θ=π/2,ϕ=0,λ=π. The matrix becomes (1/2​[[1, 1], [1, −1]]. This is the H gate up to global phase.
  4. 4Set θ to any value, ϕ= −π/2,λ=π/2. This gives RX(θ), the X rotation.
  5. 5Every single-qubit gate is a point in the (θ,ϕ,λ) parameter space.
Where this gate appears
  • Hardware-native gate on IBM quantum processors
  • Preparing an arbitrary single-qubit state with one gate application
  • Compilation target: circuit compilers decompose arbitrary gates into U3
  • Parameterized circuits in variational algorithms with full single-qubit flexibility
Connected gates
  • U3 = RZ(φ) RY(θ) RZ(λ), which is the Euler angle decomposition of a single-qubit unitary
  • U3(π, 0, π) = X, U3(0, 0, π) = Z, U3(π/2, 0, π) ≈ H
  • U2(φ, λ) = U3(π/2, φ, λ) is a common shorthand for gates that land on the equator
  • U1(λ) = U3(0, 0, λ) = RZ(λ) up to global phase, a pure phase rotation
Tempting but wrong

It is tempting to think U3 is more powerful than other gates because it has three parameters. That sounds plausible because more parameters might mean more capability. What actually happens is that any universal gate set (like {H, T}) can also reach any single-qubit operation by composing multiple gates. U3 simply packages all three degrees of freedom into a single operation, which is more efficient but not more powerful in principle.

Why this gate matters for what comes next

U3 is the practical compile target for single-qubit operations. When a quantum compiler breaks down your circuit for hardware, every single-qubit gate eventually becomes a U3 or its decomposition into native gates. Understanding U3 means understanding the full three-dimensional space of single-qubit operations.

Test your understanding

Why are three parameters (θ, φ, λ) sufficient for any single-qubit gate?

Quick reference →↗ Nielsen and Chuang, Quantum Computation and Quantum Information
←
Previous
RZ Gate
Next
Controlled-Z
→
← Back to all lessons