Skip to main content
KetQat

Appearance

Theorem · advanced

Cartan (KAK) decomposition of two-qubit gates

Every two-qubit unitary is, up to a global phase, a product of single-qubit gates, a nonlocal core exp(i(a XX + b YY + c ZZ)), and further single-qubit gates, so every property that local gates cannot change depends only on the three coefficients.

Established resultMachine-checkedUpdated 2026-12-01 · last verified 2026-12-01

AI-assisted text, machine-checked, not yet reviewed by a person. Citations resolve and an automated pass compared the statements with the cited sources. That is not peer review; check the sources for anything you depend on.

For every U∈U(4)U \in U(4) there are A1,A2,B1,B2∈SU(2)A_1, A_2, B_1, B_2 \in SU(2), real numbers a,b,ca, b, c and a phase γ∈R\gamma \in \R such that

U=eiγ (A1⊗A2)  exp⁡ ⁣(i(a XX+b YY+c ZZ))  (B1⊗B2).U = e^{i\gamma}\, (A_1 \otimes A_2)\; \exp\!\big(i(a\, XX + b\, YY + c\, ZZ)\big)\; (B_1 \otimes B_2).

The triple (a,b,c)(a, b, c) is not unique. Permuting its entries (conjugation by H⊗HH\otimes H exchanges XXXX and ZZZZ, and by S⊗SS\otimes S exchanges XXXX and YYYY), changing the sign of two entries (conjugation by Z⊗IZ\otimes I flips XXXX and YYYY), or shifting one entry by π/2\pi/2 (eiπ2XX=i X⊗Xe^{i\frac{\pi}{2}XX} = i\,X\otimes X) is absorbed into the local factors and the phase. Restricting the triple to a fundamental region for such moves gives the Weyl chamber of two-qubit gates. Any property invariant under single-qubit gates, such as entangling power or the minimal CNOT count, depends only on the triple. For example CZ, and hence CNOT, has triple (π/4,0,0)(\pi/4, 0, 0) and SWAP has (π/4,π/4,π/4)(\pi/4, \pi/4, \pi/4) modulo these moves (see the proof).

The decomposition is the two-qubit case of the Cartan decomposition of SU(2n)SU(2^n) used in control theory by Khaneja and Glaser; it was obtained independently, with its use for entangling power, by Kraus and Cirac, and the magic-basis form used in the proof is that of Vatan and Williams.

Holds when

  • U∈U(4)U \in U(4) acting on two qubits; X,Y,ZX, Y, Z are the Pauli matrices and XXXX abbreviates X⊗XX \otimes X.

Proof

Proof of the two-qubit Cartan decompositionMachine-checked

Magic basis. Let MM be the unitary whose columns are ∣Φ+⟩, i∣Φ−⟩, i∣Ψ+⟩, ∣Ψ−⟩\ket{\Phi^+},\ i\ket{\Phi^-},\ i\ket{\Psi^+},\ \ket{\Psi^-}, with the usual Bell states. We use one fact, proved by Vatan and Williams (see also Kraus and Cirac): K↦M†KMK \mapsto M\dagg K M maps SU(2)⊗SU(2)SU(2)\otimes SU(2) onto SO(4)SO(4). The second fact is a direct check: each Bell state is a joint eigenvector of XXXX, YYYY, ZZZZ, with eigenvalue vectors (over Φ+,Φ−,Ψ+,Ψ−\Phi^+, \Phi^-, \Psi^+, \Psi^-)

XX:(1,−1,1,−1),YY:(−1,1,1,−1),ZZ:(1,1,−1,−1),XX: (1, -1, 1, -1),\quad YY: (-1, 1, 1, -1),\quad ZZ: (1, 1, -1, -1),

and the phases ii in MM do not change eigenvectors. Together with I:(1,1,1,1)I: (1,1,1,1) these are four mutually orthogonal vectors, so every diagonal matrix in the magic basis is a real linear combination of I,XX,YY,ZZI, XX, YY, ZZ when its entries are real, and every diagonal unitary is exp⁡ ⁣(i(a0I+aXX+bYY+cZZ))\exp\!\big(i(a_0 I + a XX + b YY + c ZZ)\big) for real a0,a,b,ca_0, a, b, c.

Step 1. Remove a phase: U=eiγ0U′U = e^{i\gamma_0} U' with U′∈SU(4)U' \in SU(4). Put V=M†U′M∈SU(4)V = M\dagg U' M \in SU(4) and W=VTVW = V^{T} V. Then WW is unitary and symmetric.

Step 2. Write W=A+iBW = A + iB with A,BA, B real. Symmetry of WW makes A,BA, B symmetric, and W†=W‾T=W‾W\dagg = \overline{W}^{T} = \overline{W}. Unitarity gives I=WW‾=(A+iB)(A−iB)=A2+B2+i(BA−AB)I = W\overline{W} = (A + iB)(A - iB) = A^2 + B^2 + i(BA - AB), so AB=BAAB = BA. Two commuting real symmetric matrices are diagonalised by one real orthogonal matrix OO; replacing a column of OO by its negative if necessary, O∈SO(4)O \in SO(4). So W=ODOTW = O D O^{T} with DD diagonal, and DD is unitary because WW is.

