Sign in
← Atlas
Exact & formalGatesUniversal single-qubit gate

U3 universal single-qubit gate

The three-parameter gate that can reach any single-qubit unitary up to global phase, used as the universal target when a compiler synthesizes one-qubit operations from Euler angles.

universal gatesingle qubiteuler angles

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

U3 packages the Euler-angle decomposition of SU(2) into one gate definition, so every single-qubit gate in a circuit — Pauli, Hadamard, phase, or arbitrary rotation — can be expressed as one U3 call.

Circuit & simulation
P(|0⟩) at H-equivalent params50%
P(|1⟩) at H-equivalent params50%
What this takes and returns
Takes1 qubitWhat joins here

Takes a 1-qubit register and states no assumption about what is on it. That is the whole condition: anything returning 1 qubits can feed it.

15 entries meet this end. Named below.

Returns1 qubitWhat joins here

Returns a 1-qubit register a next stage can take. This is the end that joins.

13 entries meet this end. Named below.

A unitary. The same register goes in and comes out, and this entry states no assumption about what is on it — which is what lets anything of the same width feed it. See all 29 →

How it works

Definition

U3(θ,φ,λ)=(cos(θ/2)eiλsin(θ/2)eiφsin(θ/2)ei(φ+λ)cos(θ/2))U_3(\theta,\varphi,\lambda) = \begin{pmatrix} \cos(\theta/2) & -e^{i\lambda}\sin(\theta/2) \\ e^{i\varphi}\sin(\theta/2) & e^{i(\varphi+\lambda)}\cos(\theta/2) \end{pmatrix}

Every 2×22\times 2 unitary can be written, up to an overall global phase, as some U3(θ,φ,λ)U_3(\theta,\varphi,\lambda): θ\theta sets the polar angle on the Bloch sphere and φ,λ\varphi,\lambda set the two phases needed to fix the axis and the relative phase.

Euler-angle decomposition

U3(θ,φ,λ)=ei(φ+λ)/2RZ(φ)RY(θ)RZ(λ)U_3(\theta,\varphi,\lambda) = e^{i(\varphi+\lambda)/2}\, R_Z(\varphi)\, R_Y(\theta)\, R_Z(\lambda)

This is the ZYZ Euler decomposition used by every gate-synthesis pass that targets a native {RZ,RY}\{R_Z, R_Y\} or {RZ,RX}\{R_Z, R_X\} gate set: any single-qubit unitary is first written as U3U_3, then compiled into three native rotations plus a tracked global phase.

Special cases

U3(π,0,π)=X,U3 ⁣(π2,0,π)H,U3(θ,0,0)RY(θ),U3(0,0,λ)=P(λ)U_3(\pi,0,\pi) = X, \qquad U_3\!\left(\tfrac{\pi}{2},0,\pi\right) \doteq H, \qquad U_3(\theta,0,0) \doteq R_Y(\theta), \qquad U_3(0,0,\lambda) = P(\lambda)

(the \doteq marks equality up to an unobservable global phase). Because it subsumes every other single-qubit gate in this catalog as a special case, U3U_3 is the natural "universal" record to compare them against.

Practical note

Modern Qiskit exposes this gate as the generic UU gate (qc.u(theta, phi, lam, qubit)) — the historical name u3 referred to the same three-parameter definition before Qiskit's gate-naming cleanup.

Implementation
Native
u3-universal.qasm
OPENQASM 3.0;
include "stdgates.inc";
qubit q;
U(pi/2, 0, pi) q;
Quantum vs classical

Classical baseline

Use a classical state-vector or matrix simulation at the same width, precision, and measurement objective.

Quantum claim

The quantum record demonstrates a state or operator behavior; it does not make classical simulation or communication costs disappear.

How to compare

Compare fidelity, samples, gate depth, noise, memory, and the cost of preparing and reading the state.

Declared gaps

Nobody has reviewed this record for gaps yet.

Literature & references
Elementary gates for quantum computation1995 · Adriano Barenco, Charles H. Bennett, Richard Cleve, David P. DiVincenzo, Norman Margolus, Peter Shor, Tycho Sleator, John A. Smolin, Harald Weinfurter

Shows that single-qubit U(2) gates plus CNOT are universal and gives explicit decompositions for controlled-U, Toffoli, and Fredkin gates.

arxiv.org/abs/quant-ph/9503016
Quantum Computation and Quantum Information: 10th Anniversary Edition2010 · Michael A. Nielsen and Isaac L. Chuang

Standard reference for single- and multi-qubit gate matrices, Euler-angle decomposition, and universal gate sets.

doi.org/10.1017/cbo9780511976667