342 Quantum Circuits from the Floor

A quantum circuit is built from the same primitives as the Boolean circuits of Section 341, with the commutative cuts replaced by projectors on \(\mathbb C^2\).

Qubits and gates. A qubit is a cut, a rank-two projector on a larger physical space. Its pure states are rank-one projectors on the Bloch sphere. Gates are the automorphisms of the projector lattice, which are unitaries, and readout is the character of a commutative pointer algebra.

From the floor.

Universality. Single-qubit gates together with any entangling gate are exactly universal, and a finite set such as \(\{H,T,\mathrm {CNOT}\}\) is approximately universal.

Hardware. Each hardware platform is a choice of:

Compilation is the pipeline that maps an abstract circuit onto these choices.

342.1 Qubits as cuts

The cut. A physical system has a Hilbert space \(\mathcal H_{\mathrm {phys}}\), and a qubit is a rank-two projector

\begin{equation} \Pi _{\mathrm q}=|0\rangle \langle 0|+|1\rangle \langle 1| \tag{21271}\end{equation}
onto a subspace that the dynamics approximately preserves. Population outside \(\operatorname {Im}\Pi _{\mathrm q}\) is leakage.

States. Pure qubit states are rank-one projectors \(\Pi =\tfrac 12(1+\mathbf n\cdot \boldsymbol \sigma )\) with \(\mathbf n\in S^2\), and mixed states fill the Bloch ball (Section 332).

