A well-known theorem states that the Clifford+T gate set is universal for quantum computing. The theorem combines approximation using a distance measure on unitary matrices with equality up to global phase. Previous proofs combine these two notions for specific distance measures, but do not identify the properties that govern how they work together. Which properties are sufficient to state and prove the theorem? We answer this question by defining projective distance measures using four axioms. We prove that the universality theorem holds for every distance measure satisfying these axioms. Thus, our formulation of the theorem is independent of any particular choice of distance measure. We show that the Hilbert-Schmidt distance is already a projective distance measure. We also develop a general construction that transforms a large class of distance measures into projective distance measures and apply it to obtain projective versions of the operator-norm distance, the Frobenius distance, and the trace distance. Finally, we formalize the proof of the universality theorem in Lean.
Introduction
A well-known theorem states that the Clifford+T gate set is universal for quantum computing. In more detail, the theorem says that for any unitary matrix, we can use the Clifford+T gate set to build a quantum circuit that is as close as we like to the unitary matrix. This requires us to use a distance measure, but the literature offers no canonical choice, as we discuss next.
The well-known book by Nielsen and Chuang [ [4] gave a proof of the universality of Clifford+T using the operator-norm distance. The idea is to decompose any unitary in two steps. The first step is to decompose the unitary into a product of 2-qubit gates and 1-qubit gates, up to a global phase. The second step is to approximate each of those smaller gates by circuits of Clifford+T gates. We can view the second step as solving a synthesis problem: given a small unitary, find a circuit that is a small distance away and has good properties. The synthesis problem is important for many applications and has a rich literature. For example, Ross and Selinger [ [7] gave an algorithm for approximating the 1-qubit Rz(θ) gates, using the operator-norm distance and producing circuits with few T-gates. For another example, Patel et al. [ [6] gave an algorithm for approximating small unitaries, using the Hilbert–Schmidt distance and producing circuits with good properties such as low depth. For a third example, Kalloor et al. [ [3] gave an algorithm for approximating small unitaries, using the operator-norm distance, the Frobenius distance, and the trace-norm distance. In summary, the community uses a variety of distance measures to support approximation. This raises the question of which of those distance measures, along with others, are sufficient to state and prove universality of Clifford+T. Any such distance measure must combine approximation with equality up to a global phase. We crystallize these considerations into the following question about the distance measure.
Which properties are sufficient to state and prove universality of Clifford+T?
We answer this question by defining projective distance measures using four axioms. We prove that the universality theorem holds for every distance measure satisfying these axioms. Thus, our formulation of the theorem is independent of any particular choice of distance measure. We show that the Hilbert–Schmidt distance is already a projective distance measure. We also develop a general construction that transforms a large class of distance measures into projective distance measures and apply it to obtain projective versions of the operator-norm distance, the Frobenius distance, and the trace distance. We have formalized our proof of the universality theorem in Lean.
The Rest of the Paper. In § 2 we introduce the quantum concepts that we will use in the paper. In § 3 we give examples and properties of distance measures, and we present our four axioms. In § 4 we state the universality theorem and two key lemmas, and we give a high-level proof. In § 5–§ 6, we prove those two lemmas, with the help of well-known lemmas listed in Appendix § 11. First, in § 5, we give a variant of a known proof [8] that Clifford+Rz(θ) is universal, and then in § 6, we give a variant of a known proof [1, 7] that Rz(θ) can be approximated. We highlight every place in the proofs where we use the four axioms that define projective distance measures.
Quantum Concepts
We recall the Pauli matrices X, Y, Z, two matrices S, T that satisfy S2=Z and T2=S, the identity matrix I, the Hadamard matrix H, the C(X) matrix, and three rotation matrices Rx(θ), Ry(θ), Rz(θ):
For a matrix U, we use U† to denote the conjugate transpose of U. A 2n×2n matrix U is unitary if UU†=U†U=I⊗n. All the above matrices are unitary, and they are also called gates. We use U(2n) to denote the set of unitaries of size 2n×2n, and we call them n-qubit unitaries. We say that two unitaries U and V are equal up to a global phase, written U∼V, if there exists a real number α such that U=eiαV, where eiα is called the global phase.
We use the term circuit to mean a product of unitaries. The gates {C(X),X,Y,Z,I,H,S} are called Clifford gates and can be generated from the smaller set {C(X),H,S}. In contrast, T is not a Clifford gate, and, in general, Rx(θ), Ry(θ), Rz(θ) are not Clifford gates, either.
A square matrix is Hermitian if A=A†. Among the above matrices X, Y, Z, I, H, C(X) are Hermitian. For a unitary U=eiαA, where α is a real number and A is a Hermitian matrix, we define Ua=eiaαA. We will apply this definition of exponentiation only to matrices that are written eiαA.
In circuit diagrams, we draw the X gate as ⊕, a single control as ∙, and a bundle of qubits on a single wire as /. Following [9], we use the notation ⊏ to indicate that a unitary is diagonal on the corresponding qubit and commutes with Z on that qubit.
Distance Measures
Here are definitions of the four distance measures mentioned in § 1, for U,V∈U(2n):
D(U,V)=1−(2n∣Tr(U†V)∣)2
T(U,V)=∥U−V∥1
where ∥A∥1=Tr(A†A)
O(U,V)=∥U−V∥2
where ∥A∥2=max∥x∥=1∥Ax∥
F(U,V)=∥U−V∥F
where ∥A∥F=Tr(A†A)
Those distance measures share some properties, four of which we consolidate into the following notion of a traditional distance measure.
Definition 3.1. A traditional distance measure is a function
d:U(2n)×U(2n)→R≥0
such that:
Reflexivity:d(U,U)=0.
Common-Phase Invariance: For every θ∈R: d(eiθU,eiθV)=d(U,V).
Continuity: For every ϵ>0, every real number t0, and every Hermitian matrix A, there exists δ>0 such that, for every real number t, if ∣t0−t∣<δ, then d(eit0πA,eitπA)<ϵ.
Intuitively, Reflexivity says that an operation has zero distance from itself, while Common-Phase Invariance says that changing the global phase in the same way does not change the distance, and Subadditivity says that distances add up when circuits are multiplied. Finally, Continuity says that the function that maps t to eitπA is continuous when we use d to measure the distance between two unitaries.
Lemma 3.2.D,T,O,F are traditional distance measures.
Traditional distance measures are insufficient for stating and proving that Clifford+T is universal. The missing piece of the puzzle is how a distance measure works for unitaries that are equal up to global phase. We need a variant of Common-Phase Invariance, which we call Projective Invariance and which says that any changes to the global phases do not change the distance. This leads us to define a subset of the traditional distance measures, which we call the projective distance measures.
Definition 3.3. A projective distance measure is a function d:U(2n)×U(2n)→R≥0 that satisfies Reflexivity, Subadditivity, Continuity, and
Projective Invariance: If U1∼U2 and V1∼V2, then d(U1,V1)=d(U2,V2).
Notice that every projective distance measure is also a traditional distance measure. However, among the four distance measures above, only D is a projective distance measure.
Lemma 3.4.D is a projective distance measure.
Proof. Straightforward, using the proof technique in Appendix § 8. □
We can observe that T, O, F all fail to satisfy Projective Invariance. Specifically, for the identity matrix I, we have T(I,I)=O(I,I)=F(I,I)=0 and I∼(−I), but
The challenge is to formalize what it means to say “a traditional distance measure plus the idea of equal up to a global phase”. We will do that based on the following lemma.
Lemma 3.5. Let d be a traditional distance measure. For every pair of unitary matrices U,V, there exists θ0∈R such that
d(U,eiθ0V)=θ∈Rinfd(U,eiθV).
Proof. See Appendix B.
By Lemma 3.5, the infimum of d(U,eiθV) is always equal to a minimum. In other words, the minimum exists. We therefore define the projectivization operator ⋅ as follows:
d(U,V)=θ∈Rmind(U,eiθV).
Lemma 3.6. If d is a traditional distance measure, then d is a projective distance measure.
Proof. See Appendix C.
Lemma 3.7.T, O, F are projective distance measures.
For a projective distance measure d, we say that a gate set is universal with respect to d if, for any unitary U and any ϵ>0, we can use the gate set to define a circuit C such that d(U,C)<ϵ. Theorem 4.1 states that {C(X),H,T} is universal with respect to any projective distance measure.
Theorem 4.1 (Clifford+T is universal). For any projective distance measure d, any unitary U, and any ϵ>0, there exists a circuit C built from {C(X),H,T}, such that d(U,C)<ϵ.
Our proof uses a new gate G1, which we define as follows.
G1=e−3iπ/8THTHT
The gate G1 enables us to do the proof of Theorem 4.1 in three steps:
Any unitary Lemma 4.2{C(X),H,S,Rz(θ)}Lemma 4.3{C(X),H,S,G1}Immediate{C(X),H,T}
In the first step, we use Lemma 4.2 to map any unitary U to a circuit that is equal to U, up to a global phase, and built from {C(X),H,S,Rz(θ)}. Notice that C(X), H, S are all Clifford gates, so the remaining challenge lies with the Rz(θ) gates. In the second step, we use Lemma 4.3 to map any Rz(θ) gate to a circuit built from {H,S,G1}, in a way that may require approximation. Finally, in the third step, we use that G1 is equal to a circuit built from {H,T}, up to a global phase.
Lemma 4.2 (Clifford+Rz(θ) is universal). For any n-qubit unitary U, there exists a circuit C built from {C(X),H,S,Rz(θ)} such that U∼C.
Lemma 4.3 (Rz(θ) can be approximated). For any projective distance measure d, any real number θ, and ϵ>0, there exists a circuit C built from {H,S,G1} such that d(Rz(θ),C)<ϵ.
Proof of Theorem 4.1. For a unitary U and ϵ>0, Lemma 4.2 says that there exists a circuit C1 built from {C(X),H,S,Rz(θ)} such that U∼C1.
Let k be the number of Rz gates in C1, and let θ1,…,θk be the angles used in those gates. We have two cases.
In the first case, if k=0, then C1 is built from {C(X),H,S}. Let C2 be a version of C1 in which we have replaced each S by T2. Notice that C2=C1 and C2 is built from {C(X),H,T}. We get:
d(U,C2)=d(U,C1)=d(U,U)=0<ϵ
In the first step, we use C2=C1. In the second step, we use U∼C1 and the Projective Invariance property. In the third step, we use the Reflexivity property.
In the second case, if k>0, then from Lemma 4.3 we get circuits Wj built from {H,S,G1} such that
d(Rz(θj),Wj)<ϵ/k(3)
Let C3 be a version of C1 in which we have replaced each Rz(θj) by Wj. Notice that C3 is built from {C(X),H,S,G1}. We calculate:
In the first step, we use U∼C1 and the Projective Invariance property. In the second step, we use the Subadditivity property to bound the distance between products by a sum of distances. Notice that in that sum of distances, some of those distances are between equal unitaries, and in those cases, we use the Reflexivity property to get that those distances are equal to 0. In the third step, we use Equation (3).
Let C4 be a version of C3 in which we have replaced each S by T2, and in which we have replaced each G1 by THTHT. Notice that C4∼C3 and that C4 is built from {C(X),H,T}. We calculate:
d(U,C4)=d(U,C3)<ϵ
In the first step, we use the Projective Invariance property, and in the second step, we use Equation (4). □
Notice that the above proof of Theorem 4.1 uses only three of the four properties of the distance measure. We will use the fourth property in the proof of Lemma 4.3.
Clifford+Rz(θ) is Universal (Lemma 4.2)
First, we show how to implement a multiplexed Rz(α) gate (Lemma 5.1), and then we prove Lemma 4.2 by induction.
Lemma 5.1. Let R be the n-qubit gate ∑i=02n−1−1Rz(αi)⊗∣i⟩⟨i∣. There exists a circuit C built from {C(X),Rz(θ)} such that R=C.
Proof. We proceed by induction on n.
In the base case of n=1, we have that R is a single Rz(θ) gate.
In the induction step, suppose the property holds for n, where n≥1. Consider the case of an (n+1)-qubit multiplexed Rz(α) gate R. From Lemma D.5, we can implement R using two n-qubit multiplexed Rz(α) gates and two C(X) gates. Now we apply the induction hypothesis to those n-qubit multiplexed Rz(α) gates and arrive at the desired result. □
Recall that Lemma 4.2 states that Clifford+Rz(θ) is universal: for any n-qubit unitary U, there exists a circuit C built from {C(X),H,S,Rz(θ)} such that U∼C.
Proof of Lemma 4.2. Suppose U is an n-qubit unitary. We proceed by induction on n.
In the base case of n=1, we first write U=eiαV, where det(V)=1, and then based on that and Lemma D.1 and Equation (1), we write
U∼V=Rz(α)Rx(β)Rz(γ)=Rz(α)HRz(β)HRz(γ)
The above expression is built from {H,Rz(θ)}.
In the induction step, suppose Lemma 4.2 holds for n, where n≥1. Consider the case of where U is an (n+1)-qubit unitary. We calculate as follows.
In the first step, according to Lemma D.3, there exist 2n 1-qubit gates Ry(θ0),Ry(θ1),⋯, and Ry(θ2n−1), four n-qubit gates P0,P1,Q0, and Q1, and three (n+1)-qubit gates P=∣0⟩⟨0∣⊗P0+∣1⟩⟨1∣⊗P1, R=∑i=02n−1Ry(θi)⊗∣i⟩⟨i∣, and Q=∣0⟩⟨0∣⊗Q0+∣1⟩⟨1∣⊗Q1, such that the first step is valid.
In the second step, according to Equation (2), for R=∑i=02n−1Ry(θi)⊗∣i⟩⟨i∣ gate, there exists one (n+1)-qubit gate R1=∑i=02n−1Rz(θi)⊗∣i⟩⟨i∣, such that
In the third step, according to Lemma D.4, for P=∣0⟩⟨0∣⊗P0+∣1⟩⟨1∣⊗P1 gate, there exist 2n 1-qubit gates Rz(α0),Rz(α1),⋯, and Rz(α2n−1), two n-qubit gates V and W, and one (n+1)-qubit gate R0=∑i=02n−1Rz(αi)⊗∣i⟩⟨i∣, such that the right-most change in the third step is valid. Similarly, according to Lemma D.4, for Q=∣0⟩⟨0∣⊗Q0+∣1⟩⟨1∣⊗Q1 gate, there exist 2n 1-qubit gates Rz(β0),Rz(β1),⋯, and Rz(β2n−1), two n-qubit gates M and N, and one (n+1)-qubit gate R2=∑i=02n−1Rz(βi)⊗∣i⟩⟨i∣, such that left-most change in the third step is valid.
We have arrived at a circuit that uses 3 multiplexed (n+1)-qubit Rz(θ) gates, 4 n-qubit gates, 2 H gates, and 4 S gates (because the S† gate can be written S†=SSS).
We can now apply Lemma 5.1 to the 3 multiplexed (n+1)-qubit Rz(θ) gates, and we can apply the induction hypothesis to 4 n-qubit gates. The result is an implementation of U built from {C(X),H,S,Rz(θ)}. □
An n-qubit unitary has 2n×2n=(2n)2=(22)n=4n entries. One can show easily that the above proof of Lemma 4.2 constructs a circuit with O(4n) gates.
Rz(θ) Can be Approximated (Lemma 4.3)
Our goal is to replace each Rz(θ) gate by a circuit built from {H,S,G1} that is as close to Rz(θ) as we like. Our strategy for doing that relies on an additional gate G2 that we define using Clifford gates and G1:
G2=(HS2)G1(S2H)
Our proof of Lemma 4.3 uses {G1,G2} as a convenient gate set that enables a three-step proof:
We express Rz(θ) in terms of real powers of G1 and G2 (§ 6.1).
We replace those real powers by positive-integer powers (§ 6.2).
We use those positive-integer powers to complete the proof of Lemma 4.3 (§ 6.3).
In the first step, we use that {G1,G2} supports generalized Euler decomposition (Lemma D.2), which enables us to express Rz(θ) as a product of real powers of G1 and G2. In the second step, we use that G1,G2 represent rotations by irrational angles, so positive-integer powers can approximate arbitrary real powers (Lemma 6.3). In the third step, we put these ideas together to show that the gate set {G1,G2}, hence the gate set {H,S,G1}, can approximate any Rz(θ) gate.
Step 1: Real Powers and No Approximation
We will represent the unitary matrices G1,G2 as exponentiations of Hermitian matrices. The constants and Hermitian matrices that we need are the following.
Lemma 6.1.The matrices A1 and A2 are Hermitian, and A12=A22=I and A1A2=−A2A1 and Gi=eiλ0πAi. Moreover, λ0 is irrational.
Proof. The proofs of the matrix identities are by straightforward matrix calculation. For the proof that λ0 is irrational, suppose, for contradiction, that λ0 is rational. Then eiλ0π is a root of unity, so it is an algebraic integer. Therefore, e−iλ0π is also an algebraic integer. Let x=eiλ0π+e−iλ0π. Since algebraic integers are closed under addition, we get:
x=eiλ0π+e−iλ0π=2cos(λ0π)=1+21
is also an algebraic integer. From the above, we derive that
x2−1=21
and since algebraic integers are closed under multiplication and subtraction, we get that 21 is an algebraic integer. However, the primitive integer polynomial for 21 is (2X2−1), which is not monic, so 21 is not an algebraic integer. This is a contradiction so λ0 is irrational. □
For the remainder of the proof, we will not need the explicit formulas for p,q,A1,A2,λ0, and instead we will rely on the properties that are expressed by Lemma 6.1.
We can define Rz(θ) in terms of real powers of G1 and G2, as expressed by Lemma 6.2, with no need for approximation.
Lemma 6.2. For any θ, there exist real numbers a, b, c such that Rz(θ)=G1aG2bG1c.
Proof. We have that Rz(θ) is a unitary matrix and det(Rz(θ))=1, and from Lemma 6.1, we have A12=A22=I and A1A2=−A2A1. From those properties and Lemma D.2, there exist real numbers x,y,z such that
Rz(θ)=eixA1eiyA2eizA1.
We can write:
G1a=eiaλ0πA1,G2b=eibλ0πA2.
Thus, choosing
a=λ0πx,b=λ0πy,c=λ0πz,
we obtain
Rz(θ)=G1aG2bG1c.
Step 2: Positive-Integers Powers and Use of Approximation
If in Lemma 6.2, the real numbers a, b, c are positive integers, we are done: G1aG2bG1c is a circuit built from {G1,G2}, up to a global phase. Otherwise, the second step is to find positive integers m, n, p that we can use instead of the real numbers a, b, c in Lemma 6.2 and get us as close as we like to Rz(θ). The idea is that irrational rotations have positive-integer powers that are dense among all rotations about the same axis. The key lemma for this approximation is Lemma 6.3. Intuitively, Lemma 6.3 talks about approximation based on a 1-qubit unitary G that is a rotation by an irrational multiple of π.
Lemma 6.3. For any projective distance measure d, any irrational number λ, any G=eiλπA, where A is a 1-qubit Hermitian matrix that satisfies ei2πA=I, any ϵ>0, and any real number a, there exists an positive integer m such that d(Ga,Gm)<ϵ.
Proof. We use the Continuity property to find δ>0 such that for all real numbers t, if ∣aλ−t∣<δ, then d(eiaλπA,eitπA)<ϵ. We have from Kronecker’s theorem [2 Theorem 439] that {mλ(mod1)∣m∈N} is dense in [0,1), which we can scale by a factor of 2 and get that {mλ(mod2)∣m∈N} is dense in [0,2). Therefore, for our chosen δ, there exist a positive integer m and an integer k, such that
∣aλ−(mλ+2k)∣<δ
which gives
d(ei(aλ)πA,ei(mλ+2k)πA)<ϵ
Notice that
ei(aλ)πAei(mλ+2k)πA=Ga=ei(mλ)πA=Gm
so we conclude d(Ga,Gm)<ϵ.
Step 3: Proof of Lemma 4.3
The third step is to use Lemmas 6.1, 6.2, and 6.3 in the proof Lemma 4.3. Recall that Lemma 4.3 states that Rz(θ) can be approximated: for any projective distance measure d, any real number θ, and ϵ>0, there exists a circuit C built from {H,S,G1}, such that d(Rz(θ),C)<ϵ.
Proof of Lemma 4.3. For a given θ, we use Lemma 6.2 to find real numbers a,b,c such that
Rz(θ)=G1aG2bG1c(5)
From Lemma 6.1, we have that A12=A22=I and Gi=eiλ0πAi and λ0 is irrational. From A12=A22=I, we get
ei2πA1=Iei2πA2=I(6)
For a given ϵ>0, we use Equation (6) and Lemma 6.3 to find positive integers m,n,p such that:
and that G1mHS2G1nS2HG1p is built from {H,S,G1}.
Conclusion
A universal gate set can approximate any unitary. Previous work has used a variety of distance measures to support approximation. We have axiomatized the notion of projective distance measure and shown that the Hilbert-Schmidt distance satisfies our axioms. In contrast, the operator-norm distance, the Frobenius distance, and the trace distance need to undergo projectivization before they satisfy our axioms. We used our notion of projective distance measure to give a distance-independent proof of universality of Clifford+T. Our proof highlights that the only place where approximation is needed is in the implementation of Rz(θ) gates. We have formalized our proof of the universality theorem in Lean: here are links to the main page and the documentation, which includes the blueprint and the dependency graph.
Author contribution statement: all authors contributed significantly. Specifically, Jens Palsberg wrote a draft of the paper, Keli Huang wrote the first drafts of Section 5 and Appendix D and contributed numerous technical improvements to the writing of the entire paper, and Abdullah Almanei formalized the proof of the universality theorem in Lean. We used AI to help convince ourselves that the gate G1 is a good choice for our proof, write drafts of some of the cases of the proofs in the appendices, and help discover aspects of the formalization in Lean.
We are supported by the NSF QLCI program through grant number OMA-2016245 and the NSF NQVL program through grant number 2435382.
In the first step, we use Lemma A.1. In the second step, we use Lemma A.2. In the third step, we use Equations (8)–(9). In the fourth step, we use Equation (10).
Continuity. Let ϵ>0, let t0∈R, and let A be Hermitian. For Continuity, we have
D(eit0πA,eitπA)=1−(2nTr(ei(t−t0)πA))2
Notice that limt→t0∣Tr(ei(t−t0)πA)∣=2n. Hence,
t→t0limD(eit0πA,eitπA)=0,
as required. Thus D satisfies Continuity.
In summary, D is a traditional distance measure.
Second, we prove that T has the four properties of a traditional distance measure.
In the third step, we use that the trace norm satisfies the triangle inequality. In the fourth step, we use the invariance of the trace norm under multiplication by unitary matrices.
Continuity. Let ϵ>0, let t0∈R, and let A be Hermitian. We have
In the third step, we use that the operator norm satisfies the triangle inequality. In the fourth step, we use the submultiplicativity of the operator norm. In the fifth step, we use that every unitary matrix has operator norm 1. Continuity. Let ϵ>0, let t0∈R, and let A be Hermitian. We have
The third step, we use that Frobenius norm satisfies the triangle inequality. In the fourth step, we use the invariance of the Frobenius norm under multiplication by unitary matrices.
Continuity. Let ϵ>0, let t0∈R, and let A be Hermitian. We have
In summary, F is a traditional distance measure. □
Proof of Lemma 3.5
Recall that Lemma 3.5 states the following. Let d be a traditional distance measure. For every pair of unitary matrices U,V, there exists θ0∈R such that
d(U,eiθ0V)=θ∈Rinfd(U,eiθV).
Proof. Fix unitary matrices U,V, and define
f(θ)=d(U,eiθV).
We first show that f is continuous.
Let ϵ>0. By the Continuity property, applied to the real number 0 and the Hermitian matrix I⊗n, there exists δ′>0 such that, for every real number s,
∣s∣<δ′⟹d(I⊗n,eisπI⊗n)<ϵ.
where we use that eisπI⊗n=eisπI⊗n. Set δ=πδ′. If ∣θ−φ∣<δ, then
Lemma D.2 (Generalized Euler decomposition). Let A1,A2∈C2×2 be Hermitian matrices such that A12=A22=I and A1A2=−A2A1. For every U∈SU(2), there exist a,b,c∈R such that
U=eiaA1eibA2eicA1.
Proof. From A12=I, every eigenvalue λ of A1 satisfies λ2=1, and hence λ∈{1,−1}. Since A1A2=−A2A1 and A2 is invertible, we have A1=±I. Hence the eigenvalues of A1 are {1,−1}.
Choose a normalized eigenvector v+ of A1 associated with eigenvalue 1, and let
v−=A2v+.
Since A2 is Hermitian and satisfies A22=I, it is unitary, so v− is normalized. Moreover,
A1v−=A1A2v+=−A2A1v+=−A2v+=−v−.
Thus v− is an eigenvector of A1 associated with eigenvalue −1, and {v+,v−} is an orthonormal basis.
Let V be the matrix whose columns are v+ and v−. Since {v+,v−} is an orthonormal basis, V is unitary. Furthermore,
V†A1V=Z,V†A2V=X.
Since U∈SU(2), we have V†UV∈SU(2). Thus, by Lemma D.1, there exist α,β,γ∈R such that
V†UV=Rz(α)Rx(β)Rz(γ)=e−iαZ/2e−iβX/2e−iγZ/2.
Conjugating by V and using VeMV†=eVMV† yields
U=e−iαA1/2e−iβA2/2e−iγA1/2.
The result follows by taking a=−α/2, b=−β/2, and c=−γ/2. □
Decomposition of Multi-Qubit Gates
Lemma D.3 (Cosine-Sine decomposition). For one n-qubit gate U, there exist 2n−11-qubit gates Ry(θ0),Ry(θ1),⋯, and Ry(θ2n−1−1), four (n−1)-qubit gates P0, P1, Q0, and Q1, and three n-qubit gates P=∣0⟩⟨0∣⊗P0+∣1⟩⟨1∣⊗P1, R=∑i=02n−1−1Ry(θi)⊗∣i⟩⟨i∣, and Q=∣0⟩⟨0∣⊗Q0+∣1⟩⟨1∣⊗Q1, such that
Proof. This is the Cosine–Sine decomposition of Paige and Wei [5], applied to the 2n−1×2n−1 block partition of U. In this case, the decomposition has the form
U=(P000P1)(CS−SC)(Q000Q1)
where C and S are diagonal real matrices satisfying C2+S2=I⊗(n−1). Hence there exist angles θ0,…,θ2n−1−1 such that the middle matrix is the multiplexed rotation
R=i=0∑2n−1−1Ry(θi)⊗∣i⟩⟨i∣.
The block-diagonal matrices are precisely the gates P and Q defined above. This quantum-circuit formulation is also given by Shende et al. [ [9]. □
Lemma D.4 (Quantum multiplexor decomposition). Shende et al. [ [9]. For two (n−1)-qubit gates U0 and U1 and one n-qubit gate U=∣0⟩⟨0∣⊗U0+∣1⟩⟨1∣⊗U1, there exist 2n−1 1-qubit gates Rz(α0),Rz(α1),…, and Rz(α2n−1−1), two (n−1)-qubit gates P and Q, and one n-qubit gate R=∑i=02n−1−1Rz(αi)⊗∣i⟩⟨i∣, such that:
Lemma D.5 (Quantum multiplexor decomposition). Shende et al. [ [9]. For n≥1, let R be the (n+1)-qubit gate ∑i=02n−1Rz(αi)⊗∣i⟩⟨i∣. We can pick angles βi and γi (for 0≤i<2n−1) and define R0=∑i=02n−1−1Rz(βi)⊗∣i⟩⟨i∣ and R1=∑i=02n−1−1Rz(γi)⊗∣i⟩⟨i∣ such that:
References
References
[1]P Oscar Boykin, Tal Mor, Matthew Pulver, Vwani Roychowdhury, and Farrokh Vatan. 1999. On universal and fault-tolerant quantum computing. arXiv preprint quant-ph/9906054 (1999). doi:arXiv:quant-ph/9906054v1DOI
[2]G. H. Hardy and E. M. Wright. 1960. An Introduction to the Theory of Numbers (Fourth Edition). Oxford University Press.
[3]Justin Kalloor, Lucas Kovalsky, Mathias Weiden, John Kubiatowicz, Ed Younis, Costin Iancu, and Mohan Sarovar. 2025. Application Scale Quantum Circuit Compilation with Controlled Error. (2025). https://arxiv.org/pdf/2510.18000.
[4]Michael A. Nielsen and Isaac L. Chuang. 2000. Quantum Computation and Quantum Information. Cambridge University Press.
[5]C. C. Paige and Mingguo Wei. 1994. History and Generality of the CS Decomposition. Linear Algebra Appl. 208–209 (1994), 303–326.DOI
[6]Tirthak Patel, Ed Younis, Costin Iancu, Wibe de Jong, and Devesh Tiwari. 2022. QUEST: systematically approximating Quantum circuits for higher output fidelity. In Proceedings of the 27th ACM International Conference on Architectural Support for Programming Languages and Operating Systems (Lausanne, Switzerland) (ASPLOS ’22). Association for Computing Machinery, New York, NY, USA, 514–528. doi:10.1145/3503222.3507739DOI
[7]Neil J. Ross and Peter Selinger. 2016. Optimal ancilla-free Clifford+T approximation of z-rotations. Quantum Info. Comput. 16, 11–12 (Sept. 2016), 901–953.arxiv.org/abs/1403.2975
[8]Vivek V Shende, Stephen S Bullock, and Igor L Markov. 2005. Synthesis of quantum logic circuits. In Proceedings of the 2005 Asia and South Pacific Design Automation Conference. 272–275. doi:10.1145/1120725.1120847DOI
[9]Vivek V. Shende, Stephen S. Bullock, and Igor L. Markov. 2006. Synthesis of Quantum-Logic Circuits. IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems 25, 6 (2006), 1000–1010. doi:10.1109/TCAD.2005.855930DOI
[10]Bo-Ying Wang and Fuzhen Zhang. 1994. A Trace Inequality for Unitary Matrices. The American Mathematical Monthly 101, 5 (May 1994), 453–455.DOI