Step 3. Choose a diagonal FF with F2=DF^2 = D. Then (det⁡F)2=det⁡D=det⁡W=(det⁡V)2=1(\det F)^2 = \det D = \det W = (\det V)^2 = 1; if det⁡F=−1\det F = -1, negate one diagonal entry of FF, so det⁡F=1\det F = 1. Define Q=VOF−1Q = V O F^{-1}. It is unitary, and

QTQ=F−1OTVTVOF−1=F−1OTWOF−1=F−1DF−1=I.Q^{T} Q = F^{-1} O^{T} V^{T} V O F^{-1} = F^{-1} O^{T} W O F^{-1} = F^{-1} D F^{-1} = I .

Hence QT=Q−1=Q†Q^{T} = Q^{-1} = Q\dagg, so Q‾=Q\overline{Q} = Q: QQ is real orthogonal, with det⁡Q=det⁡Vdet⁡O/det⁡F=1\det Q = \det V \det O / \det F = 1, i.e. Q∈SO(4)Q \in SO(4).

Step 4. V=QFOTV = Q F O^{T}, so U′=(MQM†)(MFM†)(MOTM†)U' = (M Q M\dagg)(M F M\dagg)(M O^{T} M\dagg). By the first fact the outer factors are A1⊗A2A_1 \otimes A_2 and B1⊗B2B_1 \otimes B_2 with Ai,Bi∈SU(2)A_i, B_i \in SU(2). The middle factor is diagonal and unitary in the magic basis, so it equals exp⁡(i(a0I+aXX+bYY+cZZ))\exp(i(a_0 I + a XX + b YY + c ZZ)). Collecting eiγ0eia0e^{i\gamma_0} e^{i a_0} into eiγe^{i\gamma} gives the theorem.

Examples. In the magic basis SWAP is diag⁡(1,1,1,−1)\operatorname{diag}(1, 1, 1, -1), which is eiπ/4exp⁡ ⁣(−iπ4(XX+YY+ZZ))e^{i\pi/4}\exp\!\big(-i\tfrac{\pi}{4}(XX + YY + ZZ)\big) (check: the exponent gives e−iπ/4e^{-i\pi/4} on the three states with XX+YY+ZZ=1XX + YY + ZZ = 1 and e3iπ/4e^{3i\pi/4} on Ψ−\Psi^-). For CZ, CZ=eiπ/4 (S†⊗S†)exp⁡ ⁣(−iπ4ZZ)\mathrm{CZ} = e^{i\pi/4}\,(S\dagg\otimes S\dagg)\exp\!\big(-i\tfrac{\pi}{4} ZZ\big), as one checks on the four computational basis states; CNOT differs from CZ by Hadamards on the target.

Stated in

Open in the knowledge graph

Contributions about this record

Nobody has published a contribution about it yet.

Publish a result, reproduction or commentPropose a correction to this page

References

  1. Navin Khaneja, Steffen J. Glaser (2001). Cartan decomposition of SU(2^n) and control of spin systems. Chemical Physics 267, 11-23. doi:10.1016/S0301-0104(01)00318-4
  2. B. Kraus, J. I. Cirac (2001). Optimal creation of entanglement using a two-qubit gate. Physical Review A 63, 062309. doi:10.1103/PhysRevA.63.062309arXiv:quant-ph/0011050
  3. Farrokh Vatan, Colin Williams (2004). Optimal quantum circuits for general two-qubit gates. Physical Review A 69, 032315. doi:10.1103/PhysRevA.69.032315arXiv:quant-ph/0308006

Contributors

  • KetQat maintainers · @ketqatConceptualization; Supervision (CRediT roles)
  • Claude (AI drafting assistant)Writing, original draft (CRediT roles)

Review history

  1. Automated source check · Pass · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)

    Statement re-derived via the companion proof record. Symmetry moves checked numerically: H x H swaps XX and ZZ, S x S swaps XX and YY, Z x I flips XX and YY, exp(i pi/2 XX) = i XX; triples of CZ (pi/4,0,0) and SWAP (pi/4,pi/4,pi/4) checked by explicit exponentials. Attributions compared with Kraus and Cirac (arXiv quant-ph/0011050, decomposition of two-qubit unitaries, Appendix A) and Vatan and Williams (arXiv quant-ph/0308006, magic basis Theorem 1); Khaneja and Glaser metadata (title, authors, Chem. Phys. 267, 11-23, 2001) checked against Crossref (full text not read; cited only for the general SU(2^n) Cartan decomposition named in its title).

Revision history

  1. 2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e

Current revision f3a43f9786846fdc. Source file knowledge/records/theorem/two-qubit-cartan-decomposition.md in the content repository (readable there once it is public).