Gates. A bijection of rank-one projectors preserving transition probabilities \(\operatorname {Tr}(\Pi \Pi ')\) is implemented by a unitary or an antiunitary operator (Wigner). Continuous families connected to the identity are unitary, so gates are

\begin{equation} \Pi \mapsto U\Pi U^\dagger , \qquad U\in U(2^n), \tag{21272}\end{equation}
up to a global phase, which does not act on projectors. On one qubit, \(SU(2)\) acts on the Bloch sphere as \(SO(3)\), its double cover.

342.2 Paulis as gradings, Cliffords as their symmetries

Paulis. Every Pauli operator is the grading of a projector,

\begin{equation} Z=1-2|1\rangle \langle 1|, \qquad X=1-2|{-}\rangle \langle {-}|, \qquad Y=iXZ, \tag{21273}\end{equation}
an involution with eigenvalues \(\pm 1\), as \(\hat {\mathbf n}\cdot \boldsymbol \sigma =2\Pi -1\) in Section 362. The \(n\)-qubit Pauli group is generated by tensor products of these, and every non-identity element squares to \(\pm 1\).

Clifford group. The Clifford group is the normaliser of the Pauli group: unitaries \(C\) with \(CPC^\dagger \) again a Pauli for every Pauli \(P\). Its generators are

\begin{equation} H=\tfrac 1{\sqrt 2}\begin {pmatrix}1&1\\1&-1\end {pmatrix}, \qquad S=\begin {pmatrix}1&0\\0&i\end {pmatrix}, \qquad \mathrm {CNOT}. \tag{21274}\end{equation}
Here \(H\) is the involution exchanging \(X\) and \(Z\); \(S^2=Z\); and CNOT maps \(X\otimes 1\mapsto X\otimes X\) and \(1\otimes Z\mapsto Z\otimes Z\).

Stabilizer simulation. A Clifford circuit acting on \(|0\rangle ^{\otimes n}\) and followed by Pauli measurements is tracked by the images of \(n\) commuting Paulis, which takes polynomial time classically (Gottesman–Knill).

Leaving the Clifford group.

\begin{equation} T=\begin {pmatrix}1&0\\0&e^{i\pi /4}\end {pmatrix}, \qquad T^2=S, \tag{21275}\end{equation}
is not Clifford: \(TXT^\dagger =(X+Y)/\sqrt 2\). Clifford plus \(T\) generates a dense subgroup. As the five maximal clones of Post’s criterion must each be broken, a universal quantum gate set must leave the Clifford group.

342.3 Single-qubit gates

Rotations. \(R_P(\theta )=e^{-i\theta P/2}\) for \(P\in \{X,Y,Z\}\). Every \(U\in SU(2)\) has an Euler decomposition

\begin{equation} U=R_Z(\alpha )R_Y(\beta )R_Z(\gamma ). \tag{21276}\end{equation}

Reduction to \(R_Z\) and \(\sqrt X\). Rotating the \(z\) axis about \(x\) by \(\pi /2\) sends it to \(-y\), so

\begin{equation} R_X(\tfrac \pi 2)R_Z(\theta )R_X(-\tfrac \pi 2)=R_Y(-\theta ). \tag{21277}\end{equation}
Conjugating by \(R_Z(\pi )\) reverses the \(x\) axis, so \(R_X(-\tfrac \pi 2)=R_Z(\pi )R_X(\tfrac \pi 2)R_Z(-\pi )\). Combining,
\begin{equation} R_Y(\beta )=R_X(\tfrac \pi 2)\,R_Z(\pi -\beta )\,R_X(\tfrac \pi 2)\,R_Z(-\pi ), \tag{21278}\end{equation}
and therefore
\begin{equation} U=R_Z(\alpha )\ \sqrt X\ R_Z(\pi -\beta )\ \sqrt X\ R_Z(\gamma -\pi ) \tag{21279}\end{equation}
up to global phase, with \(\sqrt X=e^{i\pi /4}R_X(\tfrac \pi 2)\). Every single-qubit gate uses at most two fixed pulses \(\sqrt X\) and three \(Z\) rotations.

Virtual \(Z\). A drive pulse with phase \(\phi \) implements a rotation about the equatorial axis \(\cos \phi \,X+\sin \phi \,Y\):

\begin{equation} R_{\phi }(\theta )=R_Z(\phi )\,R_X(\theta )\,R_Z(-\phi ), \qquad R_Z(\lambda )\,R_\phi (\theta )=R_{\phi +\lambda }(\theta )\,R_Z(\lambda ). \tag{21280}\end{equation}
Every \(R_Z\) can therefore be pushed to the end of the circuit by shifting the phases of later pulses. There it commutes with the readout projector, \([R_Z,|0\rangle \langle 0|]=0\), and has no effect. \(Z\) rotations cost no time and have no error: they are changes of frame.

342.4 Two-qubit gates

Controlled gates as sums over a cut.

\begin{equation} \mathrm {CNOT}=\Pi _0\otimes 1+\Pi _1\otimes X, \qquad \mathrm {CZ}=1-2\,\Pi _1\otimes \Pi _1=\operatorname {diag}(1,1,1,-1). \tag{21281}\end{equation}
CZ is the grading of the rank-one projector onto \(|11\rangle \), and \(\mathrm {CNOT}=(1\otimes H)\,\mathrm {CZ}\,(1\otimes H)\).

Native entanglers.

\begin{align} \mathrm {ECR}&=\tfrac 1{\sqrt 2}(1\otimes X-X\otimes Y), \tag{21282}\\ \mathrm {MS}&=e^{-i\frac \pi 4X\otimes X}, \tag{21283}\\ R_{ZZ}(\theta )&=e^{-i\frac \theta 2Z\otimes Z}, \tag{21284}\\ \mathrm {iSWAP}&=e^{i\frac \pi 4(X\otimes X+Y\otimes Y)}, \tag{21285}\\ \mathrm {fSim}(\theta ,\phi )&=\text {an iSWAP-type rotation by }\theta \text { with a controlled phase }\phi . \tag{21286}\end{align}

The operators \(1\otimes X\) and \(X\otimes Y\) anticommute, so \(\mathrm {ECR}^2=1\): ECR is itself an involution.

Cartan decomposition. Every \(U\in SU(4)\) factors as

\begin{equation} U=(A_1\otimes B_1)\, \exp \!\bigl (i(c_1\,X\!\otimes \!X+c_2\,Y\!\otimes \!Y+c_3\,Z\!\otimes \!Z)\bigr )\, (A_2\otimes B_2), \tag{21287}\end{equation}
with \(\tfrac \pi 4\ge c_1\ge c_2\ge |c_3|\). Two gates are equivalent up to single-qubit gates iff they have the same coordinates:

Gate \((c_1,c_2,c_3)\)
identity \((0,0,0)\)
CNOT, CZ, ECR, MS, \(R_{ZZ}(\tfrac \pi 2)\) \((\tfrac \pi 4,0,0)\)
\(\sqrt {\mathrm {iSWAP}}\) \((\tfrac \pi 8,\tfrac \pi 8,0)\)
iSWAP \((\tfrac \pi 4,\tfrac \pi 4,0)\)
SWAP \((\tfrac \pi 4,\tfrac \pi 4,\tfrac \pi 4)\)

The native gates of different platforms differ only in single-qubit dressing. A generic two-qubit gate needs three CNOTs, and \(\mathrm {SWAP}=\mathrm {CNOT}_{12}\mathrm {CNOT}_{21}\mathrm {CNOT}_{12}\).

342.5 Universality

Exact. Every \(U\in U(d)\) is a product of at most \(d(d-1)/2\) two-level unitaries, Givens rotations acting on two basis vectors at a time, obtained by zeroing the entries of \(U\) column by column. With \(d=2^n\), each two-level unitary is reduced by a Gray code to controlled single-qubit gates, hence to CNOTs and single-qubit gates. Single-qubit gates together with any one entangling two-qubit gate are therefore exactly universal.

Approximate. \(\{H,T,\mathrm {CNOT}\}\) generates a dense subgroup. By the Solovay–Kitaev theorem, any single-qubit gate is approximated to accuracy \(\varepsilon \) by \(O(\log ^c(1/\varepsilon ))\) gates from the set. Boolean completeness is exact because there are finitely many functions; quantum universality is approximate for finite gate sets because \(U(2^n)\) is a continuum.

342.6 Measurement

Projective readout. Readout in the computational basis is the family \(\{\Pi _0,\Pi _1\}^{\otimes n}\), with Born weights \(\operatorname {Tr}(\rho \Pi _a)\) and Lüders update (Section 58). The record of a shot is a character of the commutative algebra these projectors generate: a bit string.

Mid-circuit measurement and feed-forward. These are conditioning on the outcome and choosing the next gate as a function of it, a classical control layer driven by characters.

Other bases. Measuring \(X\) or \(Y\) is measuring \(Z\) after \(H\) or \(HS^\dagger \).

342.7 Error correction as commuting projectors

Stabilizer codes. A stabilizer code is defined by commuting Paulis \(S_1,\ldots ,S_m\) with \(-1\notin \langle S_i\rangle \). Its code space is the image of the product of commuting projectors,

\begin{equation} \Pi _{\mathrm {code}}=\prod _{i=1}^m\frac {1+S_i}{2}. \tag{21288}\end{equation}
A logical qubit is a cut of the cut.

Syndromes. Measuring the \(S_i\) via ancillas gives a syndrome, the character of the commutative stabilizer algebra on the error. Logical operators commute with every \(S_i\) without lying in \(\langle S_i\rangle \).

Surface code. Stabilizers are \(X\)- and \(Z\)-type plaquettes on a square lattice. Below a threshold error rate \(p_{\mathrm {th}}\), the logical error rate falls as roughly

\begin{equation} p_L\sim \Bigl (\frac {p}{p_{\mathrm {th}}}\Bigr )^{(d+1)/2} \tag{21289}\end{equation}
with code distance \(d\). The threshold theorem states that, below threshold, arbitrarily long computations are possible with polylogarithmic overhead.

342.8 Hardware: the cut, the entangler, the coupling map

Superconducting transmons (IBM, Google, Rigetti)

Josephson circuit. The superconducting phase \(\hat \varphi \) lives on the circle and the Cooper-pair number \(\hat n\in \mathbb Z\) is its conjugate (Section 333):

\begin{equation} H=4E_C(\hat n-n_g)^2-E_J\cos \hat \varphi . \tag{21290}\end{equation}
The cosine is periodic because \(\hat \varphi \) is an angle. In the transmon regime \(E_J/E_C\gtrsim 50\), charge noise is exponentially suppressed and
\begin{equation} \omega _{01}\approx \sqrt {8E_JE_C}-E_C, \qquad \alpha =\omega _{12}-\omega _{01}\approx -E_C . \tag{21291}\end{equation}
The qubit is the cut onto the two lowest levels; the anharmonicity \(\alpha \) makes the cut addressable, and leakage to \(|2\rangle \) is suppressed by pulse shaping (DRAG).

Drive. A microwave drive \(\Omega (t)\cos (\omega t+\phi )\,\hat n\) at resonance becomes, in the rotating frame,

\begin{equation} H=\frac {\Omega }{2}(\cos \phi \,X+\sin \phi \,Y), \tag{21292}\end{equation}
a rotation about an equatorial axis whose angle is the drive phase. This is why \(R_Z\) is virtual.

Readout. Dispersive coupling to a resonator,

\begin{equation} H=\omega _ra^\dagger a+\tfrac {\omega _q}{2}Z+\chi \,a^\dagger a\,Z, \tag{21293}\end{equation}
commutes with \(Z\), so readout is quantum non-demolition; the pointer basis is selected by \([H_{\mathrm {int}},Z]=0\).

Entanglers. Cross-resonance (driving one qubit at its neighbour’s frequency) gives an \(X\otimes Z\) interaction, packaged as ECR. Tunable couplers give CZ or fSim-type gates.

Native gate sets, as documented by vendors around 2024–2025.

All are \((\tfrac \pi 4,0,0)\) or iSWAP-class in Cartan coordinates.

Coupling map. Fixed-frequency transmons suffer frequency collisions between neighbours, so IBM uses a heavy-hex lattice, with degree at most \(3\). Google uses a square lattice suited to the surface code.

Trapped ions (Quantinuum, IonQ)

Cut and entangler. The cut is two hyperfine or optical levels of an ion. Entanglement is mediated by shared motional modes: the Mølmer–Sørensen interaction gives \(e^{-i\theta X\otimes X/2}\), or with a frame change \(e^{-i\theta Z\otimes Z/2}\), at arbitrary angle \(\theta \).

Coupling map. Every pair shares the motional bus, so connectivity is all-to-all within a zone; Quantinuum moves ions between zones (QCCD).

Neutral atoms (QuEra, Pasqal, Atom Computing)

Cut and entangler. The cut is two ground levels of an atom in an optical tweezer. Exciting to a Rydberg level \(|r\rangle \) produces a blockade: two nearby atoms cannot both occupy \(|r\rangle \), so the doubly excited projector is removed from the dynamics,

\begin{equation} \Pi _{rr}\,H_{\mathrm {eff}}\,\Pi _{rr}\approx 0 . \tag{21294}\end{equation}
A \(\pi \)–\(2\pi \)–\(\pi \) pulse sequence then gives a controlled phase, locally equivalent to CZ.

Coupling map. Atoms can be moved, so the coupling map is reconfigurable.

Photonics

The cut is a single photon in two modes, polarisation or path. Linear optics implements single-qubit gates exactly; entanglement comes from measurement, by fusion or teleportation, and feed-forward, so the circuit model is replaced by measurement-based computation on resource states.

Platform Cut Entangler Coupling map
transmon two lowest levels, \(\cos \hat \varphi \) ECR, CZ, fSim heavy-hex, square
trapped ion hyperfine levels MS, \(R_{ZZ}(\theta )\) all-to-all per zone
neutral atom ground levels Rydberg blockade CZ movable
photonic photon in two modes fusion, measurement resource state

342.9 Compilation: every node of the pipeline

1.
Abstract circuit. A sequence of gates on logical qubits.
2.
Synthesis. Multi-qubit unitaries become two-level unitaries, then CNOTs and single-qubit gates; or Clifford\(+T\) with Solovay–Kitaev for fault-tolerant targets.
3.
Basis translation. Each two-qubit gate is rewritten in the native entangler by its Cartan coordinates; single-qubit gates become \(R_Z\sqrt XR_Z\sqrt XR_Z\).
4.
Layout and routing. Logical qubits are mapped to physical ones, and SWAPs, three CNOTs each, are inserted where the circuit needs pairs absent from the coupling map.
5.
Optimisation. Adjacent gates are merged, using \(R_Z(a)R_Z(b)=R_Z(a+b)\) and involutions \(G^2=1\); \(Z\) rotations are pushed into frame changes.
6.
Scheduling. Gates are timed, with dynamical decoupling, sequences of involutions \(X\), \(Y\), inserted on idle qubits to average out slow \(Z\) noise.
7.
Pulses. Each native gate becomes a shaped microwave or laser pulse with amplitude, duration and phase.
8.
Readout and mitigation. Shots give bit strings, characters of the readout algebra, and readout error is inverted by a calibrated confusion matrix.

342.10 Summary

Statement Form From
qubit rank-two projector \(\Pi _{\mathrm q}\) cut
gates \(\Pi \mapsto U\Pi U^\dagger \) automorphisms, Wigner
Paulis \(1-2\Pi \) grading of a projector
Clifford normaliser of Paulis involutions
\(T\) \(TXT^\dagger =(X+Y)/\sqrt 2\) leaves Clifford
single-qubit \(R_Z\sqrt XR_Z\sqrt XR_Z\) Euler, conjugation
virtual \(Z\) \([R_Z,\Pi _0]=0\) frame change
CNOT, CZ \(\sum \Pi _a\otimes U_a\), \(1-2\Pi _{11}\) controlled cuts
Cartan classes \((c_1,c_2,c_3)\) \(SU(4)\) decomposition
exact universality Givens, Gray code two-level unitaries
approximate universality \(\{H,T,\mathrm {CNOT}\}\) dense Solovay–Kitaev
readout bit strings characters
codes \(\prod (1+S_i)/2\) commuting projectors
transmon \(4E_C\hat n^2-E_J\cos \hat \varphi \) circle and integers
ions MS, \(R_{ZZ}\) shared modes
atoms Rydberg blockade excluded projector
compilation synthesis to pulses all of the above