Introduction
Let P ( n ) \mathcal{P}(n) P ( n ) denote the Pauli group with n n n qubits. With C 1 ( n ) = P ( n ) C_1(n)=\mathcal{P}(n) C 1 ( n ) = P ( n ) , the Clifford hierarchy is recursively defined as
C k + 1 ( n ) = { U : U P ( n ) U † ⊆ C k ( n ) } , C ( n ) = ⋃ k = 1 ∞ C k ( n ) . C_{k+1}(n)=\{U:U\mathcal{P}(n)U^\dagger\subseteq C_k(n)\},\qquad C(n)=\bigcup_{k=1}^{\infty}C_k(n). C k + 1 ( n ) = { U : U P ( n ) U † ⊆ C k ( n )} , C ( n ) = k = 1 ⋃ ∞ C k ( n ) .
The hierarchy was introduced by Gottesman and Chuang [1 ] in the context of fault-tolerant quantum computation, where gates in the hierarchy can be implemented using teleportation.
However, the structure of the Clifford hierarchy remains obscure. In contrast to the Pauli group C 1 ( n ) C_1(n) C 1 ( n ) and the Clifford group C 2 ( n ) C_2(n) C 2 ( n ) , C k ( n ) C_k(n) C k ( n ) is not a group for k ≥ 3 k\ge3 k ≥ 3 . To better understand their structure, Zeng, Chen, and Chuang [2 ] introduced the notions of semi-Clifford (SC) and generalized semi-Clifford (GSC) operators: A gate U U U is semi-Clifford if conjugation by U U U maps a maximal abelian subgroup of P ( n ) \mathcal{P}(n) P ( n ) to a maximal abelian subgroup of P ( n ) \mathcal{P}(n) P ( n ) ; U U U is generalized semi-Clifford if it maps the linear span of some maximal abelian subgroup of P ( n ) \mathcal{P}(n) P ( n ) , under conjugation, to the linear span of another maximal abelian subgroup of P ( n ) \mathcal{P}(n) P ( n ) . Equivalently [2 , 3 ] , U U U is semi-Clifford if U = C 1 D C 2 U=C_1DC_2 U = C 1 D C 2 and generalized semi-Clifford if U = C 1 Π D C 2 U=C_1\Pi DC_2 U = C 1 Π D C 2 , where C 1 , C 2 ∈ C 2 ( n ) C_1,C_2\in C_2(n) C 1 , C 2 ∈ C 2 ( n ) , D D D is diagonal, and Π \Pi Π is a permutation in the computational basis. We denote the set of semi-Clifford gates by S C ( n ) \mathrm{SC}(n) SC ( n ) and the set of generalized semi-Clifford gates by G S C ( n ) \mathrm{GSC}(n) GSC ( n ) .
In this work, we investigate when C k ( n ) C_k(n) C k ( n ) is semi-Clifford and generalized semi-Clifford as k k k and n n n vary. More precisely, we determine the complete picture of when C k ( n ) C_k(n) C k ( n ) is semi-Clifford (Theorem 5) and an almost complete picture of when it is generalized semi-Clifford (Theorems 6, 12, and 15), with the exception of n = 4 n=4 n = 4 . In the latter
case, we show that every gate defined over Q ( i ) \mathbb{Q}(i) Q ( i ) up to a scalar is generalized semi-Clifford (Theorem 10), reduce the general case to a single level (Proposition F.7), and propose a strategy to prove that C k ( 4 ) ⊆ G S C ( 4 ) C_k(4)\subseteq\mathrm{GSC}(4) C k ( 4 ) ⊆ GSC ( 4 ) for every k k k (Conjecture 2). Going beyond the generalized semi-Clifford structure, we introduce n c n_c n c -generalized semi-Clifford gates, which up to Clifford gates on both sides permute the computational basis states of n c n_c n c control qubits and apply a gate V x V_x V x to the remaining qubits, and we conjecture that every gate in the Clifford hierarchy has this form for some n c ≥ 1 n_c\ge1 n c ≥ 1 with each V x V_x V x three levels lower (Conjecture 3). The results are visualized in Figure 1 , where this article’s contributions are circled. We summarize the proven results in the following theorem.
Figure 1. At position ( k , n ) (k,n) ( k , n ) , a + + + sign represents that C k ( n ) C_k(n) C k ( n ) belongs to the indicated class and a − - − sign represents that C k ( n ) C_k(n) C k ( n ) is not generalized semi-Clifford. For the cases of n = 4 n=4 n = 4 and k ≥ 5 k \ge5 k ≥ 5 , the + + + sign represents a partial answer where gates defined over Q ( i ) \mathbb{Q}(i) Q ( i ) up to scalar are generalized semi-Clifford.
Theorem 1. For positive integers k k k , n n n ,
C k ( n ) ⊆ S C ( n ) ⟺ C_k(n) \subseteq\mathrm{SC}(n) \Longleftrightarrow C k ( n ) ⊆ SC ( n ) ⟺ { k ≤ 2 , or n ≤ 2 , or k = 3 and n ≤ 6 , \begin{cases} k \le2, & \text{or}\\ n \le2, & \text{or}\\ k=3\text{ and }n\le6, \end{cases} ⎩ ⎨ ⎧ k ≤ 2 , n ≤ 2 , k = 3 and n ≤ 6 , or or
k ≤ 4 k \le4 k ≤ 4 or n ≤ 3 ⟹ C k ( n ) ⊆ G S C ( n ) n \le3 \Longrightarrow C_k(n) \subseteq\mathrm{GSC}(n) n ≤ 3 ⟹ C k ( n ) ⊆ GSC ( n ) .
If U ∈ C k ( 4 ) U \in C_k(4) U ∈ C k ( 4 ) and up to a scalar U U U can be defined over Q ( i ) \mathbb{Q}(i) Q ( i ) , then U ∈ G S C ( 4 ) U \in\mathrm{GSC}(4) U ∈ GSC ( 4 ) .
k ≥ 5 k \ge5 k ≥ 5 and n ≥ 5 ⟹ C k ( n ) ⊈ G S C ( n ) n \ge5 \Longrightarrow C_k(n) \not\subseteq\mathrm{GSC}(n) n ≥ 5 ⟹ C k ( n ) ⊆ GSC ( n ) .
This article continues a line of work investigating the relationship between the Clifford hierarchy and semi-Clifford and generalized semi-Clifford gates, initiated in [2 ] . There, the authors showed that C k ( n ) ⊈ S C ( n ) C_k(n) \not\subseteq\mathrm{SC}(n) C k ( n ) ⊆ SC ( n ) in general and conjectured that C k ( n ) ⊆ G S C ( n ) C_k(n) \subseteq\mathrm{GSC}(n) C k ( n ) ⊆ GSC ( n ) for all k k k and n n n . Subsequent works [3 , 4 , 5 , 6 , 7 ] further investigated the semi-Clifford and generalized semi-Clifford structure of gates in the Clifford hierarchy. The conjecture was recently disproved in [8 ] by a counterexample in C 5 ( 5 ) ∖ G S C ( 5 ) C_5(5) \setminus\mathrm{GSC}(5) C 5 ( 5 ) ∖ GSC ( 5 ) . The inclusion C 4 ( n ) ⊆ G S C ( n ) C_4(n) \subseteq\mathrm{GSC}(n) C 4 ( n ) ⊆ GSC ( n ) , which we prove in § 2 , was recently obtained independently in [9 ] by similar methods. We discuss the contributions of these related works in more detail in Sections III and § 2 .
Symplectic Structures in the Clifford Hierarchy
A recurring theme throughout the article is exploiting symplectic structures in the Clifford hierarchy, inspired by [2 , 3 ] . Consider the vector space F 2 2 n \mathbb{F}_2^{2n} F 2 2 n over the field F 2 \mathbb{F}_2 F 2 . For v = ( x , z ) v=(x,z) v = ( x , z ) and v ′ = ( x ′ , z ′ ) v'=(x',z') v ′ = ( x ′ , z ′ ) where x , z , x ′ , z ′ ∈ F 2 n x,z,x',z'\in\mathbb{F}_2^n x , z , x ′ , z ′ ∈ F 2 n , consider the symplectic form
ω ( v , v ′ ) = x ⋅ z ′ + x ′ ⋅ z ( m o d 2 ) . \omega(v,v')=x\cdot z'+x'\cdot z \pmod2. ω ( v , v ′ ) = x ⋅ z ′ + x ′ ⋅ z ( mod 2 ) .
This vector space is of particular interest since every Hermitian Pauli gate is ± P v \pm P_v ± P v for some v v v , where
P v : = i x ⋅ z X x Z z = i x ⋅ z ⨂ j = 1 n X x j Z z j . P_v:=i^{x\cdot z}X^xZ^z=i^{x\cdot z}\bigotimes_{j=1}^{n}X^{x_j}Z^{z_j}. P v := i x ⋅ z X x Z z = i x ⋅ z j = 1 ⨂ n X x j Z z j .
The quotient map
q : P ( n ) ⟶ P ( n ) / ⟨ i I ⟩ ≅ F 2 2 n , λ P v ⟼ v , q:\mathcal{P}(n)\longrightarrow\mathcal{P}(n)/\langle iI\rangle\cong\mathbb{F}_2^{2n},\qquad\lambda P_v\longmapsto v, q : P ( n ) ⟶ P ( n ) / ⟨ i I ⟩ ≅ F 2 2 n , λ P v ⟼ v ,
is a surjective group homomorphism. It is straightforward to check that for all v , w ∈ F 2 2 n v,w\in\mathbb{F}_2^{2n} v , w ∈ F 2 2 n , P v P w = P w P v P_vP_w=P_wP_v P v P w = P w P v if and only if ω ( v , w ) = 0 \omega(v,w)=0 ω ( v , w ) = 0 .
Recall that a subspace L ⊆ F 2 2 n L\subseteq\mathbb{F}_2^{2n} L ⊆ F 2 2 n is isotropic if ω ( v , w ) = 0 \omega(v,w)=0 ω ( v , w ) = 0 for all v , w ∈ L v,w\in L v , w ∈ L . It is Lagrangian if it is an isotropic subspace with maximal dimension, i.e., dim F 2 L = n \dim_{\mathbb{F}_2}L=n dim F 2 L = n . Let
A L : = span C { P v : v ∈ L } . \mathcal{A}_L:=\operatorname{span}_{\mathbb{C}}\{P_v:v\in L\}. A L := span C { P v : v ∈ L } .
We write [ U ] [U] [ U ] for the class of a unitary in P U ( 2 n ) = U ( 2 n ) / { λ I : ∣ λ ∣ = 1 } \mathrm{PU}(2^n)=U(2^n)/\{\lambda I:|\lambda|=1\} PU ( 2 n ) = U ( 2 n ) / { λ I : ∣ λ ∣ = 1 } , and A = ˙ B A\mathrel{\dot=}B A = ˙ B for A = λ B A=\lambda B A = λ B with λ ∈ C × \lambda\in\mathbb{C}^{\times} λ ∈ C × . Since global phases cancel in conjugation, the conditions U ∈ S C ( n ) U\in\mathrm{SC}(n) U ∈ SC ( n ) , U ∈ G S C ( n ) U\in\mathrm{GSC}(n) U ∈ GSC ( n ) , and U ∈ C k ( n ) U\in C_k(n) U ∈ C k ( n ) are determined by [ U ] [U] [ U ] .
The following lemmas characterize the generalized semi-Clifford property in terms of Lagrangian subspaces.
Lemma 2. A gate U U U is generalized semi-Clifford if and only if there exist Lagrangian subspaces L , M ⊆ F 2 2 n L,M\subseteq\mathbb{F}_2^{2n} L , M ⊆ F 2 2 n such that U A L U † = A M U\mathcal{A}_LU^\dagger=\mathcal{A}_M U A L U † = A M .
We call a pair ( L , M ) (L,M) ( L , M ) of Lagrangians a generalized semi-Clifford Lagrangian pair of U U U if U A L U † = A M U\mathcal{A}_LU^\dagger=\mathcal{A}_M U A L U † = A M . By Lemma 2, U U U is generalized semi-Clifford exactly when it has such a pair.
On the other hand, we can also characterize the generalized semi-Clifford property of U U U using corrections h v : = U P v U † h_v:=UP_vU^\dagger h v := U P v U † for all v ∈ F 2 2 n v\in\mathbb{F}_2^{2n} v ∈ F 2 2 n . Notice that if U ∈ C k ( n ) U\in C_k(n) U ∈ C k ( n ) , then h v ∈ C k − 1 ( n ) h_v\in C_{k-1}(n) h v ∈ C k − 1 ( n ) . The following simple fact is the motivation for our induction proof of Theorem 12.
Lemma 3. A gate U U U is generalized semi-Clifford if and only if there is a Lagrangian M ⊆ F 2 2 n M\subseteq\mathbb{F}_2^{2n} M ⊆ F 2 2 n such that
h v A M h v † = A M for every v ∈ F 2 2 n . h_v\mathcal{A}_Mh_v^\dagger=\mathcal{A}_M \qquad\text{for every }v\in\mathbb{F}_2^{2n}. h v A M h v † = A M for every v ∈ F 2 2 n . For such M M M , U † A M U = A L U^\dagger\mathcal{A}_MU=\mathcal{A}_L U † A M U = A L for a Lagrangian L L L .
Furthermore, it is useful to consider how the semi-Clifford and generalized semi-Clifford properties change after basic operations like taking tensor products.
Lemma 4. Let U ∈ C k ( n ) U\in C_k(n) U ∈ C k ( n ) and V ∈ C ℓ ( m ) V\in C_\ell(m) V ∈ C ℓ ( m ) . Write X ( n ) X(n) X ( n ) for either S C ( n ) \mathrm{SC}(n) SC ( n ) or G S C ( n ) \mathrm{GSC}(n) GSC ( n ) and T = { z ∈ C : ∣ z ∣ = 1 } \mathbb{T}=\{z\in\mathbb{C}:|z|=1\} T = { z ∈ C : ∣ z ∣ = 1 } .
For C 1 , C 2 ∈ C 2 ( n ) C_1,C_2\in C_2(n) C 1 , C 2 ∈ C 2 ( n ) and λ ∈ T \lambda\in\mathbb{T} λ ∈ T ,
U ∈ X ( n ) ⟺ λ C 1 U C 2 ∈ X ( n ) . U\in X(n)\Longleftrightarrow\lambda C_1UC_2\in X(n). U ∈ X ( n ) ⟺ λ C 1 U C 2 ∈ X ( n ) . If k ≥ 2 k\ge2 k ≥ 2 , then λ C 1 U C 2 ∈ C k ( n ) \lambda C_1UC_2\in C_k(n) λ C 1 U C 2 ∈ C k ( n ) .
U ⊗ V ∈ C max { k , ℓ } ( n + m ) U\otimes V\in C_{\max\{k,\ell\}}(n+m) U ⊗ V ∈ C m a x { k , ℓ } ( n + m ) . If U ∈ X ( n ) U\in X(n) U ∈ X ( n ) and V ∈ X ( m ) V\in X(m) V ∈ X ( m ) , then U ⊗ V ∈ X ( n + m ) U\otimes V\in X(n+m) U ⊗ V ∈ X ( n + m ) . If V V V is diagonal, then
U ⊗ V ∈ X ( n + m ) ⟺ U ∈ X ( n ) . U\otimes V\in X(n+m)\Longleftrightarrow U\in X(n). U ⊗ V ∈ X ( n + m ) ⟺ U ∈ X ( n ) . In particular, if C k ( n ) ⊈ X ( n ) C_k(n)\not\subseteq X(n) C k ( n ) ⊆ X ( n ) , then C r ( N ) ⊈ X ( N ) C_r(N)\not\subseteq X(N) C r ( N ) ⊆ X ( N ) for every r ≥ k r\ge k r ≥ k and N ≥ n N\ge n N ≥ n .
The proofs are given in Appendix § 7 .
Semi-Clifford Gates
Most cases of whether ( k , n ) (k,n) ( k , n ) satisfies C k ( n ) ⊆ S C ( n ) C_k(n)\subseteq\mathrm{SC}(n) C k ( n ) ⊆ SC ( n ) have been established in the literature. Zeng, Chen, and Chuang [2 ] proved that every gate is semi-Clifford at every level on at most two qubits and at the third level on three qubits, and constructed a gate in C 4 ( 3 ) ∖ S C ( 3 ) C_4(3)\setminus\mathrm{SC}(3) C 4 ( 3 ) ∖ SC ( 3 ) . Beigi and Shor [3 ] reported a seven-qubit third-level counterexample by Gottesman and Mochon and proved that every third-level gate is generalized semi-Clifford. Anderson and Connelly established C 3 ( 4 ) ⊆ S C ( 4 ) C_3(4)\subseteq\mathrm{SC}(4) C 3 ( 4 ) ⊆ SC ( 4 ) [6 ] . It thus remains to check C 3 ( 5 ) C_3(5) C 3 ( 5 ) and C 3 ( 6 ) C_3(6) C 3 ( 6 ) , which were left open in [6 ] . For permutation gates, these two cases follow from [7 Appendix A] . We settle these two cases below to complete the picture as shown in Figure 2 .
Figure 2. C k ( n ) ⊆ S C ( n ) C_k(n) \subseteq\mathrm{SC}(n) C k ( n ) ⊆ SC ( n ) if and only if ( k , n ) (k,n) ( k , n ) lies in a region marked +.
Our proof uses two structural results from the previous literature. By [3 Theorem 1.1] and [2 Proposition 2] , for U ∈ C 3 ( n ) U \in C_3(n) U ∈ C 3 ( n ) , there are C 1 , C 2 ∈ C 2 ( n ) C_1,C_2 \in C_2(n) C 1 , C 2 ∈ C 2 ( n ) , a diagonal gate D D D , and a computational-basis permutation Π \Pi Π such that
C 1 U C 2 = D Π . C_1 U C_2 = D\Pi. C 1 U C 2 = D Π.
Furthermore, for n ≤ 6 n \le6 n ≤ 6 , by [7 Lemma 3.8, Appendix A, and Corollary B.6] , there exist permutations C 3 , C 4 ∈ C 2 ( n ) C_3,C_4 \in C_2(n) C 3 , C 4 ∈ C 2 ( n ) with integers r , m r,m r , m satisfying n = r + m n=r+m n = r + m such that
C 3 Π C 4 ∣ x , y ⟩ = ∣ x , y + q ( x ) ⟩ , C_3 \Pi C_4 |x,y\rangle= |x,y+q(x)\rangle, C 3 Π C 4 ∣ x , y ⟩ = ∣ x , y + q ( x )⟩ ,
where
q ( x ) = ∑ i < j x i x j q i j , q i j ∈ F 2 m . q(x)=\sum_{i<j}x_i x_j q_{ij},\qquad q_{ij}\in\mathbb{F}_2^m. q ( x ) = i < j ∑ x i x j q ij , q ij ∈ F 2 m .
We now sketch the proof of the result whose full proof is presented in Appendix B.
Theorem 5. For n = 5 , 6 n=5,6 n = 5 , 6 , C 3 ( n ) ⊆ S C ( n ) C_3(n) \subseteq\mathrm{SC}(n) C 3 ( n ) ⊆ SC ( n ) .
Sketch of Proof. By the two reductions above, we reduce the problem to investigating U ∈ C 3 ( n ) U \in C_3(n) U ∈ C 3 ( n ) of the form
U ∣ x , y ⟩ = e i θ ( x , y ) ∣ x , y + q ( x ) ⟩ , U|x,y\rangle= e^{i\theta(x,y)}|x,y+q(x)\rangle, U ∣ x , y ⟩ = e i θ ( x , y ) ∣ x , y + q ( x )⟩ , where q q q is a quadratic function over F 2 \mathbb{F}_2 F 2 . The key observation is that C 3 ( n ) C_3(n) C 3 ( n ) imposes strong restrictions on the phase θ ( x , y ) \theta(x,y) θ ( x , y ) . We show that, after a further change of basis by a target Clifford, we may reduce it to a gate of the form
M = ∑ x ζ ( x ) ∣ x ⟩ ⟨ x ∣ ⊗ P v ( x ) . M=\sum_x \zeta(x)|x\rangle\langle x|\otimes P_{v(x)}. M = x ∑ ζ ( x ) ∣ x ⟩ ⟨ x ∣ ⊗ P v ( x ) . where P v ( x ) P_{v(x)} P v ( x ) is a Pauli operator acting on the y y y -qubits. Thus it remains to check that the P v ( x ) P_{v(x)} P v ( x ) 's mutually commute, which holds for n ≤ 6 n\le6 n ≤ 6 by a dimension argument. Since U = C 1 M C 2 U=C_1MC_2 U = C 1 M C 2 for C 1 , C 2 ∈ C 2 ( n ) C_1,C_2\in C_2(n) C 1 , C 2 ∈ C 2 ( n ) , this proves that U ∈ S C ( n ) U\in\mathrm{SC}(n) U ∈ SC ( n ) .
Generalized semi-Clifford gates
In [2 ] , the authors established that C k ( n ) ⊆ G S C ( n ) C_k(n)\subseteq\mathrm{GSC}(n) C k ( n ) ⊆ GSC ( n ) for all k k k and n ≤ 2 n\le2 n ≤ 2 . Subsequently, [3 ] established that C 3 ( n ) ⊆ G S C ( n ) C_3(n)\subseteq\mathrm{GSC}(n) C 3 ( n ) ⊆ GSC ( n ) for all n n n . In this section and the subsequent one, we determine the rest of the cases with the exception of n = 4 n=4 n = 4 and k ≥ 5 k\ge5 k ≥ 5 , for which we provide some arithmetic characterizations and a heuristic strategy. The results are illustrated in Figure 3 .
Figure 3. C k ( n ) ⊆ G S C ( n ) C_k(n)\subseteq\mathrm{GSC}(n) C k ( n ) ⊆ GSC ( n ) if ( k , n ) (k,n) ( k , n ) lies in a region marked + and C k ( n ) ⊈ G S C ( n ) C_k(n)\not\subseteq\mathrm{GSC}(n) C k ( n ) ⊆ GSC ( n ) if ( k , n ) (k,n) ( k , n ) lies in a region marked −. For n = 4 n=4 n = 4 and k ≥ 5 k\ge5 k ≥ 5 , gates defined over Q ( i ) \mathbb{Q}(i) Q ( i ) up to scalar are generalized semi-Clifford.
We begin with fourth-level gates, which can be handled cleanly by a group-theoretic argument with full details in Appendix C.
Theorem 6. For any n n n , C 4 ( n ) ⊆ G S C ( n ) C_4(n)\subseteq\mathrm{GSC}(n) C 4 ( n ) ⊆ GSC ( n ) .
Sketch of Proof. For U ∈ C 4 ( n ) U\in C_4(n) U ∈ C 4 ( n ) with arbitrary n n n , our argument relies on investigating the group
Γ ( U ) = ⟨ P ( n ) , U P ( n ) U † ⟩ ⊆ P U ( 2 n ) . \Gamma(U)=\langle P(n),UP(n)U^\dagger\rangle\subseteq\mathrm{PU}(2^n). Γ ( U ) = ⟨ P ( n ) , U P ( n ) U † ⟩ ⊆ PU ( 2 n ) . The proof rests on the observation that if Γ ( U ) \Gamma(U) Γ ( U ) is a finite 2-group, then U U U is generalized semi-Clifford. It thus suffices to show that Γ ( U ) \Gamma(U) Γ ( U ) is a finite 2-group for U ∈ C 4 ( n ) U\in C_4(n) U ∈ C 4 ( n ) . Since the corrections lie in C 3 ( n ) C_3(n) C 3 ( n ) , the conjugates h v P ( n ) h v † h_vP(n)h_v^\dagger h v P ( n ) h v † consist of Clifford gates and generate a finite group G G G , normalized by the 2-group U P ( n ) U † UP(n)U^\dagger U P ( n ) U † . One can show that U P ( n ) U † UP(n)U^\dagger U P ( n ) U † fixes a Sylow 2-subgroup of G G G , which contains P ( n ) P(n) P ( n ) and hence every h v P ( n ) h v † h_vP(n)h_v^\dagger h v P ( n ) h v † , so it equals G G G and Γ ( U ) \Gamma(U) Γ ( U ) is a 2-group.
We then consider the cases n = 3 n=3 n = 3 and n = 4 n=4 n = 4 . We begin with the observation that although there are ways to reduce the generalized semi-Clifford problem directly to a finite problem, they are impractical to implement.
Example 7. To prove C k ( n ) ⊆ G S C ( n ) C_k(n)\subseteq\mathrm{GSC}(n) C k ( n ) ⊆ GSC ( n ) , we can first reduce to a finite list of gates. Fix a basis v 1 , … , v 2 n v_1,\ldots,v_{2n} v 1 , … , v 2 n of F 2 2 n \mathbb{F}_2^{2n} F 2 2 n . If two gates U , U ′ U,U' U , U ′ have the same corrections there, that is, U P v i U † = U ′ P v i U ′ † UP_{v_i}U^\dagger=U'P_{v_i}U'^\dagger U P v i U † = U ′ P v i U ′ † for every i i i , then U ≡ U ′ P U\equiv U'P U ≡ U ′ P
for a Pauli P P P . Indeed, U ′ † U U^{\prime\dagger}U U ′ † U commutes with every P v i P_{v_i} P v i up to a scalar, hence with every Pauli, so it is a Pauli up to a scalar. Now since all corrections lie in C k − 1 ( n ) C_{k-1}(n) C k − 1 ( n ) , counting gates up to scalars gives
∣ C k ( n ) ∣ ≤ 4 n ∣ C k − 1 ( n ) ∣ 2 n . |C_k(n)| \le4^n |C_{k-1}(n)|^{2^n}. ∣ C k ( n ) ∣ ≤ 4 n ∣ C k − 1 ( n ) ∣ 2 n .
We can then test each gate U U U on the list. By Lemma 3 and h u + v ≐ h u h v h_{u+v} \doteq h_u h_v h u + v ≐ h u h v , U ∈ G S C ( n ) U \in\mathrm{GSC}(n) U ∈ GSC ( n ) exactly when h v 1 , … , h v 2 n h_{v_1},\ldots,h_{v_{2n}} h v 1 , … , h v 2 n normalize one common algebra A M A_M A M , among ∏ j = 1 n ( 2 j + 1 ) \prod_{j=1}^{n}(2^j+1) ∏ j = 1 n ( 2 j + 1 ) choices of the Lagrangian M M M . Starting from the 4 n ∣ Sp ( 2 n , 2 ) ∣ 4^n|\operatorname{Sp}(2n,2)| 4 n ∣ Sp ( 2 n , 2 ) ∣ Clifford gates, where Sp ( 2 n , 2 ) \operatorname{Sp}(2n,2) Sp ( 2 n , 2 ) is the symplectic group of ( F 2 2 n , ω ) (\mathbb{F}_2^{2n},\omega) ( F 2 2 n , ω ) , the bound gives, up to scalars:
Table 1.
Here a test asks whether one correction normalizes one algebra A M A_M A M , and it has to be repeated for every level k k k .
Our strategy is to leverage the arithmetic information of a gate U U U to reduce the problem to a small enough number of cases that we can check exhaustively using computer programs, which we produced in Python and C and made available at
https://github.com/numberingeometry/ clifford-hierarchy-plane-certificate.
The general theoretical tools in this section are developed in Appendix D with results on three qubits in Appendix E and four qubits in Appendix F.
Let U ∈ C k ( n ) U \in C_k(n) U ∈ C k ( n ) . In general, the coefficients of U U U lie in the tower of dyadic cyclotomic fields
Q ( i ) ⊊ Q ( e i π / 4 ) ⊊ Q ( e i π / 8 ) ⊊ ⋯ \mathbb{Q}(i) \subsetneq\mathbb{Q}(e^{i\pi/4}) \subsetneq\mathbb{Q}(e^{i\pi/8}) \subsetneq\cdots Q ( i ) ⊊ Q ( e iπ /4 ) ⊊ Q ( e iπ /8 ) ⊊ ⋯
In fact, there exists λ ∈ C × \lambda\in\mathbb{C}^{\times} λ ∈ C × such that all the coefficients of W = λ U W=\lambda U W = λ U can be defined over a single field K r = Q ( ζ 2 r ) K_r=\mathbb{Q}(\zeta_{2^r}) K r = Q ( ζ 2 r ) , where ζ 2 r = e 2 π i / 2 r \zeta_{2^r}=e^{2\pi i/2^r} ζ 2 r = e 2 π i / 2 r and r ≥ 2 r\ge2 r ≥ 2 with r ≤ max { 2 , k } r\le\max\{2,k\} r ≤ max { 2 , k } (Proposition A.3). We call the least such r r r the conductor of U U U (the conductor of K r K_r K r in the number-theoretic sense is 2 r 2^r 2 r , and here we only record its exponent). More precisely,
cond ( U ) : = min { r ≥ 2 : λ U ∈ Mat 2 n ( K r ) for some λ ∈ C × } . \operatorname{cond}(U):=\min\left\{r\ge2:\ \lambda U\in\operatorname{Mat}_{2^n}(K_r)\ \text{for some }\lambda\in\mathbb{C}^{\times}\right\}. cond ( U ) := min { r ≥ 2 : λ U ∈ Mat 2 n ( K r ) for some λ ∈ C × } .
We call U U U Gaussian if cond ( U ) = 2 \operatorname{cond}(U)=2 cond ( U ) = 2 , that is, some nonzero scalar multiple of U U U has entries in Q ( i ) \mathbb{Q}(i) Q ( i ) .
An interesting observation is that for a fixed n n n , the conductor sometimes lets us check a single level to infer the information for all k k k ’s at once.
Example 8. For four qubits, we have
C k ( 4 ) ⊆ G S C ( 4 ) for every k ⟺ C 4290 ( 4 ) ⊆ G S C ( 4 ) , C_k(4)\subseteq\mathrm{GSC}(4)\ \text{for every }k\ \Longleftrightarrow\ C_{4290}(4)\subseteq\mathrm{GSC}(4), C k ( 4 ) ⊆ GSC ( 4 ) for every k ⟺ C 4290 ( 4 ) ⊆ GSC ( 4 ) ,
proved as Proposition F.7 in the appendix: a counterexample, if one exists, can be taken of conductor at most 285 and level at most 4290. We remark that although the problem is now only on a single level, it is still far beyond enumeration. The diagonal gates of conductor at most 285, that is, those with entries in μ 2 285 = { z ∈ C : z 2 285 = 1 } \mu_{2^{285}}=\{z\in\mathbb{C}:z^{2^{285}}=1\} μ 2 285 = { z ∈ C : z 2 285 = 1 } , alone give 2 285 ⋅ 15 ≈ 10 1287 2^{285\cdot15}\approx10^{1287} 2 285 ⋅ 15 ≈ 1 0 1287 gates of C 4290 ( 4 ) C_{4290}(4) C 4290 ( 4 ) up to scalars [10 Lemma 3 and Theorem 1] . Even getting rid of the Clifford factors does not reduce it much. Since λ C 1 U C 2 \lambda C_1UC_2 λ C 1 U C 2 with C 1 , C 2 C_1,C_2 C 1 , C 2 Clifford is generalized semi-Clifford exactly when U U U is (Lemma 4(1)), testing U U U covers all of them. But there are only about ( 1.2 × 10 13 ) 2 ≈ 1.5 × 10 26 (1.2\times10^{13})^2\approx1.5\times10^{26} ( 1.2 × 1 0 13 ) 2 ≈ 1.5 × 1 0 26 pairs ( C 1 , C 2 ) (C_1,C_2) ( C 1 , C 2 ) up to scalars, so the diagonal gates alone still leave more than 10 1287 / ( 1.5 × 10 26 ) > 10 1260 10^{1287}/(1.5\times10^{26})>10^{1260} 1 0 1287 / ( 1.5 × 1 0 26 ) > 1 0 1260 gates to test.
The conductor describes the arithmetic complexity of a gate and plays two roles in our proof. First, when every correction of a gate U U U is Gaussian, i.e., has the minimal conductor, we can reduce the problem to a case check on a single exceptional gate for n = 3 n=3 n = 3 and 1,020 gates for n = 4 n=4 n = 4 . Moreover, it also acts as a second induction parameter. Once we fix the qubit number n n n , the conductor r r r , along with the hierarchy level k k k , can be used to do a nested double induction as in Theorem 12 with r = 2 r=2 r = 2 or k = 4 k=4 k = 4 as the base case.
Remark 9. We remark here that the notion of arithmetic invariants of gates is well-studied in the literature. Exact synthesis identifies the Clifford+T T T circuits with the unitaries over Z [ 1 / 2 , i ] \mathbb{Z}[1/\sqrt{2},i] Z [ 1/ 2 , i ] , graded by the least denominator exponent , the least k k k of 2 k U \sqrt{2}^kU 2 k U over Z [ ξ 8 ] \mathbb{Z}[\xi_8] Z [ ξ 8 ] [11 , 12 ] , with analogues over Z [ e i π / n , 1 / 2 ] \mathbb{Z}[e^{i\pi/n},1/2] Z [ e iπ / n , 1/2 ] for some even n n n and over subrings of Z [ 1 / 2 , i ] \mathbb{Z}[1/\sqrt{2},i] Z [ 1/ 2 , i ] [13 , 14 ] . In the Clifford hierarchy, a diagonal gate diag x e 2 π i f ( x ) \operatorname{diag}_x e^{2\pi i f(x)} diag x e 2 π i f ( x ) with f ( x ) = ∑ A θ A ∏ i ∈ A x i f(x)=\sum_A\theta_A\prod_{i\in A}x_i f ( x ) = ∑ A θ A ∏ i ∈ A x i lies in C k C_k C k exactly when 2 k + 1 − ∣ A ∣ θ A ∈ Z 2^{k+1-|A|}\theta_A\in\mathbb{Z} 2 k + 1 − ∣ A ∣ θ A ∈ Z for every A ≠ ∅ A\ne\varnothing A = ∅ [10 ] , and a semi-Clifford gate lies in the hierarchy exactly when it is C 1 ∏ j e i π a j Z j / 2 m j C 2 C_1\prod_j e^{i\pi a_j Z_j/2^{m_j}}C_2 C 1 ∏ j e iπ a j Z j / 2 m j C 2 with Clifford C 1 , C 2 C_1,C_2 C 1 , C 2 and Z Z Z -type Paulis Z j Z_j Z j [5 ] . On the qudit side, [15 ] shows that third-level gates on at most two qudits of prime dimension are semi-Clifford, by comparing algebraic sets reduced modulo the dimension. We notice here that the notion of the conductor is coarser than these invariants: it is only the least dyadic cyclotomic field of definition, and we track it for a family of gates rather than as a cost of a single gate.
Our starting point is to use all the Pauli corrections h v = U P v U † h_v=UP_vU^\dagger h v = U P v U † to characterize the structure of a gate U U U itself. Recall from Lemma 3 that a gate U U U is generalized semi-Clifford if and only if all h v h_v h v ’s have a common Lagrangian M M M such that
h v A M h v † = A M for every v ∈ F 2 2 n . h_v A_M h_v^\dagger=A_M\qquad\text{for every }v\in\mathbb{F}_2^{2n}. h v A M h v † = A M for every v ∈ F 2 2 n .
which is strictly stronger than requiring every h v h_v h v to be generalized semi-Clifford, and hence very difficult to check in practice. However, for n ≤ 4 n\le4 n ≤ 4 , it suffices to show that all h v h_v h v are Gaussian.
Theorem 10. Let n ∈ { 3 , 4 } n \in\{3,4\} n ∈ { 3 , 4 } and U ∈ C ( n ) U \in C(n) U ∈ C ( n ) , and suppose that every correction h v = U P v U † h_v = U P_v U^{\dagger} h v = U P v U † is Gaussian. Then U U U and every h v h_v h v are generalized semi-Clifford. Moreover,
if n = 3 n=3 n = 3 , then h v ∈ C 3 ( 3 ) h_v \in C_3(3) h v ∈ C 3 ( 3 ) for every v v v and U ∈ C 4 ( 3 ) U \in C_4(3) U ∈ C 4 ( 3 ) ;
if n = 4 n=4 n = 4 , then h v ∈ C 5 ( 4 ) h_v \in C_5(4) h v ∈ C 5 ( 4 ) for every v v v and U ∈ C 6 ( 4 ) U \in C_6(4) U ∈ C 6 ( 4 ) .
Sketch of Proof. By induction on the level (Lemma E.1 ), we may assume that every correction h v h_v h v is also generalized semi-Clifford. For v ≠ 0 v \ne0 v = 0 , h v h_v h v is then a traceless Hermitian involution, and up to Clifford conjugation it has the normal form
∣ x ⟩ ↦ ζ 8 λ f ( x ) ∣ π x ⟩ , λ ∈ { 0 , 1 } , f : F 2 n → Z / 4 , |x\rangle\mapsto\zeta_8^{\lambda f(x)}|\pi x\rangle,\qquad\lambda\in\{0,1\},\quad f:\mathbb{F}_2^n \to\mathbb{Z}/4, ∣ x ⟩ ↦ ζ 8 λ f ( x ) ∣ π x ⟩ , λ ∈ { 0 , 1 } , f : F 2 n → Z /4 ,
where π \pi π is an involution preserving a complete affine flag (Proposition D.11 ). Since λ \lambda λ , f f f and π \pi π range over finite sets, this leaves finitely many gates to examine.
For n = 3 n=3 n = 3 , a finite check shows that each such gate lies in C 3 ( 3 ) C_3(3) C 3 ( 3 ) , except the Clifford conjugates of one fourth-level gate H ⋆ H_\star H ⋆ (Proposition E.2 ), and we then show that the latter case is impossible. Hence every h v h_v h v lies in C 3 ( 3 ) C_3(3) C 3 ( 3 ) , and U ∈ C 4 ( 3 ) ⊆ GSC ( 3 ) U \in C_4(3) \subseteq\operatorname{GSC}(3) U ∈ C 4 ( 3 ) ⊆ GSC ( 3 ) by Theorem 6 (Proposition E.4 ).
For n = 4 n=4 n = 4 , the normal forms give 1,020 gates up to Clifford conjugation. A finite search over them shows that either the h v h_v h v already have a common generalized semi-Clifford Lagrangian pair, or U U U maps some Pauli to a Pauli (Lemma F.1). In the latter case U U U is Clifford-equivalent to diag ( A , B ) \operatorname{diag}(A,B) diag ( A , B ) with three-qubit blocks, and a case analysis on A A A and B B B produces a common generalized semi-Clifford Lagrangian pair. The details are in Appendices E.1 and F.1.
This result settles the case when all h v h_v h v are Gaussian. To handle the case for a gate U U U with some non-Gaussian correction h v h_v h v , we need to construct a gate U ′ U' U ′ with a smaller conductor while still capturing the structure of U U U .
We construct U ′ U' U ′ from the Galois action on the entries of U U U . Let M = cond ( U ) M=\operatorname{cond}(U) M = cond ( U ) , choose W ≐ U W \doteq U W ≐ U with entries in K M K_M K M , and let δ \delta δ generate Gal ( K M / K M − 1 ) \operatorname{Gal}(K_M/K_{M-1}) Gal ( K M / K M − 1 ) with δ ( ζ 2 M ) = − ζ 2 M \delta(\zeta_{2^M})=-\zeta_{2^M} δ ( ζ 2 M ) = − ζ 2 M . Then cond ( U ) < M \operatorname{cond}(U)<M cond ( U ) < M exactly when δ ( W ) ≐ W \delta(W)\doteq W δ ( W ) ≐ W , that is, when the Galois cocycle σ ↦ W − 1 σ ( W ) \sigma\mapsto W^{-1}\sigma(W) σ ↦ W − 1 σ ( W ) of U U U is trivial up to scalar at δ \delta δ . So W − 1 δ ( W ) W^{-1}\delta(W) W − 1 δ ( W ) is the obstruction to a smaller conductor, and one can use it to detect suitable candidates for U ′ U' U ′ .
For our gates the cocycle has a particular shape. Let n ≤ 4 n \le4 n ≤ 4 , let every h v h_v h v be generalized semi-Clifford, let m = max v cond ( h v ) > 2 m=\max_v\operatorname{cond}(h_v)>2 m = max v cond ( h v ) > 2 , and let σ \sigma σ generate Gal ( K M / K m − 1 ) \operatorname{Gal}(K_M/K_{m-1}) Gal ( K M / K m − 1 ) , so that δ = σ \delta=\sigma δ = σ if m = M m=M m = M and δ = σ 2 \delta=\sigma^2 δ = σ 2 if m = M − 1 m=M-1 m = M − 1 . Then, after multiplying U U U on the right by a Clifford gate,
W − 1 σ ( W ) ≐ diag x i p ⋅ x ( − 1 ) q ( x ) W^{-1}\sigma(W)\doteq\operatorname{diag}_x i^{p\cdot x}(-1)^{q(x)} W − 1 σ ( W ) ≐ diag x i p ⋅ x ( − 1 ) q ( x )
for some p ∈ F 2 n p\in\mathbb{F}_2^n p ∈ F 2 n and q : F 2 n → F 2 q:\mathbb{F}_2^n\to\mathbb{F}_2 q : F 2 n → F 2 , and hence W − 1 δ ( W ) ≐ Z p W^{-1}\delta(W)\doteq Z^p W − 1 δ ( W ) ≐ Z p if m = M − 1 m=M-1 m = M − 1 (Steps 1–3 of the proof of Lemma E.5), which apply for n ≤ 4 n \le4 n ≤ 4 .
Theorem 11. For any U ∈ C ( 3 ) U \in C(3) U ∈ C ( 3 ) such that every h v h_v h v is generalized semi-Clifford, if h v h_v h v is non-Gaussian for some v ∈ F 2 6 v \in\mathbb{F}_2^6 v ∈ F 2 6 , then there exists another gate U ′ ∈ C ( 3 ) U' \in C(3) U ′ ∈ C ( 3 ) such that U ′ ∈ GSC ( 3 ) ⟺ U ∈ GSC ( 3 ) U' \in\operatorname{GSC}(3) \Longleftrightarrow U \in\operatorname{GSC}(3) U ′ ∈ GSC ( 3 ) ⟺ U ∈ GSC ( 3 ) , cond ( U ′ ) < cond ( U ) \operatorname{cond}(U')<\operatorname{cond}(U) cond ( U ′ ) < cond ( U ) .
Sketch of Proof. Let U ∈ C ( 3 ) ∖ GSC ( 3 ) U \in C(3)\setminus\operatorname{GSC}(3) U ∈ C ( 3 ) ∖ GSC ( 3 ) with generalized semi-Clifford corrections, but not all Gaussian. On three qubits two finite arguments sharpen the shape of the cocycle. First, deg q ≤ 2 \deg q \le2 deg q ≤ 2 (Lemma E.5 ), so the cocycle is determined by p p p and the quadratic part of q q q . Second, writing T T T for the symmetric binary matrix formed by p p p and the quadratic part of q q q , the gates U Z c U † U Z^c U^{\dagger} U Z c U † with c ∈ im T c \in\operatorname{im} T c ∈ im T are Clifford involutions, and a case analysis of the groups they generate, at most three commuting involutions among 3,843 explicit Clifford gates, shows that m = M − 1 m=M-1 m = M − 1 , p ≠ 0 p\ne0 p = 0 and U Z p U † U Z^p U^{\dagger} U Z p U † is a Pauli (Lemma E.6 ). Thus, after multiplying U U U by Clifford gates on both sides,
δ ( W ) ≐ W Z p , U Z p U † = P ∈ P ( 3 ) \delta(W)\doteq WZ^p,\qquad UZ^pU^{\dagger}=P\in\mathcal{P}(3) δ ( W ) ≐ W Z p , U Z p U † = P ∈ P ( 3 )
for some 0 ≠ p ∈ F 2 3 0\ne p\in\mathbb{F}_2^3 0 = p ∈ F 2 3 . We define
U ′ = U R , R = I + Z p 2 + ξ I − Z p 2 , ξ = ζ 2 M − 1 . U'=UR,\qquad R=\frac{I+Z^p}{2}+\xi\frac{I-Z^p}{2},\qquad\xi=\zeta_{2^M}^{-1}. U ′ = U R , R = 2 I + Z p + ξ 2 I − Z p , ξ = ζ 2 M − 1 .
The rotation R R R is chosen to cancel the Galois cocycle. Since δ ( ξ ) = − ξ \delta(\xi)=-\xi δ ( ξ ) = − ξ , we have δ ( R ) = I + Z p 2 − ξ I − Z p 2 = Z p R \delta(R)=\frac{I+Z^p}{2}-\xi\frac{I-Z^p}{2}=Z^pR δ ( R ) = 2 I + Z p − ξ 2 I − Z p = Z p R , so W ′ = W R W'=WR W ′ = W R has entries in K M K_M K M and satisfies
W ′ − 1 δ ( W ′ ) = R − 1 ( W − 1 δ ( W ) ) δ ( R ) ≐ R − 1 Z p Z p R = I . W'^{-1}\delta(W')=R^{-1}(W^{-1}\delta(W))\delta(R)\doteq R^{-1}Z^pZ^pR=I. W ′ − 1 δ ( W ′ ) = R − 1 ( W − 1 δ ( W )) δ ( R ) ≐ R − 1 Z p Z p R = I .
Hence δ ( W ′ ) = W ′ \delta(W')=W' δ ( W ′ ) = W ′ , and cond ( U ′ ) < M \operatorname{cond}(U')<M cond ( U ′ ) < M . Since P P P is a Pauli, U ′ U' U ′ stays in the hierarchy and is generalized semi-Clifford exactly when U U U is (Lemma E.7).
This conductor descent argument paves the way to prove that all gates in the Clifford hierarchy for three qubits are generalized semi-Clifford.
Theorem 12. For every k k k , C k ( 3 ) ⊆ GSC ( 3 ) C_k(3)\subseteq\operatorname{GSC}(3) C k ( 3 ) ⊆ GSC ( 3 ) .
Proof. Let U ∈ C k ( 3 ) U\in C_k(3) U ∈ C k ( 3 ) . We induct on ( r , k ) (r,k) ( r , k ) in lexicographic order, where r = cond ( U ) r=\operatorname{cond}(U) r = cond ( U ) (see Figure 4 ).
Figure 4. The induction process of Theorem 12, where r = cond ( U ) r=\operatorname{cond}(U) r = cond ( U ) is the conductor and k k k the level of U ∈ C k ( 3 ) U\in C_k(3) U ∈ C k ( 3 ) .
For k ≤ 4 k\le4 k ≤ 4 , U ∈ GSC ( 3 ) U\in\operatorname{GSC}(3) U ∈ GSC ( 3 ) by Theorem 6 . If r = 2 r=2 r = 2 , then U U U is Gaussian, so every h v h_v h v is Gaussian, and U ∈ GSC ( 3 ) U\in\operatorname{GSC}(3) U ∈ GSC ( 3 ) by Theorem 10 .
Now assume r > 2 r>2 r > 2 , k > 4 k>4 k > 4 , and the statement is true for all ( r ′ , k ′ ) (r',k') ( r ′ , k ′ ) with r ′ < r r'<r r ′ < r , or with r ′ = r r'=r r ′ = r and k ′ < k k'<k k ′ < k . Then h v ∈ C k − 1 ( 3 ) h_v\in C_{k-1}(3) h v ∈ C k − 1 ( 3 ) with cond ( h v ) ≤ r \operatorname{cond}(h_v)\le r cond ( h v ) ≤ r for all v ∈ F 2 6 v\in\mathbb{F}_2^6 v ∈ F 2 6 . For any v v v , if cond ( h v ) < r \operatorname{cond}(h_v)<r cond ( h v ) < r , then h v h_v h v is generalized semi-Clifford by the induction on r r r . If cond ( h v ) = r \operatorname{cond}(h_v)=r cond ( h v ) = r , then h v h_v h v is generalized semi-Clifford by the inner induction on the hierarchy level. Thus every h v h_v h v is generalized semi-Clifford. If all h v h_v h v are Gaussian, then again U U U is generalized semi-Clifford by Theorem 10 .
Assume otherwise, so max v cond ( h v ) > 2 \max_v\operatorname{cond}(h_v)>2 max v cond ( h v ) > 2 . Suppose U ∉ GSC ( 3 ) U\notin\operatorname{GSC}(3) U ∈ / GSC ( 3 ) . Then by Theorem 11 there exists
U ′ ∈ C ( 3 ) ∖ GSC ( 3 ) U'\in C(3)\setminus\operatorname{GSC}(3) U ′ ∈ C ( 3 ) ∖ GSC ( 3 )
with cond ( U ′ ) < r \operatorname{cond}(U')<r cond ( U ′ ) < r . But by the outer induction, U ′ ∈ GSC ( 3 ) U'\in\operatorname{GSC}(3) U ′ ∈ GSC ( 3 ) , hence a contradiction. ∎
:::
For the case n = 4 n=4 n = 4 , we expect a similar conductor descent argument to follow through. The difficulty lies in the finite case analysis to find a Pauli Q Q Q such that P = U Q U † P=UQU^\dagger P = U Q U † is a Pauli. The Galois cocycle still has the shape above, but the argument bounding deg q \deg q deg q does not extend. A priori the cocycle has 2 4 ⋅ 2 11 = 32,768 2^4\cdot2^{11}=32{,}768 2 4 ⋅ 2 11 = 32 , 768 possible shapes, given by p p p and by q q q modulo affine functions. Moreover, the gates U Z c U † UZ^cU^\dagger U Z c U † need not be Clifford, which makes the case analysis even more complicated.
If such a Q Q Q exists, then we can take
U ′ = U ( I + Q 2 + ξ I − Q 2 ) = ( I + P 2 + ξ I − P 2 ) U , ξ = ζ 2 − 1 ζ 2 M , U'=U\left(\frac{I+Q}{2}+\xi\frac{I-Q}{2}\right)=\left(\frac{I+P}{2}+\xi\frac{I-P}{2}\right)U,\qquad\xi=\zeta_2^{-1}\zeta_{2^M}, U ′ = U ( 2 I + Q + ξ 2 I − Q ) = ( 2 I + P + ξ 2 I − P ) U , ξ = ζ 2 − 1 ζ 2 M ,
which would satisfy our desired properties.
Conjecture 1. Let U ∈ C ( 4 ) U\in C(4) U ∈ C ( 4 ) . Assume every h v h_v h v is generalized semi-Clifford and some h v h_v h v is not Gaussian. Then there exists another gate U ′ ∈ C ( 4 ) U'\in C(4) U ′ ∈ C ( 4 ) such that
U ′ ∈ GSC ( 4 ) ⟺ U ∈ GSC ( 4 ) , cond ( U ′ ) < cond ( U ) . U'\in\operatorname{GSC}(4)\Longleftrightarrow U\in\operatorname{GSC}(4),\qquad\operatorname{cond}(U')<\operatorname{cond}(U). U ′ ∈ GSC ( 4 ) ⟺ U ∈ GSC ( 4 ) , cond ( U ′ ) < cond ( U ) .
Now, by the same induction proof of Theorem 12, Conjecture 1 would imply C k ( 4 ) ⊆ GSC ( 4 ) C_k(4)\subseteq\operatorname{GSC}(4) C k ( 4 ) ⊆ GSC ( 4 ) for every k k k , leading to the following characterization.
Conjecture 2. For positive integers k , n k,n k , n ,
C k ( n ) ⊆ GSC ( n ) ⟺ k ≤ 4 or n ≤ 4. C_k(n)\subseteq\operatorname{GSC}(n)\Longleftrightarrow k\leq4\ \text{or}\ n\leq4. C k ( n ) ⊆ GSC ( n ) ⟺ k ≤ 4 or n ≤ 4.
Beyond generalized semi-Clifford
We now present some structural results that are natural extensions of the generalized semi-Clifford structure, with details discussed in Appendix G.
A gate U ∈ C k ( n ) U\in C_k(n) U ∈ C k ( n ) is generalized semi-Clifford exactly when it can be written as
U = C 1 ( ∑ x ∈ F 2 n λ x ∣ π ( x ) ⟩ ⟨ x ∣ ) C 2 , U=C_1\left(\sum_{x\in\mathbb{F}_2^n}\lambda_x|\pi(x)\rangle\langle x|\right)C_2, U = C 1 x ∈ F 2 n ∑ λ x ∣ π ( x )⟩ ⟨ x ∣ C 2 ,
for some C 1 , C 2 ∈ C 2 ( n ) C_1,C_2\in C_2(n) C 1 , C 2 ∈ C 2 ( n ) , a permutation π : F 2 n → F 2 n \pi:\mathbb{F}_2^n\to\mathbb{F}_2^n π : F 2 n → F 2 n , and λ x ∈ T \lambda_x\in\mathbb{T} λ x ∈ T .
Let n = n c + n t n=n_c+n_t n = n c + n t . We denote by F ( n c , n t ) \mathcal{F}(n_c,n_t) F ( n c , n t ) the set of gates U ∈ C ( n ) U\in C(n) U ∈ C ( n ) of the form
C 1 ( ∑ x ∈ F 2 n c ∣ π ( x ) ⟩ ⟨ x ∣ ⊗ V x ) C 2 C_1\left(\sum_{x\in\mathbb{F}_2^{n_c}}|\pi(x)\rangle\langle x|\otimes V_x\right)C_2 C 1 x ∈ F 2 n c ∑ ∣ π ( x )⟩ ⟨ x ∣ ⊗ V x C 2
where C 1 , C 2 ∈ C 2 ( n ) C_1,C_2\in C_2(n) C 1 , C 2 ∈ C 2 ( n ) , π : F 2 n c → F 2 n c \pi:\mathbb{F}_2^{n_c}\to\mathbb{F}_2^{n_c} π : F 2 n c → F 2 n c is a permutation, and V x ∈ U ( 2 n t ) V_x\in U(2^{n_t}) V x ∈ U ( 2 n t ) . Here n c n_c n c is the number of control qubits and n t n_t n t is the number of target qubits.
Another characterization of a generalized semi-Clifford gate is that it maps the algebra of an isotropic subspace of dimension n n n onto the algebra of another (Lemma 2). More generally, for 0 ≤ n c ≤ n 0\leq n_c\leq n 0 ≤ n c ≤ n we say that a gate U U U is n c n_c n c -generalized semi-Clifford if U A S U † = A T UA_SU^\dagger=A_T U A S U † = A T for some isotropic subspaces S , T ⊆ F 2 2 n S,T\subseteq\mathbb{F}_2^{2n} S , T ⊆ F 2 2 n of dimension n c n_c n c . Thus the generalized semi-Clifford gates are the n n n -generalized semi-Clifford gates, and every gate is 0-generalized semi-Clifford trivially. Notice that a gate can be n c n_c n c -generalized semi-Clifford for several values of n c n_c n c . We prove the following lemma in Appendix G.
Lemma 13. Let 0 ≤ n c ≤ n 0\leq n_c\leq n 0 ≤ n c ≤ n and n t = n − n c n_t=n-n_c n t = n − n c . A gate U ∈ C ( n ) U\in C(n) U ∈ C ( n ) lies in F ( n c , n t ) \mathcal{F}(n_c,n_t) F ( n c , n t ) if and only if it is n c n_c n c -generalized semi-Clifford, that is, U A S U † = A T UA_SU^\dagger=A_T U A S U † = A T for some isotropic subspaces S , T ⊆ F 2 2 n S,T\subseteq\mathbb{F}_2^{2n} S , T ⊆ F 2 2 n of dimension n c n_c n c .
We denote
F j ( n c , n t ) : = { U ∈ F ( n c , n t ) : V x ∈ C j ( n t ) , ∀ x } . \mathcal{F}_j(n_c,n_t):=\{U\in\mathcal{F}(n_c,n_t):V_x\in C_j(n_t),\ \forall x\}. F j ( n c , n t ) := { U ∈ F ( n c , n t ) : V x ∈ C j ( n t ) , ∀ x } .
When j = 2 j=2 j = 2 , that is, each block V x V_x V x is Clifford, there is a clean relationship between them and generalized semi-Clifford gates, which we prove in Appendix G.1.
Proposition 14.
F 2 ( n c , n t ) ⊆ GSC ( n c + n t ) ⟺ n c ≤ 1 or n t ≤ 2. \mathcal{F}_2(n_c,n_t)\subseteq\operatorname{GSC}(n_c+n_t)\Longleftrightarrow n_c\leq1\ \text{or}\ n_t\leq2. F 2 ( n c , n t ) ⊆ GSC ( n c + n t ) ⟺ n c ≤ 1 or n t ≤ 2.
Hence the first case of a non-generalized semi-Clifford gate U ∈ F 2 ( n c , n t ) U\in\mathcal{F}_2(n_c,n_t) U ∈ F 2 ( n c , n t ) should have n c ≥ 2 n_c\geq2 n c ≥ 2 and n t ≥ 3 n_t\geq3 n t ≥ 3 , which requires n = n c + n t ≥ 5 n=n_c+n_t\geq5 n = n c + n t ≥ 5 . In fact, we show that for all k , n ≥ 5 k,n\geq5 k , n ≥ 5 , there is a non-generalized semi-Clifford gate with n n n qubits and exact level k k k which offers the negative results in Figure 1 . We prove it in Appendix G.2.
Theorem 15. For every k ≥ 5 k\geq5 k ≥ 5 and n ≥ 5 n\geq5 n ≥ 5 , there is a gate U ∈ F 2 ( 2 , n − 2 ) U\in\mathcal{F}_2(2,n-2) U ∈ F 2 ( 2 , n − 2 ) such that
U ∈ C k ( n ) ∖ C k − 1 ( n ) , U ∉ GSC ( n ) . U\in C_k(n)\setminus C_{k-1}(n),\qquad U\notin\operatorname{GSC}(n). U ∈ C k ( n ) ∖ C k − 1 ( n ) , U ∈ / GSC ( n ) .
We note that a different counterexample for gates in C k ( n ) ∖ GSC ( n ) C_k(n)\setminus\operatorname{GSC}(n) C k ( n ) ∖ GSC ( n ) was also obtained in [8 ] and arises from a different construction.
We propose the following conjecture as a refinement to the original conjecture of [2 ] .
Conjecture 3. Every gate in C ( n ) C(n) C ( n ) is n c n_c n c -generalized semi-Clifford for some 1 ≤ n c ≤ n 1\leq n_c\leq n 1 ≤ n c ≤ n . More precisely, if U ∈ C k ( n ) U\in C_k(n) U ∈ C k ( n )
and k ≥ 3 k \ge3 k ≥ 3 , there are Clifford gates C 1 , C 2 ∈ C 2 ( n ) C_1,C_2 \in\mathcal{C}_2(n) C 1 , C 2 ∈ C 2 ( n ) and 1 ≤ n c ≤ n 1 \le n_c \le n 1 ≤ n c ≤ n , with n t = n − n c n_t=n-n_c n t = n − n c , such that
U = C 1 ( ∑ x ∈ F 2 n c ∣ π ( x ) ⟩ ⟨ x ∣ ⊗ V x ) C 2 . U=C_1\left(\sum_{x\in\mathbb{F}_2^{n_c}}|\pi(x)\rangle\langle x|\otimes V_x\right)C_2. U = C 1 x ∈ F 2 n c ∑ ∣ π ( x )⟩ ⟨ x ∣ ⊗ V x C 2 .
where π : F 2 n c → F 2 n c \pi:\mathbb{F}_2^{n_c}\to\mathbb{F}_2^{n_c} π : F 2 n c → F 2 n c is a permutation and V x ∈ C k − 3 ( n t ) V_x\in\mathcal{C}_{k-3}(n_t) V x ∈ C k − 3 ( n t ) for every x x x , with the convention C 0 ( m ) = C j ( 0 ) = T \mathcal{C}_0(m)=\mathcal{C}_j(0)=\mathsf{T} C 0 ( m ) = C j ( 0 ) = T for scalars. In other words,
C k ( n ) ⊆ ⋃ n c = 1 n F k − 3 ( n c , n − n c ) . \mathcal{C}_k(n)\subseteq\bigcup_{n_c=1}^{n}\mathcal{F}_{k-3}(n_c,n-n_c). C k ( n ) ⊆ n c = 1 ⋃ n F k − 3 ( n c , n − n c ) .
Figure 5. The decomposition of a gate U ∈ C k ( n ) U\in\mathcal{C}_k(n) U ∈ C k ( n ) predicted by Conjecture 3.
Figure 5 depicts this decomposition as a circuit. Here the integers n c n_c n c and n t n_t n t are chosen together with the Clifford gates C i C_i C i and need not be unique. We remark here that the conjecture for k = 3 k=3 k = 3 and k = 4 k=4 k = 4 says exactly that C 3 ( n ) \mathcal{C}_3(n) C 3 ( n ) and C 4 ( n ) \mathcal{C}_4(n) C 4 ( n ) are generalized semi-Clifford, which holds by [3 ] and Theorem 6. For k = 5 k=5 k = 5 it predicts that every U ∈ C 5 ( n ) U\in\mathcal{C}_5(n) U ∈ C 5 ( n ) has the above form with Clifford blocks V x ∈ C 2 ( n t ) V_x\in\mathcal{C}_2(n_t) V x ∈ C 2 ( n t ) . If true, Proposition 14 then gives C 5 ( 4 ) ⊆ G S C ( 4 ) \mathcal{C}_5(4)\subseteq\mathrm{GSC}(4) C 5 ( 4 ) ⊆ GSC ( 4 ) , since n c ≤ 1 n_c\le1 n c ≤ 1 or n t ≤ 2 n_t\le2 n t ≤ 2 whenever n c ≥ 1 n_c\ge1 n c ≥ 1 and n c + n t = 4 n_c+n_t=4 n c + n t = 4 .
Discussion
In this article, we have investigated when C k ( n ) \mathcal{C}_k(n) C k ( n ) is a subset of S C ( n ) \mathrm{SC}(n) SC ( n ) and G S C ( n ) \mathrm{GSC}(n) GSC ( n ) as k k k and n n n vary, which leads to several directions for future work. Generalized semi-Clifford gates were proposed in [2 ] as a structural description of the Clifford hierarchy. Apart from n = 4 n=4 n = 4 and k ≥ 5 k\ge5 k ≥ 5 , our results determine for which pairs ( k , n ) (k,n) ( k , n ) it describes all of C k ( n ) \mathcal{C}_k(n) C k ( n ) , and Conjecture 3 proposes how the description should change beyond them.
The first natural direction is to explore the conductor descent argument in § 2 for n = 4 n=4 n = 4 . If successful, it will complete the picture of when C k ( n ) ⊆ G S C ( n ) \mathcal{C}_k(n)\subseteq\mathrm{GSC}(n) C k ( n ) ⊆ GSC ( n ) .
Second, as exhibited in § 2 , the conductor of a gate plays a central role in the study of three-qubit and four-qubit gates. It is thus natural to explore whether there is a finer structure determined by the triple ( r , k , n ) (r,k,n) ( r , k , n ) in relation to the characterization of the Clifford hierarchy and fault-tolerant quantum computing.
We also believe that some of our techniques naturally extend to the case of qudits. For example, when the local dimension d ≥ 3 d\ge3 d ≥ 3 is a prime, there are more algebraic tools that can reduce the finite-case analysis substantially.
Lastly, we would like to point out that we learned of the results of [8 , 9 ] after we had independently obtained our results.
Acknowledgments
We thank the organizers of the 2026 Gene Golub SIAM Summer School on Fault-Tolerant Algorithms in Quantum Computing, which provided us with the opportunity to learn about this fascinating subject. We are especially grateful to Robert Calderbank and Di Fang for their efforts in organizing the event, as well as for their helpful comments and discussions regarding this work. We also thank the other members of our quantum error correction reading group for many stimulating and insightful discussions.
AI Disclosure
This article originated from the authors’ attempt to test the conjecture of [2 ] using ChatGPT 5.6 Sol after learning about the conjecture at the Gene Golub SIAM Summer School. On August 3, 2026, a counterexample was produced in C 5 ( 5 ) \mathcal{C}_5(5) C 5 ( 5 ) . The authors then interacted extensively with ChatGPT 5.6 Sol (and, more recently, ChatGPT 6 Astra) and Claude Fable 5 (and, more recently, Fable 5.1 and Opus 5.5) to explore structures underlying the Clifford hierarchy. As the project evolved, the authors gradually formed the conjectural picture summarized in Figure 2 and Figure 3 . These patterns were initially explored computationally, and we subsequently developed a clearer understanding of the arithmetic structure underlying these phenomena and derived the reductions presented in Appendices D, E, and F. We have also used the LLMs to help with the writing and polishing of the paper. The authors welcome questions regarding the role of AI in this work, as well as comments and suggestions concerning best practices for the disclosure of AI-assisted mathematical research.
Preliminaries
We summarize the notations used in the appendix in Table I (PDF p. 9) . Throughout, a Pauli is written as λ P v \lambda P_v λ P v with λ ∈ μ 4 \lambda\in\mu_4 λ ∈ μ 4 and v ∈ V n = F 2 2 n v\in V_n=\mathbb{F}_2^{2n} v ∈ V n = F 2 2 n , and we call v v v its label . We write x a x^a x a and z b z^b z b for the labels of X a X^a X a and Z b Z^b Z b , and x j x_j x j and z j z_j z j for those of X j X_j X j and Z j Z_j Z j , also when the qubit j j j is named by a letter, as in z y z_y z y .
Table I (PDF p. 9). TABLE I. Notations used throughout the appendix.
Recall that a maximal abelian ∗ * ∗ -subalgebra (MASA) of Mat 2 n ( C ) \operatorname{Mat}_{2^n}(\mathbb{C}) Mat 2 n ( C ) is a unital abelian ∗ * ∗ -subalgebra that is maximal with respect to inclusion. For a Lagrangian subspace L L L , A L \mathcal{A}_L A L is a MASA, which we call a Pauli MASA , since a matrix ∑ w c w P w \sum_w c_wP_w ∑ w c w P w commutes with every P v P_v P v , v ∈ L v\in L v ∈ L , exactly when c w = 0 c_w=0 c w = 0 for w ∉ L ⊥ = L w\notin L^\perp=L w ∈ / L ⊥ = L . Equivalently, a Pauli MASA is the complex linear span of a maximal abelian subgroup of the Pauli group. We begin with the following proposition, which includes Lemma 2. For C ∈ C 2 ( n ) C\in\mathcal{C}_2(n) C ∈ C 2 ( n ) we write γ C ∈ Sp ( V n ) \gamma_C\in\operatorname{Sp}(V_n) γ C ∈ Sp ( V n ) for its symplectic action, defined by C P v C † ≐ P γ C v CP_vC^\dagger\doteq P_{\gamma_Cv} C P v C † ≐ P γ C v for v ∈ V n v\in V_n v ∈ V n . Then C A S C † = A γ C S C\mathcal{A}_SC^\dagger=\mathcal{A}_{\gamma_CS} C A S C † = A γ C S for every S ≤ V n S\leq V_n S ≤ V n , and let L ( C ) : = { ( L , γ C L ) : L Lagrangian } \mathcal{L}(C):=\{(L,\gamma_CL):L\text{ Lagrangian}\} L ( C ) := {( L , γ C L ) : L Lagrangian } . For a gate U U U , let
P ( U ) : = { v ∈ V n : U P v U † ≐ P for some P ∈ P ( n ) } , C ( U ) : = { v ∈ V n : U P v U † ≐ C for some C ∈ C 2 ( n ) } . P(U):=\{v\in V_n:UP_vU^\dagger\doteq P\text{ for some }P\in\mathcal{P}(n)\},\qquad C(U):=\{v\in V_n:UP_vU^\dagger\doteq C\text{ for some }C\in\mathcal{C}_2(n)\}. P ( U ) := { v ∈ V n : U P v U † ≐ P for some P ∈ P ( n )} , C ( U ) := { v ∈ V n : U P v U † ≐ C for some C ∈ C 2 ( n )} .
These are vector subspaces of V n V_n V n , since U P u + v U † ≐ ( U P u U † ) ( U P v U † ) UP_{u+v}U^\dagger\doteq(UP_uU^\dagger)(UP_vU^\dagger) U P u + v U † ≐ ( U P u U † ) ( U P v U † ) .
Proposition A.1. If A ⊆ Mat 2 n ( C ) \mathcal{A}\subseteq\operatorname{Mat}_{2^n}(\mathbb{C}) A ⊆ Mat 2 n ( C ) is a M A S A MASA M A S A , then the following are equivalent:
A \mathcal{A} A is the linear span of a maximal abelian subgroup of P ( n ) \mathcal{P}(n) P ( n ) ;
for all P ∈ P ( n ) P\in\mathcal{P}(n) P ∈ P ( n ) , P A P † = A P\mathcal{A}P^\dagger=\mathcal{A} P A P † = A ;
there exists a Lagrangian subspace L ⊆ F 2 2 n L\subseteq\mathbb{F}_2^{2n} L ⊆ F 2 2 n such that
A = span C { P v : v ∈ L } = : A L . \mathcal{A}=\operatorname{span}_{\mathbb{C}}\{P_v:v\in L\}=:\mathcal{A}_L. A = span C { P v : v ∈ L } =: A L .
In particular, U ∈ U ( 2 n ) U\in\mathrm{U}(2^n) U ∈ U ( 2 n ) is generalized semi-Clifford if and only if there exist Lagrangian subspaces L , M ⊆ F 2 2 n L,M\subseteq\mathbb{F}_2^{2n} L , M ⊆ F 2 2 n such that U A L U † = A M U\mathcal{A}_LU^\dagger=\mathcal{A}_M U A L U † = A M . Moreover, let B ⊆ Mat 2 n ( C ) \mathcal{B}\subseteq\operatorname{Mat}_{2^n}(\mathbb{C}) B ⊆ Mat 2 n ( C ) be a unital ∗ * ∗ -subalgebra with P B P † = B PBP^\dagger=B P B P † = B for all P ∈ P ( n ) P\in\mathcal{P}(n) P ∈ P ( n ) . Then B = A S \mathcal{B}=\mathcal{A}_{S} B = A S for a subspace S ≤ V n S\leq V_n S ≤ V n , which is isotropic if B \mathcal{B} B is abelian. If U B U † = A L U\mathcal{B}U^\dagger=\mathcal{A}_{L} U B U † = A L for a gate U U U and a Lagrangian L L L , then B = A M \mathcal{B}=\mathcal{A}_{M} B = A M for a Lagrangian M M M .
Proof. Suppose first A = span C H \mathcal{A}=\operatorname{span}_{\mathbb{C}}\mathcal{H} A = span C H for a maximal abelian subgroup H ≤ P ( n ) \mathcal{H}\leq\mathcal{P}(n) H ≤ P ( n ) . Let L = q ( H ) L=q(\mathcal{H}) L = q ( H ) . Since q q q is a group homomorphism, q ( H ) q(\mathcal{H}) q ( H ) is an additive subgroup of F 2 2 n \mathbb{F}_{2}^{2n} F 2 2 n . Every additive subgroup of an F 2 \mathbb{F}_{2} F 2 -vector space is an F 2 \mathbb{F}_{2} F 2 -linear subspace, so L L L is a vector subspace.
For v , v ′ ∈ L v,v'\in L v , v ′ ∈ L , let P v , P v ′ ∈ H P_v,P_{v'}\in\mathcal{H} P v , P v ′ ∈ H such that q ( P v ) = v q(P_v)=v q ( P v ) = v and q ( P v ′ ) = v ′ q(P_{v'})=v' q ( P v ′ ) = v ′ . Since H \mathcal{H} H is abelian, [ P v , P v ′ ] = 0 [P_v,P_{v'}]=0 [ P v , P v ′ ] = 0 , so ω ( v , v ′ ) = 0 \omega(v,v')=0 ω ( v , v ′ ) = 0 . Thus, L L L is isotropic. Suppose w ∈ F 2 2 n w\in\mathbb{F}_{2}^{2n} w ∈ F 2 2 n satisfies ω ( v , w ) = 0 \omega(v,w)=0 ω ( v , w ) = 0 for all v ∈ L v\in L v ∈ L . Then [ P w , P ] = 0 [P_w,P]=0 [ P w , P ] = 0 for all P ∈ H P\in\mathcal{H} P ∈ H since ω ( w , q ( P ) ) = 0 \omega(w,q(P))=0 ω ( w , q ( P )) = 0 . By maximality of H \mathcal{H} H , P w ∈ H P_w\in\mathcal{H} P w ∈ H . Thus, w ∈ L w\in L w ∈ L , so L L L is Lagrangian. It is straightforward to check that H = q − 1 ( L ) \mathcal{H}=q^{-1}(L) H = q − 1 ( L ) , i.e., H = { λ P v : v ∈ L , λ = ± 1 , ± i } \mathcal{H}=\{\lambda P_v:v\in L,\ \lambda=\pm1,\pm i\} H = { λ P v : v ∈ L , λ = ± 1 , ± i } . Consequently, A = span C ( H ) = span C { P v : v ∈ L } = A L \mathcal{A}=\operatorname{span}_{\mathbb{C}}(\mathcal{H})=\operatorname{span}_{\mathbb{C}}\{P_v:v\in L\}=\mathcal{A}_L A = span C ( H ) = span C { P v : v ∈ L } = A L .
Conversely, let L ⊆ F 2 2 n L\subseteq\mathbb{F}_{2}^{2n} L ⊆ F 2 2 n be a Lagrangian subspace. An analogous computation to above shows that q − 1 ( L ) q^{-1}(L) q − 1 ( L ) is maximal abelian and hence span C q − 1 ( L ) = span C { P v : v ∈ L } = A L \operatorname{span}_{\mathbb{C}}q^{-1}(L)=\operatorname{span}_{\mathbb{C}}\{P_v:v\in L\}=\mathcal{A}_L span C q − 1 ( L ) = span C { P v : v ∈ L } = A L . This concludes the equivalence between 1 and 3.
We now prove the equivalence between 2 and 3. Let L ⊆ F 2 2 n L\subseteq\mathbb{F}_{2}^{2n} L ⊆ F 2 2 n be a Lagrangian subspace. For every v , w ∈ F 2 2 n v,w\in\mathbb{F}_{2}^{2n} v , w ∈ F 2 2 n , P w P v P w † = ( − 1 ) ω ( v , w ) P v P_wP_vP_w^\dagger=(-1)^{\omega(v,w)}P_v P w P v P w † = ( − 1 ) ω ( v , w ) P v , so P w A L P w † = A L P_w\mathcal{A}_LP_w^\dagger=\mathcal{A}_L P w A L P w † = A L .
Conversely, suppose P A P † = A P\mathcal{A}P^\dagger=\mathcal{A} P A P † = A for all P ∈ P ( n ) P\in\mathcal{P}(n) P ∈ P ( n ) . For v ∈ F 2 2 n v\in\mathbb{F}_{2}^{2n} v ∈ F 2 2 n , consider
Π v ( X ) : = 1 2 2 n ∑ w ∈ F 2 2 n ( − 1 ) ω ( v , w ) P w X P w † . \Pi_v(X):=\frac{1}{2^{2n}}\sum_{w\in\mathbb{F}_{2}^{2n}}(-1)^{\omega(v,w)}P_wXP_w^\dagger. Π v ( X ) := 2 2 n 1 w ∈ F 2 2 n ∑ ( − 1 ) ω ( v , w ) P w X P w † .
For u ∈ F 2 2 n u\in\mathbb{F}_{2}^{2n} u ∈ F 2 2 n ,
Π v ( P u ) = 1 2 2 n ∑ w ∈ F 2 2 n ( − 1 ) ω ( v , w ) ( − 1 ) ω ( u , w ) P u = 1 2 2 n ∑ w ∈ F 2 2 n ( − 1 ) ω ( u + v , w ) P u = δ u , v P u , \Pi_v(P_u)=\frac{1}{2^{2n}}\sum_{w\in\mathbb{F}_{2}^{2n}}(-1)^{\omega(v,w)}(-1)^{\omega(u,w)}P_u=\frac{1}{2^{2n}}\sum_{w\in\mathbb{F}_{2}^{2n}}(-1)^{\omega(u+v,w)}P_u=\delta_{u,v}P_u, Π v ( P u ) = 2 2 n 1 w ∈ F 2 2 n ∑ ( − 1 ) ω ( v , w ) ( − 1 ) ω ( u , w ) P u = 2 2 n 1 w ∈ F 2 2 n ∑ ( − 1 ) ω ( u + v , w ) P u = δ u , v P u ,
so Π v \Pi_v Π v is a projection onto C P v \mathbb{C}P_v C P v . Since P v A P v † = A P_v\mathcal{A}P_v^\dagger=\mathcal{A} P v A P v † = A , Π v ( A ) ⊆ A \Pi_v(\mathcal{A})\subseteq\mathcal{A} Π v ( A ) ⊆ A for all v ∈ F 2 2 n v\in\mathbb{F}_{2}^{2n} v ∈ F 2 2 n . For X ∈ A X\in\mathcal{A} X ∈ A , we expand it in the Pauli basis
X = ∑ u ∈ F 2 2 n c u P u . X=\sum_{u\in\mathbb{F}_{2}^{2n}}c_uP_u. X = u ∈ F 2 2 n ∑ c u P u .
Then Π v ( X ) = c v P v ∈ A \Pi_v(X)=c_vP_v\in\mathcal{A} Π v ( X ) = c v P v ∈ A . Therefore, P v ∈ A P_v\in\mathcal{A} P v ∈ A for all v v v with c v ≠ 0 c_v\neq0 c v = 0 . It follows that
A = span C { P v : v ∈ T } , where T = { v ∈ F 2 2 n : P v ∈ A } . \mathcal{A}=\operatorname{span}_{\mathbb{C}}\{P_v:v\in T\},\qquad\text{where }T=\{v\in\mathbb{F}_{2}^{2n}:P_v\in\mathcal{A}\}. A = span C { P v : v ∈ T } , where T = { v ∈ F 2 2 n : P v ∈ A } .
Since A \mathcal{A} A is abelian, ω ( u , v ) = 0 \omega(u,v)=0 ω ( u , v ) = 0 for all u , v ∈ T u,v\in T u , v ∈ T . Thus L : = span F 2 T L:=\operatorname{span}_{\mathbb{F}_2}T L := span F 2 T is an isotropic subspace. On the other hand, since the Pauli matrices are linearly independent, ∣ T ∣ = dim C A = 2 n |T|=\dim_{\mathbb{C}}\mathcal{A}=2^n ∣ T ∣ = dim C A = 2 n , as a MASA of Mat 2 n ( C ) \operatorname{Mat}_{2^n}(\mathbb{C}) Mat 2 n ( C ) is unitarily conjugate to the diagonal matrices. Since T ⊆ L T\subseteq L T ⊆ L ,
2 n = ∣ T ∣ ≤ ∣ L ∣ = 2 dim L ≤ 2 n . 2^n=|T|\leq|L|=2^{\dim L}\leq2^n. 2 n = ∣ T ∣ ≤ ∣ L ∣ = 2 d i m L ≤ 2 n .
Therefore dim L = n \dim L=n dim L = n and T = L T=L T = L .
The assertion on generalized semi-Clifford gates follows from the equivalence of (1) and (3) and the definition in Section I.
For the last assertion, the argument above with B \mathcal{B} B in place of A \mathcal{A} A gives B = span C { P v : v ∈ S } \mathcal{B}=\operatorname{span}_{\mathbb{C}}\{P_v:v\in S\} B = span C { P v : v ∈ S } with S = { v : P v ∈ B } S=\{v:P_v\in\mathcal{B}\} S = { v : P v ∈ B } . As B \mathcal{B} B is a unital algebra and P v P w ≐ P v + w P_vP_w\doteq P_{v+w} P v P w ≐ P v + w , S S S is a subspace, and it is isotropic if B \mathcal{B} B is abelian. If U B U † = A L U\mathcal{B}U^\dagger=\mathcal{A}_L U B U † = A L , then B \mathcal{B} B is a MASA, since A L \mathcal{A}_L A L is one, so S S S is Lagrangian by the implication from (2) to (3). □
Recall from Section II that a pair ( L , M ) (L,M) ( L , M ) of Lagrangians is a generalized semi-Clifford Lagrangian pair of U U U if U A L U † = A M U\mathcal{A}_LU^\dagger=\mathcal{A}_M U A L U † = A M . We abbreviate this as GSC Lagrangian pair, or GSC pair when there is no ambiguity, write L ( U ) \mathcal{L}(U) L ( U ) for the set of GSC pairs of U U U , and call L L L and M M M the input and output Lagrangians of ( L , M ) (L,M) ( L , M ) .
Proof of Lemma 2. This is the assertion on generalized semi-Clifford gates in Proposition A.1. □
For a gate U U U and v ∈ V n v\in V_n v ∈ V n , we call h v : = U P v U † h_v:=UP_vU^\dagger h v := U P v U † the correction of U U U at P v P_v P v .
Proof of Lemma 3. Suppose first that U ∈ GSC ( n ) U\in\operatorname{GSC}(n) U ∈ GSC ( n ) . By Lemma 2, there exist Lagrangian subspaces L 0 , M 0 ≤ F 2 2 n L_0,M_0\leq\mathbb{F}_{2}^{2n} L 0 , M 0 ≤ F 2 2 n such that U A L 0 U † = A M 0 U\mathcal{A}_{L_0}U^\dagger=\mathcal{A}_{M_0} U A L 0 U † = A M 0 . For every v ∈ F 2 2 n v\in\mathbb{F}_{2}^{2n} v ∈ F 2 2 n and every w ∈ L 0 w\in L_0 w ∈ L 0 , P v P w P v † = ( − 1 ) ω ( v , w ) P w P_vP_wP_v^\dagger=(-1)^{\omega(v,w)}P_w P v P w P v † = ( − 1 ) ω ( v , w ) P w , so P v A L 0 P v † = A L 0 P_v\mathcal{A}_{L_0}P_v^\dagger=\mathcal{A}_{L_0} P v A L 0 P v † = A L 0 . Therefore, for h v = U P v U † h_v=UP_vU^\dagger h v = U P v U † ,
h v A M 0 h v † = U P v U † A M 0 U P v † U † = U P v A L 0 P v † U † = U A L 0 U † = A M 0 . h_v\mathcal{A}_{M_0}h_v^\dagger=UP_vU^\dagger\mathcal{A}_{M_0}UP_v^\dagger U^\dagger=UP_v\mathcal{A}_{L_0}P_v^\dagger U^\dagger=U\mathcal{A}_{L_0}U^\dagger=\mathcal{A}_{M_0}. h v A M 0 h v † = U P v U † A M 0 U P v † U † = U P v A L 0 P v † U † = U A L 0 U † = A M 0 .
Conversely, let M ≤ F 2 2 n M\leq\mathbb{F}_{2}^{2n} M ≤ F 2 2 n be a Lagrangian subspace such that h v A M h v † = A M h_v\mathcal{A}_Mh_v^\dagger=\mathcal{A}_M h v A M h v † = A M for every v ∈ F 2 2 n v\in\mathbb{F}_{2}^{2n} v ∈ F 2 2 n . For every v ∈ V n v\in V_n v ∈ V n ,
P v U † A M U P v † = U † ( U P v U † ) A M ( U P v † U † ) U = U † h v A M h v † U = U † A M U . P_vU^\dagger\mathcal{A}_MUP_v^\dagger=U^\dagger(UP_vU^\dagger)\mathcal{A}_M(UP_v^\dagger U^\dagger)U=U^\dagger h_v\mathcal{A}_Mh_v^\dagger U=U^\dagger\mathcal{A}_MU. P v U † A M U P v † = U † ( U P v U † ) A M ( U P v † U † ) U = U † h v A M h v † U = U † A M U .
Hence B : = U † A M U \mathcal{B} := U^{\dagger}\mathcal{A}_{M}U B := U † A M U is invariant under conjugation by every Pauli. Moreover, B \mathcal{B} B is unitarily conjugate to the Pauli MASA A M \mathcal{A}_{M} A M . By Proposition A.1, there is a Lagrangian subspace L ≤ V n L \le V_n L ≤ V n such that
U † A M U = B = A L . U^{\dagger}\mathcal{A}_{M}U = \mathcal{B} = \mathcal{A}_{L}. U † A M U = B = A L .
Lemma 2 therefore implies U ∈ GSC ( n ) U \in\operatorname{GSC}(n) U ∈ GSC ( n ) . This also proves the final assertion that, for any such M M M , U † A M U = A L U^{\dagger}\mathcal{A}_{M}U = \mathcal{A}_{L} U † A M U = A L for some Lagrangian L ≤ V n L \le V_n L ≤ V n .
Lemma A.2. The number of Lagrangians in V n V_n V n is N n = ∏ j = 1 n ( 2 j + 1 ) N_n = \prod_{j=1}^{n}(2^j + 1) N n = ∏ j = 1 n ( 2 j + 1 ) , which is odd.
Proof. Counting ( v , L ) (v,L) ( v , L ) with 0 ≠ v ∈ L 0 \ne v \in L 0 = v ∈ L , using the Lagrangians of v ⊥ / span { v } v^{\perp}/\operatorname{span}\{v\} v ⊥ / span { v } , gives ( 2 n − 1 ) N n = ( 2 2 n − 1 ) N n − 1 (2^n-1)N_n = (2^{2n}-1)N_{n-1} ( 2 n − 1 ) N n = ( 2 2 n − 1 ) N n − 1 . Now N 0 = 1 N_0 = 1 N 0 = 1 . See also [16 Lemma 9.4.1] .
Recall that the conductor of U U U , denoted cond ( U ) \operatorname{cond}(U) cond ( U ) , is the least r ≥ 2 r \ge2 r ≥ 2 such that λ U \lambda U λ U has entries in K r K_r K r for some λ ∈ C × \lambda\in\mathbb{C}^{\times} λ ∈ C × . We call U U U Gaussian if cond ( U ) = 2 \operatorname{cond}(U)=2 cond ( U ) = 2 . As before, K M = Q ( ζ 2 M ) K_M = \mathbb{Q}(\zeta_{2^M}) K M = Q ( ζ 2 M ) .
Proposition A.3. Let U U U be an n n n -qubit gate of finite conductor r = cond ( U ) r = \operatorname{cond}(U) r = cond ( U ) , and let h v = U P v U † h_v = UP_vU^{\dagger} h v = U P v U † and m = max v ∈ V n cond ( h v ) m = \max_{v\in V_n}\operatorname{cond}(h_v) m = max v ∈ V n cond ( h v ) . Then
max { 2 , r − 1 } ≤ m ≤ r . \max\{2,r-1\} \le m \le r. max { 2 , r − 1 } ≤ m ≤ r . Every U ∈ C k ( n ) U \in\mathcal{C}_k(n) U ∈ C k ( n ) with k ≥ 2 k \ge2 k ≥ 2 has finite conductor, and 2 ≤ cond ( U ) ≤ k 2 \le\operatorname{cond}(U) \le k 2 ≤ cond ( U ) ≤ k . Moreover, for every n ≥ 1 n \ge1 n ≥ 1 and k ≥ 2 k \ge2 k ≥ 2 ,
{ cond ( U ) : U ∈ C k ( n ) } = { 2 , … , k } . \{\operatorname{cond}(U): U \in\mathcal{C}_k(n)\} = \{2,\ldots,k\}. { cond ( U ) : U ∈ C k ( n )} = { 2 , … , k } .
Proof. First, choose W ≐ U W \doteq U W ≐ U with entries in K r K_r K r . Then h v = W P v W − 1 h_v = WP_vW^{-1} h v = W P v W − 1 has entries in K r K_r K r , so m ≤ r m \le r m ≤ r , and m ≥ 2 m \ge2 m ≥ 2 by definition. Suppose m ≤ r − 2 m \le r-2 m ≤ r − 2 , and write h v = c v B v h_v = c_vB_v h v = c v B v with B v B_v B v over K m K_m K m and c v ∈ K m × c_v \in K_m^{\times} c v ∈ K m × . Since h v 2 = I h_v^2=I h v 2 = I , we have c v 2 ∈ K m c_v^2 \in K_m c v 2 ∈ K m , so every σ ∈ Gal ( K r / K m ) \sigma\in\operatorname{Gal}(K_r/K_m) σ ∈ Gal ( K r / K m ) satisfies σ ( h v ) = ± h v \sigma(h_v)=\pm h_v σ ( h v ) = ± h v and σ 2 ( h v ) = h v \sigma^2(h_v)=h_v σ 2 ( h v ) = h v . As m ≥ 2 m \ge2 m ≥ 2 , this Galois group is cyclic, and its squares form the subgroup of index two, with fixed field K m + 1 K_{m+1} K m + 1 . Hence every h v h_v h v has entries in K m + 1 K_{m+1} K m + 1 . The linear system X P v = h v X XP_v=h_vX X P v = h v X , v ∈ V n v\in V_n v ∈ V n , then has coefficients in K m + 1 K_{m+1} K m + 1 , and its solutions over C \mathbb{C} C are the multiples of U U U , because a solution X X X makes U † X U^{\dagger}X U † X commute with every Pauli. A linear system has the same rank over K m + 1 K_{m+1} K m + 1 as over C \mathbb{C} C , so some X ≐ U X \doteq U X ≐ U has entries in K m + 1 K_{m+1} K m + 1 . Then r ≤ m + 1 ≤ r − 1 r \le m+1 \le r-1 r ≤ m + 1 ≤ r − 1 , a contradiction. Therefore, max { 2 , r − 1 } ≤ m ≤ r \max\{2,r-1\} \le m \le r max { 2 , r − 1 } ≤ m ≤ r .
Next, we show that every Hermitian involution g ∈ C ℓ ( n ) g \in\mathcal{C}_{\ell}(n) g ∈ C ℓ ( n ) , ℓ ≥ 1 \ell\ge1 ℓ ≥ 1 , has entries in K ℓ + 1 K_{\ell+1} K ℓ + 1 . Fix v ∈ V n v \in V_n v ∈ V n , and let g 0 = g g_0=g g 0 = g and g j + 1 = g j P v g j g_{j+1}=g_jP_vg_j g j + 1 = g j P v g j . Each g j g_j g j is a Hermitian involution, g j ∈ C ℓ − j ( n ) g_j \in\mathcal{C}_{\ell-j}(n) g j ∈ C ℓ − j ( n ) for j < ℓ j<\ell j < ℓ since g j + 1 = g j P v g j g_{j+1}=g_jP_vg_j g j + 1 = g j P v g j , and g j + 1 P v = ( g j P v ) 2 g_{j+1}P_v=(g_jP_v)^2 g j + 1 P v = ( g j P v ) 2 , so g j P v = ( g P v ) 2 j g_jP_v=(gP_v)^{2^j} g j P v = ( g P v ) 2 j . As g ℓ − 1 g_{\ell-1} g ℓ − 1 is a Pauli up to sign, ( g ℓ − 1 P v ) 4 = I (g_{\ell-1}P_v)^4=I ( g ℓ − 1 P v ) 4 = I , and hence ( g P v ) 2 ℓ + 1 = I (gP_v)^{2^{\ell+1}}=I ( g P v ) 2 ℓ + 1 = I . Thus tr ( g P v ) \operatorname{tr}(gP_v) tr ( g P v ) is a sum of 2 ℓ + 1 2^{\ell+1} 2 ℓ + 1 -th roots of unity, and g = 2 − n ∑ v ∈ V n tr ( g P v ) P v g=2^{-n}\sum_{v\in V_n}\operatorname{tr}(gP_v)P_v g = 2 − n ∑ v ∈ V n tr ( g P v ) P v has entries in K ℓ + 1 K_{\ell+1} K ℓ + 1 .
Now let U ∈ C k ( n ) U \in\mathcal{C}_k(n) U ∈ C k ( n ) with k ≥ 2 k \ge2 k ≥ 2 . Each h v ∈ C k − 1 ( n ) h_v \in\mathcal{C}_{k-1}(n) h v ∈ C k − 1 ( n ) is a Hermitian involution, so it has entries in K k K_k K k . As the P v P_v P v span the matrices over K k K_k K k , the matrix U A U † UAU^{\dagger} U A U † has entries in K k K_k K k for every matrix A A A over K k K_k K k . Choose U a b ≠ 0 U_{ab}\ne0 U ab = 0 , and let E j b E_{jb} E j b denote the matrix units. Then U i j U a b = ( U E j b U † ) i a U_{ij}U_{ab}=(UE_{jb}U^{\dagger})_{ia} U ij U ab = ( U E j b U † ) ia and ∣ U a b ∣ 2 = ( U E b b U † ) a a |U_{ab}|^2=(UE_{bb}U^{\dagger})_{aa} ∣ U ab ∣ 2 = ( U E bb U † ) aa lie in K k K_k K k for all i , j i,j i , j , so U / U a b U/U_{ab} U / U ab has entries in K k K_k K k , and cond ( U ) ≤ k \operatorname{cond}(U)\le k cond ( U ) ≤ k .
Finally, we show that every s ∈ { 2 , … , k } s\in\{2,\ldots,k\} s ∈ { 2 , … , k } is the conductor of some U ∈ C k ( n ) U\in\mathcal{C}_k(n) U ∈ C k ( n ) . Let D s = diag ( 1 , ζ 2 s ) ⊗ I ⊗ ( n − 1 ) D_s=\operatorname{diag}(1,\zeta_{2^s})\otimes I^{\otimes(n-1)} D s = diag ( 1 , ζ 2 s ) ⊗ I ⊗ ( n − 1 ) . Then D s X 1 D s † = ζ 2 s − 1 D s − 1 X 1 D_sX_1D_s^{\dagger}=\zeta_{2^s}^{-1}D_s^{-1}X_1 D s X 1 D s † = ζ 2 s − 1 D s − 1 X 1 , D s Z 1 D s † = Z 1 D_sZ_1D_s^{\dagger}=Z_1 D s Z 1 D s † = Z 1 , and D s D_s D s commutes with the Pauli on the other qubits, so every Pauli correction of D s D_s D s is a scalar times D s a P D_s^{a}P D s a P with a ∈ F 2 a\in\mathbb{F}_2 a ∈ F 2 and P P P a Pauli. Since D 2 = S ⊗ I ⊗ ( n − 1 ) D_2=S\otimes I^{\otimes(n-1)} D 2 = S ⊗ I ⊗ ( n − 1 ) is Clifford and right multiplication by a Pauli preserves each level, induction on s s s gives D s ∈ C s ( n ) ⊆ C k ( n ) D_s\in\mathcal{C}_s(n)\subseteq\mathcal{C}_k(n) D s ∈ C s ( n ) ⊆ C k ( n ) . The ratio of the entries of D s D_s D s is ζ 2 s \zeta_{2^s} ζ 2 s , which lies in K r K_r K r exactly when r ≥ s r\ge s r ≥ s , so cond ( D s ) = s \operatorname{cond}(D_s)=s cond ( D s ) = s .
Proof of Lemma 4. A Clifford gate C \mathcal{C} C maps Paulis to Paulis up to sign, and C A S C † = A γ C S \mathcal{C}\mathcal{A}_S\mathcal{C}^{\dagger}=\mathcal{A}_{\gamma_{\mathcal{C}}S} C A S C † = A γ C S . By induction on j j j , conjugation by C \mathcal{C} C preserves every C j ( n ) \mathcal{C}_j(n) C j ( n ) .
We use that U ∈ SC ( n ) U\in\operatorname{SC}(n) U ∈ SC ( n ) exactly when some ( L , M ) ∈ L ( U ) (L,M)\in\mathcal{L}(U) ( L , M ) ∈ L ( U ) has L ⊆ P ( U ) L\subseteq P(U) L ⊆ P ( U ) : such an L L L makes U U U map the maximal abelian subgroup { λ P v : v ∈ L , λ ∈ μ 4 } \{\lambda P_v:v\in L,\lambda\in\mu_4\} { λ P v : v ∈ L , λ ∈ μ 4 } onto a group of Paulis, which is again maximal abelian, and conversely (cf. [2 Proposition 5] ). Now ( L , M ) ∈ L ( U ) (L,M)\in\mathcal{L}(U) ( L , M ) ∈ L ( U ) exactly when ( γ C 2 − 1 L , γ C 1 M ) ∈ L ( C 1 U C 2 ) (\gamma_{\mathcal{C}_2}^{-1}L,\gamma_{\mathcal{C}_1}M)\in\mathcal{L}(\mathcal{C}_1U\mathcal{C}_2) ( γ C 2 − 1 L , γ C 1 M ) ∈ L ( C 1 U C 2 ) , and L ⊆ P ( U ) L\subseteq P(U) L ⊆ P ( U ) exactly when γ C 2 − 1 L ⊆ P ( C 1 U C 2 ) \gamma_{\mathcal{C}_2}^{-1}L\subseteq P(\mathcal{C}_1U\mathcal{C}_2) γ C 2 − 1 L ⊆ P ( C 1 U C 2 ) . The correction of C 1 U C 2 \mathcal{C}_1U\mathcal{C}_2 C 1 U C 2 at a Pauli P P P is C 1 h C 1 † \mathcal{C}_1h\mathcal{C}_1^{\dagger} C 1 h C 1 † , where h ∈ C k − 1 ( n ) h\in\mathcal{C}_{k-1}(n) h ∈ C k − 1 ( n ) is the correction of U U U at the Pauli C 2 P C 2 † \mathcal{C}_2P\mathcal{C}_2^{\dagger} C 2 P C 2 † , and hence C 1 U C 2 ∈ C k ( n ) \mathcal{C}_1U\mathcal{C}_2\in\mathcal{C}_k(n) C 1 U C 2 ∈ C k ( n ) (cf. [2 Proposition 3] ). This proves (1).
Up to a scalar, every Pauli on n + m n+m n + m qubits is P ⊗ Q P\otimes Q P ⊗ Q , and the correction of U ⊗ V U\otimes V U ⊗ V at it is U P U † ⊗ V Q V † UPU^{\dagger}\otimes VQV^{\dagger} U P U † ⊗ V Q V † , with U P U † ∈ C max { k − 1 , ℓ } ( n ) UPU^{\dagger}\in\mathcal{C}_{\max\{k-1,\ell\}}(n) U P U † ∈ C m a x { k − 1 , ℓ } ( n ) and V Q V † ∈ C max { k − 1 , ℓ } ( m ) VQV^{\dagger}\in\mathcal{C}_{\max\{k-1,\ell\}}(m) V Q V † ∈ C m a x { k − 1 , ℓ } ( m ) . Induction on max { k , ℓ } \max\{k,\ell\} max { k , ℓ } , starting from P ( n ) ⊗ P ( m ) = P ( n + m ) \mathcal{P}(n)\otimes\mathcal{P}(m)=\mathcal{P}(n+m) P ( n ) ⊗ P ( m ) = P ( n + m ) , gives U ⊗ V ∈ C max { k , ℓ } ( n + m ) U\otimes V\in\mathcal{C}_{\max\{k,\ell\}}(n+m) U ⊗ V ∈ C m a x { k , ℓ } ( n + m ) . If ( L , M ) ∈ L ( U ) (L,M)\in\mathcal{L}(U) ( L , M ) ∈ L ( U ) and ( L ′ , M ′ ) ∈ L ( V ) (L',M')\in\mathcal{L}(V) ( L ′ , M ′ ) ∈ L ( V ) , then ( L ⊕ L ′ , M ⊕ M ′ ) ∈ L ( U ⊗ V ) (L\oplus L',M\oplus M')\in\mathcal{L}(U\otimes V) ( L ⊕ L ′ , M ⊕ M ′ ) ∈ L ( U ⊗ V ) , since A L ⊕ L ′ = A L ⊗ A L ′ \mathcal{A}_{L\oplus L'}=\mathcal{A}_L\otimes\mathcal{A}_{L'} A L ⊕ L ′ = A L ⊗ A L ′ , and L ⊕ L ′ ⊆ P ( U ⊗ V ) L\oplus L'\subseteq P(U\otimes V) L ⊕ L ′ ⊆ P ( U ⊗ V ) if L ⊆ P ( U ) L\subseteq P(U) L ⊆ P ( U ) and L ′ ⊆ P ( V ) L'\subseteq P(V) L ′ ⊆ P ( V ) . A diagonal V V V has the GSC pair ( L Z , L Z ) (L_Z,L_Z) ( L Z , L Z ) with L Z = span { z n + 1 , … , z n + m } ⊆ P ( V ) L_Z=\operatorname{span}\{z_{n+1},\ldots,z_{n+m}\}\subseteq P(V) L Z = span { z n + 1 , … , z n + m } ⊆ P ( V ) , so U ⊗ V ∈ X ( n + m ) U\otimes V\in\mathcal{X}(n+m) U ⊗ V ∈ X ( n + m ) .
Conversely, let V V V be diagonal and ( L , M ) ∈ L ( U ⊗ V ) (L,M)\in\mathcal{L}(U\otimes V) ( L , M ) ∈ L ( U ⊗ V ) . Let R = span { z n + 1 , … , z n + m } R=\operatorname{span}\{z_{n+1},\ldots,z_{n+m}\} R = span { z n + 1 , … , z n + m } . For w ∈ R ⊥ w\in R^{\perp} w ∈ R ⊥ we have P w = P w ˉ ⊗ P w ′ P_w=P_{\bar w}\otimes P_{w'} P w = P w ˉ ⊗ P w ′ with P w ′ P_{w'} P w ′ diagonal. For y ∈ F 2 m y\in\mathbb{F}_2^m y ∈ F 2 m let E y = I ⊗ ∣ y ⟩ E_y=I\otimes|y\rangle E y = I ⊗ ∣ y ⟩ . Then E y P w E y † = ± P w ˉ E_yP_wE_y^{\dagger}=\pm P_{\bar w} E y P w E y † = ± P w ˉ if w ∈ R ⊥ w\in R^{\perp} w ∈ R ⊥ , and E y P w E y † = 0 E_yP_wE_y^{\dagger}=0 E y P w E y † = 0 otherwise, so E y A L E y † = A L ˉ E_y\mathcal{A}_LE_y^{\dagger}=\mathcal{A}_{\bar L} E y A L E y † = A L ˉ with L ˉ = { w ˉ : w ∈ L ∩ R ⊥ } ≅ ( L ∩ R ⊥ ) / ( L ∩ R ) \bar L=\{\bar w:w\in L\cap R^{\perp}\}\cong(L\cap R^{\perp})/(L\cap R) L ˉ = { w ˉ : w ∈ L ∩ R ⊥ } ≅ ( L ∩ R ⊥ ) / ( L ∩ R ) . The space L ˉ \bar L L ˉ is isotropic, since the P w ′ P_{w'} P w ′ commute, and it has dimension n n n , since ( L ∩ R ⊥ ) ⊥ = L + R (L \cap R^\perp)^\perp= L + R ( L ∩ R ⊥ ) ⊥ = L + R . Thus L ˉ \bar{L} L ˉ is Lagrangian, and likewise M ˉ \bar{M} M ˉ . As
E y ( U ⊗ V ) = V y y U E y with ∣ V y y ∣ = 1 , E_y(U \otimes V) = V_{yy} U E_y \quad\text{with } |V_{yy}| = 1, E y ( U ⊗ V ) = V y y U E y with ∣ V y y ∣ = 1 ,
U A L ˉ U † = E y ( U ⊗ V ) A L ( U ⊗ V ) † E y † = E y A M E y † = A M ˉ , U A_{\bar{L}} U^\dagger= E_y(U \otimes V) A_L (U \otimes V)^\dagger E_y^\dagger= E_y A_M E_y^\dagger= A_{\bar{M}}, U A L ˉ U † = E y ( U ⊗ V ) A L ( U ⊗ V ) † E y † = E y A M E y † = A M ˉ ,
so ( L ˉ , M ˉ ) ∈ L ( U ) (\bar{L}, \bar{M}) \in\mathcal{L}(U) ( L ˉ , M ˉ ) ∈ L ( U ) . If moreover L ⊆ P ( U ⊗ V ) L \subseteq\mathcal{P}(U \otimes V) L ⊆ P ( U ⊗ V ) , then L ˉ ⊆ P ( U ) \bar{L} \subseteq\mathcal{P}(U) L ˉ ⊆ P ( U ) , since ( U ⊗ V ) P w ( U ⊗ V ) † = U P w ˉ U † ⊗ P w ′ (U \otimes V)P_w(U \otimes V)^\dagger= U P_{\bar{w}} U^\dagger\otimes P_{w'} ( U ⊗ V ) P w ( U ⊗ V ) † = U P w ˉ U † ⊗ P w ′ for w ∈ R ⊥ w \in R^\perp w ∈ R ⊥ . This concludes the proof of (2). For the semi-Clifford case with V = I V = I V = I , see also [7 Appendix A] . Finally, if U ∈ C k ( n ) ∖ X ( n ) U \in\mathcal{C}_k(n) \setminus\mathcal{X}(n) U ∈ C k ( n ) ∖ X ( n ) , then U ⊗ I ∈ C k ( N ) ∖ X ( N ) U \otimes I \in\mathcal{C}_k(N) \setminus\mathcal{X}(N) U ⊗ I ∈ C k ( N ) ∖ X ( N ) by (2) with V = I V = I V = I , and C k ( N ) ⊆ C r ( N ) \mathcal{C}_k(N) \subseteq\mathcal{C}_r(N) C k ( N ) ⊆ C r ( N ) for r ≥ k r \ge k r ≥ k .
Lemma A.4. If U A S U † = A T U A_S U^\dagger= A_T U A S U † = A T for isotropic S , T S,T S , T , and U A L U † = A M U A_L U^\dagger= A_M U A L U † = A M for Lagrangians L , M L,M L , M , then
U A S + ( L ∩ S ⊥ ) U † = A T + ( M ∩ T ⊥ ) . U A_{S+(L \cap S^\perp)} U^\dagger= A_{T+(M \cap T^\perp)}. U A S + ( L ∩ S ⊥ ) U † = A T + ( M ∩ T ⊥ ) . Both spaces S + ( L ∩ S ⊥ ) S + (L \cap S^\perp) S + ( L ∩ S ⊥ ) and T + ( M ∩ T ⊥ ) T + (M \cap T^\perp) T + ( M ∩ T ⊥ ) are Lagrangian and contain S S S and T T T , respectively.
Proof. For any K K K , let
A K ′ : = { B : [ B , P k ] = 0 for all k ∈ K } = span C { P v : v ∈ K ⊥ } . A'_K := \{B : [B,P_k] = 0 \text{ for all } k \in K\} = \operatorname{span}_{\mathbb{C}}\{P_v : v \in K^\perp\}. A K ′ := { B : [ B , P k ] = 0 for all k ∈ K } = span C { P v : v ∈ K ⊥ } .
Hence
A L ∩ A S ′ = A L ∩ S ⊥ , A S + ( L ∩ S ⊥ ) = alg ( A S , A L ∩ A S ′ ) , A_L \cap A'_S = A_{L \cap S^\perp}, \qquad A_{S+(L \cap S^\perp)} = \operatorname{alg}(A_S,A_L \cap A'_S), A L ∩ A S ′ = A L ∩ S ⊥ , A S + ( L ∩ S ⊥ ) = alg ( A S , A L ∩ A S ′ ) ,
where alg \operatorname{alg} alg denotes the generated algebra. Conjugation by U U U sends A S , A L , A S ′ A_S,A_L,A'_S A S , A L , A S ′ to A T , A M , A T ′ A_T,A_M,A'_T A T , A M , A T ′ , respectively. Thus
U A S + ( L ∩ S ⊥ ) U † = alg ( A T , A M ∩ A T ′ ) = A T + ( M ∩ T ⊥ ) . U A_{S+(L \cap S^\perp)} U^\dagger= \operatorname{alg}(A_T,A_M \cap A'_T) = A_{T+(M \cap T^\perp)}. U A S + ( L ∩ S ⊥ ) U † = alg ( A T , A M ∩ A T ′ ) = A T + ( M ∩ T ⊥ ) .
Since S S S and L L L are isotropic and every element of L ∩ S ⊥ L \cap S^\perp L ∩ S ⊥ is orthogonal to S S S , the space S + ( L ∩ S ⊥ ) S + (L \cap S^\perp) S + ( L ∩ S ⊥ ) contains S S S and is isotropic. Let s = dim S s = \dim S s = dim S and d = dim ( S ∩ L ) d = \dim(S \cap L) d = dim ( S ∩ L ) . Because L ⊥ = L L^\perp= L L ⊥ = L , the map L → Hom ( S , F 2 ) L \to\operatorname{Hom}(S,\mathbb{F}_2) L → Hom ( S , F 2 ) , ℓ ↦ ω ( ℓ , ⋅ ) ∣ S \ell\mapsto\omega(\ell,\cdot)|_S ℓ ↦ ω ( ℓ , ⋅ ) ∣ S , has kernel L ∩ S ⊥ L \cap S^\perp L ∩ S ⊥ and an image of dimension s − dim ( S ∩ L ⊥ ) = s − d s - \dim(S \cap L^\perp) = s - d s − dim ( S ∩ L ⊥ ) = s − d . Consequently,
dim ( L ∩ S ⊥ ) = n − s + d , dim ( S + ( L ∩ S ⊥ ) ) = s + ( n − s + d ) − d = n . \dim(L \cap S^\perp) = n - s + d, \qquad\dim(S + (L \cap S^\perp)) = s + (n - s + d) - d = n. dim ( L ∩ S ⊥ ) = n − s + d , dim ( S + ( L ∩ S ⊥ )) = s + ( n − s + d ) − d = n .
Thus this space is Lagrangian. The same argument applies to T T T and M M M .
Proposition A.5. For C ∈ C 2 ( m ) C \in\mathcal{C}_2(m) C ∈ C 2 ( m ) and k ≥ 2 k \ge2 k ≥ 2 , diag ( I , C ) ∈ C k ( m + 1 ) \operatorname{diag}(I,C) \in\mathcal{C}_k(m+1) diag ( I , C ) ∈ C k ( m + 1 ) if and only if C 2 k − 2 ∈ μ 4 P ( m ) C^{2^{k-2}} \in\mu_4\mathcal{P}(m) C 2 k − 2 ∈ μ 4 P ( m ) .
This is the controlled jump criterion of Xu and Wang [17 Theorem 3] , and a necessary condition of this form is also given in [18 Corollary 2.4.1] . We include a proof for completeness.
Proof. Let D ( C ) = diag ( I , C ) D(C) = \operatorname{diag}(I,C) D ( C ) = diag ( I , C ) , X c = X ⊗ I X_c = X \otimes I X c = X ⊗ I , and Z c = Z ⊗ I Z_c = Z \otimes I Z c = Z ⊗ I . First consider k = 2 k = 2 k = 2 :
D ( C ) X c D ( C ) † = ∣ 0 ⟩ ⟨ 1 ∣ ⊗ C † + ∣ 1 ⟩ ⟨ 0 ∣ ⊗ C . D(C)X_cD(C)^\dagger= |0\rangle\langle1| \otimes C^\dagger+ |1\rangle\langle0| \otimes C. D ( C ) X c D ( C ) † = ∣0 ⟩ ⟨ 1∣ ⊗ C † + ∣1 ⟩ ⟨ 0∣ ⊗ C .
If D ( C ) D(C) D ( C ) is Clifford, this correction is a Hermitian Pauli anticommuting with Z c Z_c Z c . It must equal ± X ⊗ P p \pm X \otimes P_p ± X ⊗ P p or ± Y ⊗ P p \pm Y \otimes P_p ± Y ⊗ P p for some p ∈ F 2 m p \in\mathbb{F}_2^m p ∈ F 2 m . Comparing the lower-left blocks gives C = ξ P p C = \xi P_p C = ξ P p with ξ ∈ μ 4 \xi\in\mu_4 ξ ∈ μ 4 . Conversely, for C = ξ P p C = \xi P_p C = ξ P p and any q ∈ F 2 m q \in\mathbb{F}_2^m q ∈ F 2 m ,
D ( C ) X c D ( C ) † = ( ξ ˉ ∣ 0 ⟩ ⟨ 1 ∣ + ξ ∣ 1 ⟩ ⟨ 0 ∣ ) ⊗ P p ∈ P ( m + 1 ) , D(C)X_cD(C)^\dagger= (\bar{\xi}|0\rangle\langle1| + \xi|1\rangle\langle0|) \otimes P_p \in\mathcal{P}(m+1), D ( C ) X c D ( C ) † = ( ξ ˉ ∣0 ⟩ ⟨ 1∣ + ξ ∣1 ⟩ ⟨ 0∣ ) ⊗ P p ∈ P ( m + 1 ) ,
D ( C ) ( I ⊗ P q ) D ( C ) † = Z c ω ( p , q ) ( I ⊗ P q ) ∈ P ( m + 1 ) . D(C)(I \otimes P_q)D(C)^\dagger= Z_c^{\omega(p,q)}(I \otimes P_q) \in\mathcal{P}(m+1). D ( C ) ( I ⊗ P q ) D ( C ) † = Z c ω ( p , q ) ( I ⊗ P q ) ∈ P ( m + 1 ) .
Also D ( C ) Z c D ( C ) † = Z c D(C)Z_cD(C)^\dagger= Z_c D ( C ) Z c D ( C ) † = Z c . Since these cover all the Pauli generators, D ( C ) ∈ C 2 D(C) \in\mathcal{C}_2 D ( C ) ∈ C 2 if and only if C ∈ μ 4 P ( m ) C \in\mu_4\mathcal{P}(m) C ∈ μ 4 P ( m ) .
Now let k > 2 k > 2 k > 2 . For every target Pauli Q Q Q , the Clifford property of C C C gives
D ( C ) ( I ⊗ Q ) D ( C ) † = ( I ⊗ Q ) D ( Q † C Q C † ) ∈ C 2 ( m + 1 ) , D(C)(I \otimes Q)D(C)^\dagger= (I \otimes Q)D(Q^\dagger C Q C^\dagger) \in\mathcal{C}_2(m+1), D ( C ) ( I ⊗ Q ) D ( C ) † = ( I ⊗ Q ) D ( Q † C Q C † ) ∈ C 2 ( m + 1 ) ,
since Q † C Q C † Q^\dagger C Q C^\dagger Q † C Q C † is Pauli. The control correction is
D ( C ) X c D ( C ) † = ( I ⊗ C † ) D ( C 2 ) X c . D(C)X_cD(C)^\dagger= (I \otimes C^\dagger)D(C^2)X_c. D ( C ) X c D ( C ) † = ( I ⊗ C † ) D ( C 2 ) X c .
Every other Pauli correction is a product of these. Multiplication by a Clifford preserves C k − 1 \mathcal{C}_{k-1} C k − 1 , so D ( C ) ∈ C k ⟺ D ( C 2 ) ∈ C k − 1 D(C) \in\mathcal{C}_k \Longleftrightarrow D(C^2) \in\mathcal{C}_{k-1} D ( C ) ∈ C k ⟺ D ( C 2 ) ∈ C k − 1 . Iterating this equivalence and applying the base case gives
D ( C ) ∈ C k ⟺ D ( C 2 k − 2 ) ∈ C 2 ⟺ C 2 k − 2 ∈ μ 4 P ( m ) . D(C) \in\mathcal{C}_k \Longleftrightarrow D(C^{2^{k-2}}) \in\mathcal{C}_2 \Longleftrightarrow C^{2^{k-2}} \in\mu_4\mathcal{P}(m). D ( C ) ∈ C k ⟺ D ( C 2 k − 2 ) ∈ C 2 ⟺ C 2 k − 2 ∈ μ 4 P ( m ) .
C3(n) in SC(n) for n<=6
We now show that every third-level gate on at most six qubits is semi-Clifford. We note that this result is sharp in the sense that there exists a seven-qubit third-level gate that is not semi-Clifford [3 ] .
Recall that by [3 ] and [7 ] , a third-level gate on n ≤ 6 n \le6 n ≤ 6 qubits agrees, up to Clifford gates on both sides, with a gate M ∣ x , y ⟩ = e i θ ( x , y ) ∣ x , y + q ( x ) ⟩ M|x,y\rangle= e^{i\theta(x,y)}|x,y+q(x)\rangle M ∣ x , y ⟩ = e i θ ( x , y ) ∣ x , y + q ( x )⟩ on r r r control and m m m target qubits, where r + m = n r+m=n r + m = n and q q q is quadratic. Without the phase θ \theta θ , Hadamard gates on the targets make M M M diagonal, so only θ \theta θ can keep M M M from being semi-Clifford. We begin with three lemmas.
Lemma B.1. For g : F 2 r → F 2 g:\mathbb{F}_2^r \to\mathbb{F}_2 g : F 2 r → F 2 let D g = ∑ x ( − 1 ) g ( x ) ∣ x ⟩ ⟨ x ∣ D_g=\sum_x(-1)^{g(x)}|x\rangle\langle x| D g = ∑ x ( − 1 ) g ( x ) ∣ x ⟩ ⟨ x ∣ . Then the following hold.
D g D_g D g is Pauli if and only if g g g is affine.
D g ∈ C 2 ( r ) D_g \in C_2(r) D g ∈ C 2 ( r ) if and only if deg g ≤ 2 \deg g \le2 deg g ≤ 2 .
Proof. Suppose first D g D_g D g is Pauli, i.e., D g = λ X a Z b D_g=\lambda X^aZ^b D g = λ X a Z b with λ ∈ { ± 1 , ± i } \lambda\in\{\pm1,\pm i\} λ ∈ { ± 1 , ± i } . Since D g D_g D g is Hermitian diagonal in the computational basis, a = 0 a=0 a = 0 and there exists c ∈ F 2 c\in\mathbb{F}_2 c ∈ F 2 such that λ = ( − 1 ) c \lambda=(-1)^c λ = ( − 1 ) c . Thus, D g ∣ x ⟩ = ( − 1 ) g ( x ) ∣ x ⟩ = ( − 1 ) b ⋅ x + c ∣ x ⟩ D_g|x\rangle=(-1)^{g(x)}|x\rangle=(-1)^{b\cdot x+c}|x\rangle D g ∣ x ⟩ = ( − 1 ) g ( x ) ∣ x ⟩ = ( − 1 ) b ⋅ x + c ∣ x ⟩ for all x x x . Hence g ( x ) = b ⋅ x + c g(x)=b\cdot x+c g ( x ) = b ⋅ x + c is affine. Conversely, D b ⋅ x + c = ( − 1 ) c Z b D_{b\cdot x+c}=(-1)^cZ^b D b ⋅ x + c = ( − 1 ) c Z b .
Next, since D g D_g D g commutes with every Z b Z^b Z b , it is Clifford if and only if D g X a D g † D_gX^aD_g^\dagger D g X a D g † is Pauli for every a a a . Notice that
D g X a D g † = X a ∑ x ( − 1 ) g ( x + a ) + g ( x ) ∣ x ⟩ ⟨ x ∣ . D_gX^aD_g^\dagger=X^a\sum_x(-1)^{g(x+a)+g(x)}|x\rangle\langle x|. D g X a D g † = X a x ∑ ( − 1 ) g ( x + a ) + g ( x ) ∣ x ⟩ ⟨ x ∣.
By (1), this is Pauli for every a a a if and only if g ( x + a ) + g ( x ) g(x+a)+g(x) g ( x + a ) + g ( x ) is affine for every a a a , i.e., when deg g ≤ 2 \deg g\le2 deg g ≤ 2 .
Lemma B.2. Let R = F 2 r R=\mathbb{F}_2^r R = F 2 r . Then the following hold.
Let ϕ : R × R → F 2 2 m \phi:R\times R\to\mathbb{F}_2^{2m} ϕ : R × R → F 2 2 m be alternating bilinear with ω ( ϕ ( b , a ) , ϕ ( b , c ) ) = 0 \omega(\phi(b,a),\phi(b,c))=0 ω ( ϕ ( b , a ) , ϕ ( b , c )) = 0 for all a , b , c ∈ R a,b,c\in R a , b , c ∈ R . If r ≤ 3 r\le3 r ≤ 3 or m ≤ 2 m\le2 m ≤ 2 , then W ϕ = span { ϕ ( a , b ) : a , b ∈ R } W_\phi=\operatorname{span}\{\phi(a,b):a,b\in R\} W ϕ = span { ϕ ( a , b ) : a , b ∈ R } is isotropic.
Let W = F 2 m W=\mathbb{F}_2^m W = F 2 m and let β : R × R → W \beta:R\times R\to W β : R × R → W be alternating bilinear with values spanning W W W ; write G b ∈ Hom ( R , W ) G_b\in\operatorname{Hom}(R,W) G b ∈ Hom ( R , W ) for G b a = β ( b , a ) G_ba=\beta(b,a) G b a = β ( b , a ) . Let w ↦ E w ∈ Hom ( W , R ) w\mapsto E_w\in\operatorname{Hom}(W,R) w ↦ E w ∈ Hom ( W , R ) be linear, with E w G b E_wG_b E w G b symmetric for all w ∈ W w\in W w ∈ W , b ∈ R b\in R b ∈ R , and E w ′ w = E w ′ w E_{w'}w=E_{w'}w E w ′ w = E w ′ w for all w , w ′ ∈ W w,w'\in W w , w ′ ∈ W . If r + m ≤ 6 r+m\le6 r + m ≤ 6 , then E w = 0 E_w=0 E w = 0 for all w w w .
Proof. Since ϕ \phi ϕ is alternating and ω ( ϕ ( b , a ) , ϕ ( b , c ) ) = 0 \omega(\phi(b,a),\phi(b,c))=0 ω ( ϕ ( b , a ) , ϕ ( b , c )) = 0 , the 4-form
τ ( a , b , c , d ) : = ω ( ϕ ( a , b ) , ϕ ( c , d ) ) a , b , c , d ∈ F 2 r \tau(a,b,c,d):=\omega(\phi(a,b),\phi(c,d)) \qquad a,b,c,d\in\mathbb{F}_2^r τ ( a , b , c , d ) := ω ( ϕ ( a , b ) , ϕ ( c , d )) a , b , c , d ∈ F 2 r
is alternating. Therefore, if τ ( a , b , c , d ) = 1 \tau(a,b,c,d)=1 τ ( a , b , c , d ) = 1 , then a , b , c , d a,b,c,d a , b , c , d are linearly independent over F 2 \mathbb{F}_2 F 2 and hence r ≥ 4 r\ge4 r ≥ 4 . Consequently, for
( p 1 , … , p 6 ) = ( ϕ ( a , b ) , ϕ ( c , d ) , ϕ ( a , c ) , ϕ ( b , d ) , ϕ ( a , d ) , ϕ ( b , c ) ) , (p_1,\ldots,p_6)=(\phi(a,b),\phi(c,d),\phi(a,c),\phi(b,d),\phi(a,d),\phi(b,c)), ( p 1 , … , p 6 ) = ( ϕ ( a , b ) , ϕ ( c , d ) , ϕ ( a , c ) , ϕ ( b , d ) , ϕ ( a , d ) , ϕ ( b , c )) ,
we obtain that
( ω ( p i , p j ) ) i , j = 1 6 = ( 0 1 1 0 ) ⊕ 3 . \left(\omega(p_i,p_j)\right)_{i,j=1}^{6}=
\begin{pmatrix}0&1\\1&0\end{pmatrix}^{\oplus3}. ( ω ( p i , p j ) ) i , j = 1 6 = ( 0 1 1 0 ) ⊕ 3 .
This matrix is nonsingular, so p 1 , … , p 6 p_1,\ldots,p_6 p 1 , … , p 6 are linearly independent, and 2 m ≥ 6 2m\ge6 2 m ≥ 6 . Hence τ ≠ 0 \tau\ne0 τ = 0 forces r ≥ 4 r\ge4 r ≥ 4 and m ≥ 3 m\ge3 m ≥ 3 , and under the hypothesis τ = 0 \tau=0 τ = 0 , so ω ( x , y ) = 0 \omega(x,y)=0 ω ( x , y ) = 0 for all x , y ∈ W ϕ x,y\in W_\phi x , y ∈ W ϕ and W ϕ W_\phi W ϕ is isotropic.
Next, for E ∈ Hom ( W , R ) E\in\operatorname{Hom}(W,R) E ∈ Hom ( W , R ) , define Φ β ( E ) ∈ R ∗ ⊗ ⋀ 2 R ∗ \Phi_\beta(E)\in R^*\otimes\bigwedge^2R^* Φ β ( E ) ∈ R ∗ ⊗ ⋀ 2 R ∗ by
Φ β ( E ) ( x , a , b ) = x T E β ( a , b ) . \Phi_\beta(E)(x,a,b)=x^{T}E\beta(a,b). Φ β ( E ) ( x , a , b ) = x T E β ( a , b ) .
Then Φ β \Phi_\beta Φ β is injective by surjectivity of β \beta β . Consider α w ( x , a , b ) : = x T E w β ( a , b ) = Φ β ( E w ) ( x , a , b ) \alpha_w(x,a,b):=x^{T}E_w\beta(a,b)=\Phi_\beta(E_w)(x,a,b) α w ( x , a , b ) := x T E w β ( a , b ) = Φ β ( E w ) ( x , a , b ) . By the bilinearity of β \beta β , we have that α w \alpha_w α w is trilinear. Moreover, since β ( a , a ) = 0 \beta(a,a)=0 β ( a , a ) = 0 and E w G a E_wG_a E w G a , E w G b E_wG_b E w G b are symmetric,
α w ( x , a , a ) = 0 , α w ( a , a , b ) = a T E w G a b = b T E w G a a = 0 , α w ( b , a , b ) = 0 ⟹ α w ∈ ⋀ 3 R ∗ . \alpha_w(x,a,a)=0,\qquad\alpha_w(a,a,b)=a^{T}E_wG_ab=b^{T}E_wG_aa=0,\qquad\alpha_w(b,a,b)=0\Longrightarrow\alpha_w\in\bigwedge^3R^*. α w ( x , a , a ) = 0 , α w ( a , a , b ) = a T E w G a b = b T E w G a a = 0 , α w ( b , a , b ) = 0 ⟹ α w ∈ ⋀ 3 R ∗ .
Suppose for contradiction that E w ≠ 0 E_w\ne0 E w = 0 . Since Φ β \Phi_\beta Φ β is injective, α w = Φ β ( E w ) \alpha_w=\Phi_\beta(E_w) α w = Φ β ( E w ) is a nonzero alternating three-form. Consider its contraction map
κ α w : ⋀ 2 R → R ∗ , κ α w ( a ∧ b ) ( x ) = α w ( x , a , b ) . \kappa_{\alpha_w}:\bigwedge^2R\to R^*,\qquad\kappa_{\alpha_w}(a\wedge b)(x)=\alpha_w(x,a,b). κ α w : ⋀ 2 R → R ∗ , κ α w ( a ∧ b ) ( x ) = α w ( x , a , b ) .
Identifying R ≅ R ∗ R\cong R^* R ≅ R ∗ , it is straightforward to check that κ α w \kappa_{\alpha_w} κ α w is the composition
⋀ 2 R → β W → E w R ≅ R ∗ . \bigwedge^2R\xrightarrow{\ \beta\ }W\xrightarrow{\ E_w\ }R\cong R^*. ⋀ 2 R β W E w R ≅ R ∗ .
Since β \beta β is surjective, rank κ α w = rank E w \operatorname{rank}\kappa_{\alpha_w}=\operatorname{rank}E_w rank κ α w = rank E w . Let x , a , b ∈ R x,a,b\in R x , a , b ∈ R such that α w ( x , a , b ) = 1 \alpha_w(x,a,b)=1 α w ( x , a , b ) = 1 . Then the three functionals κ α w ( a ∧ b ) \kappa_{\alpha_w}(a\wedge b) κ α w ( a ∧ b ) , κ α w ( b ∧ x ) \kappa_{\alpha_w}(b\wedge x) κ α w ( b ∧ x ) , and κ α w ( x ∧ a ) \kappa_{\alpha_w}(x\wedge a) κ α w ( x ∧ a ) are linearly independent. Therefore rank E w = rank κ α w ≥ 3 \operatorname{rank}E_w=\operatorname{rank}\kappa_{\alpha_w}\ge3 rank E w = rank κ α w ≥ 3 . Since E w : W → R E_w:W\to R E w : W → R , we have r ≥ 3 r\ge3 r ≥ 3 and m ≥ 3 m\ge3 m ≥ 3 . Since r + m ≤ 6 r+m\le6 r + m ≤ 6 , r = m = 3 r=m=3 r = m = 3 .
Since dim ( Φ − 1 ( Λ 3 R ∗ ) ) ≤ 1 \dim(\Phi^{-1}(\Lambda^3R^*))\le1 dim ( Φ − 1 ( Λ 3 R ∗ )) ≤ 1 as dim Λ 3 R ∗ = 1 \dim\Lambda^3R^*=1 dim Λ 3 R ∗ = 1 for r = 3 r=3 r = 3 , linearity gives E w = λ ( w ) E ∗ E_w=\lambda(w)E_* E w = λ ( w ) E ∗ for a nonzero λ ∈ W ∗ \lambda\in W^* λ ∈ W ∗ and E ∗ E_* E ∗ invertible. Choose w w w with λ ( w ) = 1 \lambda(w)=1 λ ( w ) = 1 and nonzero w ′ ∈ ker λ w'\in\ker\lambda w ′ ∈ ker λ . Then E w w ′ = E w ′ w E_ww'=E_{w'}w E w w ′ = E w ′ w gives E ∗ w ′ = 0 E_*w'=0 E ∗ w ′ = 0 , a contradiction. Therefore, E w = 0 E_w=0 E w = 0 .
Lemma B.3. If Q ∈ U ( 2 m ) Q\in\mathrm{U}(2^m) Q ∈ U ( 2 m ) and Q P v Q † = P v QP_vQ^\dagger=P_v Q P v Q † = P v for every v ∈ F 2 2 m v\in\mathbb{F}_2^{2m} v ∈ F 2 2 m , then Q = P Q=P Q = P for a Pauli P P P .
Proof. Since Q X j Q † QX_jQ^\dagger Q X j Q † and Q Z j Q † QZ_jQ^\dagger Q Z j Q † are Hermitian with square I I I ,
Q X j Q † = ϵ j X j , Q Z j Q † = δ j Z j where ϵ j , δ j ∈ { ± 1 } . QX_jQ^\dagger=\epsilon_jX_j,\qquad QZ_jQ^\dagger=\delta_jZ_j\qquad\text{where }\epsilon_j,\delta_j\in\{\pm1\}. Q X j Q † = ϵ j X j , Q Z j Q † = δ j Z j where ϵ j , δ j ∈ { ± 1 } . Choose a , b ∈ F 2 m a,b\in\mathbb{F}_2^m a , b ∈ F 2 m such that ( − 1 ) b j = ϵ j (-1)^{b_j}=\epsilon_j ( − 1 ) b j = ϵ j and ( − 1 ) a j = δ j (-1)^{a_j}=\delta_j ( − 1 ) a j = δ j for every j j j , and let P = X a Z b P=X^aZ^b P = X a Z b . Then P P P has the same conjugation action as Q Q Q on every X j X_j X j and Z j Z_j Z j . Hence P † Q P^\dagger Q P † Q commutes with all Pauli operators, and therefore with the full matrix algebra. It follows that P † Q P^\dagger Q P † Q is scalar.
The main tool is the following proposition on block-diagonal gates whose blocks are scalar multiples of Pauli gates. We reduce M M M to this form in the proof of Theorem B.5.
Proposition B.4. Let r , m ≥ 0 r,m\ge0 r , m ≥ 0 , v : F 2 r → F 2 2 m v:\mathbb{F}_2^r\to\mathbb{F}_2^{2m} v : F 2 r → F 2 2 m , and ζ : F 2 r → T \zeta:\mathbb{F}_2^r\to\mathbb{T} ζ : F 2 r → T . Consider
N : = ∑ x ∈ F 2 r ζ ( x ) ∣ x ⟩ ⟨ x ∣ ⊗ P v ( x ) . N:=\sum_{x\in\mathbb{F}_2^r}\zeta(x)|x\rangle\langle x|\otimes P_{v(x)}. N := x ∈ F 2 r ∑ ζ ( x ) ∣ x ⟩ ⟨ x ∣ ⊗ P v ( x ) . If N ∈ C 3 ( r + m ) N\in\mathcal{C}_3(r+m) N ∈ C 3 ( r + m ) and either r ≤ 3 r\le3 r ≤ 3 or m ≤ 2 m\le2 m ≤ 2 , then N ∈ S C ( r + m ) N\in\mathrm{SC}(r+m) N ∈ SC ( r + m ) .
Proof. Let u ∈ F 2 2 m u\in\mathbb{F}_2^{2m} u ∈ F 2 2 m . For
D u : = ∑ x ( − 1 ) ω ( v ( x ) , u ) ∣ x ⟩ ⟨ x ∣ , D_u:=\sum_x(-1)^{\omega(v(x),u)}|x\rangle\langle x|, D u := x ∑ ( − 1 ) ω ( v ( x ) , u ) ∣ x ⟩ ⟨ x ∣ , we have that
N ( I ⊗ P u ) N † = D u ⊗ P u ∈ C 2 ( r + m ) . N(I\otimes P_u)N^\dagger=D_u\otimes P_u\in\mathcal{C}_2(r+m). N ( I ⊗ P u ) N † = D u ⊗ P u ∈ C 2 ( r + m ) . Thus, D u ⊗ I = ( I ⊗ P u ) ( D u ⊗ P u ) ∈ C 2 ( r + m ) D_u\otimes I=(I\otimes P_u)(D_u\otimes P_u)\in\mathcal{C}_2(r+m) D u ⊗ I = ( I ⊗ P u ) ( D u ⊗ P u ) ∈ C 2 ( r + m ) and hence D u ∈ C 2 ( r ) D_u\in\mathcal{C}_2(r) D u ∈ C 2 ( r ) . By Lemma B.1(2), x ↦ ω ( v ( x ) , u ) x\mapsto\omega(v(x),u) x ↦ ω ( v ( x ) , u ) is quadratic.
Next, we show that we may without loss of generality assume v ( x ) = ∑ i < j x i x j v i j v(x)=\sum_{i<j}x_ix_jv_{ij} v ( x ) = ∑ i < j x i x j v ij . Since ω \omega ω is nondegenerate, we have
v ( x ) = v 0 + ℓ ( x ) + ∑ i < j x i x j v i j , v(x)=v_0+\ell(x)+\sum_{i<j}x_ix_jv_{ij}, v ( x ) = v 0 + ℓ ( x ) + i < j ∑ x i x j v ij , where ℓ : F 2 r → F 2 2 m \ell:\mathbb{F}_2^r\to\mathbb{F}_2^{2m} ℓ : F 2 r → F 2 2 m is linear. Let A A A be the product of I ⊗ P v 0 I\otimes P_{v_0} I ⊗ P v 0 and the gates ∑ x i ∈ F 2 ∣ x i ⟩ ⟨ x i ∣ ⊗ P ℓ ∗ ( e i ) \sum_{x_i\in\mathbb{F}_2}|x_i\rangle\langle x_i|\otimes P_{\ell^*(e_i)} ∑ x i ∈ F 2 ∣ x i ⟩ ⟨ x i ∣ ⊗ P ℓ ∗ ( e i ) , 1 ≤ i ≤ r 1\le i\le r 1 ≤ i ≤ r , each controlled by one qubit and Clifford by Proposition A.5 with k = 2 k=2 k = 2 . Then A = ∑ x λ ( x ) ∣ x ⟩ ⟨ x ∣ ⊗ P v 0 + ℓ ( x ) A=\sum_x\lambda(x)|x\rangle\langle x|\otimes P_{v_0+\ell(x)} A = ∑ x λ ( x ) ∣ x ⟩ ⟨ x ∣ ⊗ P v 0 + ℓ ( x ) with λ ( x ) ∈ μ 4 \lambda(x)\in\mu_4 λ ( x ) ∈ μ 4 , so A † N A^\dagger N A † N is again of the form of N N N , with labels v ( x ) + v 0 + ℓ ( x ) v(x)+v_0+\ell(x) v ( x ) + v 0 + ℓ ( x ) and phases absorbed into ζ \zeta ζ , and by Lemma 4(1) it satisfies the hypotheses exactly when N N N does and is semi-Clifford exactly when N N N is. We may therefore assume v 0 = 0 v_0=0 v 0 = 0 and ℓ = 0 \ell=0 ℓ = 0 . Let
ϕ ( a , b ) : = v ( a + b ) + v ( a ) + v ( b ) , W ϕ : = span { ϕ ( a , b ) : a , b ∈ F 2 r } . \phi(a,b):=v(a+b)+v(a)+v(b),\qquad W_\phi:=\operatorname{span}\{\phi(a,b):a,b\in\mathbb{F}_2^r\}. ϕ ( a , b ) := v ( a + b ) + v ( a ) + v ( b ) , W ϕ := span { ϕ ( a , b ) : a , b ∈ F 2 r } . Since v i j = ϕ ( e i , e j ) v_{ij}=\phi(e_i,e_j) v ij = ϕ ( e i , e j ) , v ( x ) ∈ W ϕ v(x)\in W_\phi v ( x ) ∈ W ϕ for every x x x .
For b ∈ F 2 r b\in\mathbb{F}_2^r b ∈ F 2 r , let K b : = N ( X b ⊗ I ) N † ∈ C 2 ( r + m ) K_b:=N(X_b\otimes I)N^\dagger\in\mathcal{C}_2(r+m) K b := N ( X b ⊗ I ) N † ∈ C 2 ( r + m ) . Explicitly,
K b = ∑ x c b ( x ) ∣ x + b ⟩ ⟨ x ∣ ⊗ P v ( x + b ) P v ( x ) K_b=\sum_xc_b(x)|x+b\rangle\langle x|\otimes P_{v(x+b)}P_{v(x)} K b = x ∑ c b ( x ) ∣ x + b ⟩ ⟨ x ∣ ⊗ P v ( x + b ) P v ( x ) with c b ( x ) ∈ T c_b(x)\in\mathbb{T} c b ( x ) ∈ T , and P v ( x + b ) P v ( x ) ≐ P v ( b ) + ϕ ( b , x ) P_{v(x+b)}P_{v(x)}\doteq P_{v(b)+\phi(b,x)} P v ( x + b ) P v ( x ) ≐ P v ( b ) + ϕ ( b , x ) . Consider F 2 r ⊕ F 2 2 m ⊕ F 2 r \mathbb{F}_2^r\oplus\mathbb{F}_2^{2m}\oplus\mathbb{F}_2^r F 2 r ⊕ F 2 2 m ⊕ F 2 r , where a triple ( a , u , c ) (a,u,c) ( a , u , c ) represents, up to phase, the Pauli X a Z c ⊗ P u X^aZ^c\otimes P_u X a Z c ⊗ P u . Since K b ∈ C 2 ( r + m ) K_b\in\mathcal{C}_2(r+m) K b ∈ C 2 ( r + m ) , K b P w K b † ≐ P F b ( w ) K_bP_wK_b^\dagger\doteq P_{F_b(w)} K b P w K b † ≐ P F b ( w ) for all w ∈ F 2 2 ( r + m ) w\in\mathbb{F}_2^{2(r+m)} w ∈ F 2 2 ( r + m ) . Hence F b F_b F b is a linear map which, with respect to the decomposition F 2 r ⊕ F 2 2 m ⊕ F 2 r \mathbb{F}_2^r\oplus\mathbb{F}_2^{2m}\oplus\mathbb{F}_2^r F 2 r ⊕ F 2 2 m ⊕ F 2 r , is represented by the matrix
F b = ( I 0 0 ϕ b I 0 ε b ϕ b ∗ I ) , ϕ b ( a ) = ϕ ( b , a ) , F_b=
\begin{pmatrix}
I&0&0\\
\phi_b&I&0\\
\varepsilon_b&\phi_b^*&I
\end{pmatrix},
\qquad\phi_b(a)=\phi(b,a), F b = I ϕ b ε b 0 I ϕ b ∗ 0 0 I , ϕ b ( a ) = ϕ ( b , a ) , where ϕ b ∗ \phi_b^* ϕ b ∗ is the adjoint of ϕ b \phi_b ϕ b for ω \omega ω , that is, ( ϕ b ∗ u ) ⋅ a = ω ( ϕ ( b , a ) , u ) (\phi_b^*u)\cdot a=\omega(\phi(b,a),u) ( ϕ b ∗ u ) ⋅ a = ω ( ϕ ( b , a ) , u ) , and the block ε b \varepsilon_b ε b is not needed. Since K b 2 = I K_b^2=I K b 2 = I , F b 2 = I F_b^2=I F b 2 = I and therefore ϕ b ∗ ϕ b = 0 \phi_b^*\phi_b=0 ϕ b ∗ ϕ b = 0 and ω ( ϕ ( b , a ) , ϕ ( b , c ) ) = 0 \omega(\phi(b,a),\phi(b,c))=0 ω ( ϕ ( b , a ) , ϕ ( b , c )) = 0 . By Lemma B.2(1), W ϕ W_\phi W ϕ is isotropic.
Every isotropic subspace lies in a Lagrangian, so W ϕ ⊆ L W_\phi\subseteq L W ϕ ⊆ L for a Lagrangian L ≤ F 2 2 m L\le\mathbb{F}_2^{2m} L ≤ F 2 2 m . Since Sp ( 2 m , 2 ) \operatorname{Sp}(2m,2) Sp ( 2 m , 2 ) acts transitively on Lagrangian subspaces and every binary symplectic map is induced by a Clifford (the group Sp ( 2 m , 2 ) \operatorname{Sp}(2m,2) Sp ( 2 m , 2 ) is generated
by the transvections t p ( v ) = v + ω ( v , p ) p t_p(v)=v+\omega(v,p)p t p ( v ) = v + ω ( v , p ) p , and t p t_p t p is induced by the Clifford ( I + i P p ) / 2 (I+iP_p)/\sqrt{2} ( I + i P p ) / 2 , choose C ∈ C 2 ( m ) C\in C_2(m) C ∈ C 2 ( m ) whose symplectic action sends L L L to L Z = { ( 0 , z ) : z ∈ F 2 m } L_Z=\{(0,z):z\in\mathbb{F}_2^m\} L Z = {( 0 , z ) : z ∈ F 2 m } . Then ( I ⊗ C ) N ( I ⊗ C † ) (I\otimes C)N(I\otimes C^\dagger) ( I ⊗ C ) N ( I ⊗ C † ) is diagonal in the computational basis and hence semi-Clifford, and N ∈ SC ( r + m ) N\in\operatorname{SC}(r+m) N ∈ SC ( r + m ) follows from Lemma 4(1).
We are now ready to prove the main theorem of this section.
Theorem B.5. For 1 ≤ n ≤ 6 1\le n\le6 1 ≤ n ≤ 6 , C 3 ( n ) ⊆ SC ( n ) C_3(n)\subseteq\operatorname{SC}(n) C 3 ( n ) ⊆ SC ( n ) .
Proof. Let U ∈ C 3 ( n ) U\in C_3(n) U ∈ C 3 ( n ) . By [3 ] and He–Robitaille–Tan [7, Lemma 3.8, Appendix A, and Corollary B.6], U = C 1 M C 2 U=C_1MC_2 U = C 1 M C 2 for some C 1 , C 2 ∈ C 2 ( n ) C_1,C_2\in C_2(n) C 1 , C 2 ∈ C 2 ( n ) , so M ∈ C 3 ( n ) M\in C_3(n) M ∈ C 3 ( n ) by Lemma 4(1), and it suffices to prove M ∈ SC ( n ) M\in\operatorname{SC}(n) M ∈ SC ( n ) where
M ∣ x , y ⟩ = e i θ ( x , y ) ∣ x , y + q ( x ) ⟩ , x ∈ F 2 r , y ∈ F 2 m , r + m = n , (1) M|x,y\rangle=e^{i\theta(x,y)}|x,y+q(x)\rangle,\qquad x\in\mathbb{F}_2^r,\quad y\in\mathbb{F}_2^m,\quad r+m=n, \tag*{(1)} M ∣ x , y ⟩ = e i θ ( x , y ) ∣ x , y + q ( x )⟩ , x ∈ F 2 r , y ∈ F 2 m , r + m = n , (1)
where θ : F 2 r × F 2 m → R \theta:\mathbb{F}_2^r\times\mathbb{F}_2^m\to\mathbb{R} θ : F 2 r × F 2 m → R and q ( x ) = ∑ i < j x i x j q i j q(x)=\sum_{i<j}x_ix_jq_{ij} q ( x ) = ∑ i < j x i x j q ij with q i j ∈ F 2 m q_{ij}\in\mathbb{F}_2^m q ij ∈ F 2 m . Note that β ( a , b ) = q ( a + b ) + q ( a ) + q ( b ) \beta(a,b)=q(a+b)+q(a)+q(b) β ( a , b ) = q ( a + b ) + q ( a ) + q ( b ) is an alternating bilinear map. Let S = span { β ( a , b ) : a , b ∈ F 2 r } = span { q i j : i < j } S=\operatorname{span}\{\beta(a,b):a,b\in\mathbb{F}_2^r\}=\operatorname{span}\{q_{ij}:i<j\} S = span { β ( a , b ) : a , b ∈ F 2 r } = span { q ij : i < j } and F 2 m = S ⊕ T \mathbb{F}_2^m=S\oplus T F 2 m = S ⊕ T . In a basis of F 2 m \mathbb{F}_2^m F 2 m adapted to S ⊕ T S\oplus T S ⊕ T , write y = ( y S , y T ) y=(y_S,y_T) y = ( y S , y T ) ; this change of basis of the second register is a CNOT circuit, hence Clifford, so by Lemma 4(1) we may use it. Since q ( x ) ∈ S q(x)\in S q ( x ) ∈ S , (B.1) becomes M ∣ x , y S , y T ⟩ = e i θ ∣ x , y S + q ( x ) , y T ⟩ M|x,y_S,y_T\rangle=e^{i\theta}|x,y_S+q(x),y_T\rangle M ∣ x , y S , y T ⟩ = e i θ ∣ x , y S + q ( x ) , y T ⟩ , which does not change y T y_T y T , so ( x , y T ) (x,y_T) ( x , y T ) may serve as the first register, with the same q q q . Thus, after redefining r r r and m m m without changing r + m = n r+m=n r + m = n , we may assume that the values of β \beta β span F 2 m \mathbb{F}_2^m F 2 m . If m = 0 m=0 m = 0 , then M M M is diagonal and the result follows.
Assume m > 0 m>0 m > 0 . It remains only to prove the following claim.
Claim. There exists C ∈ C 2 ( m ) C\in C_2(m) C ∈ C 2 ( m ) such that
M ( I ⊗ C ) = ∑ x ∈ F 2 r ζ ( x ) ∣ x ⟩ ⟨ x ∣ ⊗ P v ( x ) , v ( x ) ∈ F 2 2 m , ζ ( x ) ∈ T . (2) M(I\otimes C)=\sum_{x\in\mathbb{F}_2^r}\zeta(x)|x\rangle\langle x|\otimes P_{v(x)},\qquad v(x)\in\mathbb{F}_2^{2m},\quad\zeta(x)\in\mathbb{T}. \tag*{(2)} M ( I ⊗ C ) = x ∈ F 2 r ∑ ζ ( x ) ∣ x ⟩ ⟨ x ∣ ⊗ P v ( x ) , v ( x ) ∈ F 2 2 m , ζ ( x ) ∈ T . (2)
Indeed, if the claim holds, then r + m = n ≤ 6 r+m=n\le6 r + m = n ≤ 6 implies r ≤ 3 r\le3 r ≤ 3 or m ≤ 2 m\le2 m ≤ 2 , so M ( I ⊗ C ) M(I\otimes C) M ( I ⊗ C ) is semi-Clifford by Proposition B.4. Since U U U , M M M , and M ( I ⊗ C ) M(I\otimes C) M ( I ⊗ C ) differ by left and right Clifford multiplication, U ∈ SC ( n ) U\in\operatorname{SC}(n) U ∈ SC ( n ) by Lemma 4.
We now prove the claim. Let R = F 2 r R=\mathbb{F}_2^r R = F 2 r , W = F 2 m W=\mathbb{F}_2^m W = F 2 m , and M = ∑ x ∣ x ⟩ ⟨ x ∣ ⊗ M x M=\sum_x|x\rangle\langle x|\otimes M_x M = ∑ x ∣ x ⟩ ⟨ x ∣ ⊗ M x . Regard β \beta β as a surjection ⋀ 2 R → W \bigwedge^2R\to W ⋀ 2 R → W . For w ∈ W w\in W w ∈ W , since M ∈ C 3 ( n ) M\in C_3(n) M ∈ C 3 ( n ) , h w = M ( I ⊗ X w ) M † ∈ C 2 ( n ) h_w=M(I\otimes X^w)M^\dagger\in C_2(n) h w = M ( I ⊗ X w ) M † ∈ C 2 ( n ) . A direct calculation in the computational basis shows that h w = D w ( I ⊗ X w ) h_w=D_w(I\otimes X^w) h w = D w ( I ⊗ X w ) , where D w ∈ C 2 ( n ) D_w\in C_2(n) D w ∈ C 2 ( n ) is a diagonal gate. As D w D_w D w is a diagonal Clifford gate, there is B w ∈ F 2 ( r + m ) × ( r + m ) B_w\in\mathbb{F}_2^{(r+m)\times(r+m)} B w ∈ F 2 ( r + m ) × ( r + m ) such that
D w X u D w † . = X u Z B w u , B w = ( A w E w E w T F w ) . D_wX^uD_w^\dagger\mathrel{.=}X^uZ^{B_wu},\qquad
B_w=\begin{pmatrix}A_w&E_w\\E_w^{\mathsf T}&F_w\end{pmatrix}. D w X u D w † . = X u Z B w u , B w = ( A w E w T E w F w ) .
The matrix B w B_w B w is symmetric, since X u X^u X u and X u ′ X^{u'} X u ′ commute and so do their images, which gives u T B w u ′ = u ′ T B w u u^{\mathsf T}B_wu'=u'^{\mathsf T}B_wu u T B w u ′ = u ′ T B w u . For b ∈ R b\in R b ∈ R , let g b : = M ( X b ⊗ I ) M † g_b:=M(X^b\otimes I)M^\dagger g b := M ( X b ⊗ I ) M † . A direct computation gives
g b ∣ x , y ⟩ . = ∣ x + b , y + q ( x ) + q ( x + b ) ⟩ = ∣ x + b , y + q ( b ) + β ( b , x ) ⟩ . g_b|x,y\rangle\mathrel{.=}|x+b,y+q(x)+q(x+b)\rangle=|x+b,y+q(b)+\beta(b,x)\rangle. g b ∣ x , y ⟩ . = ∣ x + b , y + q ( x ) + q ( x + b )⟩ = ∣ x + b , y + q ( b ) + β ( b , x )⟩ .
Its linear part is therefore ( a , w ) ↦ ( a , w + β ( b , a ) ) (a,w)\mapsto(a,w+\beta(b,a)) ( a , w ) ↦ ( a , w + β ( b , a )) , which, relative to the decomposition R ⊕ W R\oplus W R ⊕ W , is represented by
L b = ( I 0 G b I ) , G b : R → W , G b a : = β ( b , a ) . L_b=\begin{pmatrix}I&0\\G_b&I\end{pmatrix},\qquad G_b:R\to W,\quad G_ba:=\beta(b,a). L b = ( I G b 0 I ) , G b : R → W , G b a := β ( b , a ) .
Since h w h w ′ = h w + w ′ h_wh_{w'}=h_{w+w'} h w h w ′ = h w + w ′ and g b g_b g b , h w h_w h w , h w ′ h_{w'} h w ′ pairwise commute,
B w + w ′ = B w + B w ′ , L b T B w L b = B w , B w w ~ ′ = B w ′ w ~ , B_{w+w'}=B_w+B_{w'},\qquad L_b^{\mathsf T}B_wL_b=B_w,\qquad B_w\widetilde{w}'=B_{w'}\widetilde{w}, B w + w ′ = B w + B w ′ , L b T B w L b = B w , B w w ′ = B w ′ w ,
where w ~ = ( 0 , w ) ∈ R ⊕ W \widetilde{w}=(0,w)\in R\oplus W w = ( 0 , w ) ∈ R ⊕ W . Indeed, D w + w ′ = D w ⋅ X w ~ D w ′ X w ~ D_{w+w'}=D_w\cdot X^{\widetilde{w}}D_{w'}X^{\widetilde{w}} D w + w ′ = D w ⋅ X w D w ′ X w , and a shift does not change the matrix of a diagonal Clifford. The gate g b g_b g b is an affine permutation with linear part L b L_b L b times a diagonal Clifford, so conjugation by g b g_b g b fixes X w ~ X^{\widetilde{w}} X w up to a diagonal Pauli and replaces B w B_w B w by L b T B w L b L_b^{\mathsf T}B_wL_b L b T B w L b . Finally, h w h w ′ = h w ′ h w h_wh_{w'}=h_{w'}h_w h w h w ′ = h w ′ h w equates Z B w w ~ ′ Z^{B_w\widetilde{w}'} Z B w w ′ and Z B w ′ w ~ Z^{B_{w'}\widetilde{w}} Z B w ′ w up to a scalar. In particular, w ↦ E w w\mapsto E_w w ↦ E w is linear.
Since
L b T B w L b = ( A w + E w G b + G b T E w T + G b T F w G b E w + G b T F w E w T + F w G b F w ) = B w = ( A w E w E w T F w ) , L_b^{\mathsf T}B_wL_b=
\begin{pmatrix}
A_w+E_wG_b+G_b^{\mathsf T}E_w^{\mathsf T}+G_b^{\mathsf T}F_wG_b&E_w+G_b^{\mathsf T}F_w\\
E_w^{\mathsf T}+F_wG_b&F_w
\end{pmatrix}
=B_w=
\begin{pmatrix}
A_w&E_w\\
E_w^{\mathsf T}&F_w
\end{pmatrix}, L b T B w L b = ( A w + E w G b + G b T E w T + G b T F w G b E w T + F w G b E w + G b T F w F w ) = B w = ( A w E w T E w F w ) ,
we obtain that
F w G b = 0 , E w G b + G b T E w T = 0. F_wG_b=0,\qquad E_wG_b+G_b^{\mathsf T}E_w^{\mathsf T}=0. F w G b = 0 , E w G b + G b T E w T = 0.
Consequently, F w = 0 F_w=0 F w = 0 since the images of the G b G_b G b span W W W . The second identity says that E w G b E_wG_b E w G b is symmetric for every b ∈ R b\in R b ∈ R , and B w w ~ ′ = B w ′ w ~ B_w\widetilde{w}'=B_{w'}\widetilde{w} B w w ′ = B w ′ w with F w = 0 F_w=0 F w = 0 gives E w w ′ = E w ′ w E_ww'=E_{w'}w E w w ′ = E w ′ w . Lemma B.2(2) gives E w = 0 E_w=0 E w = 0 . Therefore, B w ( 0 , a ) = 0 B_w(0,a)=0 B w ( 0 , a ) = 0 for all a , w ∈ W a,w\in W a , w ∈ W . Fix w ∈ W w\in W w ∈ W . Since D w D_w D w is a diagonal Clifford and B w ( 0 , a ) = 0 B_w(0,a)=0 B w ( 0 , a ) = 0 , we have that for a ∈ W a\in W a ∈ W , there exists χ w ( a ) ∈ { ± 1 } \chi_w(a)\in\{\pm1\} χ w ( a ) ∈ { ± 1 } such that
D w ( I ⊗ X a ) D w † = χ w ( a ) ( I ⊗ X a ) . (3) D_w(I\otimes X^a)D_w^\dagger=\chi_w(a)(I\otimes X^a). \tag*{(3)} D w ( I ⊗ X a ) D w † = χ w ( a ) ( I ⊗ X a ) . (3)
Since X a + a ′ = X a X a ′ X^{a+a'}=X^aX^{a'} X a + a ′ = X a X a ′ , χ w \chi_w χ w is a character, so χ w ( a ) = ( − 1 ) t w ⋅ a \chi_w(a)=(-1)^{t_w\cdot a} χ w ( a ) = ( − 1 ) t w ⋅ a for some t w ∈ W t_w\in W t w ∈ W . Let
D w = ∑ x ∈ R ∑ y ∈ W d w ( x , y ) ∣ x , y ⟩ ⟨ x , y ∣ , d w ( x , y ) ∈ T . D_w=\sum_{x\in R}\sum_{y\in W}d_w(x,y)|x,y\rangle\langle x,y|,\qquad d_w(x,y)\in\mathbb{T}. D w = x ∈ R ∑ y ∈ W ∑ d w ( x , y ) ∣ x , y ⟩ ⟨ x , y ∣ , d w ( x , y ) ∈ T .
By (B.3), d w ( x , y + a ) = ( − 1 ) t w ⋅ a d w ( x , y ) d_w(x,y+a)=(-1)^{t_w\cdot a}d_w(x,y) d w ( x , y + a ) = ( − 1 ) t w ⋅ a d w ( x , y ) for x ∈ R x\in R x ∈ R and y , a ∈ W y,a\in W y , a ∈ W . Taking y = 0 y=0 y = 0 and a = y a=y a = y yields d w ( x , y ) = d w ( x , 0 ) ( − 1 ) t w ⋅ y d_w(x,y)=d_w(x,0)(-1)^{t_w\cdot y} d w ( x , y ) = d w ( x , 0 ) ( − 1 ) t w ⋅ y and hence
D w = ∑ x ∈ R d w ( x , 0 ) ∣ x ⟩ ⟨ x ∣ ⊗ Z t w . D_w=\sum_{x\in R}d_w(x,0)|x\rangle\langle x|\otimes Z^{t_w}. D w = x ∈ R ∑ d w ( x , 0 ) ∣ x ⟩ ⟨ x ∣ ⊗ Z t w .
On the other hand,
D w ( I ⊗ X w ) = h w = M ( I ⊗ X w ) M † = ∑ x ∈ R ∣ x ⟩ ⟨ x ∣ ⊗ M x X w M x † . D_w(I\otimes X^w)=h_w=M(I\otimes X^w)M^\dagger=\sum_{x\in R}|x\rangle\langle x|\otimes M_xX^wM_x^\dagger. D w ( I ⊗ X w ) = h w = M ( I ⊗ X w ) M † = x ∈ R ∑ ∣ x ⟩ ⟨ x ∣ ⊗ M x X w M x † .
Comparing the x x x -blocks gives
M x X w M x † = d w ( x , 0 ) Z t w X w ≐ X w Z t w for x ∈ R , M_xX^wM_x^\dagger=d_w(x,0)Z^{t_w}X^w\doteq X^wZ^{t_w}\qquad\text{for }x\in R, M x X w M x † = d w ( x , 0 ) Z t w X w ≐ X w Z t w for x ∈ R ,
where the right hand side is independent of x x x up to global phase. Similarly, a direct computation from M x ∣ y ⟩ = e i θ ( x , y ) ∣ y + q ( x ) ⟩ M_x|y\rangle=e^{i\theta(x,y)}|y+q(x)\rangle M x ∣ y ⟩ = e i θ ( x , y ) ∣ y + q ( x )⟩ gives
M x Z w M x † = ( − 1 ) w ⋅ q ( x ) Z w , M_xZ^wM_x^\dagger=(-1)^{w\cdot q(x)}Z^w, M x Z w M x † = ( − 1 ) w ⋅ q ( x ) Z w ,
so M x Z w M x † M_xZ^wM_x^\dagger M x Z w M x † is also independent of x x x up to a global phase. Since the operators X w X^w X w and Z w Z^w Z w , w ∈ W w\in W w ∈ W , generate the m m m -qubit Pauli group, it follows that M x ∈ C 2 ( m ) M_x\in C_2(m) M x ∈ C 2 ( m ) for every x ∈ R x\in R x ∈ R . Moreover, for every x ∈ R x\in R x ∈ R and w ∈ W w\in W w ∈ W ,
M x X w M x † ≐ X w Z t w ≐ M 0 X w M 0 † , M x Z w M x † ≐ Z w ≐ M 0 Z w M 0 † . M_xX^wM_x^\dagger\doteq X^wZ^{t_w}\doteq M_0X^wM_0^\dagger,\qquad M_xZ^wM_x^\dagger\doteq Z^w\doteq M_0Z^wM_0^\dagger. M x X w M x † ≐ X w Z t w ≐ M 0 X w M 0 † , M x Z w M x † ≐ Z w ≐ M 0 Z w M 0 † .
Since the X w X^w X w and Z w Z^w Z w generate the Pauli group, it follows that M x P M x † ≐ M 0 P M 0 † M_xPM_x^\dagger\doteq M_0PM_0^\dagger M x P M x † ≐ M 0 P M 0 † . Therefore, for Q x : = M x M 0 † Q_x:=M_xM_0^\dagger Q x := M x M 0 † , we have
Q x P v Q x † ≐ P v for every v ∈ F 2 2 m . Q_xP_vQ_x^\dagger\doteq P_v\qquad\text{for every }v\in\mathbb{F}_2^{2m}. Q x P v Q x † ≐ P v for every v ∈ F 2 2 m .
By Lemma B.3, there exist ζ ( x ) ∈ T \zeta(x)\in\mathbb{T} ζ ( x ) ∈ T and v ( x ) ∈ F 2 2 m v(x)\in\mathbb{F}_2^{2m} v ( x ) ∈ F 2 2 m such that M x M 0 † = ζ ( x ) P v ( x ) M_xM_0^\dagger=\zeta(x)P_{v(x)} M x M 0 † = ζ ( x ) P v ( x ) .
Finally, letting C : = M 0 † ∈ C 2 ( m ) C:=M_0^\dagger\in C_2(m) C := M 0 † ∈ C 2 ( m ) gives
M ( I ⊗ C ) = ∑ x ∈ R ∣ x ⟩ ⟨ x ∣ ⊗ M x M 0 † = ∑ x ∈ R ζ ( x ) ∣ x ⟩ ⟨ x ∣ ⊗ P v ( x ) . M(I\otimes C)=\sum_{x\in R}|x\rangle\langle x|\otimes M_xM_0^\dagger=\sum_{x\in R}\zeta(x)|x\rangle\langle x|\otimes P_{v(x)}. M ( I ⊗ C ) = x ∈ R ∑ ∣ x ⟩ ⟨ x ∣ ⊗ M x M 0 † = x ∈ R ∑ ζ ( x ) ∣ x ⟩ ⟨ x ∣ ⊗ P v ( x ) .
C4(n) in GSC(n)
In this section we work in PU ( 2 n ) \operatorname{PU}(2^n) PU ( 2 n ) , with the projective Pauli group P ‾ ( n ) = P ( n ) / ⟨ i I ⟩ \overline{\mathcal{P}}(n)=\mathcal{P}(n)/\langle iI\rangle P ( n ) = P ( n ) / ⟨ i I ⟩ . For a gate U U U , let
Γ ( U ) : = ⟨ P ‾ ( n ) , U P ‾ ( n ) U † ⟩ ⊆ PU ( 2 n ) . \Gamma(U):=\langle\overline{\mathcal{P}}(n),U\overline{\mathcal{P}}(n)U^\dagger\rangle\subseteq\operatorname{PU}(2^n). Γ ( U ) := ⟨ P ( n ) , U P ( n ) U † ⟩ ⊆ PU ( 2 n ) .
Theorem C.1. Every finite 2 2 2 -subgroup of PU ( 2 n ) \operatorname{PU}(2^n) PU ( 2 n ) containing P ‾ ( n ) \overline{\mathcal{P}}(n) P ( n ) preserves a Pauli MASA. Consequently, if Γ ( U ) \Gamma(U) Γ ( U ) is a finite 2 2 2 -group, then U U U is generalized semi-Clifford.
Proof. Let Ω n = { A L : L ≤ V n Lagrangian } \Omega_n=\{\mathcal{A}_L:L\leq V_n\text{ Lagrangian}\} Ω n = { A L : L ≤ V n Lagrangian } be the set of Pauli MASAs. By Lemma A.2, ∣ Ω n ∣ = N n = ∏ j = 1 n ( 2 j + 1 ) |\Omega_n|=N_n=\prod_{j=1}^{n}(2^j+1) ∣ Ω n ∣ = N n = ∏ j = 1 n ( 2 j + 1 ) is odd.
For any finite projective 2 2 2 -group G ⊆ PU ( 2 n ) G\subseteq\operatorname{PU}(2^n) G ⊆ PU ( 2 n ) containing P ‾ ( n ) \overline{\mathcal{P}}(n) P ( n ) , set
X = { g A g † : g ∈ G , A ∈ Ω n } . \mathcal{X}=\{g\mathcal{A}g^\dagger:g\in G,\ \mathcal{A}\in\Omega_n\}. X = { g A g † : g ∈ G , A ∈ Ω n } . By Proposition A.1 we have X P ‾ ( n ) = Ω n \mathcal{X}^{\overline{\mathcal{P}}(n)}=\Omega_n X P ( n ) = Ω n . Since every nontrivial 2 2 2 -group orbit has even size,
∣ X G ∣ ≡ ∣ X ∣ ≡ ∣ X P ‾ ( n ) ∣ = N n ≡ 1 ( m o d 2 ) . |\mathcal{X}^G|\equiv|\mathcal{X}| \equiv|\mathcal{X}^{\overline{\mathcal{P}}(n)}|=N_n\equiv1\pmod{2}. ∣ X G ∣ ≡ ∣ X ∣ ≡ ∣ X P ( n ) ∣ = N n ≡ 1 ( mod 2 ) . Thus G G G must fix a Pauli MASA, which we denote by A \mathcal{A} A .
Now take G = Γ ( U ) G=\Gamma(U) G = Γ ( U ) and let A = A M \mathcal{A}=\mathcal{A}_M A = A M be the Pauli MASA fixed by G G G . For every Pauli P P P , the gate U P U † ∈ G UPU^\dagger\in G U P U † ∈ G fixes A \mathcal{A} A , so P U † A U P † = U † A U PU^\dagger\mathcal{A}UP^\dagger=U^\dagger\mathcal{A}U P U † A U P † = U † A U . By Proposition A.1, U † A U = A L U^\dagger\mathcal{A}U=\mathcal{A}_L U † A U = A L with L L L Lagrangian, which completes the proof.
The next theorem implies Theorem 6.
Theorem C.2. For every n n n and every U ∈ C 4 ( n ) U \in\mathcal{C}_4(n) U ∈ C 4 ( n ) , the group Γ ( U ) \Gamma(U) Γ ( U ) is a finite 2 2 2 -group. In particular, C 4 ( n ) ⊆ GSC ( n ) \mathcal{C}_4(n) \subseteq\operatorname{GSC}(n) C 4 ( n ) ⊆ GSC ( n ) .
Furthermore, if U 2 = λ I U^2 = \lambda I U 2 = λ I for some λ ∈ T \lambda\in\mathbb{T} λ ∈ T , then there is a Pauli MASA A \mathcal{A} A such that U A U † = A U\mathcal{A}U^\dagger= \mathcal{A} U A U † = A .
Proof. For U ∈ C 4 ( n ) U \in\mathcal{C}_4(n) U ∈ C 4 ( n ) , let
H = U P ‾ ( n ) U † , G = ⟨ h P ‾ ( n ) h † : h ∈ H ⟩ . H = U\overline{\mathcal{P}}(n)U^\dagger,\qquad G = \langle h\overline{\mathcal{P}}(n)h^\dagger: h \in H\rangle. H = U P ( n ) U † , G = ⟨ h P ( n ) h † : h ∈ H ⟩ .
We have that H ⊆ C 3 ( n ) H \subseteq\mathcal{C}_3(n) H ⊆ C 3 ( n ) is a 2 2 2 -group of order 4 n 4^n 4 n . Therefore, we have h P ‾ ( n ) h † ⊆ C 2 ( n ) h\overline{\mathcal{P}}(n)h^\dagger\subseteq\mathcal{C}_2(n) h P ( n ) h † ⊆ C 2 ( n ) . Hence G ⊆ C 2 ( n ) / T G \subseteq\mathcal{C}_2(n)/\mathbb{T} G ⊆ C 2 ( n ) / T . Moreover, I ∈ H I \in H I ∈ H , so P ‾ ( n ) ≤ G \overline{\mathcal{P}}(n) \leq G P ( n ) ≤ G . Since g P ‾ ( n ) g † = P ‾ ( n ) g\overline{\mathcal{P}}(n)g^\dagger= \overline{\mathcal{P}}(n) g P ( n ) g † = P ( n ) for every g ∈ C 2 ( n ) g \in\mathcal{C}_2(n) g ∈ C 2 ( n ) , P ‾ ( n ) ⊴ G \overline{\mathcal{P}}(n) \trianglelefteq G P ( n ) ⊴ G .
For k , h ∈ H k,h \in H k , h ∈ H , k ( h P ‾ ( n ) h † ) k † = ( k h ) P ‾ ( n ) ( k h ) † k(h\overline{\mathcal{P}}(n)h^\dagger)k^\dagger= (kh)\overline{\mathcal{P}}(n)(kh)^\dagger k ( h P ( n ) h † ) k † = ( k h ) P ( n ) ( k h ) † . Since k h ∈ H kh \in H k h ∈ H , k G k † = G kGk^\dagger= G k G k † = G , so H H H normalizes G G G . Hence Γ ( U ) = ⟨ P ‾ ( n ) , H ⟩ ≤ G H \Gamma(U) = \langle\overline{\mathcal{P}}(n),H\rangle\leq GH Γ ( U ) = ⟨ P ( n ) , H ⟩ ≤ G H . Conversely, each subgroup h P ‾ ( n ) h † h\overline{\mathcal{P}}(n)h^\dagger h P ( n ) h † generating G G G is contained in ⟨ P ‾ ( n ) , H ⟩ = Γ ( U ) \langle\overline{\mathcal{P}}(n),H\rangle= \Gamma(U) ⟨ P ( n ) , H ⟩ = Γ ( U ) , so G ≤ Γ ( U ) G \leq\Gamma(U) G ≤ Γ ( U ) . Therefore G H = Γ ( U ) GH = \Gamma(U) G H = Γ ( U ) .
Since H H H normalizes G G G , conjugation by H H H acts on the set Syl 2 ( G ) \operatorname{Syl}_2(G) Syl 2 ( G ) of Sylow 2 2 2 -subgroups of G G G . Since H H H is a 2 2 2 -group, every H H H -orbit on Syl 2 ( G ) \operatorname{Syl}_2(G) Syl 2 ( G ) has cardinality a power of two. By Sylow’s theorem, ∣ Syl 2 ( G ) ∣ |\operatorname{Syl}_2(G)| ∣ Syl 2 ( G ) ∣ is odd, so H H H fixes a Sylow 2 2 2 -subgroup R R R of G G G . Since every Sylow 2 2 2 -subgroup contains the normal 2 2 2 -subgroup P ‾ ( n ) \overline{\mathcal{P}}(n) P ( n ) ,
h P ‾ ( n ) h † ⊆ h R h † = R for all h ∈ H ⟹ G = R . h\overline{\mathcal{P}}(n)h^\dagger\subseteq hRh^\dagger= R \quad\text{for all } h \in H \quad\Longrightarrow\quad G = R. h P ( n ) h † ⊆ h R h † = R for all h ∈ H ⟹ G = R .
Since G ⊴ G H G \trianglelefteq GH G ⊴ G H , Γ ( U ) = G H \Gamma(U) = GH Γ ( U ) = G H is a finite 2 2 2 -group. By Theorem C.1, U ∈ GSC ( n ) U \in\operatorname{GSC}(n) U ∈ GSC ( n ) .
Finally, suppose that U 2 = λ I U^2 = \lambda I U 2 = λ I for λ ∈ T \lambda\in\mathbb{T} λ ∈ T . Then [ U ] 2 = I ∈ PU ( 2 n ) [U]^2 = I \in\operatorname{PU}(2^n) [ U ] 2 = I ∈ PU ( 2 n ) . Moreover,
U P ‾ ( n ) U † = H , U H U † = U 2 P ‾ ( n ) ( U † ) 2 = P ‾ ( n ) . U\overline{\mathcal{P}}(n)U^\dagger= H,\qquad UHU^\dagger= U^2\overline{\mathcal{P}}(n)(U^\dagger)^2 = \overline{\mathcal{P}}(n). U P ( n ) U † = H , U H U † = U 2 P ( n ) ( U † ) 2 = P ( n ) .
Hence U Γ ( U ) U † = Γ ( U ) U\Gamma(U)U^\dagger= \Gamma(U) U Γ ( U ) U † = Γ ( U ) . Therefore, ⟨ Γ ( U ) , U ⟩ = Γ ( U ) ⟨ U ⟩ \langle\Gamma(U),U\rangle= \Gamma(U)\langle U\rangle ⟨ Γ ( U ) , U ⟩ = Γ ( U ) ⟨ U ⟩ is a finite 2 2 2 -group with [ ⟨ Γ ( U ) , U ⟩ : Γ ( U ) ] ≤ 2 [\langle\Gamma(U),U\rangle:\Gamma(U)] \leq2 [⟨ Γ ( U ) , U ⟩ : Γ ( U )] ≤ 2 . By Theorem C.1, ⟨ Γ ( U ) , U ⟩ \langle\Gamma(U),U\rangle ⟨ Γ ( U ) , U ⟩ fixes a Pauli MASA A \mathcal{A} A . Since U ∈ ⟨ Γ ( U ) , U ⟩ U \in\langle\Gamma(U),U\rangle U ∈ ⟨ Γ ( U ) , U ⟩ , U A U † = A U\mathcal{A}U^\dagger= \mathcal{A} U A U † = A as desired.
A common strategy
This section collects the tools used in Appendices E and F.
The case analyses there keep returning to one question: given gates U 0 , … , U s U_0,\ldots,U_s U 0 , … , U s , find a common GSC pair ( L , M ) ∈ ⋂ i = 0 s L ( U i ) (L,M) \in\bigcap_{i=0}^s \mathcal{L}(U_i) ( L , M ) ∈ ⋂ i = 0 s L ( U i ) . We use four techniques, combined as in Figure 6 .
Figure 6. A map of the relationship among the reduction techniques.
(U) Uniqueness. If for some U 0 U_0 U 0 there exists a unique GSC pair L ( U 0 ) = { ( L , M ) } \mathcal{L}(U_0) = \{(L,M)\} L ( U 0 ) = {( L , M )} and L ( U 0 ) ∩ L ( U i ) ≠ ∅ \mathcal{L}(U_0) \cap\mathcal{L}(U_i) \ne\varnothing L ( U 0 ) ∩ L ( U i ) = ∅ for every i i i , then ( L , M ) ∈ ⋂ i L ( U i ) (L,M) \in\bigcap_i \mathcal{L}(U_i) ( L , M ) ∈ ⋂ i L ( U i ) .
(P) Parity. Suppose U 0 , … , U s ∈ C 2 ( n ) U_0,\ldots,U_s \in\mathcal{C}_2(n) U 0 , … , U s ∈ C 2 ( n ) and write γ i = γ U i \gamma_i = \gamma_{U_i} γ i = γ U i . They share a GSC pair if and only if the maps γ 0 − 1 γ i \gamma_0^{-1}\gamma_i γ 0 − 1 γ i fix a common Lagrangian L L L . In this case, ( L , γ 0 L ) ∈ ⋂ i L ( U i ) (L,\gamma_0L) \in\bigcap_i \mathcal{L}(U_i) ( L , γ 0 L ) ∈ ⋂ i L ( U i ) .
(G) Galois. Let σ ∈ Gal ( K r / Q ( i ) ) \sigma\in\operatorname{Gal}(K_r/\mathbb{Q}(i)) σ ∈ Gal ( K r / Q ( i )) and U U U be a scalar multiple of a matrix over K r K_r K r . We call U − 1 σ ( U ) U^{-1}\sigma(U) U − 1 σ ( U ) , which is defined up to scalar, the Galois cocycle of U U U at σ \sigma σ (Section IV). Then for every ( L , M ) ∈ L ( U ) (L,M) \in\mathcal{L}(U) ( L , M ) ∈ L ( U ) ,
U − 1 σ ( U ) ∈ A L , σ ( U ) U − 1 ∈ A M , U^{-1}\sigma(U) \in\mathcal{A}_L,\qquad\sigma(U)U^{-1} \in\mathcal{A}_M, U − 1 σ ( U ) ∈ A L , σ ( U ) U − 1 ∈ A M ,
which we show in Proposition D.9(2). This Galois condition does not produce a common GSC pair by itself, but it constrains each U i U_i U i and L ( U i ) \mathcal{L}(U_i) L ( U i ) separately, for use with the other tools. We illustrate this strategy in Example D.10.
(F) Finite certificate. There are two steps to make this question a finite computational check. First, as we show in Lemma D.1(1), for C 1 , C 2 ∈ C 2 ( n ) C_1,C_2 \in\mathcal{C}_2(n) C 1 , C 2 ∈ C 2 ( n ) ,
( L , M ) ∈ L ( U ) ⟺ ( γ C 2 − 1 L , γ C 1 M ) ∈ L ( C 1 U C 2 ) . (L,M) \in\mathcal{L}(U) \Longleftrightarrow\left(\gamma_{C_2}^{-1}L,\gamma_{C_1}M\right) \in\mathcal{L}(C_1UC_2). ( L , M ) ∈ L ( U ) ⟺ ( γ C 2 − 1 L , γ C 1 M ) ∈ L ( C 1 U C 2 ) .
The size of L ( U ) \mathcal{L}(U) L ( U ) , and whether U 0 , … , U s U_0,\ldots,U_s U 0 , … , U s share a GSC pair, remains invariant when every U i U_i U i is replaced by C 1 U i C 2 C_1U_iC_2 C 1 U i C 2 with the same C 1 , C 2 C_1,C_2 C 1 , C 2 . Second, up to such multiplication, the gates that occur have finitely many normal forms, as shown in Proposition D.4 and Proposition D.11. A property that is invariant under multiplication by Clifford gates can therefore be decided on finitely many representatives by exhaustive computation. The finite facts (C1)–(C15) obtained this way are stated in boxes where they are used, and each names the folder of the companion repository https://github.com/numberingtheory/clifford-hierarchy-plane-certificate that recomputes it in exact arithmetic. Each either settles a case directly or supplies a hypothesis of another tool.
We first record how GSC pairs transform under Clifford gates.
Lemma D.1. Let U U U be a gate and C 1 , C 2 , K , K ′ ∈ C 2 ( n ) C_1,C_2,K,K' \in\mathcal{C}_2(n) C 1 , C 2 , K , K ′ ∈ C 2 ( n ) .
(1) ( L , M ) ∈ L ( U ) (L,M) \in\mathcal{L}(U) ( L , M ) ∈ L ( U ) if and only if ( γ C 2 − 1 L , γ C 1 M ) ∈ L ( C 1 U C 2 ) (\gamma_{C_2}^{-1}L,\gamma_{C_1}M) \in\mathcal{L}(C_1UC_2) ( γ C 2 − 1 L , γ C 1 M ) ∈ L ( C 1 U C 2 ) .
(2) If U K ≐ K ′ U UK \doteq K'U U K ≐ K ′ U and ( L , M ) ∈ L ( U ) (L,M) \in\mathcal{L}(U) ( L , M ) ∈ L ( U ) , then ( γ K L , γ K ′ M ) ∈ L ( U ) (\gamma_KL,\gamma_{K'}M) \in\mathcal{L}(U) ( γ K L , γ K ′ M ) ∈ L ( U ) .
In particular, if U K ≐ K ′ U UK \doteq K'U U K ≐ K ′ U , then
γ K { L : ∃ M , ( L , M ) ∈ L ( U ) } = { L : ∃ M , ( L , M ) ∈ L ( U ) } . \gamma_K\{L:\exists M,\ (L,M)\in\mathcal{L}(U)\}=\{L:\exists M,\ (L,M)\in\mathcal{L}(U)\}. γ K { L : ∃ M , ( L , M ) ∈ L ( U )} = { L : ∃ M , ( L , M ) ∈ L ( U )} . If moreover L ( U ) = { ( L , M ) } \mathcal{L}(U)=\{(L,M)\} L ( U ) = {( L , M )} , then γ K L = L \gamma_KL=L γ K L = L and γ K ′ M = M \gamma_{K'}M=M γ K ′ M = M .
Proof. Conjugating A γ C 2 − 1 L \mathcal{A}_{\gamma_{C_2}^{-1}L} A γ C 2 − 1 L by C 1 U C 2 C_1UC_2 C 1 U C 2 gives C 1 ( U A L U † ) C 1 † C_1(UA_LU^\dagger)C_1^\dagger C 1 ( U A L U † ) C 1 † , which equals A γ C 1 M \mathcal{A}_{\gamma_{C_1}M} A γ C 1 M if and only if U A L U † = A M UA_LU^\dagger=A_M U A L U † = A M . The rest follows from the observation that U A γ K L U † = U K A L K † U † = K ′ U A L U † K ′ † = A γ K ′ M UA_{\gamma_KL}U^\dagger=UKA_LK^\dagger U^\dagger=K'UA_LU^\dagger K'^\dagger=A_{\gamma_{K'}M} U A γ K L U † = U K A L K † U † = K ′ U A L U † K ′ † = A γ K ′ M .
Lemma D.2. Let 1 ≤ j < n 1\le j<n 1 ≤ j < n , and let W W W commute with Z 1 , … , Z j Z_1,\ldots,Z_j Z 1 , … , Z j , so that W = ⨁ x ∈ F 2 j B x W=\bigoplus_{x\in\mathbb{F}_2^j}B_x W = ⨁ x ∈ F 2 j B x , where B x B_x B x acts on qubits j + 1 , … , n j+1,\ldots,n j + 1 , … , n in the joint eigenspace H x \mathcal{H}_x H x of Z 1 , … , Z j Z_1,\ldots,Z_j Z 1 , … , Z j with eigenvalues ( − 1 ) x 1 , … , ( − 1 ) x j (-1)^{x_1},\ldots,(-1)^{x_j} ( − 1 ) x 1 , … , ( − 1 ) x j . Let S = span { z 1 , … , z j } S=\operatorname{span}\{z_1,\ldots,z_j\} S = span { z 1 , … , z j } , and write V n − j V_{n-j} V n − j for the labels of qubits j + 1 , … , n j+1,\ldots,n j + 1 , … , n .
(1) For Lagrangians L , M ≤ V n − j L,M\le V_{n-j} L , M ≤ V n − j , ( S ⊕ L , S ⊕ M ) ∈ L ( W ) (S\oplus L,S\oplus M)\in\mathcal{L}(W) ( S ⊕ L , S ⊕ M ) ∈ L ( W ) if and only if ( L , M ) ∈ L ( B x ) (L,M)\in\mathcal{L}(B_x) ( L , M ) ∈ L ( B x ) for every x x x . Moreover, L ( W ) ≠ ∅ \mathcal{L}(W)\ne\varnothing L ( W ) = ∅ if and only if ⋂ x L ( B x ) ≠ ∅ \bigcap_x\mathcal{L}(B_x)\ne\varnothing ⋂ x L ( B x ) = ∅ .
(2) If W ∈ C k ( n ) W\in\mathcal{C}_k(n) W ∈ C k ( n ) , then B x ∈ C k ( n − j ) B_x\in\mathcal{C}_k(n-j) B x ∈ C k ( n − j ) for every x x x , and diag ( B x , B y ) ∈ C k ( n − j + 1 ) \operatorname{diag}(B_x,B_y)\in\mathcal{C}_k(n-j+1) diag ( B x , B y ) ∈ C k ( n − j + 1 ) for x ≠ y x\ne y x = y .
(3) Let e ∈ F 2 j e\in\mathbb{F}_2^j e ∈ F 2 j , P P P be a Pauli on qubits j + 1 , … , n j+1,\ldots,n j + 1 , … , n , and h = W ( X e ⊗ P ) W † h=W(X^e\otimes P)W^\dagger h = W ( X e ⊗ P ) W † . Then ( X e ⊗ I ) h = ⨁ x B x + e P B x † (X^e\otimes I)h=\bigoplus_xB_{x+e}PB_x^\dagger ( X e ⊗ I ) h = ⨁ x B x + e P B x † . If ⟨ P ( n ) , h ⟩ \langle\mathcal{P}(n),h\rangle ⟨ P ( n ) , h ⟩ is a finite 2 2 2 -group modulo scalars, then so is ⟨ P ( n − j ) , B x + e P B x † ⟩ \langle\mathcal{P}(n-j),B_{x+e}PB_x^\dagger\rangle ⟨ P ( n − j ) , B x + e P B x † ⟩ for every x x x .
Proof. The algebra A S ⊕ L \mathcal{A}_{S\oplus L} A S ⊕ L consists of the block-diagonal operators ⨁ x a x \bigoplus_xa_x ⨁ x a x with all a x ∈ A L a_x\in\mathcal{A}_L a x ∈ A L , so W A S ⊕ L W † = A S ⊕ M W\mathcal{A}_{S\oplus L}W^\dagger=\mathcal{A}_{S\oplus M} W A S ⊕ L W † = A S ⊕ M exactly when B x A L B x † = A M B_x\mathcal{A}_LB_x^\dagger=\mathcal{A}_M B x A L B x † = A M for every x x x . Next, let ( L ′ , M ′ ) ∈ L ( W ) (L',M')\in\mathcal{L}(W) ( L ′ , M ′ ) ∈ L ( W ) . Since W W W commutes with Z 1 , … , Z j Z_1,\ldots,Z_j Z 1 , … , Z j , we have W A S W † = A S W\mathcal{A}_SW^\dagger=\mathcal{A}_S W A S W † = A S , so Lemma A.4 with T = S T=S T = S gives
W A S + ( L ′ ∩ S ⊥ ) W † = A S + ( M ′ ∩ S ⊥ ) . W\mathcal{A}_{S+(L'\cap S^\perp)}W^\dagger=\mathcal{A}_{S+(M'\cap S^\perp)}. W A S + ( L ′ ∩ S ⊥ ) W † = A S + ( M ′ ∩ S ⊥ ) .
where S + ( L ′ ∩ S ⊥ ) S+(L'\cap S^\perp) S + ( L ′ ∩ S ⊥ ) and S + ( M ′ ∩ S ⊥ ) S+(M'\cap S^\perp) S + ( M ′ ∩ S ⊥ ) are Lagrangians containing S S S . These lie in S ⊥ = S ⊕ V n − j S^\perp=S\oplus V_{n-j} S ⊥ = S ⊕ V n − j , so they have the form S ⊕ L S\oplus L S ⊕ L and S ⊕ M S\oplus M S ⊕ M . Indeed, a Lagrangian N N N with S ≤ N ≤ S ⊕ V n − j S\le N\le S\oplus V_{n-j} S ≤ N ≤ S ⊕ V n − j equals S ⊕ ( N ∩ V n − j ) S\oplus(N\cap V_{n-j}) S ⊕ ( N ∩ V n − j ) , and N ∩ V n − j N\cap V_{n-j} N ∩ V n − j is Lagrangian in V n − j V_{n-j} V n − j . The first statement then gives ( L , M ) ∈ ⋂ x L ( B x ) (L,M)\in\bigcap_x\mathcal{L}(B_x) ( L , M ) ∈ ⋂ x L ( B x ) . Conversely, a common GSC pair ( L , M ) (L,M) ( L , M ) of the B x B_x B x gives ( S ⊕ L , S ⊕ M ) ∈ L ( W ) (S\oplus L,S\oplus M)\in\mathcal{L}(W) ( S ⊕ L , S ⊕ M ) ∈ L ( W ) . This concludes the proof of (1).
Recall that W W W acts on H x \mathcal{H}_x H x by B x B_x B x . Let G G G be a group of commuting Paulis, Q Q Q a joint eigenspace of G G G , and identify Q Q Q with m m m qubits so that the restrictions to Q Q Q of the Paulis commuting with G G G are exactly the elements of P ( m ) \mathcal{P}(m) P ( m ) , up to scalar. We claim that
U ∈ C k ( n ) , U commutes with G ⟹ U Q = Q and U ∣ Q ∈ C k ( m ) . U\in\mathcal{C}_k(n),\ U\text{ commutes with }G\quad\Longrightarrow\quad UQ=Q\text{ and }U|_Q\in\mathcal{C}_k(m). U ∈ C k ( n ) , U commutes with G ⟹ U Q = Q and U ∣ Q ∈ C k ( m ) .
For k = 1 k=1 k = 1 the claim is the identification. For k > 1 k>1 k > 1 , write an element of P ( m ) \mathcal{P}(m) P ( m ) as P ∣ Q P|_Q P ∣ Q with P P P a Pauli commuting with G G G . Then U P U † ∈ C k − 1 ( n ) UPU^\dagger\in\mathcal{C}_{k-1}(n) U P U † ∈ C k − 1 ( n ) commutes with G G G , and by induction
U ∣ Q P ∣ Q U † ∣ Q = ( U P U † ) ∣ Q ∈ C k − 1 ( m ) . U|_QP|_QU^\dagger|_Q=(UPU^\dagger)|_Q\in\mathcal{C}_{k-1}(m). U ∣ Q P ∣ Q U † ∣ Q = ( U P U † ) ∣ Q ∈ C k − 1 ( m ) .
We apply the claim to U = W U=W U = W twice:
G = ⟨ Z 1 , … , Z j ⟩ G=\langle Z_1,\ldots,Z_j\rangle G = ⟨ Z 1 , … , Z j ⟩ , Q = H x Q=\mathcal{H}_x Q = H x , m = n − j m=n-j m = n − j : then W ∣ Q = B x W|_Q=B_x W ∣ Q = B x .
G = ⟨ Z c : c ⋅ ( x + y ) = 0 ⟩ G=\langle Z^c:c\cdot(x+y)=0\rangle G = ⟨ Z c : c ⋅ ( x + y ) = 0 ⟩ , m = n − j + 1 m=n-j+1 m = n − j + 1 : the joint eigenspace containing H x \mathcal{H}_x H x is Q = H x ⊕ H y Q=\mathcal{H}_x\oplus\mathcal{H}_y Q = H x ⊕ H y , with logical X = X x + y X=X^{x+y} X = X x + y and logical Z = Z i Z=Z_i Z = Z i for an i i i with x i ≠ y i x_i\ne y_i x i = y i . Then W ∣ Q = diag ( B x , B y ) W|_Q=\operatorname{diag}(B_x,B_y) W ∣ Q = diag ( B x , B y ) , up to relabeling the logical qubit.
We now proceed to prove (3). The first identity can be verified directly. For the second conclusion, let G = ⟨ P ( n ) , h ⟩ G=\langle\mathcal{P}(n),h\rangle G = ⟨ P ( n ) , h ⟩ modulo scalars, and let G 0 ≤ G G_0\le G G 0 ≤ G be the subgroup of elements preserving every H y \mathcal{H}_y H y , that is, of the form u = ⨁ y u y u=\bigoplus_y u_y u = ⨁ y u y . For each x x x , restriction to H x \mathcal{H}_x H x is a homomorphism
ρ x : G 0 → PU ( 2 n − j ) , ⨁ y u y ↦ u x . \rho_x:G_0\to\operatorname{PU}(2^{n-j}),\qquad\bigoplus_y u_y\mapsto u_x. ρ x : G 0 → PU ( 2 n − j ) , y ⨁ u y ↦ u x .
Since G 0 G_0 G 0 contains I ⊗ Q I\otimes Q I ⊗ Q for every Q ∈ P ( n − j ) Q\in\mathcal{P}(n-j) Q ∈ P ( n − j ) , and contains ( X e ⊗ I ) h = ⨁ y B y + e P B y † (X^e\otimes I)h=\bigoplus_y B_{y+e}P B_y^\dagger ( X e ⊗ I ) h = ⨁ y B y + e P B y † ,
⟨ P ( n − j ) , B x + e P B x † ⟩ ≤ ρ x ( G 0 ) . \langle\mathcal{P}(n-j),B_{x+e}PB_x^\dagger\rangle\le\rho_x(G_0). ⟨ P ( n − j ) , B x + e P B x † ⟩ ≤ ρ x ( G 0 ) .
The right hand side is the image of a subgroup of the finite 2 2 2 -group G G G , so it is a finite 2 2 2 -group, and so is the left hand side. □ \square □
Recall that a complete affine flag is the sequence of coset partitions associated to 0 = W 0 < ⋯ < W n = F 2 n 0=W_0<\cdots<W_n=\mathbb{F}_2^n 0 = W 0 < ⋯ < W n = F 2 n , dim W i = i \dim W_i=i dim W i = i . For any permutation π \pi π , if π ( x + W i ) = π ( x ) + W i \pi(x+W_i)=\pi(x)+W_i π ( x + W i ) = π ( x ) + W i for all x , i x,i x , i , then the flag is invariant under π \pi π .
Lemma D.3. Let π ∈ Sym ( F 2 n ) \pi\in\operatorname{Sym}(\mathbb{F}_2^n) π ∈ Sym ( F 2 n ) , and T n : = { x ↦ x + a : a ∈ F 2 n } \mathcal{T}_n:=\{x\mapsto x+a:a\in\mathbb{F}_2^n\} T n := { x ↦ x + a : a ∈ F 2 n } be the translation subgroup.
(1) If π \pi π preserves a complete affine flag F \mathcal{F} F , then π ∈ Stab ( F ) \pi\in\operatorname{Stab}(\mathcal{F}) π ∈ Stab ( F ) where Stab ( F ) \operatorname{Stab}(\mathcal{F}) Stab ( F ) is a 2 2 2 -group of order 2 2 n − 1 2^{2^n-1} 2 2 n − 1 containing T n \mathcal{T}_n T n .
(2) If π ∈ G \pi\in G π ∈ G for a 2 2 2 -group T n ≤ G ≤ Sym ( F 2 n ) \mathcal{T}_n\le G\le\operatorname{Sym}(\mathbb{F}_2^n) T n ≤ G ≤ Sym ( F 2 n ) , then there exists a complete affine flag F \mathcal{F} F preserved by every element of G G G , and hence by π \pi π .
(3) π \pi π preserves a complete affine flag if and only if there exists a 2 2 2 -group G ≤ Sym ( F 2 n ) G\le\operatorname{Sym}(\mathbb{F}_2^n) G ≤ Sym ( F 2 n ) such that T n ≤ G \mathcal{T}_n\le G T n ≤ G and π ∈ G \pi\in G π ∈ G .
Proof. Part (3) follows from (1) and (2). For (1), translations preserve every coset partition, hence every flag. Let Q n = Stab ( F ) Q_n=\operatorname{Stab}(\mathcal{F}) Q n = Stab ( F ) for the complete affine flag 0 = W 0 < ⋯ < W n = F 2 n 0=W_0<\cdots<W_n=\mathbb{F}_2^n 0 = W 0 < ⋯ < W n = F 2 n . Each π ∈ Q n \pi\in Q_n π ∈ Q n permutes the cosets of W 1 W_1 W 1 and induces a permutation π ˉ \bar{\pi} π ˉ of F 2 n / W 1 \mathbb{F}_2^n/W_1 F 2 n / W 1 preserving the complete affine flag ( W i / W 1 ) i ≥ 1 (W_i/W_1)_{i\ge1} ( W i / W 1 ) i ≥ 1 . Every permutation of F 2 n / W 1 \mathbb{F}_2^n/W_1 F 2 n / W 1 preserving this flag is some π ˉ \bar{\pi} π ˉ , since any π \pi π mapping each coset of W 1 W_1 W 1 onto its image preserves the flag. The kernel of π ↦ π ˉ \pi\mapsto\bar{\pi} π ↦ π ˉ fixes or swaps each of the 2 n − 1 2^{n-1} 2 n − 1 cosets of W 1 W_1 W 1 independently. Hence ∣ Q n ∣ = 2 2 n − 1 ∣ Q n − 1 ∣ |Q_n|=2^{2^{n-1}}|Q_{n-1}| ∣ Q n ∣ = 2 2 n − 1 ∣ Q n − 1 ∣ , and ∣ Q 0 ∣ = 1 |Q_0|=1 ∣ Q 0 ∣ = 1 gives ∣ Q n ∣ = 2 2 n − 1 |Q_n|=2^{2^n-1} ∣ Q n ∣ = 2 2 n − 1 , so Q n Q_n Q n is a Sylow 2 2 2 -subgroup of Sym ( F 2 n ) \operatorname{Sym}(\mathbb{F}_2^n) Sym ( F 2 n ) [19 ] .
We now prove (2). Take q ≠ 1 q\ne1 q = 1 in the center of G G G . Since q q q commutes with all translations, q ( x ) = x + v q(x)=x+v q ( x ) = x + v with v = q ( 0 ) ≠ 0 v=q(0)\ne0 v = q ( 0 ) = 0 . Every g ∈ G g\in G g ∈ G commutes with q q q , so
g ( x + v ) = g ( x ) + v for all x ∈ F 2 n . g(x+v)=g(x)+v\qquad\text{for all }x\in\mathbb{F}_2^n. g ( x + v ) = g ( x ) + v for all x ∈ F 2 n .
Hence g g g maps cosets of span { v } \operatorname{span}\{v\} span { v } to cosets of span { v } \operatorname{span}\{v\} span { v } and induces a permutation g ˉ \bar{g} g ˉ of V ˉ = F 2 n / span { v } ≅ F 2 n − 1 \bar{V}=\mathbb{F}_2^n/\operatorname{span}\{v\}\cong\mathbb{F}_2^{n-1} V ˉ = F 2 n / span { v } ≅ F 2 n − 1 . The map g ↦ g ˉ g\mapsto\bar{g} g ↦ g ˉ is a homomorphism, so G ˉ = { g ˉ : g ∈ G } \bar{G}=\{\bar{g}:g\in G\} G ˉ = { g ˉ : g ∈ G } is a 2 2 2 -group, and it contains all translations of V ˉ \bar{V} V ˉ , the images of the translations of F 2 n \mathbb{F}_2^n F 2 n . By induction on n n n , G ˉ \bar{G} G ˉ preserves a complete affine flag 0 = W ˉ 0 < ⋯ < W ˉ n − 1 = V ˉ 0=\bar{W}_0<\cdots<\bar{W}_{n-1}=\bar{V} 0 = W ˉ 0 < ⋯ < W ˉ n − 1 = V ˉ . Let W 0 = 0 W_0=0 W 0 = 0 and let W i W_i W i be the preimage of W ˉ i − 1 \bar{W}_{i-1} W ˉ i − 1 for 1 ≤ i ≤ n 1\le i\le n 1 ≤ i ≤ n , so that W 1 = span { v } W_1=\operatorname{span}\{v\} W 1 = span { v } and dim W i = i \dim W_i=i dim W i = i . For g ∈ G g\in G g ∈ G , the above formula gives g ( x + W 1 ) = g ( x ) + W 1 g(x+W_1)=g(x)+W_1 g ( x + W 1 ) = g ( x ) + W 1 . For i ≥ 2 i\ge2 i ≥ 2 , x + W i x+W_i x + W i is the preimage of g ˉ ( x ˉ + W ˉ i − 1 ) \bar{g}(\bar{x}+\bar{W}_{i-1}) g ˉ ( x ˉ + W ˉ i − 1 ) , which is g ( x ) + W i g(x)+W_i g ( x ) + W i . □ \square □
Proposition D.4. Let n ≤ 4 n\le4 n ≤ 4 , U ∈ C ( n ) U\in\mathcal{C}(n) U ∈ C ( n ) and ( L , M ) ∈ L ( U ) (L,M)\in\mathcal{L}(U) ( L , M ) ∈ L ( U ) . There are C 1 , C 2 ∈ C 2 ( n ) C_1,C_2\in\mathcal{C}_2(n) C 1 , C 2 ∈ C 2 ( n ) with C 2 A L C 2 † = A Z C_2A_LC_2^\dagger=A_Z C 2 A L C 2 † = A Z and C 1 A Z C 1 † = A M C_1A_ZC_1^\dagger=A_M C 1 A Z C 1 † = A M , a permutation π \pi π of F 2 n \mathbb{F}_2^n F 2 n and a diagonal gate D D D such that U = C 1 π D C 2 U=C_1\pi D C_2 U = C 1 π D C 2 , where A Z A_Z A Z is the algebra of diagonal matrices and Π π \Pi_\pi Π π is the permutation gate ∣ x ⟩ ↦ ∣ π x ⟩ |x\rangle\mapsto|\pi x\rangle ∣ x ⟩ ↦ ∣ π x ⟩ , with the following properties:
(1) The permutation π \pi π preserves a complete affine flag. If n ≤ 2 n\le2 n ≤ 2 , then π = 1 \pi=1 π = 1 . If n = 3 n=3 n = 3 , then π = 1 \pi=1 π = 1 or π ( x , y , z ) = ( x , y , z + x y ) \pi(x,y,z)=(x,y,z+xy) π ( x , y , z ) = ( x , y , z + x y ) .
(2) The ratios of the diagonal entries of D D D lie in μ 2 s \mu_{2^s} μ 2 s for some s s s , in μ 6 \mu_6 μ 6 if U U U is defined over K 3 K_3 K 3 up to scalar, and in μ 4 \mu_4 μ 4 if U U U is Gaussian.
Proof. Since the Clifford group acts transitively on Lagrangians, the desired C 1 C_1 C 1 and C 2 C_2 C 2 exist. Then C 1 † U C 2 † A Z C 2 U † C 1 = A Z C_1^\dagger U C_2^\dagger A_Z C_2 U^\dagger C_1=A_Z C 1 † U C 2 † A Z C 2 U † C 1 = A Z . The rank-one projections in A Z A_Z A Z are the ∣ x ⟩ ⟨ x ∣ |x\rangle\langle x| ∣ x ⟩ ⟨ x ∣ , and conjugation by C 1 † U C 2 † C_1^\dagger U C_2^\dagger C 1 † U C 2 † maps A Z A_Z A Z onto itself and preserves rank, so it permutes them. Hence C 1 † U C 2 † = Π π D C_1^\dagger U C_2^\dagger=\Pi_\pi D C 1 † U C 2 † = Π π D for some permutation π \pi π of F 2 n \mathbb{F}_2^n F 2 n and diagonal unitary D D D . This gate has finite level, so by [5 Corollary A.11.1] both Π π \Pi_\pi Π π and D D D have finite level.
Every permutation of F 2 n \mathbb{F}_2^n F 2 n with n ≤ 2 n\leq2 n ≤ 2 is affine. For n = 3 , 4 n=3,4 n = 3 , 4 the affine classifications [5 Appendix C] and [6 Section 3] give affine α , β \alpha,\beta α , β with α π β \alpha\pi\beta α π β preserving a complete affine flag. Affine permutation gates are Clifford and normalize A Z A_Z A Z , so replacing C 1 , C 2 C_1,C_2 C 1 , C 2 by C 1 Π α − 1 , Π β − 1 C 2 C_1\Pi_\alpha^{-1},\Pi_\beta^{-1}C_2 C 1 Π α − 1 , Π β − 1 C 2 and D D D by Π β − 1 D Π β \Pi_\beta^{-1}D\Pi_\beta Π β − 1 D Π β we may assume that π \pi π preserves the flag. On three qubits such a permutation is ( x + c , y + g 1 ( x ) , z + h ( x , y ) ) (x+c,y+g_1(x),z+h(x,y)) ( x + c , y + g 1 ( x ) , z + h ( x , y )) , which is affine or the composition of an affine map with ( x , y , z ) ↦ ( x , y , z + x y ) (x,y,z)\mapsto(x,y,z+xy) ( x , y , z ) ↦ ( x , y , z + x y ) . Absorbing the affine part once more gives (1).
The diagonal classification [5 Appendix F] puts the ratios of the entries of D D D in some μ 2 s \mu_{2^s} μ 2 s . Clifford gates are defined over K 2 = Q ( i ) K_2=\mathbb{Q}(i) K 2 = Q ( i ) up to scalar, so Π π D \Pi_\pi D Π π D is defined over the same field as U U U . Under the extra hypotheses the ratios therefore lie in μ 2 s ∩ K 3 = μ 8 \mu_{2^s}\cap K_3=\mu_8 μ 2 s ∩ K 3 = μ 8 and respectively μ 2 s ∩ Q ( i ) = μ 4 \mu_{2^s}\cap\mathbb{Q}(i)=\mu_4 μ 2 s ∩ Q ( i ) = μ 4 .
The next lemma gives the ( U ) (U) ( U ) uniqueness technique.
Lemma D.5. Let U U U be an n n n -qubit gate.
(1) If L ≤ V n L\leq V_n L ≤ V n is Lagrangian and L ⊆ P ( U ) L\subseteq\mathrm{P}(U) L ⊆ P ( U ) , then there exists a Lagrangian M ≤ V n M\leq V_n M ≤ V n such that ( L , M ) ∈ L ( U ) (L,M)\in\mathcal{L}(U) ( L , M ) ∈ L ( U ) .
(2) If n ≤ 2 n\leq2 n ≤ 2 , then for every Lagrangian L ≤ V n L\leq V_n L ≤ V n , there exists a Lagrangian M ≤ V n M\leq V_n M ≤ V n such that ( L , M ) ∈ L ( U ) (L,M)\in\mathcal{L}(U) ( L , M ) ∈ L ( U ) if and only if L ⊆ P ( U ) L\subseteq\mathrm{P}(U) L ⊆ P ( U ) . In particular, if dim P ( U ) ≤ n \dim\mathrm{P}(U)\leq n dim P ( U ) ≤ n , then ∣ L ( U ) ∣ ≤ 1 |\mathcal{L}(U)|\leq1 ∣ L ( U ) ∣ ≤ 1 .
(3) If n = 3 n=3 n = 3 and U ∈ C ( 3 ) U\in\mathcal{C}(3) U ∈ C ( 3 ) , then L ⊆ C ( U ) L\subseteq\mathcal{C}(U) L ⊆ C ( U ) for every ( L , M ) ∈ L ( U ) (L,M)\in\mathcal{L}(U) ( L , M ) ∈ L ( U ) .
(4) A one-qubit gate that is not Clifford has at most one GSC pair.
Proof. If L ⊆ P ( U ) L\subseteq\mathrm{P}(U) L ⊆ P ( U ) , then U A L U † UA_LU^\dagger U A L U † is spanned by the 2 n 2^n 2 n commuting Paulis U P v U † UP_vU^\dagger U P v U † , v ∈ L v\in L v ∈ L , where the v v v ’s form a Lagrangian M M M , so ( L , M ) ∈ L ( U ) (L,M)\in\mathcal{L}(U) ( L , M ) ∈ L ( U ) .
We next prove (2) and (3) together. Let ( L , M ) ∈ L ( U ) (L,M)\in\mathcal{L}(U) ( L , M ) ∈ L ( U ) . As in the proof of Proposition D.4 , write U ≐ C 1 Π π D C 2 U\doteq C_1\Pi_\pi D C_2 U ≐ C 1 Π π D C 2 with C 2 A L C 2 † = A Z C_2A_LC_2^\dagger=A_Z C 2 A L C 2 † = A Z , and in case (3) choose this form as in Proposition D.4 . For u ∈ L u\in L u ∈ L we have C 2 P u C 2 † = ± Z u ′ C_2P_uC_2^\dagger=\pm Z^{u'} C 2 P u C 2 † = ± Z u ′ , and D D D commutes with Z u ′ Z^{u'} Z u ′ , so
U P u U † ≐ C 1 Π π Z u ′ Π π † C 1 † , Π π Z u ′ Π π † = diag x ( − 1 ) u ′ ⋅ π − 1 ( x ) . UP_uU^\dagger\doteq C_1\Pi_\pi Z^{u'}\Pi_\pi^\dagger C_1^\dagger,\qquad
\Pi_\pi Z^{u'}\Pi_\pi^\dagger=\operatorname{diag}_x(-1)^{u'\cdot\pi^{-1}(x)}. U P u U † ≐ C 1 Π π Z u ′ Π π † C 1 † , Π π Z u ′ Π π † = diag x ( − 1 ) u ′ ⋅ π − 1 ( x ) .
If n ≤ 2 n\leq2 n ≤ 2 then π \pi π is affine, since every permutation of F 2 n \mathbb{F}_2^n F 2 n is, so u ′ ⋅ π − 1 ( x ) u'\cdot\pi^{-1}(x) u ′ ⋅ π − 1 ( x ) is affine in x x x and the diagonal factor is a Pauli. Hence L ⊆ P ( U ) L\subseteq\mathrm{P}(U) L ⊆ P ( U ) , and (1) gives the converse. If dim P ( U ) ≤ n \dim\mathrm{P}(U)\leq n dim P ( U ) ≤ n , a Lagrangian contained in P ( U ) \mathrm{P}(U) P ( U ) equals P ( U ) \mathrm{P}(U) P ( U ) , so there is at most one input Lagrangian, and the input determines the output through A M = U A L U † A_M=UA_LU^\dagger A M = U A L U † . In case (3), Proposition D.4 (1) gives π = 1 \pi=1 π = 1 or π ( x , y , z ) = ( x , y , z + x y ) \pi(x,y,z)=(x,y,z+xy) π ( x , y , z ) = ( x , y , z + x y ) , and π − 1 = π \pi^{-1}=\pi π − 1 = π has degree at most two. Then the diagonal factor is a diagonal Clifford, so L ⊆ C ( U ) L\subseteq\mathcal{C}(U) L ⊆ C ( U ) .
Lastly, recall that P ( U ) \mathrm{P}(U) P ( U ) is a subspace of V 1 V_1 V 1 . But P ( U ) ⊆ V 1 \mathrm{P}(U)\subseteq V_1 P ( U ) ⊆ V 1 , since otherwise U U U would be Clifford. Hence dim P ( U ) ≤ 1 \dim\mathrm{P}(U)\leq1 dim P ( U ) ≤ 1 , and (2) gives ∣ L ( U ) ∣ ≤ 1 |\mathcal{L}(U)|\leq1 ∣ L ( U ) ∣ ≤ 1 .
The next lemma gives the ( P ) (P) ( P ) parity technique.
Lemma D.6. The following statements hold.
(1) Every 2 2 2 -subgroup of Sp ( V n ) \operatorname{Sp}(V_n) Sp ( V n ) fixes a Lagrangian. Hence, if U 0 , … , U s ∈ C 2 ( n ) U_0,\ldots,U_s\in\mathcal{C}_2(n) U 0 , … , U s ∈ C 2 ( n ) and the maps γ U 0 − 1 γ U a \gamma_{U_0}^{-1}\gamma_{U_a} γ U 0 − 1 γ U a generate a 2 2 2 -group, then ⋂ a L ( U a ) ≠ ∅ \bigcap_a\mathcal{L}(U_a)\ne\varnothing ⋂ a L ( U a ) = ∅ .
(2) Let U U U be a gate such that ⟨ P ( n ) , U ⟩ \langle\mathcal{P}(n),U\rangle ⟨ P ( n ) , U ⟩ is a finite 2 2 2 -group modulo scalars. Then U U U normalizes a Pauli MASA. If U U U is Clifford, then γ U \gamma_U γ U is unipotent, so γ U \gamma_U γ U fixes a nonzero vector in every nonzero γ U \gamma_U γ U -invariant subspace. If U U U normalizes A Z A_Z A Z , its permutation preserves a complete affine flag.
Proof. The orbits of a 2 2 2 -group have 2 2 2 -power size, and the number of Lagrangians is odd by Lemma A.2. Then a Lagrangian L L L fixed by every γ U 0 − 1 γ U a \gamma_{U_0}^{-1}\gamma_{U_a} γ U 0 − 1 γ U a gives the common GSC pair ( L , γ U 0 L ) (L,\gamma_{U_0}L) ( L , γ U 0 L ) .
By Theorem C.1 , the group ⟨ P ( n ) , U ⟩ \langle\mathcal{P}(n),U\rangle ⟨ P ( n ) , U ⟩ fixes a Pauli MASA. If U U U is Clifford, U 2 k U^{2^k} U 2 k is scalar for some k k k , so ( γ U − I ) 2 k = γ U 2 k − I = 0 (\gamma_U-I)^{2^k}=\gamma_U^{2^k}-I=0 ( γ U − I ) 2 k = γ U 2 k − I = 0 over F 2 \mathbb{F}_2 F 2 . If U U U normalizes A Z A_Z A Z , so does every element of the group, and its permutation image is a 2 2 2 -group containing the translations x ↦ x + c x\mapsto x+c x ↦ x + c of the gates X c X^c X c . Applying Lemma D.3 (2) completes the proof.
The following lemma treats gates on one qubit.
Lemma D.7. The following statements hold.
(1) Let 1 = π 0 , π 1 , … , π s 1 = \pi_0, \pi_1, \ldots, \pi_s 1 = π 0 , π 1 , … , π s be permutations of a three-element set, any two of which agree at some point. Then they have a common fixed point.
(2) If U 0 , … , U s ∈ U ( 2 ) U_0, \ldots, U_s \in\mathrm{U}(2) U 0 , … , U s ∈ U ( 2 ) satisfy L ( U a ) ∩ L ( U b ) ≠ ∅ \mathcal{L}(U_a) \cap\mathcal{L}(U_b) \ne\varnothing L ( U a ) ∩ L ( U b ) = ∅ for all a , b a,b a , b , then ⋂ a L ( U a ) ≠ ∅ \bigcap_a \mathcal{L}(U_a) \ne\varnothing ⋂ a L ( U a ) = ∅ .
Proof. First, notice that two permutations π \pi π and π ′ \pi' π ′ agree at a point exactly when π ′ − 1 π \pi'^{-1}\pi π ′ − 1 π fixes it. On three points the permutations without a fixed point are the two 3-cycles, and the product of two distinct transpositions is a 3-cycle. Taking π ′ = π 0 = 1 \pi' = \pi_0 = 1 π ′ = π 0 = 1 , every π a \pi_a π a is the identity or a transposition, and two transpositions among the π a \pi_a π a agree somewhere, so they are equal. Hence all π a \pi_a π a lie in { 1 , τ } \{1,\tau\} { 1 , τ } for one transposition τ \tau τ , and the point fixed by τ \tau τ is fixed by every π a \pi_a π a .
Now we prove (2). Let Λ \Lambda Λ be the set of the three Lagrangians of V 1 V_1 V 1 , the lines spanned by the labels of X X X , Y Y Y and Z Z Z . The hypothesis with b = a b=a b = a gives L ( U a ) ≠ ∅ \mathcal{L}(U_a) \ne\varnothing L ( U a ) = ∅ for every a a a . Consider the following cases.
Some U a U_a U a is not Clifford: then L ( U a ) \mathcal{L}(U_a) L ( U a ) has at most one element by Lemma D.5(4), so L ( U a ) = { ( L , M ) } \mathcal{L}(U_a) = \{(L,M)\} L ( U a ) = {( L , M )} . For every b b b the nonempty set L ( U a ) ∩ L ( U b ) \mathcal{L}(U_a) \cap\mathcal{L}(U_b) L ( U a ) ∩ L ( U b ) is { ( L , M ) } \{(L,M)\} {( L , M )} , so ( L , M ) ∈ ⋂ b L ( U b ) (L,M) \in\bigcap_b \mathcal{L}(U_b) ( L , M ) ∈ ⋂ b L ( U b ) .
All U a U_a U a are Clifford: let γ a = γ U a \gamma_a = \gamma_{U_a} γ a = γ U a , so that L ( U a ) = { ( L , γ a L ) : L ∈ Λ } \mathcal{L}(U_a) = \{(L,\gamma_aL) : L \in\Lambda\} L ( U a ) = {( L , γ a L ) : L ∈ Λ } , and let π a = γ 0 − 1 γ a \pi_a = \gamma_0^{-1}\gamma_a π a = γ 0 − 1 γ a , a permutation of Λ \Lambda Λ with π 0 = 1 \pi_0 = 1 π 0 = 1 . A common GSC pair of U a U_a U a and U b U_b U b is a pair ( L , γ a L ) = ( L , γ b L ) (L,\gamma_aL) = (L,\gamma_bL) ( L , γ a L ) = ( L , γ b L ) , that is, a point L ∈ Λ L \in\Lambda L ∈ Λ with π a L = π b L \pi_aL = \pi_bL π a L = π b L . By (1) some L ∈ Λ L \in\Lambda L ∈ Λ is fixed by every π a \pi_a π a . Then γ a L = γ 0 L \gamma_aL = \gamma_0L γ a L = γ 0 L for all a a a , and ( L , γ 0 L ) ∈ ⋂ a L ( U a ) (L,\gamma_0L) \in\bigcap_a \mathcal{L}(U_a) ( L , γ 0 L ) ∈ ⋂ a L ( U a ) .
:::
Lemma D.8. Let U ∈ C ( 3 ) U \in\mathcal{C}(3) U ∈ C ( 3 ) , and consider commuting Pauli gates P 1 = P v 1 P_1 = P_{v_1} P 1 = P v 1 , P 2 = P v 2 P_2 = P_{v_2} P 2 = P v 2 where v 1 v_1 v 1 and v 2 v_2 v 2 are linearly independent and U P j U † ∈ P ( 3 ) UP_jU^\dagger\in\mathcal{P}(3) U P j U † ∈ P ( 3 ) for j = 1 , 2 j = 1,2 j = 1 , 2 . Then U ∈ G S C ( 3 ) U \in\mathrm{GSC}(3) U ∈ GSC ( 3 ) .
Proof. Choose Clifford gates C 1 , C 2 C_1,C_2 C 1 , C 2 with C 2 Z j C 2 † = P j C_2Z_jC_2^\dagger= P_j C 2 Z j C 2 † = P j and C 1 U P j U † C 1 † = Z j C_1UP_jU^\dagger C_1^\dagger= Z_j C 1 U P j U † C 1 † = Z j . Then V = C 1 U C 2 V = C_1UC_2 V = C 1 U C 2 commutes with Z 1 , Z 2 Z_1,Z_2 Z 1 , Z 2 , so V = ⨁ u ∈ F 2 2 V u V = \bigoplus_{u\in\mathbb{F}_2^2} V_u V = ⨁ u ∈ F 2 2 V u with one-qubit blocks V u V_u V u on qubit 3. For u ≠ u ′ u \ne u' u = u ′ , Lemma D.2(2) gives diag ( V u , V u ′ ) ∈ C ( 2 ) \operatorname{diag}(V_u,V_{u'}) \in\mathcal{C}(2) diag ( V u , V u ′ ) ∈ C ( 2 ) , which has a GSC pair by the two-qubit theorem [2 ] , and Lemma D.2(1) turns it into a common GSC pair of V u V_u V u and V u ′ V_{u'} V u ′ . By Lemma D.7(2) the four blocks share a GSC pair, so V ∈ G S C ( 3 ) V \in\mathrm{GSC}(3) V ∈ GSC ( 3 ) by Lemma D.2(1), and U ∈ G S C ( 3 ) U \in\mathrm{GSC}(3) U ∈ GSC ( 3 ) .
The next proposition gives the ( G ) (G) ( G ) Galois technique.
Proposition D.9. Let r ≥ 3 r \ge3 r ≥ 3 and let σ ∈ Gal ( K r / Q ) \sigma\in\operatorname{Gal}(K_r/\mathbb{Q}) σ ∈ Gal ( K r / Q ) fix i i i . For a gate U U U that is a scalar multiple of a matrix over K r K_r K r , let σ ( U ) \sigma(U) σ ( U ) be the entrywise image of that matrix, which is defined up to scalar.
(1) σ ( C ) ≐ C \sigma(C) \doteq C σ ( C ) ≐ C for every C ∈ C 2 ( n ) C \in\mathcal{C}_2(n) C ∈ C 2 ( n ) .
(2) If ( L , M ) ∈ L ( U ) (L,M) \in\mathcal{L}(U) ( L , M ) ∈ L ( U ) , then U − 1 σ ( U ) ∈ A L U^{-1}\sigma(U) \in\mathcal{A}_L U − 1 σ ( U ) ∈ A L and σ ( U ) U − 1 ∈ A M \sigma(U)U^{-1} \in\mathcal{A}_M σ ( U ) U − 1 ∈ A M . In particular, if U − 1 σ ( U ) ≐ P a U^{-1}\sigma(U) \doteq P_a U − 1 σ ( U ) ≐ P a , then a ∈ L a \in L a ∈ L .
(3) If σ ( U P v U † ) ≐ U P v U † \sigma(UP_vU^\dagger) \doteq UP_vU^\dagger σ ( U P v U † ) ≐ U P v U † for every v ∈ V n v \in V_n v ∈ V n , then σ ( U ) ≐ U P a \sigma(U) \doteq UP_a σ ( U ) ≐ U P a for some a ∈ V n a \in V_n a ∈ V n .
Proof. Every Clifford gate is a scalar multiple of a matrix over K 2 = Q ( i ) K_2 = \mathbb{Q}(i) K 2 = Q ( i ) since each Hadamard can be scaled by 2 \sqrt{2} 2 , while phase and CNOT gates already have entries in K 2 K_2 K 2 . As σ \sigma σ fixes K 2 K_2 K 2 , σ ( C ) = C \sigma(C) = C σ ( C ) = C .
Next, choose C 1 , C 2 ∈ C 2 ( n ) C_1,C_2 \in\mathcal{C}_2(n) C 1 , C 2 ∈ C 2 ( n ) with C 2 A L C 2 † = A Z C_2\mathcal{A}_LC_2^\dagger= \mathcal{A}_Z C 2 A L C 2 † = A Z and C 1 A Z C 1 † = A M C_1\mathcal{A}_ZC_1^\dagger= \mathcal{A}_M C 1 A Z C 1 † = A M . Then C 1 † U C 2 † = Π D C_1^\dagger U C_2^\dagger= \Pi D C 1 † U C 2 † = Π D is monomial, with Π \Pi Π a permutation matrix and D D D diagonal, and σ ( Π D ) = Π σ ( D ) \sigma(\Pi D) = \Pi\sigma(D) σ ( Π D ) = Π σ ( D ) . By (1),
U − 1 σ ( U ) = C 2 † ( D − 1 σ ( D ) ) C 2 ∈ C 2 † A Z C 2 = A L , U^{-1}\sigma(U) = C_2^\dagger(D^{-1}\sigma(D))C_2 \in C_2^\dagger\mathcal{A}_ZC_2 = \mathcal{A}_L, U − 1 σ ( U ) = C 2 † ( D − 1 σ ( D )) C 2 ∈ C 2 † A Z C 2 = A L ,
and σ ( U ) U − 1 = U ( U − 1 σ ( U ) ) U − 1 ∈ U A L U † = A M \sigma(U)U^{-1} = U(U^{-1}\sigma(U))U^{-1} \in U\mathcal{A}_LU^\dagger= \mathcal{A}_M σ ( U ) U − 1 = U ( U − 1 σ ( U )) U − 1 ∈ U A L U † = A M . Finally, P a ∈ A L P_a \in\mathcal{A}_L P a ∈ A L exactly when a ∈ L a \in L a ∈ L .
Lastly, Pauli matrices have entries in Z [ i ] \mathbb{Z}[i] Z [ i ] , so σ ( P v ) = P v \sigma(P_v) = P_v σ ( P v ) = P v and σ ( U ) P v σ ( U ) − 1 = U P v U − 1 \sigma(U)P_v\sigma(U)^{-1} = UP_vU^{-1} σ ( U ) P v σ ( U ) − 1 = U P v U − 1 . Thus Y = U − 1 σ ( U ) Y = U^{-1}\sigma(U) Y = U − 1 σ ( U ) satisfies Y P v Y − 1 = c v P v YP_vY^{-1} = c_vP_v Y P v Y − 1 = c v P v with c v 2 = 1 c_v^2 = 1 c v 2 = 1 , and v ↦ c v v \mapsto c_v v ↦ c v is a character, c v = ( − 1 ) ⟨ a , v ⟩ c_v = (-1)^{\langle a,v\rangle} c v = ( − 1 ) ⟨ a , v ⟩ . Then P a Y P_aY P a Y commutes with every Pauli, so it is scalar, and σ ( U ) ≐ U P a \sigma(U) \doteq UP_a σ ( U ) ≐ U P a .
:::
The following example applies the Galois technique.
Example D.10. Let C T = diag ( 1 , 1 , 1 , ζ 8 ) \mathrm{CT} = \operatorname{diag}(1,1,1,\zeta_8) CT = diag ( 1 , 1 , 1 , ζ 8 ) , and let σ ( ζ 8 ) = − ζ 8 \sigma(\zeta_8) = -\zeta_8 σ ( ζ 8 ) = − ζ 8 , which fixes i = ζ 8 2 i = \zeta_8^2 i = ζ 8 2 . Then σ ( C T ) = C T ⋅ C Z \sigma(\mathrm{CT}) = \mathrm{CT}\cdot\mathrm{CZ} σ ( CT ) = CT ⋅ CZ , so by Proposition D.9(2), every ( L , M ) ∈ L ( C T ) (L,M) \in\mathcal{L}(\mathrm{CT}) ( L , M ) ∈ L ( CT ) has
C Z = 1 2 ( I + Z 1 + Z 2 − Z 1 Z 2 ) ∈ A L ∩ A M . \mathrm{CZ} = \frac{1}{2}(I + Z_1 + Z_2 - Z_1Z_2) \in\mathcal{A}_L \cap\mathcal{A}_M. CZ = 2 1 ( I + Z 1 + Z 2 − Z 1 Z 2 ) ∈ A L ∩ A M . Hence z 1 , z 2 ∈ L ∩ M z_1,z_2 \in L \cap M z 1 , z 2 ∈ L ∩ M , and L ( C T ) = { ( span { z 1 , z 2 } , span { z 1 , z 2 } ) } \mathcal{L}(\mathrm{CT}) = \{(\operatorname{span}\{z_1,z_2\},\operatorname{span}\{z_1,z_2\})\} L ( CT ) = {( span { z 1 , z 2 } , span { z 1 , z 2 })} . The Galois constraint alone shows that the GSC pair of CT is unique. Later, in Lemma F.2(3) and in Cases 1b and 1c of the proof of Lemma F.6, the Galois cocycle is a Pauli P a P_a P a , which puts p p p in every input Lagrangian, and in Lemma E.5 it is the diagonal gate diag x i p ⋅ x ( − 1 ) q ( x ) \operatorname{diag}_{x} i^{p\cdot x}(-1)^{q(x)} diag x i p ⋅ x ( − 1 ) q ( x ) , a sign gate exactly when p = 0 p = 0 p = 0 .
Proposition D.11. For n = 3 , 4 n=3,4 n = 3 , 4 , let R n \mathcal{R}_n R n be all the gates with a Clifford conjugate of the form
M ∣ x ⟩ = ζ 8 λ i f ( x ) ∣ π x ⟩ , λ ∈ { 0 , 1 } , f : F 2 n → Z / 4 , (4) M|x\rangle=\zeta_8^{\lambda}i^{f(x)}|\pi x\rangle,\qquad\lambda\in\{0,1\},\qquad f:\mathbb{F}_2^n\to\mathbb{Z}/4, \tag*{(4)} M ∣ x ⟩ = ζ 8 λ i f ( x ) ∣ π x ⟩ , λ ∈ { 0 , 1 } , f : F 2 n → Z /4 , (4) where π \pi π preserves a complete affine flag, π 2 = 1 \pi^2=1 π 2 = 1 , f + f ∘ π = − λ ( m o d 4 ) f+f\circ\pi=-\lambda\pmod4 f + f ∘ π = − λ ( mod 4 ) , and tr M = 0 \operatorname{tr}M=0 tr M = 0 . Then R n \mathcal{R}_n R n is the class of traceless finite-level Gaussian GSC Hermitian involutions. For every h ∈ R n h\in\mathcal{R}_n h ∈ R n , the group ⟨ P ( n ) , h ⟩ \langle\mathcal{P}(n),h\rangle ⟨ P ( n ) , h ⟩ is a finite 2 2 2 -group modulo scalars.
Proof. Write [ ⋅ ] [\cdot] [ ⋅ ] for the image in PU ( 2 n ) \operatorname{PU}(2^n) PU ( 2 n ) and P ‾ ( n ) = [ P ( n ) ] \overline{\mathcal{P}}(n)=[\mathcal{P}(n)] P ( n ) = [ P ( n )] . For a complete affine flag F F F and t ≥ 2 t\ge2 t ≥ 2 , let M F ( t ) \mathcal{M}_F(t) M F ( t ) be the group of all [ Π ρ D ] [\Pi_\rho D] [ Π ρ D ] with ρ \rho ρ preserving F F F and D D D diagonal with entries in μ 2 t \mu_{2^t} μ 2 t . By Lemma D.3(1), M F ( t ) \mathcal{M}_F(t) M F ( t ) is a finite 2 2 2 -group. It contains P ‾ ( n ) \overline{\mathcal{P}}(n) P ( n ) , since X a Z b X^aZ^b X a Z b has permutation x ↦ x + a x\mapsto x+a x ↦ x + a and entries in μ 4 \mu_4 μ 4 .
We first show that every finite 2 2 2 -group G ≤ PU ( 2 n ) G\le\operatorname{PU}(2^n) G ≤ PU ( 2 n ) containing P ‾ ( n ) \overline{\mathcal{P}}(n) P ( n ) lies in [ C c ( n ) ] [C_c(n)] [ C c ( n )] for some c c c . Let Z 1 ( G ) ≤ Z 2 ( G ) ≤ ⋯ Z_1(G)\le Z_2(G)\le\cdots Z 1 ( G ) ≤ Z 2 ( G ) ≤ ⋯ be the upper central series. We show Z j ( G ) ⊆ [ C j ( n ) ] Z_j(G)\subseteq[C_j(n)] Z j ( G ) ⊆ [ C j ( n )] by induction. We have Z 1 ( G ) ⊆ P ‾ ( n ) = [ C 1 ( n ) ] Z_1(G)\subseteq\overline{\mathcal{P}}(n)=[C_1(n)] Z 1 ( G ) ⊆ P ( n ) = [ C 1 ( n )] . If Z j ( G ) ⊆ [ C j ( n ) ] Z_j(G)\subseteq[C_j(n)] Z j ( G ) ⊆ [ C j ( n )] , g ∈ Z j + 1 ( G ) g\in Z_{j+1}(G) g ∈ Z j + 1 ( G ) and P ∈ P ‾ ( n ) P\in\overline{\mathcal{P}}(n) P ∈ P ( n ) , then
g P g − 1 = [ g , P ] P , [ g , P ] = g P g − 1 P − 1 ∈ Z j ( G ) ⊆ [ C j ( n ) ] , gPg^{-1}=[g,P]P,\qquad[g,P]=gPg^{-1}P^{-1}\in Z_j(G)\subseteq[C_j(n)], g P g − 1 = [ g , P ] P , [ g , P ] = g P g − 1 P − 1 ∈ Z j ( G ) ⊆ [ C j ( n )] ,
and right multiplication by a Pauli preserves C j ( n ) C_j(n) C j ( n ) . Hence g ∈ [ C j + 1 ( n ) ] g\in[C_{j+1}(n)] g ∈ [ C j + 1 ( n )] . Since G G G is nilpotent, Z c ( G ) = G Z_c(G)=G Z c ( G ) = G for some c c c .
Step 1: every h ∈ R n h\in\mathcal{R}_n h ∈ R n is a traceless finite-level Gaussian GSC Hermitian involution, and ⟨ P ( n ) , h ⟩ \langle\mathcal{P}(n),h\rangle ⟨ P ( n ) , h ⟩ is a finite 2 2 2 -group modulo scalars.
Write h = C † M C h=C^\dagger MC h = C † M C with C ∈ C 2 ( n ) C\in\mathcal{C}_2(n) C ∈ C 2 ( n ) and M M M as in Eq. (D.1). Since ζ 8 2 λ = i λ \zeta_8^{2\lambda}=i^\lambda ζ 8 2 λ = i λ and f ( x ) + f ( π x ) = − λ f(x)+f(\pi x)=-\lambda f ( x ) + f ( π x ) = − λ ,
M 2 ∣ x ⟩ = ζ 8 2 λ i f ( x ) + f ( π x ) ∣ π 2 x ⟩ = ∣ x ⟩ . M^2|x\rangle=\zeta_8^{2\lambda}i^{f(x)+f(\pi x)}|\pi^2x\rangle=|x\rangle. M 2 ∣ x ⟩ = ζ 8 2 λ i f ( x ) + f ( π x ) ∣ π 2 x ⟩ = ∣ x ⟩ .
Thus M M M is a unitary involution, hence Hermitian. It is traceless by assumption, ζ 8 − λ M \zeta_8^{-\lambda}M ζ 8 − λ M has entries in Q ( i ) \mathbb{Q}(i) Q ( i ) , and M M M is monomial, so it normalizes A Z A_Z A Z . If π \pi π preserves the flag F F F , then [ M ] ∈ M F ( 3 ) [M]\in\mathcal{M}_F(3) [ M ] ∈ M F ( 3 ) , so ⟨ P ‾ ( n ) , [ M ] ⟩ ≤ M F ( 3 ) \langle\overline{\mathcal{P}}(n),[M]\rangle\le\mathcal{M}_F(3) ⟨ P ( n ) , [ M ]⟩ ≤ M F ( 3 ) .
Conjugation by C C C preserves these properties and turns A Z A_Z A Z into the Pauli MASA C † A Z C C^\dagger A_ZC C † A Z C , which is normalized by h h h , so h h h is GSC. Moreover [ ⟨ P ( n ) , h ⟩ ] = [ C ] − 1 ⟨ P ‾ ( n ) , [ M ] ⟩ [ C ] [\langle\mathcal{P}(n),h\rangle]=[C]^{-1}\langle\overline{\mathcal{P}}(n),[M]\rangle[C] [⟨ P ( n ) , h ⟩] = [ C ] − 1 ⟨ P ( n ) , [ M ]⟩ [ C ] is a finite 2 2 2 -group, and the second paragraph of this proof gives h ∈ C ( n ) h\in C(n) h ∈ C ( n ) .
We first show that h h h normalizes a Pauli MASA. By Proposition D.4 applied to a GSC pair of h h h , we have h = C 1 N C 2 h=C_1NC_2 h = C 1 N C 2 with C 1 , C 2 ∈ C 2 ( n ) C_1,C_2\in\mathcal{C}_2(n) C 1 , C 2 ∈ C 2 ( n ) and N = Π π D N=\Pi_\pi D N = Π π D , where π \pi π preserves a complete affine flag F F F and, h h h being Gaussian, [ N ] ∈ M F ( 2 ) [N]\in\mathcal{M}_F(2) [ N ] ∈ M F ( 2 ) . Since C 1 † h = N C 2 C_1^\dagger h=NC_2 C 1 † h = N C 2 up to scalar and C 2 C_2 C 2 normalizes the Pauli group,
[ C 1 ] − 1 Γ ( h ) [ C 1 ] = ⟨ P ‾ ( n ) , [ N ] P ‾ ( n ) [ N ] − 1 ⟩ ≤ M F ( 2 ) , [C_1]^{-1}\Gamma(h)[C_1]=\langle\overline{\mathcal{P}}(n),[N]\overline{\mathcal{P}}(n)[N]^{-1}\rangle\le\mathcal{M}_F(2), [ C 1 ] − 1 Γ ( h ) [ C 1 ] = ⟨ P ( n ) , [ N ] P ( n ) [ N ] − 1 ⟩ ≤ M F ( 2 ) ,
so Γ ( h ) \Gamma(h) Γ ( h ) is a finite 2 2 2 -group. As h 2 = I h^2=I h 2 = I , conjugation by [ h ] [h] [ h ] swaps P ‾ ( n ) \overline{\mathcal{P}}(n) P ( n ) and [ h ] P ‾ ( n ) [ h ] − 1 [h]\overline{\mathcal{P}}(n)[h]^{-1} [ h ] P ( n ) [ h ] − 1 , so [ h ] [h] [ h ] normalizes Γ ( h ) \Gamma(h) Γ ( h ) and G = Γ ( h ) ⟨ [ h ] ⟩ G=\Gamma(h)\langle[h]\rangle G = Γ ( h ) ⟨[ h ]⟩ is a finite 2 2 2 -group containing P ‾ ( n ) \overline{\mathcal{P}}(n) P ( n ) . By Theorem C.1 , G G G fixes a Pauli MASA, and in particular h h h normalizes it.
Let G G G be as above and choose C ∈ C 2 ( n ) C\in\mathcal{C}_2(n) C ∈ C 2 ( n ) mapping the fixed Pauli MASA to A Z A_Z A Z . Every element of [ C ] G [ C ] − 1 [C]G[C]^{-1} [ C ] G [ C ] − 1 normalizes A Z A_Z A Z , so it is a projective monomial, in particular M = C h C † = Π π D ′ M=ChC^\dagger=\Pi_\pi D' M = C h C † = Π π D ′ .
Consider the homomorphism sending [ Π ρ D ] [\Pi_\rho D] [ Π ρ D ] to ρ \rho ρ . The image of [ C ] G [ C ] − 1 [C]G[C]^{-1} [ C ] G [ C ] − 1 is a 2 2 2 -group containing all translations, since [ C ] P ‾ ( n ) [ C ] − 1 = P ‾ ( n ) [C]\overline{\mathcal{P}}(n)[C]^{-1}=\overline{\mathcal{P}}(n) [ C ] P ( n ) [ C ] − 1 = P ( n ) . By Lemma D.3(2) it preserves a complete affine flag, and so does π \pi π .
M M M has finite level and is Gaussian, since Clifford conjugation preserves both. Therefore D ′ D' D ′ has finite level [5 Corollary A.11] , its entry ratios lie in some μ 2 t \mu_{2^t} μ 2 t [5 Appendix F] , and Gaussianity puts them in μ 2 t ∩ Q ( i ) = μ 4 \mu_{2^t}\cap\mathbb{Q}(i)=\mu_4 μ 2 t ∩ Q ( i ) = μ 4 . Thus M ∣ x ⟩ = c i f ( x ) ∣ π x ⟩ M|x\rangle=ci^{f(x)}|\pi x\rangle M ∣ x ⟩ = c i f ( x ) ∣ π x ⟩ for some c c c and f : F 2 n → Z / 4 f:\mathbb{F}_2^n\to\mathbb{Z}/4 f : F 2 n → Z /4 .
M 2 = I M^2=I M 2 = I gives
π 2 = 1 , c 2 i f ( x ) + f ( π x ) = 1 for every x . \pi^2=1,\qquad c^2i^{f(x)+f(\pi x)}=1\quad\text{for every }x. π 2 = 1 , c 2 i f ( x ) + f ( π x ) = 1 for every x .
Hence c 2 ∈ μ 4 c^2\in\mu_4 c 2 ∈ μ 4 and c ∈ μ 8 c\in\mu_8 c ∈ μ 8 . Write c = ζ 8 λ i m c=\zeta_8^\lambda i^m c = ζ 8 λ i m with λ ∈ { 0 , 1 } \lambda\in\{0,1\} λ ∈ { 0 , 1 } and replace f f f by f + m f+m f + m ; then f + f ∘ π = − λ ( m o d 4 ) f+f\circ\pi=-\lambda\pmod4 f + f ∘ π = − λ ( mod 4 ) . Finally tr M = tr h = 0 \operatorname{tr}M=\operatorname{tr}h=0 tr M = tr h = 0 , so h ∈ R n h\in\mathcal{R}_n h ∈ R n . □
We say a gate D D D is stationary if every GSC pair of D D D has the form ( L , L ) (L,L) ( L , L ) , that is, D D D maps each of its input Pauli MASAs to itself. The three-qubit gates C S y z a C C Z b \mathrm{CS}_{y z}^{a}\mathrm{CCZ}^{b} CS y z a CCZ b with a , b ∈ F 2 a,b\in\mathbb{F}_2 a , b ∈ F 2 , that is, I I I , C S y z \mathrm{CS}_{y z} CS y z , C C Z \mathrm{CCZ} CCZ and C S y z C C Z \mathrm{CS}_{y z}\mathrm{CCZ} CS y z CCZ , are stationary by (C1). For a third-level gate D D D , let E D ≤ Sp ( 6 , 2 ) E_D\le\operatorname{Sp}(6,2) E D ≤ Sp ( 6 , 2 ) be generated by the symplectic actions of the Clifford gates D P v D † DP_vD^\dagger D P v D † , v ∈ V 3 v\in V_3 v ∈ V 3 .
Lemma D.12. Let D D D be a Clifford conjugate of some C S y z a C C Z b \mathrm{CS}_{yz}^{a}\mathrm{CCZ}^{b} CS y z a CCZ b and F ∈ C 2 ( 3 ) F \in\mathcal{C}_2(3) F ∈ C 2 ( 3 ) . If ⟨ P ( 3 ) , F D ⟩ \langle\mathcal{P}(3),FD\rangle ⟨ P ( 3 ) , F D ⟩ is a finite 2 2 2 -group modulo scalars, then so is ⟨ P ( 3 ) , F , D ⟩ \langle\mathcal{P}(3),F,D\rangle ⟨ P ( 3 ) , F , D ⟩ . In particular γ F e \gamma_F e γ F e is unipotent for every e ∈ E D e \in E_D e ∈ E D .
Proof. Write D = C G C † D=CGC^\dagger D = C G C † with C ∈ C 2 ( 3 ) C \in\mathcal{C}_2(3) C ∈ C 2 ( 3 ) and G = C S y z a C C Z b G=\mathrm{CS}_{yz}^{a}\mathrm{CCZ}^{b} G = CS y z a CCZ b .
Step 1: F F F and D D D normalize a common Pauli MASA A N \mathcal{A}_N A N . By Lemma D.6 (2), F D FD F D normalizes a Pauli MASA A N \mathcal{A}_N A N . Then D A N D † = F † A N F = A γ F − 1 N D\mathcal{A}_ND^\dagger=F^\dagger\mathcal{A}_NF=\mathcal{A}_{\gamma_F^{-1}N} D A N D † = F † A N F = A γ F − 1 N , so ( N , γ F − 1 N ) ∈ L ( D ) (N,\gamma_F^{-1}N)\in\mathcal{L}(D) ( N , γ F − 1 N ) ∈ L ( D ) , and Lemma D.1 (1) gives ( γ C − 1 N , γ C − 1 γ F − 1 N ) ∈ L ( G ) (\gamma_C^{-1}N,\gamma_C^{-1}\gamma_F^{-1}N)\in\mathcal{L}(G) ( γ C − 1 N , γ C − 1 γ F − 1 N ) ∈ L ( G ) . As G G G is stationary by (C1), γ F − 1 N = N \gamma_F^{-1}N=N γ F − 1 N = N . Hence D A N D † = A N = F A N F † D\mathcal{A}_ND^\dagger=\mathcal{A}_N=F\mathcal{A}_NF^\dagger D A N D † = A N = F A N F † , and G G G normalizes A N ′ \mathcal{A}_{N'} A N ′ with N ′ = γ C − 1 N N'=\gamma_C^{-1}N N ′ = γ C − 1 N .
Step 2: in Clifford coordinates in which A N \mathcal{A}_N A N is diagonal, the permutations of F F F and D D D preserve a common complete affine flag. Choose E ∈ C 2 ( 3 ) E\in\mathcal{C}_2(3) E ∈ C 2 ( 3 ) with E A N E † = A Z E\mathcal{A}_NE^\dagger=\mathcal{A}_Z E A N E † = A Z . By Step 1, E F E † EFE^\dagger E F E † and E D E † EDE^\dagger E D E † normalize A Z \mathcal{A}_Z A Z , so they are monomial, Π α Δ F \Pi_\alpha\Delta_F Π α Δ F and Π π Δ D \Pi_\pi\Delta_D Π π Δ D with Δ F , Δ D \Delta_F,\Delta_D Δ F , Δ D diagonal, and E ( F D ) E † E(FD)E^\dagger E ( F D ) E † has permutation α π \alpha\pi α π .
For c ∈ F 2 3 c\in\mathbb{F}_2^3 c ∈ F 2 3 , the conjugate of X c X_c X c by E F E † EFE^\dagger E F E † is a Pauli with permutation α τ c α − 1 \alpha\tau_c\alpha^{-1} α τ c α − 1 , where τ c ( x ) = x + c \tau_c(x)=x+c τ c ( x ) = x + c . This is a translation, so α ( x + c ) + α ( x ) \alpha(x+c)+\alpha(x) α ( x + c ) + α ( x ) does not depend on x x x , i.e., α \alpha α is affine. Since ⟨ P ( 3 ) , E ( F D ) E † ⟩ = E ⟨ P ( 3 ) , F D ⟩ E † \langle\mathcal{P}(3),E(FD)E^\dagger\rangle=E\langle\mathcal{P}(3),FD\rangle E^\dagger ⟨ P ( 3 ) , E ( F D ) E † ⟩ = E ⟨ P ( 3 ) , F D ⟩ E † is a finite 2 2 2 -group modulo scalars, and Lemma D.6 (2) applies, α π \alpha\pi α π preserves a complete affine flag. Since E D E † = ( E C ) G ( E C ) † EDE^\dagger=(EC)G(EC)^\dagger E D E † = ( E C ) G ( E C ) † , and E C EC E C maps A N ′ \mathcal{A}_{N'} A N ′ to A Z \mathcal{A}_Z A Z , π \pi π is a permutation of (C1). Translations preserve every complete affine flag by Lemma D.3 (1). For a fixed input Lagrangian N ′ N' N ′ of G G G , the gate E C EC E C is unique up to a left factor μ ∈ C 2 ( 3 ) \mu\in\mathcal{C}_2(3) μ ∈ C 2 ( 3 ) normalizing A Z \mathcal{A}_Z A Z , and μ \mu μ conjugates α \alpha α and π \pi π by an affine permutation, which preserves the claim. The data are therefore G G G (four gates), N ′ N' N ′ (among the 135 Lagrangians of V 3 V_3 V 3 ), α \alpha α (among the 1,344 affine permutations) and the 21 complete affine flags of F 2 3 \mathbb{F}_2^3 F 2 3 . The stationarity used in Step 1 is decided on the same 135 Lagrangians, and a search over these data gives the following.
Table C1.
By (C1), α \alpha α , π \pi π and the translations then preserve a common complete affine flag.
Step 3: ⟨ P ( 3 ) , F , D ⟩ \langle\mathcal{P}(3),F,D\rangle ⟨ P ( 3 ) , F , D ⟩ is a finite 2 2 2 -group modulo scalars. Let Q Q Q be the 2 2 2 -group of the permutations preserving the flag of Step 2 (Lemma D.3 (1)). Modulo scalars, the gates Π Δ \Pi_\Delta Π Δ with ρ ∈ Q \rho\in Q ρ ∈ Q and Δ \Delta Δ diagonal with entries in μ 4 \mu_4 μ 4 form a group of order ∣ Q ∣ ⋅ 4 7 |Q|\cdot4^7 ∣ Q ∣ ⋅ 4 7 . It contains the Paulis X c Z u X^cZ^u X c Z u , whose permutations are translations. It contains E F E † EFE^\dagger E F E † and E D E † EDE^\dagger E D E † up to scalar, since both are Gaussian and of finite level, so their entries lie in μ 4 \mu_4 μ 4 up to scalar [5 Corollary A.11.1, Appendix F] . Hence it contains E ⟨ P ( 3 ) , F , D ⟩ E † E\langle\mathcal{P}(3),F,D\rangle E^\dagger E ⟨ P ( 3 ) , F , D ⟩ E † modulo scalars.
Step 4: γ F e \gamma_F e γ F e is unipotent for every e ∈ E D e\in E_D e ∈ E D . As C ↦ γ C C\mapsto\gamma_C C ↦ γ C is a homomorphism on C 2 ( 3 ) \mathcal{C}_2(3) C 2 ( 3 ) , e = γ C e=\gamma_C e = γ C for a product c c c of the Clifford gates D P v D † DP_vD^\dagger D P v D † . The Clifford gate F c F_c F c lies in ⟨ P ( 3 ) , F , D ⟩ \langle\mathcal{P}(3),F,D\rangle ⟨ P ( 3 ) , F , D ⟩ , so ⟨ P ( 3 ) , F c ⟩ \langle\mathcal{P}(3),F_c\rangle ⟨ P ( 3 ) , F c ⟩ is a finite 2 2 2 -group modulo scalars by Step 3, and Lemma D.6 (2) makes γ F c = γ F e \gamma_{F_c}=\gamma_{F^e} γ F c = γ F e unipotent. □
The following lemma is used in the proof of Lemma F.4 .
Lemma D.13. Let J = ∑ u c u P u J=\sum_u c_uP_u J = ∑ u c u P u be a finite-level Hermitian involution on n n n qubits.
(1) For every Hermitian Pauli P P P , the order of J P JP J P is a power of two.
(2) If ( I + i J ) / 2 (I+iJ)/\sqrt{2} ( I + i J ) / 2 has finite level, then supp J = { u : c u ≠ 0 } \operatorname{supp}J=\{u:c_u\ne0\} supp J = { u : c u = 0 } is isotropic.
Proof. First, let J ∈ C k ( n ) J \in\mathcal{C}_k(n) J ∈ C k ( n ) , J 0 = J J_0=J J 0 = J and J j + 1 = J j P J j J_{j+1}=J_jP J_j J j + 1 = J j P J j . Each J j J_j J j is a Hermitian involution, and if J j ∈ C ℓ ( n ) J_j \in\mathcal{C}_{\ell}(n) J j ∈ C ℓ ( n ) then J j + 1 ∈ C ℓ − 1 ( n ) J_{j+1} \in\mathcal{C}_{\ell-1}(n) J j + 1 ∈ C ℓ − 1 ( n ) , so J k − 1 J_{k-1} J k − 1 is a Pauli gate up to sign. Since J j + 1 P = ( J j P ) 2 J_{j+1}P=(J_jP)^2 J j + 1 P = ( J j P ) 2 , J j P = ( J P ) 2 j J_jP=(JP)^{2^j} J j P = ( J P ) 2 j . As J k − 1 P J_{k-1}P J k − 1 P is a product of two Hermitian Paulis, it has order dividing 4. Hence the order of J P JP J P divides 2 k + 1 2^{k+1} 2 k + 1 .
Let G = ( I + i J ) / 2 G=(I+iJ)/\sqrt{2} G = ( I + i J ) / 2 . We first show that ( J P ) 4 = I (JP)^4=I ( J P ) 4 = I , i.e., J J J commutes with P J P PJP P J P , for every Hermitian Pauli P P P . By Jordan’s lemma [20 p. 6] , J J J and P P P preserve an orthogonal decomposition into blocks of dimension at most two. On a block of dimension one, J P = ± 1 JP=\pm1 J P = ± 1 . On a block of dimension two choose a basis with
J = Z , P = cos θ Z + sin θ X . J=Z,\qquad P=\cos\theta Z+\sin\theta X. J = Z , P = cos θ Z + sin θ X .
There J P JP J P has eigenvalues e ± i θ e^{\pm i\theta} e ± i θ , and G = diag ( ζ 8 , ζ 8 − 1 ) G=\operatorname{diag}(\zeta_8,\zeta_8^{-1}) G = diag ( ζ 8 , ζ 8 − 1 ) gives G P G † = cos θ Z − sin θ Y GP G^\dagger=\cos\theta Z-\sin\theta Y GP G † = cos θ Z − sin θ Y , so ( G P G † ) P (GP G^\dagger)P ( GP G † ) P has determinant one and trace 2 cos 2 θ 2\cos^2\theta 2 cos 2 θ . By (1), applied to J J J and to the finite-level Hermitian involution G P G † GP G^\dagger GP G † , both J P JP J P and ( G P G † ) P (GP G^\dagger)P ( GP G † ) P have 2-power order. So η = e 2 i θ \eta=e^{2i\theta} η = e 2 i θ and the eigenvalues ξ ± 1 \xi^{\pm1} ξ ± 1 of ( G P G † ) P (GP G^\dagger)P ( GP G † ) P are roots of unity of 2-power order, and 2 cos 2 θ = 1 + cos 2 θ 2\cos^2\theta=1+\cos2\theta 2 cos 2 θ = 1 + cos 2 θ gives
( ξ + ξ − 1 ) − 1 2 ( η + η − 1 ) = 1. \left(\xi+\xi^{-1}\right)-\frac{1}{2}\left(\eta+\eta^{-1}\right)=1. ( ξ + ξ − 1 ) − 2 1 ( η + η − 1 ) = 1.
The normalized trace of a cyclotomic field Q ( ζ 2 m ) \mathbb{Q}(\zeta_{2^m}) Q ( ζ 2 m ) containing ξ \xi ξ and η \eta η sends ϵ + ϵ − 1 \epsilon+\epsilon^{-1} ϵ + ϵ − 1 , for ϵ \epsilon ϵ a root of unity of 2-power order, to 2 2 2 , − 2 -2 − 2 or 0 0 0 according as ϵ = 1 \epsilon=1 ϵ = 1 , ϵ = − 1 \epsilon=-1 ϵ = − 1 or otherwise. Applied to the identity, it leaves only η = ξ = 1 \eta=\xi=1 η = ξ = 1 , and η = − 1 \eta=-1 η = − 1 with ξ ≠ ± 1 \xi\ne\pm1 ξ = ± 1 . Thus θ ∈ π 2 Z \theta\in\frac{\pi}{2}\mathbb{Z} θ ∈ 2 π Z , and ( J P ) 4 = I (JP)^4=I ( J P ) 4 = I on every block.
Now write J = ∑ u c u P u J=\sum_u c_uP_u J = ∑ u c u P u . For v ∈ V n v\in V_n v ∈ V n ,
4 − n ∑ w ∈ V n ( − 1 ) ω ( v , w ) P w J P w = c v P v , 4^{-n}\sum_{w\in V_n}(-1)^{\omega(v,w)}P_wJP_w=c_vP_v, 4 − n w ∈ V n ∑ ( − 1 ) ω ( v , w ) P w J P w = c v P v ,
and J J J commutes with each P w J P w P_wJP_w P w J P w , hence with c v P v c_vP_v c v P v . If c v ≠ 0 c_v\ne0 c v = 0 , then J J J commutes with P v P_v P v , which forces c u = 0 c_u=0 c u = 0 whenever ω ( u , v ) = 1 \omega(u,v)=1 ω ( u , v ) = 1 . Therefore supp P J \operatorname{supp}_P J supp P J is isotropic.
Lastly, the next proposition turns a GSC pair into a bound on the level k k k in the Clifford hierarchy. We will use it for n = 4 n=4 n = 4 and m = 2 m=2 m = 2 at the end of Appendix F.1. For d ≥ 1 d\ge1 d ≥ 1 , the d d d -fold corrections of a gate U U U are the corrections of its ( d − 1 ) (d-1) ( d − 1 ) -fold corrections, where the 0-fold correction of U U U is U U U itself. By the definition of the hierarchy, a gate U U U lies in C j ( n ) \mathcal{C}_j(n) C j ( n ) as soon as every d d d -fold correction of U U U lies in C j − d ( n ) \mathcal{C}_{j-d}(n) C j − d ( n ) . A monomial gate N ∣ x ⟩ = α x ∣ π x ⟩ N|x\rangle=\alpha_x|\pi x\rangle N ∣ x ⟩ = α x ∣ π x ⟩ has permutation π \pi π , and products and inverses of monomial gates are monomial, with the product and inverse permutations.
Proposition D.14. Let n ∈ { 3 , 4 } n\in\{3,4\} n ∈ { 3 , 4 } , U ∈ C ( n ) U\in\mathcal{C}(n) U ∈ C ( n ) be generalized semi-Clifford, and m ≥ 2 m\ge2 m ≥ 2 be such that every correction h v = U P v U † h_v=UP_vU^\dagger h v = U P v U † is defined over K m K_m K m up to scalar. Then U ∈ C m + 2 n − 4 ( n ) U\in\mathcal{C}_{m+2n-4}(n) U ∈ C m + 2 n − 4 ( n ) , that is, U ∈ C m + 2 ( 3 ) U\in\mathcal{C}_{m+2}(3) U ∈ C m + 2 ( 3 ) or U ∈ C m + 4 ( 4 ) U\in\mathcal{C}_{m+4}(4) U ∈ C m + 4 ( 4 ) .
Proof. By Proposition D.4, U . = C 1 M C 2 U\mathrel{.=}C_1MC_2 U . = C 1 M C 2 with C 1 , C 2 ∈ C 2 ( n ) C_1,C_2\in\mathcal{C}_2(n) C 1 , C 2 ∈ C 2 ( n ) and M = Π π D M=\Pi_\pi D M = Π π D , where D D D is diagonal and π \pi π preserves a complete affine flag. Every d d d -fold correction of U U U is the conjugate by C 1 C_1 C 1 of a d d d -fold correction of M M M , and Clifford conjugation preserves each level and, up to scalar, the field of definition, since Clifford gates are defined over Q ( i ) \mathbb{Q}(i) Q ( i ) up to scalar. We may therefore assume U = M U=M U = M .
Step 1: Π π ∈ C n ( n ) \Pi_\pi\in\mathcal{C}_n(n) Π π ∈ C n ( n ) .
For n = 3 n=3 n = 3 , π \pi π is 1 or ( x , y , z ) ↦ ( x , y , z + x y ) (x,y,z)\mapsto(x,y,z+xy) ( x , y , z ) ↦ ( x , y , z + x y ) by Proposition D.4(1), and the Toffoli gate is third-level. For n = 4 n=4 n = 4 , after an affine change of coordinates, π \pi π is a Clifford conjugation, the flag is span { e 4 } ⊂ span { e 3 , e 4 } ⊂ span { e 2 , e 3 , e 4 } \operatorname{span}\{e_4\}\subset\operatorname{span}\{e_3,e_4\}\subset\operatorname{span}\{e_2,e_3,e_4\} span { e 4 } ⊂ span { e 3 , e 4 } ⊂ span { e 2 , e 3 , e 4 } and π ( x , y , z , w ) = ( x + c , y + f 2 ( x ) , z + f 3 ( x , y ) , w + f 4 ( x , y , z ) ) \pi(x,y,z,w)=(x+c,y+f_2(x),z+f_3(x,y),w+f_4(x,y,z)) π ( x , y , z , w ) = ( x + c , y + f 2 ( x ) , z + f 3 ( x , y ) , w + f 4 ( x , y , z )) . Composing with an affine permutation on the left, which is Clifford, we may assume
π ( x , y , z , w ) = ( x , y , z + ϵ x y , w + f ( x , y , z ) ) , ϵ ∈ F 2 . \pi(x,y,z,w)=(x,y,z+\epsilon xy,w+f(x,y,z)),\qquad\epsilon\in\mathbb{F}_2. π ( x , y , z , w ) = ( x , y , z + ϵ x y , w + f ( x , y , z )) , ϵ ∈ F 2 .
For a ∈ F 2 4 a\in\mathbb{F}_2^4 a ∈ F 2 4 let t a t_a t a be the translation by a a a and ρ a = π t a π − 1 \rho_a=\pi t_a\pi^{-1} ρ a = π t a π − 1 . A direct computation gives
ρ a ( x , y , z , w ) = ( x + a 1 , y + a 2 , z + a 3 + ϵ ( a 1 y + a 2 x + a 1 a 2 ) , w + a 4 + q a ( x , y , z ) ) , \rho_a(x,y,z,w)=\left(x+a_1,y+a_2,z+a_3+\epsilon(a_1y+a_2x+a_1a_2),w+a_4+q_a(x,y,z)\right), ρ a ( x , y , z , w ) = ( x + a 1 , y + a 2 , z + a 3 + ϵ ( a 1 y + a 2 x + a 1 a 2 ) , w + a 4 + q a ( x , y , z ) ) ,
with q a ( x , y , z ) = ( Δ ( a 1 , a 2 , a 3 ) f ) ( x , y , z + ϵ x y ) q_a(x,y,z)=(\Delta_{(a_1,a_2,a_3)}f)(x,y,z+\epsilon xy) q a ( x , y , z ) = ( Δ ( a 1 , a 2 , a 3 ) f ) ( x , y , z + ϵ x y ) of degree at most two: a derivative of f f f has degree at most two, and substituting z + ϵ x y z+\epsilon xy z + ϵ x y for z z z keeps the degree. The correction of Π π \Pi_\pi Π π at X Z b X Z^b X Z b is the monomial gate ∣ p ⟩ ↦ ( − 1 ) g ( p ) ∣ ρ a ( p ) ⟩ |p\rangle\mapsto(-1)^{g(p)}|\rho_a(p)\rangle ∣ p ⟩ ↦ ( − 1 ) g ( p ) ∣ ρ a ( p )⟩ with q a = b ⋅ π − 1 q_a=b\cdot\pi^{-1} q a = b ⋅ π − 1 , and g ( x , y , z , w ) = b 4 w + g 0 ( x , y , z ) g(x,y,z,w)=b_4w+g_0(x,y,z) g ( x , y , z , w ) = b 4 w + g 0 ( x , y , z ) with deg g 0 ≤ 3 \deg g_0\le3 deg g 0 ≤ 3 . Its correction at X Z b ′ X Z^{b'} X Z b ′ has permutation ρ a ′ ρ a − 1 \rho_{a'}\rho_a^{-1} ρ a ′ ρ a − 1 , which is affine because the first three coordinates of ρ a \rho_a ρ a are affine and deg q a ≤ 2 \deg q_a\le2 deg q a ≤ 2 , and signs ( − 1 ) g ( u ) + g ( u + a ′ ) + b ′ ⋅ u (-1)^{g(u)+g(u+a')+b'\cdot u} ( − 1 ) g ( u ) + g ( u + a ′ ) + b ′ ⋅ u with u = ρ a − 1 ( p ) u=\rho_a^{-1}(p) u = ρ a − 1 ( p ) , a function of degree at most two in p p p . An affine permutation gate with a sign function of degree at most two is Clifford, as in the proof of Proposition B.4. So every correction of Π π \Pi_\pi Π π is third-level, and Π π ∈ C 4 ( 4 ) \Pi_\pi\in\mathcal{C}_4(4) Π π ∈ C 4 ( 4 ) .
Step 2: every non-scalar ( n − 2 ) (n-2) ( n − 2 ) -fold correction H H H of M M M has the form H ∣ x ⟩ = η ζ φ ( x ) ∣ ρ x ⟩ H|x\rangle=\eta\zeta^{\varphi(x)}|\rho x\rangle H ∣ x ⟩ = η ζ φ ( x ) ∣ ρ x ⟩ , where ζ = ζ 2 m \zeta=\zeta_{2^m} ζ = ζ 2 m , φ : F 2 n → Z / 2 m \varphi:\mathbb{F}_2^n\to\mathbb{Z}/2^m φ : F 2 n → Z / 2 m , ρ \rho ρ is affine, η \eta η is a scalar, and H H H is a traceless Hermitian involution.
As n − 2 ≥ 1 n-2\geq1 n − 2 ≥ 1 , H = g P g † H=gPg^\dagger H = g P g † with g g g an ( n − 3 ) (n-3) ( n − 3 ) -fold correction of M M M and P ≠ ± I P\neq\pm I P = ± I a Hermitian Pauli, so H H H is a traceless Hermitian involution. It is monomial, and its permutation is that of the ( n − 2 ) (n-2) ( n − 2 ) -fold correction of Π π \Pi_\pi Π π at the same Paulis, which lies in C 2 ( n ) C_2(n) C 2 ( n ) by Step 1. A monomial gate in C 2 ( n ) C_2(n) C 2 ( n ) maps each X a X^a X a to a Pauli, so its permutation is affine. The corrections of M M M are defined over K m K_m K m up to scalar, and if g = B g=B g = B with B B B over K m K_m K m , then g P g † = B P B − 1 gPg^\dagger=BPB^{-1} g P g † = B P B − 1 is over K m K_m K m . Hence the ratios of the entries of H H H lie in K m K_m K m . They are roots of unity of 2-power order [5 Appendix F] , hence lie in μ 2 m \mu_{2^m} μ 2 m .
Since H H H is a traceless Hermitian involution on 2 n ≥ 8 2^n\geq8 2 n ≥ 8 dimensions, det H = 1 \det H=1 det H = 1 . From H 2 = I H^2=I H 2 = I , φ ( x ) + φ ( ρ x ) = c \varphi(x)+\varphi(\rho x)=c φ ( x ) + φ ( ρ x ) = c is constant and η 2 = ζ − c \eta^2=\zeta^{-c} η 2 = ζ − c . Affine permutations of F 2 n \mathbb{F}_2^n F 2 n , n ≥ 3 n\geq3 n ≥ 3 , are even. Hence 1 = det H = η 2 n ζ ∑ x φ ( x ) = ζ ∑ x φ ( x ) − 2 n − 1 c 1=\det H=\eta^{2^n}\zeta^{\sum_x\varphi(x)}=\zeta^{\sum_x\varphi(x)-2^n{}^{-1}c} 1 = det H = η 2 n ζ ∑ x φ ( x ) = ζ ∑ x φ ( x ) − 2 n − 1 c , and ∑ x φ ( x ) \sum_x\varphi(x) ∑ x φ ( x ) is even. Expand φ = ∑ A ⊆ { 1 , … , n } c A x A \varphi=\sum_{A\subseteq\{1,\ldots,n\}}c_Ax_A φ = ∑ A ⊆ { 1 , … , n } c A x A with c A ∈ Z / 2 m c_A\in\mathbb{Z}/2^m c A ∈ Z / 2 m and x A = ∏ i ∈ A x i x_A=\prod_{i\in A}x_i x A = ∏ i ∈ A x i . The top coefficient c { 1 , … , n } = ∑ x ( − 1 ) n − ∣ x ∣ φ ( x ) c_{\{1,\ldots,n\}}=\sum_x(-1)^{n-|x|}\varphi(x) c { 1 , … , n } = ∑ x ( − 1 ) n − ∣ x ∣ φ ( x ) is even. We use the following bound on diagonal gates: diag ( ζ G ) ∈ C j ( n ) \operatorname{diag}(\zeta^{G})\in C_j(n) diag ( ζ G ) ∈ C j ( n ) whenever every coefficient c A c_A c A , A ≠ ∅ A\neq\varnothing A = ∅ , of G G G is divisible by 2 m + ∣ A ∣ − 1 − j 2^{m+|A|-1-j} 2 m + ∣ A ∣ − 1 − j . Indeed, such a gate is a product of gates diag ( ζ 2 m ′ c ′ ) \operatorname{diag}(\zeta_{2^{m'}}^{c'}) diag ( ζ 2 m ′ c ′ ) with m ′ + ∣ A ∣ − 1 ≤ j m'+|A|-1\leq j m ′ + ∣ A ∣ − 1 ≤ j , each of which lies in C m ′ + ∣ A ∣ − 1 ( n ) ⊆ C j ( n ) C_{m'+|A|-1}(n)\subseteq C_j(n) C m ′ + ∣ A ∣ − 1 ( n ) ⊆ C j ( n ) , and the diagonal gates in C j ( n ) C_j(n) C j ( n ) form a group [10 Lemma 3 and Theorem 1] .
For φ \varphi φ and j = m + n − 2 j=m+n-2 j = m + n − 2 , the exponent m + ∣ A ∣ − 1 − j m+|A|-1-j m + ∣ A ∣ − 1 − j is at most 0 0 0 when ∣ A ∣ ≤ n − 1 |A|\leq n-1 ∣ A ∣ ≤ n − 1 and equals 1 1 1 when ∣ A ∣ = n |A|=n ∣ A ∣ = n , where c A c_A c A is even. So diag ( ζ φ ) ∈ C m + n − 2 ( n ) \operatorname{diag}(\zeta^\varphi)\in C_{m+n-2}(n) diag ( ζ φ ) ∈ C m + n − 2 ( n ) , and H = η Π ρ diag ( ζ φ ) H=\eta\Pi_\rho\operatorname{diag}(\zeta^\varphi) H = η Π ρ diag ( ζ φ ) with Π ρ \Pi_\rho Π ρ Clifford lies in C m + n − 2 ( n ) C_{m+n-2}(n) C m + n − 2 ( n ) .
Scalar ( n − 2 ) (n-2) ( n − 2 ) -fold corrections are Paulis, so every ( n − 2 ) (n-2) ( n − 2 ) -fold correction of M M M lies in C m + n − 2 ( n ) C_{m+n-2}(n) C m + n − 2 ( n ) , and M ∈ C m + 2 n − 4 ( n ) M\in C_{m+2n-4}(n) M ∈ C m + 2 n − 4 ( n ) .
C(3) in GSC(3)
Proof of Theorem 10 when n=3
We first reduce Theorem 10 to gates whose corrections are also generalized semi-Clifford.
Lemma E.1. Let 1 ≤ n ≤ 4 1\leq n\leq4 1 ≤ n ≤ 4 , and suppose that U ∈ GSC ( n ) U\in\operatorname{GSC}(n) U ∈ GSC ( n ) for every U ∈ C ( n ) U\in C(n) U ∈ C ( n ) whose corrections h v h_v h v , v ∈ V n v\in V_n v ∈ V n , are all Gaussian and generalized semi-Clifford. Then every Gaussian gate in C ( n ) C(n) C ( n ) is generalized semi-Clifford. Consequently, if every correction of a gate U ∈ C ( n ) U\in C(n) U ∈ C ( n ) is Gaussian, then every correction of U U U is generalized semi-Clifford and U ∈ GSC ( n ) U\in\operatorname{GSC}(n) U ∈ GSC ( n ) , that is, the first assertion of Theorem 10 holds for this n n n .
Proof. We prove by induction on k k k that every Gaussian gate in C k ( n ) C_k(n) C k ( n ) is generalized semi-Clifford. For k ≤ 2 k\leq2 k ≤ 2 the gate is Clifford, hence generalized semi-Clifford. Let k ≥ 3 k\geq3 k ≥ 3 and let V ∈ C k ( n ) V\in C_k(n) V ∈ C k ( n ) be Gaussian, say V^\mathord{\cdot}=V_0 with V 0 V_0 V 0 over Q ( i ) \mathbb{Q}(i) Q ( i ) . Then each V P v V † = V 0 P v V 0 − 1 ∈ C k − 1 ( n ) V P_v V^\dagger=V_0P_vV_0^{-1}\in C_{k-1}(n) V P v V † = V 0 P v V 0 − 1 ∈ C k − 1 ( n ) is Gaussian, hence generalized semi-Clifford by induction, and the hypothesis gives V ∈ GSC ( n ) V\in\operatorname{GSC}(n) V ∈ GSC ( n ) .
Now let every correction h v h_v h v of U ∈ C ( n ) U\in C(n) U ∈ C ( n ) be Gaussian. Each h v h_v h v is a Gaussian gate in C ( n ) C(n) C ( n ) , hence generalized semi-Clifford, and the hypothesis gives U ∈ GSC ( n ) U\in\operatorname{GSC}(n) U ∈ GSC ( n ) .
Now by Lemma E.1, for n = 3 n=3 n = 3 it suffices to show that U ∈ GSC ( 3 ) U\in\operatorname{GSC}(3) U ∈ GSC ( 3 ) whenever h v h_v h v is Gaussian and generalized semi-Clifford for all v ∈ V 3 v\in V_3 v ∈ V 3 . From now on in this subsection, let U ∈ C ( 3 ) U\in C(3) U ∈ C ( 3 ) and assume h v h_v h v is Gaussian and generalized semi-Clifford for all v ∈ V 3 v\in V_3 v ∈ V 3 . In particular h v ∈ K 3 h_v\in\mathcal{K}_3 h v ∈ K 3 for v ≠ 0 v\neq0 v = 0 . We want to show that h v ∈ C 3 ( 3 ) h_v\in C_3(3) h v ∈ C 3 ( 3 ) for all v v v , which gives U ∈ C 4 ( 3 ) ⊆ GSC ( 3 ) U\in C_4(3)\subseteq\operatorname{GSC}(3) U ∈ C 4 ( 3 ) ⊆ GSC ( 3 ) by Theorem 6.
Proposition E.2. Let h ∈ K 3 h\in\mathcal{K}_3 h ∈ K 3 . Then h ∈ C 4 ( 3 ) h\in C_4(3) h ∈ C 4 ( 3 ) . Suppose moreover that h ∉ C 3 ( 3 ) h\notin C_3(3) h ∈ / C 3 ( 3 ) .
(1) There is a nonzero label r r r with h P r h † = P r hP_rh^\dagger=P_r h P r h † = P r , and r r r is the only nonzero label v v v with h P v h † = ± P v hP_vh^\dagger=\pm P_v h P v h † = ± P v . Moreover C ( h ) = r ⊥ \operatorname{C}(h)=r^\perp C ( h ) = r ⊥ , and every non-Pauli correction of h h h at a label in r ⊥ r^\perp r ⊥ has the form 1 2 ( ± P q ± P q + r ± P q ′ ± P q ′ + r ) \frac{1}{2}(\pm P_q\pm P_{q+r}\pm P_{q'}\pm P_{q'+r}) 2 1 ( ± P q ± P q + r ± P q ′ ± P q ′ + r ) for some labels q , q ′ q,q' q , q ′ .
(2) L ( h ) = { ( L , L ) } \mathcal{L}(h)=\{(L,L)\} L ( h ) = {( L , L )} for a Lagrangian L ≤ V 3 L\leq V_3 L ≤ V 3 , and r ∈ L r\in L r ∈ L .
(3) Exactly two E ∈ A L E\in\mathcal{A}_L E ∈ A L satisfy E 2 = E = E † E^2=E=E^\dagger E 2 = E = E † , tr E = 1 \operatorname{tr}E=1 tr E = 1 and h E h † = E hEh^\dagger=E h E h † = E .
Proof. By Proposition D.11, h h h is Clifford-conjugate to a gate M M M of the form (D.1). Conjugating by an affine permutation, we may take the flag in that proposition to be 0 < span { e z } < span { e y , e z } < F 2 3 0 < \operatorname{span}\{e_z\} < \operatorname{span}\{e_y,e_z\} < \mathbb{F}_2^3 0 < span { e z } < span { e y , e z } < F 2 3 . We use (C2) to show that M ∈ C 3 ( 3 ) M \in C_3(3) M ∈ C 3 ( 3 ) or M M M is Clifford-conjugate up to scalar to H ∗ H_* H ∗ , which is defined as follows: label the three qubits x , y , z x,y,z x , y , z and let
H ∗ = diag ( A , B ) , where A = I + Z z 2 X y + I − Z z 2 Y y , B = I + Z y 2 Z z + I − Z y 2 X z . H_* = \operatorname{diag}(A,B), \qquad\text{where } A = \frac{I+Z_z}{2}X_y+\frac{I-Z_z}{2}Y_y,\qquad B=\frac{I+Z_y}{2}Z_z+\frac{I-Z_y}{2}X_z. H ∗ = diag ( A , B ) , where A = 2 I + Z z X y + 2 I − Z z Y y , B = 2 I + Z y Z z + 2 I − Z y X z .
A A A and B B B are Clifford by Proposition A.5 with k = 2 k=2 k = 2 , and they are Hermitian and unitary, hence involutions. The gate M M M is determined by ( λ , f , π ) ∈ F 2 × ( Z / 4 ) F 2 3 × Q 3 (\lambda,f,\pi)\in\mathbb{F}_2\times(\mathbb{Z}/4)^{\mathbb{F}_2^3}\times Q_3 ( λ , f , π ) ∈ F 2 × ( Z /4 ) F 2 3 × Q 3 , where Q 3 Q_3 Q 3 is the group of the 2 7 2^7 2 7 permutations preserving the flag (Lemma D.3(1)). Whether M ∈ C 3 ( 3 ) M\in C_3(3) M ∈ C 3 ( 3 ) or not is decided on a basis of V 3 V_3 V 3 , and the affine–diagonal Clifford gates are finitely many modulo scalars. Enumerating these gates gives the following.
(C2) Three-qubit involutions with a flag-preserving permutation
Let M M M be a gate of the form (D.1) on three qubits whose permutation preserves the flag 0 < span { e z } < span { e y , e z } < F 2 3 0<\operatorname{span}\{e_z\}<\operatorname{span}\{e_y,e_z\}<\mathbb{F}_2^3 0 < span { e z } < span { e y , e z } < F 2 3 , and let H ∗ H_* H ∗ be as in the proof of Proposition E.2. Then [ M ] ∈ C 3 ( 3 ) [M]\in C_3(3) [ M ] ∈ C 3 ( 3 ) , or [ M ] [M] [ M ] is conjugate to [ H ∗ ] [H_*] [ H ∗ ] by an affine–diagonal Clifford gate.
Code. certificates/three-qubit-flag-preserving-involution-rays in https://github.com/numberinggeometry/clifford-hierarchy-plane-certificate
Moreover H ∗ = diag ( I , B A ) ( I ⊗ A ) H_*=\operatorname{diag}(I,BA)(I\otimes A) H ∗ = diag ( I , B A ) ( I ⊗ A ) . Let r = z x r=z_x r = z x and L 0 = span { z x , z y , z z } L_0=\operatorname{span}\{z_x,z_y,z_z\} L 0 = span { z x , z y , z z } . Identify r ⊥ / span { r } r^\perp/\operatorname{span}\{r\} r ⊥ / span { r } with the label space V 2 V_2 V 2 of qubits y , z y,z y , z , write p ↦ p ˉ p\mapsto\bar p p ↦ p ˉ for the quotient map, and let α , β ∈ Sp ( V 2 ) \alpha,\beta\in\operatorname{Sp}(V_2) α , β ∈ Sp ( V 2 ) be the symplectic actions of A , B A,B A , B . Set J = α + β J=\alpha+\beta J = α + β and N = α β + I N=\alpha\beta+I N = α β + I . In coordinates ( s , t , u , v ) (s,t,u,v) ( s , t , u , v ) with respect to x y , x z , z y , z z x_y,x_z,z_y,z_z x y , x z , z y , z z ,
J ( s , t , u , v ) = ( 0 , s , s + v , t ) , N ( s , t , u , v ) = ( 0 , s , v , s + t ) , N 3 ( s , t , u , v ) = ( 0 , 0 , s , 0 ) , N 4 = 0. J(s,t,u,v)=(0,s,s+v,t),\qquad N(s,t,u,v)=(0,s,v,s+t),\qquad N^3(s,t,u,v)=(0,0,s,0),\qquad N^4=0. J ( s , t , u , v ) = ( 0 , s , s + v , t ) , N ( s , t , u , v ) = ( 0 , s , v , s + t ) , N 3 ( s , t , u , v ) = ( 0 , 0 , s , 0 ) , N 4 = 0.
Since ( B A ) 4 = − I (BA)^4=-I ( B A ) 4 = − I and ( B A ) 2 ∉ μ 4 P ( 2 ) (BA)^2\notin\mu_4P(2) ( B A ) 2 ∈ / μ 4 P ( 2 ) , Proposition A.5 gives diag ( I , B A ) ∈ C 4 ( 3 ) ∖ C 3 ( 3 ) \operatorname{diag}(I,BA)\in C_4(3)\setminus C_3(3) diag ( I , B A ) ∈ C 4 ( 3 ) ∖ C 3 ( 3 ) , and hence, as right multiplication by a Clifford preserves each level, H ∗ ∈ C 4 ( 3 ) ∖ C 3 ( 3 ) H_*\in C_4(3)\setminus C_3(3) H ∗ ∈ C 4 ( 3 ) ∖ C 3 ( 3 ) . Thus h ∈ C 4 ( 3 ) h\in C_4(3) h ∈ C 4 ( 3 ) .
Now suppose h ∉ C 3 ( 3 ) h\notin C_3(3) h ∈ / C 3 ( 3 ) . Then h = ± C H ∗ C † h=\pm CH_*C^\dagger h = ± C H ∗ C † for a Clifford C C C (the scalar is ± 1 \pm1 ± 1 because both gates are Hermitian involutions). Assertions (1)–(3) are invariant under this conjugation, with r r r , L L L and E E E replaced by their images under C C C , so it suffices to prove them for H ∗ H_* H ∗ , with r = z x r=z_x r = z x and L = L 0 L=L_0 L = L 0 .
K p = Z x c diag ( ± P α p ˉ , ± P β p ˉ ) = ± Z x c diag ( I , ± P β p ˉ P α p ˉ ) ( I ⊗ P α p ˉ ) , K_p=Z_x^c\operatorname{diag}(\pm P_{\alpha\bar p},\pm P_{\beta\bar p})=\pm Z_x^c\operatorname{diag}(I,\pm P_{\beta\bar p}P_{\alpha\bar p})(I\otimes P_{\alpha\bar p}), K p = Z x c diag ( ± P α p ˉ , ± P β p ˉ ) = ± Z x c diag ( I , ± P β p ˉ P α p ˉ ) ( I ⊗ P α p ˉ ) ,
which is a Clifford by Proposition A.5 with k = 2 k=2 k = 2 . As α p ˉ + β p ˉ = J p ˉ \alpha\bar p+\beta\bar p=J\bar p α p ˉ + β p ˉ = J p ˉ , it maps P w P_w P w to ± P w + ω ( J p ˉ , w ˉ ) r \pm P_{w+\omega(J\bar p,\bar w)r} ± P w + ω ( J p ˉ , w ˉ ) r for w ∈ r ⊥ w\in r^\perp w ∈ r ⊥ . It is a Pauli exactly when α p ˉ = β p ˉ \alpha\bar p=\beta\bar p α p ˉ = β p ˉ , that is, p ˉ ∈ ker J = span { z y } \bar p\in\ker J=\operatorname{span}\{z_y\} p ˉ ∈ ker J = span { z y } . Otherwise
K p = 1 2 ( ± P q ± P q + r ± P q ′ ± P q ′ + r ) K_p=\frac{1}{2}(\pm P_q\pm P_{q+r}\pm P_{q'}\pm P_{q'+r}) K p = 2 1 ( ± P q ± P q + r ± P q ′ ± P q ′ + r )
for some labels q , q ′ q,q' q , q ′ .
– x x ∉ C ( H ∗ ) x_x\notin C(H_*) x x ∈ / C ( H ∗ ) : We have H ∗ X x H ∗ = X x diag ( B A , A B ) = X x diag ( I , ( A B ) 2 ) ( I ⊗ B A ) H_*X_xH_*=X_x\operatorname{diag}(BA,AB)=X_x\operatorname{diag}(I,(AB)^2)(I\otimes BA) H ∗ X x H ∗ = X x diag ( B A , A B ) = X x diag ( I , ( A B ) 2 ) ( I ⊗ B A ) , and ( A B ) 2 = ( ( B A ) 2 ) − 1 = − ( B A ) 2 ∉ μ 4 P ( 2 ) (AB)^2=((BA)^2)^{-1}=-(BA)^2\notin\mu_4P(2) ( A B ) 2 = (( B A ) 2 ) − 1 = − ( B A ) 2 ∈ / μ 4 P ( 2 ) . Hence H ∗ X x H ∗ H_*X_xH_* H ∗ X x H ∗ is not a Clifford gate by Proposition A.5.
The subspace C ( H ∗ ) C(H_*) C ( H ∗ ) contains the hyperplane r ⊥ r^\perp r ⊥ but not x x x_x x x , so C ( H ∗ ) = r ⊥ C(H_*)=r^\perp C ( H ∗ ) = r ⊥ , and then P ( H ∗ ) = span { r , z y } P(H_*)=\operatorname{span}\{r,z_y\} P ( H ∗ ) = span { r , z y } . A label p p p with H ∗ P p H ∗ = ± P p H_*P_pH_*=\pm P_p H ∗ P p H ∗ = ± P p lies in P ( H ∗ ) P(H_*) P ( H ∗ ) . Since H ∗ Z x H ∗ = Z x H_*Z_xH_*=Z_x H ∗ Z x H ∗ = Z x and H ∗ Z y H ∗ = − Z x Z y H_*Z_yH_*=-Z_xZ_y H ∗ Z y H ∗ = − Z x Z y , the label r r r is the only nonzero one.
Proof of (2). Let ( L 1 , L 2 ) ∈ L ( H ∗ ) (L_1,L_2)\in\mathcal{L}(H_*) ( L 1 , L 2 ) ∈ L ( H ∗ ) . As H ∗ H_* H ∗ is an involution, also ( L 2 , L 1 ) ∈ L ( H ∗ ) (L_2,L_1)\in\mathcal{L}(H_*) ( L 2 , L 1 ) ∈ L ( H ∗ ) , so for p ∈ r ⊥ p\in r^\perp p ∈ r ⊥ the Clifford K = H ∗ P p H ∗ K=H_*P_pH_* K = H ∗ P p H ∗ satisfies
K A L i K † = H ∗ P p A L 3 − i P p H ∗ = A L i ( i = 1 , 2 ) . KA_{L_i}K^\dagger=H_*P_pA_{L_{3-i}}P_pH_*=A_{L_i}\qquad(i=1,2). K A L i K † = H ∗ P p A L 3 − i P p H ∗ = A L i ( i = 1 , 2 ) .
– r ∉ L i r\notin L_i r ∈ / L i : Otherwise L i ∩ r ⊥ L_i\cap r^\perp L i ∩ r ⊥ is two-dimensional and injects into V 2 V_2 V 2 . For w w w in it, w + ω ( J p ˉ , w ˉ ) r ∈ L i w+\omega(J\bar p,\bar w)r\in L_i w + ω ( J p ˉ , w ˉ ) r ∈ L i forces ω ( J p ˉ , w ˉ ) = 0 \omega(J\bar p,\bar w)=0 ω ( J p ˉ , w ˉ ) = 0 for every p p p , so its image lies in ( im J ) ⊥ (\operatorname{im}J)^\perp ( im J ) ⊥ , which is one-dimensional because rank J = 3 \operatorname{rank}J=3 rank J = 3 , a contradiction.
– L i = L 0 L_i=L_0 L i = L 0 : Now L i = span { r } ⊕ L ˉ i L_i=\operatorname{span}\{r\}\oplus\bar L_i L i = span { r } ⊕ L ˉ i with Lagrangians L ˉ i ≤ V 2 \bar L_i\leq V_2 L ˉ i ≤ V 2 , and A L i = diag ( A L ˉ i , A L ˉ i ) \mathcal{A}_{L_i}=\operatorname{diag}(\mathcal{A}_{\bar L_i},\mathcal{A}_{\bar L_i}) A L i = diag ( A L ˉ i , A L ˉ i ) , so H ∗ A L 1 H ∗ = A L 2 H_*\mathcal{A}_{L_1}H_*=\mathcal{A}_{L_2} H ∗ A L 1 H ∗ = A L 2 reads
α L ˉ 1 = β L ˉ 1 = L ˉ 2 , hence N L ˉ 1 ⊆ L ˉ 1 , \alpha\bar L_1=\beta\bar L_1=\bar L_2,\qquad\text{hence}\qquad N\bar L_1\subseteq\bar L_1, α L ˉ 1 = β L ˉ 1 = L ˉ 2 , hence N L ˉ 1 ⊆ L ˉ 1 ,
since α 2 = β 2 = I \alpha^2=\beta^2=I α 2 = β 2 = I . As N 3 ≠ 0 = N 4 N^3\ne0=N^4 N 3 = 0 = N 4 , N N N is a single nilpotent Jordan block, and its only invariant two-dimensional subspace is ker N 2 = span { z y , z z } \ker N^2=\operatorname{span}\{z_y,z_z\} ker N 2 = span { z y , z z } , which β \beta β fixes. Hence L 1 = L 2 = L 0 L_1=L_2=L_0 L 1 = L 2 = L 0 .
Conversely ( L 0 , L 0 ) ∈ L ( H ∗ ) (L_0,L_0) \in\mathcal{L}(H_*) ( L 0 , L 0 ) ∈ L ( H ∗ ) , because H ∗ H_* H ∗ is monomial. Finally r = z x ∈ L 0 r=z_x \in L_0 r = z x ∈ L 0 .
Proof of (3). The rank-one projections in A L 0 A_{L_0} A L 0 are ∣ x , y , z ⟩ ⟨ x , y , z ∣ |x,y,z\rangle\langle x,y,z| ∣ x , y , z ⟩ ⟨ x , y , z ∣ , and H ∗ H_* H ∗ permutes the computational basis by ( x , y , z ) ↦ ( x , y + x + 1 , z + x y ) (x,y,z) \mapsto(x,y+x+1,z+xy) ( x , y , z ) ↦ ( x , y + x + 1 , z + x y ) , whose fixed points are exactly ( 1 , 0 , z ) (1,0,z) ( 1 , 0 , z ) , so the two projections are ∣ 1 , 0 , z ⟩ ⟨ 1 , 0 , z ∣ |1,0,z\rangle\langle1,0,z| ∣1 , 0 , z ⟩ ⟨ 1 , 0 , z ∣ , z ∈ F 2 z \in\mathbb{F}_2 z ∈ F 2 .
We call a gate t ∈ R 3 ∖ C 3 ( 3 ) t \in\mathcal{R}_3 \setminus\mathcal{C}_3(3) t ∈ R 3 ∖ C 3 ( 3 ) exceptional. We write L t L_t L t for its Lagrangian L L L and call its label r t = r r_t=r r t = r from Proposition E.2(1) the root of t t t . By the proof of that proposition, t = ± C H ∗ C † t=\pm CH_*C^\dagger t = ± C H ∗ C † for a Clifford gate C C C , and then γ C z x = r t \gamma_C z_x=r_t γ C z x = r t and γ C L 0 = L t \gamma_C L_0=L_t γ C L 0 = L t .
Lemma E.3. Let s , v ∈ V 3 ∖ { 0 } s,v \in V_3 \setminus\{0\} s , v ∈ V 3 ∖ { 0 } with s ≠ v s \ne v s = v and h s ∉ C 3 ( 3 ) h_s \notin\mathcal{C}_3(3) h s ∈ / C 3 ( 3 ) , and let L ( h s ) = { ( S , S ) } \mathcal{L}(h_s)=\{(S,S)\} L ( h s ) = {( S , S )} (Proposition E.2). Then
h v A S h v † = A S . h_v A_S h_v^\dagger=A_S. h v A S h v † = A S .
Proof. Conjugating every h w h_w h w by one Clifford gate, that is, replacing U U U by C U CU C U , changes neither the hypotheses nor the conclusion. By the proof of Proposition E.2 we may therefore assume h s = ± H ∗ h_s=\pm H_* h s = ± H ∗ and S = L 0 S=L_0 S = L 0 . Write H = h s H=h_s H = h s , h = h v h=h_v h = h v , g = h s + v g=h_{s+v} g = h s + v , and r = z x = r H r=z_x=r_H r = z x = r H . Then H h = ± h H Hh=\pm hH H h = ± h H , g ≐ H h ≐ h H g \doteq Hh \doteq hH g ≐ H h ≐ h H , and h , g ∈ C 4 ( 3 ) h,g \in\mathcal{C}_4(3) h , g ∈ C 4 ( 3 ) by Proposition E.2.
It suffices to show h A L 0 h † = A L 0 hA_{L_0}h^\dagger=A_{L_0} h A L 0 h † = A L 0 . Since H H H preserves A L 0 A_{L_0} A L 0 and g ≐ H h g \doteq Hh g ≐ H h , this is equivalent to g A L 0 g † = A L 0 gA_{L_0}g^\dagger=A_{L_0} g A L 0 g † = A L 0 , so the roles of h h h and g g g are symmetric. For every exceptional t t t , L ( t ) = { ( L t , L t ) } \mathcal{L}(t)=\{(L_t,L_t)\} L ( t ) = {( L t , L t )} , so Lemma D.1(2) gives
K , K ′ ∈ C 2 ( 3 ) , t K ≐ K ′ t ⟹ K A L t K † = A L t . (5) K,K' \in\mathcal{C}_2(3),\qquad tK \doteq K't \quad\Longrightarrow\quad KA_{L_t}K^\dagger=A_{L_t}. \tag*{(5)} K , K ′ ∈ C 2 ( 3 ) , t K ≐ K ′ t ⟹ K A L t K † = A L t . (5)
We split on whether h , g h,g h , g are third-level; otherwise, by symmetry, h h h is exceptional with root r ′ = r h r'=r_h r ′ = r h , and we compare r ′ r' r ′ with r r r .
Figure 7. Case analysis in the proof of Lemma E.3.
For p ∈ V 3 p \in V_3 p ∈ V 3 , apply ( ∗ ) (*) ( ∗ ) with t = H t=H t = H , K = h P p h K=hP_ph K = h P p h , and K ′ = g P p g † = H K H K'=gP_pg^\dagger=HKH K ′ = g P p g † = H K H , which are Clifford. Thus every correction of h h h preserves A L 0 A_{L_0} A L 0 , and Lemma 3 gives a Lagrangian M M M with h A L 0 h † = A M hA_{L_0}h^\dagger=A_M h A L 0 h † = A M . Since H h = ± h H Hh=\pm hH H h = ± h H and H H H preserves A L 0 A_{L_0} A L 0 , we get H A M H = h H A L 0 H h = A M HAMH=hHA_{L_0}Hh=A_M H A M H = h H A L 0 H h = A M , and Proposition E.2(2) gives M = L 0 M=L_0 M = L 0 .
Write h = ± C H ∗ C † h=\pm CH_*C^\dagger h = ± C H ∗ C † with C C C Clifford. As γ C z x = r ′ = z x \gamma_C z_x=r'=z_x γ C z x = r ′ = z x , C C C is block diagonal or block antidiagonal with Clifford blocks, so h = diag ( G 0 , G 1 ) h=\operatorname{diag}(G_0,G_1) h = diag ( G 0 , G 1 ) , where the symplectic actions ϕ 0 , ϕ 1 ∈ Sp ( V 2 ) \phi_0,\phi_1 \in\operatorname{Sp}(V_2) ϕ 0 , ϕ 1 ∈ Sp ( V 2 ) of G 0 , G 1 G_0,G_1 G 0 , G 1 are conjugate to α , β \alpha,\beta α , β in some order. Since A L 0 = diag ( A L ˉ 0 , A L ˉ 0 ) A_{L_0}=\operatorname{diag}(A_{\bar L_0},A_{\bar L_0}) A L 0 = diag ( A L ˉ 0 , A L ˉ 0 ) , it suffices to show that ϕ 0 \phi_0 ϕ 0 and ϕ 1 \phi_1 ϕ 1 preserve L ˉ 0 = span { z y , z z } \bar L_0=\operatorname{span}\{z_y,z_z\} L ˉ 0 = span { z y , z z } . From H h = ± h H Hh=\pm hH H h = ± h H we get A G 0 = ± G 0 A AG_0=\pm G_0A A G 0 = ± G 0 A and B G 1 = ± G 1 B BG_1=\pm G_1B B G 1 = ± G 1 B , so ϕ 0 α = α ϕ 0 \phi_0\alpha=\alpha\phi_0 ϕ 0 α = α ϕ 0 and ϕ 1 β = β ϕ 1 \phi_1\beta=\beta\phi_1 ϕ 1 β = β ϕ 1 . Moreover
h ≐ diag ( I , G 1 G 0 ) ( I ⊗ G 0 ) , g ≐ diag ( I , B G 1 G 0 A ) ( I ⊗ A G 0 ) h \doteq\operatorname{diag}(I,G_1G_0)(I\otimes G_0),\qquad
g \doteq\operatorname{diag}(I,BG_1G_0A)(I\otimes AG_0) h ≐ diag ( I , G 1 G 0 ) ( I ⊗ G 0 ) , g ≐ diag ( I , B G 1 G 0 A ) ( I ⊗ A G 0 )
lie in C 4 ( 3 ) \mathcal{C}_4(3) C 4 ( 3 ) , so Proposition A.5 with k = 4 k=4 k = 4 gives ( ϕ 1 ϕ 0 ) 4 = ( β ϕ 1 ϕ 0 α ) 4 = 1 (\phi_1\phi_0)^4=(\beta\phi_1\phi_0\alpha)^4=1 ( ϕ 1 ϕ 0 ) 4 = ( β ϕ 1 ϕ 0 α ) 4 = 1 . Taking inverses and using ϕ 1 β = β ϕ 1 \phi_1\beta=\beta\phi_1 ϕ 1 β = β ϕ 1 , both ϕ 0 ϕ 1 \phi_0\phi_1 ϕ 0 ϕ 1 and α ϕ 0 β ϕ 1 \alpha\phi_0\beta\phi_1 α ϕ 0 β ϕ 1 have order dividing 4.
Let E \mathcal{E} E be the space of even subsets of Ω = { 1 , … , 6 } \Omega=\{1,\ldots,6\} Ω = { 1 , … , 6 } under symmetric difference. Then ω ( a , b ) = ∣ a ∩ b ∣ m o d 2 \omega(a,b)=|a\cap b|\bmod2 ω ( a , b ) = ∣ a ∩ b ∣ mod 2 is a symplectic form on E / span { Ω } \mathcal{E}/\operatorname{span}\{\Omega\} E / span { Ω } , and each nonzero class contains exactly one pair { i , j } \{i,j\} { i , j } , written i j ij ij . Identify V 2 V_2 V 2 with E / span { Ω } \mathcal{E}/\operatorname{span}\{\Omega\} E / span { Ω } by x y , x z , y y , z z ↦ 25 , 34 , 56 , 13 x_y,x_z,y_y,z_z \mapsto25,34,56,13 x y , x z , y y , z z ↦ 25 , 34 , 56 , 13 . Permuting Ω \Omega Ω then gives Sp ( V 2 ) ≅ S 6 \operatorname{Sp}(V_2)\cong S_6 Sp ( V 2 ) ≅ S 6 , under which
α = ( 24 ) ( 56 ) , β = ( 14 ) ( 23 ) , L ˉ 0 = { 0 , 13 , 24 , 56 } . \alpha=(24)(56),\qquad\beta=(14)(23),\qquad\bar L_0=\{0,13,24,56\}. α = ( 24 ) ( 56 ) , β = ( 14 ) ( 23 ) , L ˉ 0 = { 0 , 13 , 24 , 56 } .
Under this isomorphism ϕ 0 , ϕ 1 \phi_0,\phi_1 ϕ 0 , ϕ 1 are double transpositions. The five commuting with α \alpha α , listed below, all preserve L ˉ 0 \bar L_0 L ˉ 0 . Of the five commuting with β \beta β , only ( 14 ) ( 56 ) (14)(56) ( 14 ) ( 56 ) and ( 23 ) ( 56 ) (23)(56) ( 23 ) ( 56 ) do not; conjugation by ( 13 ) ( 24 ) (13)(24) ( 13 ) ( 24 ) exchanges these two and fixes α \alpha α , β \beta β and L ‾ 0 \overline{L}_0 L 0 . So if ϕ 1 \phi_1 ϕ 1 does not preserve L ‾ 0 \overline{L}_0 L 0 , we may assume ϕ 1 = ( 14 ) ( 56 ) \phi_1=(14)(56) ϕ 1 = ( 14 ) ( 56 ) , and then every ϕ 0 \phi_0 ϕ 0 violates an order condition:
Hence ϕ 0 \phi_0 ϕ 0 and ϕ 1 \phi_1 ϕ 1 preserve L ‾ 0 \overline{L}_0 L 0 .
Case 2b: h h h is exceptional, r ′ ≠ r r' \ne r r ′ = r and ω ( r , r ′ ) = 0 \omega(r,r')=0 ω ( r , r ′ ) = 0 .
Since h = ± C H ∗ C † h=\pm C H_* C^\dagger h = ± C H ∗ C † for a Clifford gate C C C with γ C L 0 = L h \gamma_C L_0=L_h γ C L 0 = L h , the map K ↦ C K C † K\mapsto CKC^\dagger K ↦ C K C † is a bijection from the Hermitian Clifford gates commuting with H ∗ H_* H ∗ onto those commuting with h h h , and supp P ( C K C † ) = γ C supp P K \operatorname{supp}_P(CKC^\dagger)=\gamma_C\operatorname{supp}_P K supp P ( C K C † ) = γ C supp P K . A Hermitian K ∈ C 2 ( 3 ) K\in\mathcal{C}_2(3) K ∈ C 2 ( 3 ) commuting with H ∗ H_* H ∗ commutes with H = ± H ∗ H=\pm H_* H = ± H ∗ , so ( ∗ ) (*) ( ∗ ) with t = H t=H t = H and K ′ = K K'=K K ′ = K gives K A Z K † = A Z K A_Z K^\dagger=A_Z K A Z K † = A Z , as L 0 = L Z L_0=L_Z L 0 = L Z . Hence K K K is monomial: modulo scalars, one of the 1,344 affine permutation gates times one of the 512 diagonal Clifford gates, and testing all of them gives the following.
Table C3.
By (C3) and this reduction, for every non-Pauli traceless Hermitian Clifford gate K K K , supp P K \operatorname{supp}_P K supp P K spans L 0 L_0 L 0 if K K K commutes with H H H , and L h L_h L h if K K K commutes with h h h . As ω ( r , r ′ ) = 0 \omega(r,r')=0 ω ( r , r ′ ) = 0 , Proposition E.2(1) gives r ∈ C ( h ) r\in C(h) r ∈ C ( h ) and r ′ ∈ C ( H ) r'\in C(H) r ′ ∈ C ( H ) , so T = h P r h T=hP_rh T = h P r h and T ′ = H P r ′ H T'=HP_{r'}H T ′ = H P r ′ H are traceless Hermitian Clifford gates. Since H h = ± h H Hh=\pm hH H h = ± h H , H P r H = P r HP_rH=P_r H P r H = P r and h P r ′ h = P r ′ hP_{r'}h=P_{r'} h P r ′ h = P r ′ , T T T commutes with H H H and T ′ T' T ′ commutes with h h h . If T T T were a Pauli, then T = ± P r T=\pm P_r T = ± P r , as r r r is the only nonzero label v v v with H P v H = ± P v HP_vH=\pm P_v H P v H = ± P v ; so h P r h = ± P r hP_rh=\pm P_r h P r h = ± P r , and r = r ′ r=r' r = r ′ by the same uniqueness for h h h , a contradiction. Symmetrically, T ′ T' T ′ is not a Pauli. Hence supp P T \operatorname{supp}_P T supp P T spans L 0 L_0 L 0 and supp P T ′ \operatorname{supp}_P T' supp P T ′ spans L h L_h L h . By Proposition E.2(1) for H H H , supp P T ′ = { q , q + r , q ′ , q ′ + r } \operatorname{supp}_P T'=\{q,q+r,q',q'+r\} supp P T ′ = { q , q + r , q ′ , q ′ + r } for some labels q , q ′ q,q' q , q ′ , so r = q + ( q + r ) ∈ L h r=q+(q+r)\in L_h r = q + ( q + r ) ∈ L h . Then P r ∈ A L h P_r\in A_{L_h} P r ∈ A L h , so T ∈ h A L h h = A L h T\in hA_{L_h}h=A_{L_h} T ∈ h A L h h = A L h as ( L h , L h ) ∈ L ( h ) (L_h,L_h)\in\mathcal{L}(h) ( L h , L h ) ∈ L ( h ) , and L 0 ⊆ L h L_0\subseteq L_h L 0 ⊆ L h . Thus L h = L 0 L_h=L_0 L h = L 0 and h A L 0 h = A L 0 hA_{L_0}h=A_{L_0} h A L 0 h = A L 0 .
Since g = h H = H h g=hH=Hh g = h H = H h , H P r H = P r HP_rH=P_r H P r H = P r and h P r ′ h = P r ′ hP_{r'}h=P_{r'} h P r ′ h = P r ′ ,
g P r g † = h P r h , g P r ′ g † = H P r ′ H . gP_rg^\dagger=hP_rh,\qquad gP_{r'}g^\dagger=HP_{r'}H. g P r g † = h P r h , g P r ′ g † = H P r ′ H .
Neither is Clifford, by Proposition E.2(1), as r ∉ r ⊥ = C ( h ) r\notin r^\perp=C(h) r ∈ / r ⊥ = C ( h ) and r ′ ∉ r ⊥ = C ( H ) r'\notin r^\perp=C(H) r ′ ∈ / r ⊥ = C ( H ) . So g ∉ C 3 ( 3 ) g\notin\mathcal{C}_3(3) g ∈ / C 3 ( 3 ) , and as g = h s + v ∈ R 3 g=h_{s+v}\in\mathcal{R}_3 g = h s + v ∈ R 3 , g g g is exceptional. Let r ′ ′ = r g r''=r_g r ′′ = r g . As r , r ′ ∉ C ( g ) = r ′ ′ ⊥ r,r'\notin C(g)=r''^\perp r , r ′ ∈ / C ( g ) = r ′′ ⊥ , we have ω ( r , r ′ ′ ) = ω ( r ′ , r ′ ′ ) = 1 \omega(r,r'')=\omega(r',r'')=1 ω ( r , r ′′ ) = ω ( r ′ , r ′′ ) = 1 , so Λ = r ⊥ ∩ r ′ ′ ⊥ \Lambda=r^\perp\cap r''^\perp Λ = r ⊥ ∩ r ′′ ⊥ has dimension four. For p ∈ Λ p\in\Lambda p ∈ Λ , both K p = H P p H K_p=HP_pH K p = H P p H and h K p h = g P p g † hK_ph=gP_pg^\dagger h K p h = g P p g † are Clifford, as p ∈ C ( H ) ∩ C ( g ) p\in C(H)\cap C(g) p ∈ C ( H ) ∩ C ( g ) , so ( ∗ ) (*) ( ∗ ) with t = h t=h t = h , K = K p K=K_p K = K p and K ′ = h K p h K'=hK_ph K ′ = h K p h gives K p A L h K p † = A L h K_pA_{L_h}K_p^\dagger=A_{L_h} K p A L h K p † = A L h . The map p ↦ J ‾ p p\mapsto\overline{J}p p ↦ J p on r ⊥ r^\perp r ⊥ has kernel P ( H ) = span { r , r y } P(H)=\operatorname{span}\{r,r_y\} P ( H ) = span { r , r y } , which meets Λ \Lambda Λ in a line since ω ( r , r ′ ′ ) = 1 \omega(r,r'')=1 ω ( r , r ′′ ) = 1 ; hence it maps Λ \Lambda Λ onto im J \operatorname{im}J im J . The argument for r ∈ L i r\in L_i r ∈ L i in the proof of Proposition E.2(2) uses only that K p K_p K p preserves A L i A_{L_i} A L i for p p p with J ‾ p \overline{J}p J p ranging over im J \operatorname{im}J im J , so it gives r ∈ L h r\in L_h r ∈ L h . Also r ′ ∈ L h r'\in L_h r ′ ∈ L h by Proposition E.2(2), contradicting ω ( r , r ′ ) = 1 \omega(r,r')=1 ω ( r , r ′ ) = 1 .
Proposition E.4. Let U ∈ C ( 3 ) U\in\mathcal{C}(3) U ∈ C ( 3 ) , and suppose that every h v h_v h v , v ∈ V 3 v\in V_3 v ∈ V 3 , is Gaussian and generalized semi-Clifford. Then h v ∈ C 3 ( 3 ) h_v\in\mathcal{C}_3(3) h v ∈ C 3 ( 3 ) for every v v v , and U ∈ C 4 ( 3 ) ∩ GSC ( 3 ) U\in\mathcal{C}_4(3)\cap\operatorname{GSC}(3) U ∈ C 4 ( 3 ) ∩ GSC ( 3 ) .
Proof. Suppose that h s ∉ C 3 ( 3 ) h_s\notin\mathcal{C}_3(3) h s ∈ / C 3 ( 3 ) for some s ∈ V 3 s\in V_3 s ∈ V 3 . Then s ≠ 0 s\ne0 s = 0 , and h v ∈ R 3 h_v\in\mathcal{R}_3 h v ∈ R 3 for every v ≠ 0 v\ne0 v = 0 . Let L ( h s ) = { ( S , S ) } \mathcal{L}(h_s)=\{(S,S)\} L ( h s ) = {( S , S )} (Proposition E.2(2)). Then h v A S h v † = A S h_vA_Sh_v^\dagger=A_S h v A S h v † = A S for every v ∈ V 3 v\in V_3 v ∈ V 3 : for v ∉ { 0 , s } v\notin\{0,s\} v ∈ / { 0 , s } by Lemma E.3, for v = s v=s v = s since ( S , S ) ∈ L ( h s ) (S,S)\in\mathcal{L}(h_s) ( S , S ) ∈ L ( h s ) , and trivially for v = 0 v=0 v = 0 .
Let E , F E,F E , F be two rank-one orthogonal projections in A S A_S A S fixed by h s h_s h s (Proposition E.2(3)). They are distinct and commute, so E F = 0 EF=0 E F = 0 , and R = E + F R=E+F R = E + F is a projection with tr R = 2 \operatorname{tr}R=2 tr R = 2 . For every v v v , since h s h v = ± h v h s h_sh_v=\pm h_vh_s h s h v = ± h v h s ,
h s ( h v E h v † ) h s † = h v ( h s E h s † ) h v † = h v E h v † , h_s(h_vEh_v^\dagger)h_s^\dagger=h_v(h_sEh_s^\dagger)h_v^\dagger=h_vEh_v^\dagger, h s ( h v E h v † ) h s † = h v ( h s E h s † ) h v † = h v E h v † ,
and likewise for F F F . Conjugation by h v h_v h v therefore maps E E E and F F F to distinct rank-one orthogonal projections in A S A_S A S fixed by h s h_s h s . Hence it permutes { E , F } \{E,F\} { E , F } , and h v R h v † = R h_vRh_v^\dagger=R h v R h v † = R . Thus U † R U U^\dagger R U U † R U commutes with every P v P_v P v , so it is scalar, and tr R = 2 \operatorname{tr}R=2 tr R = 2 gives R = I / 4 R=I/4 R = I /4 , contradicting R 2 = R R^2=R R 2 = R . Hence h v ∈ C 3 ( 3 ) h_v\in\mathcal{C}_3(3) h v ∈ C 3 ( 3 ) for every v v v , so U ∈ C 4 ( 3 ) U\in\mathcal{C}_4(3) U ∈ C 4 ( 3 ) , and U ∈ GSC ( 3 ) U\in\operatorname{GSC}(3) U ∈ GSC ( 3 ) by Theorem 6. ∎
Proposition E.4 proves Theorem 10 for n = 3 n = 3 n = 3 : if every h v h_v h v is Gaussian, Lemma E.1 makes every h v h_v h v generalized semi-Clifford, and Proposition E.4 gives h v ∈ C 3 ( 3 ) h_v \in C_3(3) h v ∈ C 3 ( 3 ) and U ∈ C 4 ( 3 ) ⊆ GSC ( 3 ) U \in C_4(3) \subseteq\operatorname{GSC}(3) U ∈ C 4 ( 3 ) ⊆ GSC ( 3 ) .
Proof of Theorem 11
In this subsection, let U ∈ C ( 3 ) U \in C(3) U ∈ C ( 3 ) , let M = cond ( U ) M = \operatorname{cond}(U) M = cond ( U ) and m = max v cond ( h v ) m = \max_v \operatorname{cond}(h_v) m = max v cond ( h v ) , so that m ∈ { M − 1 , M } m \in\{M - 1, M\} m ∈ { M − 1 , M } by Proposition A.3 , and suppose m > 2 m > 2 m > 2 , that is, some h v h_v h v is non-Gaussian. As in Theorem 11 , we also assume h v ∈ GSC ( 3 ) h_v \in\operatorname{GSC}(3) h v ∈ GSC ( 3 ) for all v v v . These assumptions hold for all the lemmas in this subsection. We want to find U ′ ∈ C ( 3 ) U' \in C(3) U ′ ∈ C ( 3 ) with
cond ( U ′ ) < M , U ′ ∈ GSC ( 3 ) ⟺ U ∈ GSC ( 3 ) . \operatorname{cond}(U') < M,\qquad U' \in\operatorname{GSC}(3) \Longleftrightarrow U \in\operatorname{GSC}(3). cond ( U ′ ) < M , U ′ ∈ GSC ( 3 ) ⟺ U ∈ GSC ( 3 ) .
If U ∈ GSC ( 3 ) U \in\operatorname{GSC}(3) U ∈ GSC ( 3 ) , take U ′ = I U' = I U ′ = I . Then cond ( U ′ ) = 2 < M \operatorname{cond}(U') = 2 < M cond ( U ′ ) = 2 < M , since m > 2 m > 2 m > 2 and m ≤ M m \leq M m ≤ M . Henceforth we assume U ∉ GSC ( 3 ) U \notin\operatorname{GSC}(3) U ∈ / GSC ( 3 ) .
Choose W = U W = U W = U over K M K_M K M , and let σ \sigma σ be a generator of the cyclic group Gal ( K M / K m − 1 ) \operatorname{Gal}(K_M/K_{m-1}) Gal ( K M / K m − 1 ) : explicitly, σ ( ζ 2 M ) = − ζ 2 M \sigma(\zeta_{2^M}) = -\zeta_{2^M} σ ( ζ 2 M ) = − ζ 2 M if m = M m = M m = M , and σ ( ζ 2 M ) = i ζ 2 M \sigma(\zeta_{2^M}) = i\zeta_{2^M} σ ( ζ 2 M ) = i ζ 2 M if m = M − 1 m = M - 1 m = M − 1 . Since m > 2 m > 2 m > 2 , σ \sigma σ fixes K 2 = Q ( i ) K_2 = \mathbb{Q}(i) K 2 = Q ( i ) , and its restriction to K m K_m K m generates Gal ( K m / K m − 1 ) \operatorname{Gal}(K_m/K_{m-1}) Gal ( K m / K m − 1 ) .
We first show that the Galois cocycle W − 1 σ ( W ) W^{-1}\sigma(W) W − 1 σ ( W ) of U U U is, in suitable coordinates, diag x ∈ F 2 3 i p ⋅ x ( − 1 ) q ( x ) \operatorname{diag}_{x \in\mathbb{F}_2^3} i^{p \cdot x}(-1)^{q(x)} diag x ∈ F 2 3 i p ⋅ x ( − 1 ) q ( x ) with deg q ≤ 2 \deg q \leq2 deg q ≤ 2 (Lemma E.5 ), and then that U U U maps Z p Z^p Z p to a Pauli (Lemma E.6 ). Multiplying U U U by a rotation about Z p Z^p Z p then lowers the conductor (Lemma E.7).
Lemma E.5. After replacing U , W U, W U , W by U C , W C UC, WC U C , W C for some C ∈ C 2 ( 3 ) C \in C_2(3) C ∈ C 2 ( 3 ) , there are p ∈ F 2 3 p \in\mathbb{F}_2^3 p ∈ F 2 3 and a Boolean function q q q of degree at most two such that
W − 1 σ ( W ) : = diag x ∈ F 2 3 i p ⋅ x ( − 1 ) q ( x ) , W^{-1}\sigma(W) \mathrel{:=} \operatorname{diag}_{x \in\mathbb{F}_2^3} i^{p \cdot x}(-1)^{q(x)}, W − 1 σ ( W ) := diag x ∈ F 2 3 i p ⋅ x ( − 1 ) q ( x ) , where p ⋅ x ∈ { 0 , 1 } p \cdot x \in\{0,1\} p ⋅ x ∈ { 0 , 1 } is the dot product over F 2 \mathbb{F}_2 F 2 . If m = M m = M m = M , then p = 0 p = 0 p = 0 ; if m = M − 1 m = M - 1 m = M − 1 , then p ≠ 0 p \neq0 p = 0 . Moreover, write the polar form of q q q as q ( x + a ) + q ( x ) + q ( a ) + q ( 0 ) = a T B q x q(x+a) + q(x) + q(a) + q(0) = a^{T}B_qx q ( x + a ) + q ( x ) + q ( a ) + q ( 0 ) = a T B q x , and let T = B q + p p T T = B_q + pp^{T} T = B q + p p T and g c = U Z c U † g_c = UZ^cU^\dagger g c = U Z c U † . Then T ≠ 0 T \neq0 T = 0 is symmetric with diag T = p ∈ im T \operatorname{diag} T = p \in\operatorname{im} T diag T = p ∈ im T . For 0 ≠ c = T a 0 \neq c = Ta 0 = c = T a and every b ∈ F 2 3 b \in\mathbb{F}_2^3 b ∈ F 2 3 , the gate g c g_c g c is a Clifford involution, and g c ∈ A L ∩ A L ′ g_c \in\mathcal{A}_L \cap\mathcal{A}_{L'} g c ∈ A L ∩ A L ′ for every ( L , L ′ ) ∈ L ( h ( a , b ) ) (L,L') \in\mathcal{L}(h_{(a,b)}) ( L , L ′ ) ∈ L ( h ( a , b ) ) . If g c g_c g c is not Pauli, its support spans a Lagrangian L c L_c L c , and L ( h ( a , b ) ) = { ( L c , L c ) } \mathcal{L}(h_{(a,b)}) = \{(L_c,L_c)\} L ( h ( a , b ) ) = {( L c , L c )} .
Proof. Each h v = W P v W − 1 h_v = WP_vW^{-1} h v = W P v W − 1 has entries in K M K_M K M . Denote d v = h v − 1 σ ( h v ) d_v = h_v^{-1}\sigma(h_v) d v = h v − 1 σ ( h v ) .
We first recall a simple fact (i): a commutative algebra B ⊆ Mat 8 ( C ) \mathcal{B} \subseteq\operatorname{Mat}_8(\mathbb{C}) B ⊆ Mat 8 ( C ) normalized by every Pauli is spanned by the Paulis it contains, and their labels form an isotropic subspace of V 3 V_3 V 3 . Indeed, for B = ∑ u c u P u ∈ B B = \sum_u c_uP_u \in\mathcal{B} B = ∑ u c u P u ∈ B the average 4 − 3 ∑ w ( − 1 ) ω ( v , w ) P w B P w † = c v P v 4^{-3}\sum_w(-1)^{\omega(v,w)}P_wBP_w^\dagger= c_vP_v 4 − 3 ∑ w ( − 1 ) ω ( v , w ) P w B P w † = c v P v lies in B \mathcal{B} B . Hence these Paulis lie in B \mathcal{B} B , and they form a commutative group.
Step 1: d v = β v y v d_v = \beta_v y_v d v = β v y v with β v ∈ μ 4 \beta_v \in\mu_4 β v ∈ μ 4 , y v 2 = I y_v^2 = I y v 2 = I , and σ ( d v ) = d v \sigma(d_v) = d_v σ ( d v ) = d v . Moreover y v ∈ A L ∩ A L ′ y_v \in\mathcal{A}_L \cap\mathcal{A}_{L'} y v ∈ A L ∩ A L ′ for every ( L , L ′ ) ∈ L ( h v ) (L,L') \in\mathcal{L}(h_v) ( L , L ′ ) ∈ L ( h v ) .
Let ( L , L ′ ) ∈ L ( h v ) (L,L') \in\mathcal{L}(h_v) ( L , L ′ ) ∈ L ( h v ) , and write h v : = C 1 Π D C 2 h_v \mathrel{:=} C_1\Pi D C_2 h v := C 1 Π D C 2 as in Proposition D.4 , with Clifford gates C 1 , C 2 C_1,C_2 C 1 , C 2 such that C 2 A L C 2 † = A Z C_2\mathcal{A}_LC_2^\dagger= \mathcal{A}_Z C 2 A L C 2 † = A Z , a permutation matrix Π \Pi Π , and D D D diagonal. By Proposition D.9 (1), σ ( C j ) : = C j \sigma(C_j) \mathrel{:=} C_j σ ( C j ) := C j . By Proposition D.4 (2), the ratios of the entries of D D D are roots of unity. They lie in K m K_m K m , hence in μ 2 m \mu_{2^m} μ 2 m , and σ \sigma σ multiplies each of them by a sign. Therefore
d v = β v y v , β v ∈ C × , y v = C 2 − 1 S v C 2 , d_v = \beta_v y_v,\qquad\beta_v \in\mathbb{C}^{\times},\qquad y_v = C_2^{-1}S_vC_2, d v = β v y v , β v ∈ C × , y v = C 2 − 1 S v C 2 ,
with S v S_v S v a diagonal sign matrix. Thus y v y_v y v is an involution in C 2 − 1 A Z C 2 = A L C_2^{-1}\mathcal{A}_ZC_2 = \mathcal{A}_L C 2 − 1 A Z C 2 = A L , and σ ( y v ) = y v \sigma(y_v) = y_v σ ( y v ) = y v . Since h v h_v h v and σ ( h v ) \sigma(h_v) σ ( h v ) are involutions, h v d v h v = σ ( h v ) h v d v = d v h_vd_vh_v = \sigma(h_v)h_vd_v = d_v h v d v h v = σ ( h v ) h v d v = d v , that is, h v y v h v = β v − 2 y v h_vy_vh_v = \beta_v^{-2}y_v h v y v h v = β v − 2 y v . Squaring gives β v ∈ μ 4 \beta_v \in\mu_4 β v ∈ μ 4 , so y v y_v y v also lies in A L ′ \mathcal{A}_{L'} A L ′ , and σ ( d v ) = d v \sigma(d_v) = d_v σ ( d v ) = d v and d v 2 = ϵ v I d_v^2 = \epsilon_vI d v 2 = ϵ v I with ϵ v = β v 2 ∈ { ± 1 } \epsilon_v = \beta_v^2 \in\{\pm1\} ϵ v = β v 2 ∈ { ± 1 } . Up to sign, y v = β v − 1 d v y_v = \beta_v^{-1}d_v y v = β v − 1 d v does not depend on the GSC pair.
Step 2: the d v d_v d v commute, and after replacing U , W U,W U , W by U C , W C UC,WC U C , W C for a Clifford C C C , the matrix A = W − 1 σ ( W ) A = W^{-1}\sigma(W) A = W − 1 σ ( W ) is diagonal.
We first show that the d v d_v d v commute. Since σ 2 ( h v ) = σ ( h v d v ) = h v d v 2 = ϵ v h v \sigma^2(h_v) = \sigma(h_vd_v) = h_vd_v^2 = \epsilon_vh_v σ 2 ( h v ) = σ ( h v d v ) = h v d v 2 = ϵ v h v and h v + w ∈ μ 4 h v h w h_{v+w} \in\mu_4h_vh_w h v + w ∈ μ 4 h v h w , the signs ϵ v \epsilon_v ϵ v form a character of V 3 V_3 V 3 . Now
d v + w = h w − 1 d v h w d w . d_{v+w} = h_w^{-1}d_vh_wd_w. d v + w = h w − 1 d v h w d w .
The factors d v ′ = h w − 1 d v h w d'_v = h_w^{-1}d_vh_w d v ′ = h w − 1 d v h w and d w d_w d w have squares ϵ v I \epsilon_vI ϵ v I and ϵ w I \epsilon_wI ϵ w I , and their product has square ϵ v + w I = ϵ v ϵ w I \epsilon_{v+w}I = \epsilon_v\epsilon_wI ϵ v + w I = ϵ v ϵ w I . Hence d v ′ d w d v ′ d w = d v 2 d w 2 d'_vd_wd'_vd_w = d_v^2d_w^2 d v ′ d w d v ′ d w = d v 2 d w 2 , so d v ′ d'_v d v ′ commutes with d w d_w d w , and therefore so does d v + w = d v ′ d w d_{v+w} = d'_vd_w d v + w = d v ′ d w . As v v v is arbitrary, the d v d_v d v commute pairwise. Moreover h w − 1 d v h w = d v + w d w − 1 h_w^{-1}d_vh_w = d_{v+w}d_w^{-1} h w − 1 d v h w = d v + w d w − 1 , so every h w h_w h w normalizes the commutative algebra generated by the d v d_v d v . Now let d ~ v = W − 1 d v W \widetilde{d}_v = W^{-1}d_vW d v = W − 1 d v W . The algebra generated by the d ~ v \widetilde{d}_v d v is commutative and normalized by every P w = W − 1 h w W P_w = W^{-1}h_wW P w = W − 1 h w W , so by (i) it is spanned by commuting Paulis. The d ~ v \widetilde{d}_v d v have eigenvalues in μ 4 \mu_4 μ 4 , so their Pauli coefficients, and hence their entries, lie in Q ( i ) \mathbb{Q}(i) Q ( i ) . From h v = W P v W − 1 h_v = WP_vW^{-1} h v = W P v W − 1 and σ ( h v ) = σ ( W ) P v σ ( W ) − 1 \sigma(h_v) = \sigma(W)P_v\sigma(W)^{-1} σ ( h v ) = σ ( W ) P v σ ( W ) − 1 ,
d ~ v = P v A P v A − 1 , σ ( d ~ v ) = A − 1 d ~ v A = d ~ v . \widetilde{d}_v = P_vAP_vA^{-1}, \qquad\sigma(\widetilde{d}_v) = A^{-1}\widetilde{d}_vA = \widetilde{d}_v. d v = P v A P v A − 1 , σ ( d v ) = A − 1 d v A = d v .
Thus A A A commutes with every d ~ v \widetilde{d}_v d v , and P v A P v = d ~ v A P_vAP_v = \widetilde{d}_vA P v A P v = d v A . Since σ \sigma σ commutes with complex conjugation, A A A is unitary up to scalar. The Pauli conjugates of A A A therefore generate a commutative, Pauli-normalized ∗ * ∗ -algebra, and by (i) supp P A \operatorname{supp}_P A supp P A spans an isotropic subspace. Choose a Clifford C C C carrying supp P A \operatorname{supp}_P A supp P A into the Z Z Z -space. By Proposition D.9(1), σ ( C ) = C \sigma(C) = C σ ( C ) = C , so replacing U , W U,W U , W by U C , W C UC,WC U C , W C conjugates A A A by C C C up to scalar, and it preserves M M M and m m m . Hence A A A is diagonal in these coordinates.
Normalize A ( 0 ) = 1 A(0) = 1 A ( 0 ) = 1 , and write P v = ˙ X a Z b P_v \mathrel{\dot=} X^aZ^b P v = ˙ X a Z b for v = ( a , b ) v = (a,b) v = ( a , b ) . Then d ~ ( a , b ) = diag x A ( x + a ) / A ( x ) \widetilde{d}_{(a,b)} = \operatorname{diag}_x A(x+a)/A(x) d ( a , b ) = diag x A ( x + a ) / A ( x ) , and d ~ ( a , b ) 2 = ϵ ( a , b ) I \widetilde{d}_{(a,b)}^2 = \epsilon_{(a,b)}I d ( a , b ) 2 = ϵ ( a , b ) I shows that the squared ratios A ( x + a ) 2 / A ( x ) 2 A(x+a)^2/A(x)^2 A ( x + a ) 2 / A ( x ) 2 are independent of x x x and b b b and define a character a ↦ ( − 1 ) p ⋅ a a \mapsto(-1)^{p\cdot a} a ↦ ( − 1 ) p ⋅ a . Thus, for a Boolean function q q q ,
A = ˙ diag x i p ⋅ x ( − 1 ) q ( x ) , F a ∣ x ⟩ = ( − 1 ) q ( x + a ) + q ( x ) + ( p ⋅ a ) ( p ⋅ x ) ∣ x ⟩ , A \mathrel{\dot=} \operatorname{diag}_x i^{p\cdot x}(-1)^{q(x)}, \qquad F_a|x\rangle= (-1)^{q(x+a)+q(x)+(p\cdot a)(p\cdot x)}|x\rangle, A = ˙ diag x i p ⋅ x ( − 1 ) q ( x ) , F a ∣ x ⟩ = ( − 1 ) q ( x + a ) + q ( x ) + ( p ⋅ a ) ( p ⋅ x ) ∣ x ⟩ ,
with d ( a , b ) = i p ⋅ a U F a U † d_{(a,b)} = i^{p\cdot a}UF_aU^\dagger d ( a , b ) = i p ⋅ a U F a U † . The entries of A A A lie in μ 4 \mu_4 μ 4 , so σ ( A ) = ˙ A \sigma(A) \mathrel{\dot=} A σ ( A ) = ˙ A and σ 2 ( W ) = σ ( W A ) = ˙ W A 2 = W Z p \sigma^2(W) = \sigma(WA) \mathrel{\dot=} WA^2 = WZ^p σ 2 ( W ) = σ ( W A ) = ˙ W A 2 = W Z p . If m = M m = M m = M , then σ 2 = 1 \sigma^2 = 1 σ 2 = 1 and p = 0 p = 0 p = 0 . If m = M − 1 m = M-1 m = M − 1 and p = 0 p = 0 p = 0 , scaling W W W by a nonzero entry makes it σ 2 \sigma^2 σ 2 -fixed and hence defined over K M − 1 K_{M-1} K M − 1 , contrary to the minimality of M M M .
Suppose deg q = 3 \deg q = 3 deg q = 3 , and let e a ( x ) = q ( x + a ) + q ( x ) + ( p ⋅ a ) ( p ⋅ x ) e_a(x) = q(x+a) + q(x) + (p\cdot a)(p\cdot x) e a ( x ) = q ( x + a ) + q ( x ) + ( p ⋅ a ) ( p ⋅ x ) be the exponent of F a F_a F a . We first show that the seven e a e_a e a , a ≠ 0 a \ne0 a = 0 , span the Boolean functions of degree at most two. The quadratic part of e a e_a e a is the derivative of the cubic monomial of q q q in direction a a a , which is linear and injective in a a a . Hence a relation ∑ a ∈ S e a = 0 \sum_{a\in S}e_a = 0 ∑ a ∈ S e a = 0 with ∅ ≠ S ⊆ F 2 3 ∖ { 0 } \varnothing\ne S \subseteq\mathbb{F}_2^3 \setminus\{0\} ∅ = S ⊆ F 2 3 ∖ { 0 } requires ∑ a ∈ S a = 0 \sum_{a\in S}a = 0 ∑ a ∈ S a = 0 , so S S S is a line { a , b , a + b } \{a,b,a+b\} { a , b , a + b } , its complement, or all seven labels. These give, respectively, e a + e b + e a + b = Δ a Δ b q e_a+e_b+e_{a+b} = \Delta_a\Delta_bq e a + e b + e a + b = Δ a Δ b q , where Δ a q ( x ) = q ( x + a ) + q ( x ) \Delta_aq(x) = q(x+a)+q(x) Δ a q ( x ) = q ( x + a ) + q ( x ) , which has nonzero linear part, its sum with the constant 1 1 1 , and the constant ∑ y q ( y ) = 1 \sum_y q(y) = 1 ∑ y q ( y ) = 1 , none of which vanishes. Hence the seven exponents are linearly independent. Each has even weight, and the Boolean functions of even weight on F 2 3 \mathbb{F}_2^3 F 2 3 are exactly those of degree at most two, a seven-dimensional space.
Next we show that I − 2 ( E x + E y ) ∈ C 2 ( 3 ) I - 2(E_x + E_y) \in C_2(3) I − 2 ( E x + E y ) ∈ C 2 ( 3 ) for x ≠ y x \ne y x = y , where E x = U ∣ x ⟩ ⟨ x ∣ U † E_x = U|x\rangle\langle x|U^\dagger E x = U ∣ x ⟩ ⟨ x ∣ U † . Each U F a U † = ± Y ( a , b ) UF_aU^\dagger= \pm Y_{(a,b)} U F a U † = ± Y ( a , b ) is a sign involution in a Pauli MASA (Step 1), and its − 1 -1 − 1 -eigenspace has even dimension wt ( e a ) \operatorname{wt}(e_a) wt ( e a ) . On three qubits a sign involution in a Pauli MASA is Clifford exactly when its sign function has degree at most two, that is, even weight, so U F a U † ∈ C 2 ( 3 ) UF_aU^\dagger\in C_2(3) U F a U † ∈ C 2 ( 3 ) . By the previous paragraph, products of the U F a U † UF_aU^\dagger U F a U † give U ( I − 2 ∣ x ⟩ ⟨ x ∣ − 2 ∣ y ⟩ ⟨ y ∣ ) U † = I − 2 ( E x + E y ) U(I - 2|x\rangle\langle x| - 2|y\rangle\langle y|)U^\dagger= I - 2(E_x + E_y) U ( I − 2∣ x ⟩ ⟨ x ∣ − 2∣ y ⟩ ⟨ y ∣ ) U † = I − 2 ( E x + E y ) .
Finally we derive a contradiction. For a Clifford C = ∑ u c u P u C = \sum_u c_uP_u C = ∑ u c u P u , supp P C \operatorname{supp}_P C supp P C is a coset of im ( γ C − I ) \operatorname{im}(\gamma_C-I) im ( γ C − I ) , with equal absolute coefficients. Indeed, comparing coefficients in C 2 = ± P γ C C C^2 = \pm P_{\gamma_C}C C 2 = ± P γ C C gives ∣ c u + ( γ C + I ) w ∣ = ∣ c u ∣ |c_{u+(\gamma_C+I)w}| = |c_u| ∣ c u + ( γ C + I ) w ∣ = ∣ c u ∣ , and for w ∈ ker ( γ C − I ) = im ( γ C − I ) ⊥ w \in\ker(\gamma_C-I) = \operatorname{im}(\gamma_C-I)^\perp w ∈ ker ( γ C − I ) = im ( γ C − I ) ⊥ the relation C P w = ± P w C CP_w = \pm P_wC C P w = ± P w C fixes ω ( u , w ) \omega(u,w) ω ( u , w ) for all u ∈ supp P C u \in\operatorname{supp}_P C u ∈ supp P C . Here the trace is 4 4 4 , so the identity coefficient is 1 / 2 1/2 1/2 , the support is a subspace, and there are four coefficients, each ± 1 / 2 \pm1/2 ± 1/2 . Let ρ x ( P ) = tr ( P E x ) \rho_x(P) = \operatorname{tr}(PE_x) ρ x ( P ) = tr ( P E x ) . For P ≠ I P \ne I P = I , the coefficient of P P P is − ( ρ x ( P ) + ρ y ( P ) ) / 4 ∈ { 0 , ± 1 / 2 } -(\rho_x(P)+\rho_y(P))/4 \in\{0,\pm1/2\} − ( ρ x ( P ) + ρ y ( P )) /4 ∈ { 0 , ± 1/2 } , so
ρ x ( P ) + ρ y ( P ) ∈ 2 Z ( x ≠ y , P ≠ I ) . \rho_x(P) + \rho_y(P) \in2\mathbb{Z} \qquad(x \ne y,\; P \ne I). ρ x ( P ) + ρ y ( P ) ∈ 2 Z ( x = y , P = I ) .
Using three distinct indices, ρ x ( P ) ∈ Z \rho_x(P) \in\mathbb{Z} ρ x ( P ) ∈ Z with parity independent of x x x . Now ∣ ρ x ( P ) ∣ ≤ 1 |\rho_x(P)| \leq1 ∣ ρ x ( P ) ∣ ≤ 1 and ∑ P ρ x ( P ) 2 = 8 \sum_P \rho_x(P)^2 = 8 ∑ P ρ x ( P ) 2 = 8 , so the same seven nonidentity Paulis have ∣ ρ x ( P ) ∣ = 1 |\rho_x(P)| = 1 ∣ ρ x ( P ) ∣ = 1 for every x x x . They stabilize every E x E_x E x up to signs and form a Lagrangian L L L , so U Z U † = A L U\mathcal{Z}U^\dagger= \mathcal{A}_L U Z U † = A L , contradicting U ∉ G S ( 3 ) U \notin\mathrm{GS}(3) U ∈ / GS ( 3 ) .
Since deg q ≤ 2 \deg q \leq2 deg q ≤ 2 , the exponent of F a F_a F a is a T B q a + ( p ⋅ a ) ( p ⋅ x ) {}^TB_qa + (p\cdot a)(p\cdot x) T B q a + ( p ⋅ a ) ( p ⋅ x ) plus a constant, that is, ( T a ) ⋅ x (Ta)\cdot x ( T a ) ⋅ x plus a constant. So F a = ± Z T a F_a = \pm Z^{Ta} F a = ± Z T a and d ( a , b ) = ± i p ⋅ a T d_{(a,b)} = \pm i^{p\cdot a}T d ( a , b ) = ± i p ⋅ a T . If T = 0 T = 0 T = 0 , every d v d_v d v is scalar, so σ ( h v ) = h v \sigma(h_v) = h_v σ ( h v ) = h v , and dividing h v h_v h v by a nonzero entry gives a matrix fixed by σ \sigma σ , hence with entries in K m − 1 K_{m-1} K m − 1 , for every v v v , contrary to the definition of m m m . As T T T is symmetric, diag T = p \operatorname{diag}T = p diag T = p , and im T \operatorname{im}T im T is the orthogonal complement of ker T \ker T ker T for the dot product. Since u ∈ ker T u \in\ker T u ∈ ker T gives p ⋅ u = u T T u = 0 p\cdot u = u^TTu = 0 p ⋅ u = u T T u = 0 , we get p ∈ im T p \in\operatorname{im}T p ∈ im T . For 0 ≠ c = T a 0 \ne c = Ta 0 = c = T a and every b b b , g c = ± U F a U † = ± y ( a , b ) g_c = \pm UF_aU^\dagger= \pm y_{(a,b)} g c = ± U F a U † = ± y ( a , b ) lies in A L ∩ A L ⊥ \mathcal{A}_L \cap\mathcal{A}_L^\perp A L ∩ A L ⊥ for every ( L , L ′ ) ∈ L ( a , b ) (L,L') \in\mathcal{L}_{(a,b)} ( L , L ′ ) ∈ L ( a , b ) by Step 1. It is a traceless Hermitian involution, such a Pauli MASA its sign function has weight four, hence degree at most two, and g c g_c g c is Clifford. Then supp P g c \operatorname{supp}_P g_c supp P g c is a single label or four labels with coefficients ± 1 / 2 \pm1/2 ± 1/2 spanning a Lagrangian L c L_c L c . In the latter case A L c \mathcal{A}_{L_c} A L c is the only Pauli MASA containing g c g_c g c , so every ( L , L ′ ) ∈ L ( h ( a , b ) ) (L,L') \in\mathcal{L}(h_{(a,b)}) ( L , L ′ ) ∈ L ( h ( a , b ) ) has L = L ′ = L c L = L' = L_c L = L ′ = L c , and L ( h ( a , b ) ) ≠ ∅ \mathcal{L}(h_{(a,b)}) \ne\varnothing L ( h ( a , b ) ) = ∅ since h ( a , b ) h_{(a,b)} h ( a , b ) is generalized semi-Clifford.
Lemma E.6. For the p p p , q q q of Lemma E.5 , we have m = M − 1 m=M-1 m = M − 1 , p ≠ 0 p\ne0 p = 0 , and U Z p U † ∈ P ( 3 ) UZ^{p}U^{\dagger}\in\mathcal{P}(3) U Z p U † ∈ P ( 3 ) .
Proof. Let T T T and g c g_c g c be as in Lemma E.5 , and let G T = { g c : c ∈ im T } G_T=\{g_c:c\in\operatorname{im}T\} G T = { g c : c ∈ im T } . Below we replace U , W U,W U , W by U C , W C UC,WC U C , W C for Clifford gates C C C that keep A = W − 1 σ ( W ) A=W^{-1}\sigma(W) A = W − 1 σ ( W ) diagonal. The proof of Lemma E.5 then gives the normal form in the new coordinates, and each d v d_v d v becomes d γ C v d_{\gamma_Cv} d γ C v , so G T G_T G T is unchanged. We read p p p , q q q and T T T in the current coordinates. Replacing U U U by K U KU K U with K ∈ C 2 ( 3 ) K\in C_2(3) K ∈ C 2 ( 3 ) , and W W W by K ′ W K'W K ′ W with K ′ K' K ′ the scalar multiple of K K K over Q ( i ) \mathbb{Q}(i) Q ( i ) , keeps A A A , p p p , q q q and T T T , and conjugates every g c g_c g c by K K K .
It suffices to show that U ∈ GSC ( 3 ) U\in\operatorname{GSC}(3) U ∈ GSC ( 3 ) , or p ≠ 0 p\ne0 p = 0 and g p ∈ P ( 3 ) g_p\in\mathcal{P}(3) g p ∈ P ( 3 ) : since U ∉ GSC ( 3 ) U\notin\operatorname{GSC}(3) U ∈ / GSC ( 3 ) , the second alternative then holds, and as p ≠ 0 p\ne0 p = 0 , Lemma E.5 gives m = M − 1 m=M-1 m = M − 1 . We split on whether G T G_T G T lies in a Pauli MASA, that is, G T ⊆ A L G_T\subseteq A_L G T ⊆ A L for some Lagrangian L L L . Since g c g c ′ = g c + c ′ g_cg_{c'}=g_{c+c'} g c g c ′ = g c + c ′ , the map c ↦ g c c\mapsto g_c c ↦ g c is an isomorphism from im T ≅ F 2 rank T \operatorname{im}T\cong\mathbb{F}_2^{\operatorname{rank}T} im T ≅ F 2 rank T onto G T G_T G T , and the g c g_c g c commute. By Lemma E.5 , every g c ≠ I g_c\ne I g c = I is a traceless Hermitian Clifford involution that is a Pauli or has four-term support spanning a Lagrangian. If every g c g_c g c is Pauli, G T G_T G T lies in a Pauli MASA, since the labels of commuting Paulis span an isotropic subspace, which lies in a Lagrangian.
The group G T ≅ F 2 rank T G_T\cong\mathbb{F}_2^{\operatorname{rank}T} G T ≅ F 2 rank T has at most three generators. Modulo sign, each g c ≠ I g_c\ne I g c = I is one of the 63 Paulis, or a sign function of degree at most two on the joint eigenspaces of some A L A_L A L (Step 5 of the proof of Lemma E.5 ), that is, one of 135 ⋅ 28 135\cdot28 135 ⋅ 28 gates. As the Clifford group is finite modulo scalars, these groups can be listed up to Clifford conjugation.
(C4) Clifford involution groups in no Pauli MASA. Let G ≅ F 2 2 G\cong\mathbb{F}_2^2 G ≅ F 2 2 be a group, modulo signs, of commuting traceless Hermitian three-qubit Clifford involutions and I I I , in which every g ≠ I g\ne I g = I is a Pauli or has four-term support spanning a Lagrangian, and which lies in no Pauli MASA. Then, after a left Clifford conjugation and a change of generators, G G G is generated by
X ^ 1 , X ^ 2 , or X ^ 1 , X ^ 2 , Z 3 , or X ^ 1 , X ^ 2 , X ^ 3 , \hat{X}_1,\hat{X}_2,\qquad\text{or}\qquad\hat{X}_1,\hat{X}_2,Z_3,\qquad\text{or}\qquad\hat{X}_1,\hat{X}_2,\hat{X}_3, X ^ 1 , X ^ 2 , or X ^ 1 , X ^ 2 , Z 3 , or X ^ 1 , X ^ 2 , X ^ 3 , where X ^ j = Q X j Q \hat{X}_j=QX_jQ X ^ j = Q X j Q and Q = C C Z Q=CCZ Q = C C Z .
Code. certificates/clifford-involution-groups-in-no-pauli-masa in https://github.com/numberingeometry/clifford-hierarchy-plane-certificate
So in Case 2 below, G T G_T G T is one of these three groups after a left Clifford conjugation and a change of generators. Let Q P = Q H 1 H 2 Q_P=QH_1H_2 Q P = Q H 1 H 2 , Q N = Q H 1 H 2 H 3 Q_N=QH_1H_2H_3 Q N = Q H 1 H 2 H 3 , and Θ = ( 0 1 0 1 0 0 0 0 0 ) \Theta=\begin{pmatrix}0&1&0\\1&0&0\\0&0&0\end{pmatrix} Θ = 0 1 0 1 0 0 0 0 0 . In Case 2 we show that U = Q N G U=Q_NG U = Q N G or U = Q P G U=Q_PG U = Q P G with G G G diagonal, and we write G ( x ) 2 = e 2 π i f ( x ) G(x)^2=e^{2\pi if(x)} G ( x ) 2 = e 2 π i f ( x ) with f : F 2 3 → R / Z f:\mathbb{F}_2^3\to\mathbb{R}/\mathbb{Z} f : F 2 3 → R / Z and Δ j f ( x ) = f ( x + e j ) − f ( x ) \Delta_jf(x)=f(x+e_j)-f(x) Δ j f ( x ) = f ( x + e j ) − f ( x ) .
Figure 8. Case analysis in the proof of Lemma E.6.
Case 1a: G T ⊆ A N G_T\subseteq A_N G T ⊆ A N for a Lagrangian N N N , and some g c g_c g c is not Pauli. For each non-Pauli g c g_c g c , the Lagrangian L c L_c L c spanned by supp P g c \operatorname{supp}_P g_c supp P g c lies in N N N , so L c = N L_c=N L c = N . The c c c with g c g_c g c Pauli form a proper subgroup of im T \operatorname{im}T im T , so the a a a with g T a g_{Ta} g T a non-Pauli lie outside a proper subgroup of F 2 3 \mathbb{F}_2^3 F 2 3 and span it, and the labels ( a , b ) (a,b) ( a , b ) with g T a g_{Ta} g T a non-Pauli span V 3 V_3 V 3 . By Lemma E.5 , each such h ( a , b ) h_{(a,b)} h ( a , b ) normalizes A N A_N A N . Hence so does every h v h_v h v , and U ∈ GSC ( 3 ) U\in\operatorname{GSC}(3) U ∈ GSC ( 3 ) by Lemma 3.
Case 1b: every g c g_c g c is Pauli. At rank three, U A Z U † UA_ZU^\dagger U A Z U † is spanned by the g c g_c g c , so it is a Pauli MASA. At rank two, U U U maps two independent commuting Paulis Z c Z^c Z c , c ∈ im T c\in\operatorname{im}T c ∈ im T , to Paulis, and Lemma D.8 applies. At rank one, T = p p T T=pp^{\mathsf T} T = p p T , since a rank-one symmetric binary matrix is u u T uu^{\mathsf T} u u T with diagonal u u u . Thus p ≠ 0 p\ne0 p = 0 and g p g_p g p is Pauli.
We first show that U = Q N G U=Q_NG U = Q N G if G T = ⟨ X ^ 1 , X ^ 2 , X ^ 3 ⟩ G_T=\langle\hat X_1,\hat X_2,\hat X_3\rangle G T = ⟨ X ^ 1 , X ^ 2 , X ^ 3 ⟩ and U = Q P G U=Q_PG U = Q P G otherwise, with G G G diagonal. We then derive the constraints on the phases of G G G recorded in the table, and Cases 2a and 2b compare them with the Galois cocycle.
We have X ^ j = Q N Z j Q N † \hat X_j=Q_NZ_jQ_N^\dagger X ^ j = Q N Z j Q N † for j ≤ 3 j\leq3 j ≤ 3 , X ^ j = Q P Z j Q P † \hat X_j=Q_PZ_jQ_P^\dagger X ^ j = Q P Z j Q P † for j ≤ 2 j\leq2 j ≤ 2 , and Z 3 = Q P Z 3 Q P † Z_3=Q_PZ_3Q_P^\dagger Z 3 = Q P Z 3 Q P † . In coordinates where the listed generators are g e 1 , g e 2 g_{e_1},g_{e_2} g e 1 , g e 2 (and g e 3 g_{e_3} g e 3 ), the gate G = Q N − 1 U G=Q_N^{-1}U G = Q N − 1 U , respectively G = Q P − 1 U G=Q_P^{-1}U G = Q P − 1 U , commutes with Z j Z_j Z j for e j ∈ im T e_j\in\operatorname{im}T e j ∈ im T , so at rank three G G G is diagonal. For 0 ≠ c ∈ span { e 1 , e 2 } 0\ne c\in\operatorname{span}\{e_1,e_2\} 0 = c ∈ span { e 1 , e 2 } , the Pauli MASA of g c g_c g c is Q P A span { z c , x Θ c , z 3 } Q P † Q_P\mathcal A_{\operatorname{span}\{z^c,x^{\Theta c},z_3\}}Q_P^\dagger Q P A span { z c , x Θ c , z 3 } Q P † .
At rank two, G T = ⟨ X ^ 1 , X ^ 2 ⟩ G_T=\langle\hat X_1,\hat X_2\rangle G T = ⟨ X ^ 1 , X ^ 2 ⟩ , ker T = span { e 3 } \ker T=\operatorname{span}\{e_3\} ker T = span { e 3 } , and G = ⨁ u ∈ F 2 2 G u G=\bigoplus_{u\in\mathbb F_2^2}G_u G = ⨁ u ∈ F 2 2 G u with one-qubit blocks on qubit 3. Let v = ( a , b ) v=(a,b) v = ( a , b ) with a ′ = ( a 1 , a 2 ) ≠ 0 a'=(a_1,a_2)\ne0 a ′ = ( a 1 , a 2 ) = 0 , and write P v = X a ′ Z b ′ ⊗ P P_v=X^{a'}Z^{b'}\otimes P P v = X a ′ Z b ′ ⊗ P with P P P a Pauli on qubit 3. By Lemma E.5, h v h_v h v normalizes the Pauli MASA of g T a g_{T a} g T a , so G P v G † = Q P † h v Q P GP_vG^\dagger=Q_P^\dagger h_vQ_P G P v G † = Q P † h v Q P normalizes A span { z c , x Θ c , z 3 } \mathcal A_{\operatorname{span}\{z^c,x^{\Theta c},z_3\}} A span { z c , x Θ c , z 3 } , c = T a c=Ta c = T a , which contains Z 3 Z_3 Z 3 . The elements of this algebra commuting with Z 1 , Z 2 Z_1,Z_2 Z 1 , Z 2 restrict to each block as elements of span C { I , Z 3 } \operatorname{span}_{\mathbb C}\{I,Z_3\} span C { I , Z 3 } , so the blocks ± G u + a ′ P G u † \pm G_{u+a'}PG_u^\dagger ± G u + a ′ P G u † of G P v G † GP_vG^\dagger G P v G † send Z 3 Z_3 Z 3 to ± Z 3 \pm Z_3 ± Z 3 . With P = I P=I P = I this makes G u † Z 3 G u G_u^\dagger Z_3G_u G u † Z 3 G u independent of u u u up to sign, and with P = X , Y , Z P=X,Y,Z P = X , Y , Z this common involution is ± \pm ± a Pauli. After a right Clifford on qubit 3, G = Π t D G=\Pi_tD G = Π t D with Π t ( u , z ) = ( u , z + t ( u ) ) \Pi_t(u,z)=(u,z+t(u)) Π t ( u , z ) = ( u , z + t ( u )) and D D D diagonal, and a right Clifford removes the affine part of t t t . If t ( u ) = u 1 u 2 t(u)=u_1u_2 t ( u ) = u 1 u 2 , then
U Z 3 U † = diag z 3 ( C 0 , − C Z 12 C 0 C Z 12 ) , C 0 = H 1 H 2 C Z 12 H 1 H 2 , UZ_3U^\dagger=\operatorname{diag}_{z_3}(C_0,-CZ_{12}C_0CZ_{12}),\qquad C_0=H_1H_2CZ_{12}H_1H_2, U Z 3 U † = diag z 3 ( C 0 , − C Z 12 C 0 C Z 12 ) , C 0 = H 1 H 2 C Z 12 H 1 H 2 ,
and the symplectic action of C Z 12 C 0 C Z 12 C 0 − 1 CZ_{12}C_0CZ_{12}C_0^{-1} C Z 12 C 0 C Z 12 C 0 − 1 has order three, so none of its 2 j 2^j 2 j -th powers lies in μ 4 P ( 2 ) \mu_4\mathcal P(2) μ 4 P ( 2 ) , contrary to Proposition A.5. Hence G G G is diagonal. These right Clifford gates are fixed by σ \sigma σ up to scalar and keep A = G − 1 σ ( G ) A=G^{-1}\sigma(G) A = G − 1 σ ( G ) diagonal.
Now we constrain the phases. Let Q = Q N Q=Q_N Q = Q N or Q = Q P Q=Q_P Q = Q P , so that U = Q G U=QG U = QG , and let v = ( a , b ) v=(a,b) v = ( a , b ) with g T a g_{T a} g T a not a Pauli. By Lemma E.5, h v h_v h v normalizes the Pauli MASA Q A S Q † Q\mathcal A_SQ^\dagger Q A S Q † of g T a g_{T a} g T a , where
S = span { z T a , x k : k ⋅ T a = 0 } for Q = Q N , S = span { z c , x Θ c , z 3 } for Q = Q P , S=\operatorname{span}\{z^{T a},x^k:k\cdot Ta=0\}\quad\text{for }Q=Q_N,\qquad S=\operatorname{span}\{z^c,x^{\Theta c},z_3\}\quad\text{for }Q=Q_P, S = span { z T a , x k : k ⋅ T a = 0 } for Q = Q N , S = span { z c , x Θ c , z 3 } for Q = Q P ,
with c c c the span { e 1 , e 2 } \operatorname{span}\{e_1,e_2\} span { e 1 , e 2 } -part of T a Ta T a (at rank three, g T a = ± g c Z 3 g_{T a}=\pm g_cZ_3 g T a = ± g c Z 3 lies in the Pauli MASA of g c g_c g c ). Hence G P v G † GP_vG^\dagger G P v G † , which is P v P_v P v times R a = diag x G ( x + a ) / G ( x ) R_a=\operatorname{diag}_xG(x+a)/G(x) R a = diag x G ( x + a ) / G ( x ) , normalizes A S \mathcal A_S A S , and so does R a R_a R a . For each X k X^k X k in A S \mathcal A_S A S , R a X k R a † R_aX^kR_a^\dagger R a X k R a † lies in A S \mathcal A_S A S and commutes with X k X^k X k . As R a 2 = diag x e 2 π i Δ a f ( x ) R_a^2=\operatorname{diag}_x e^{2\pi i\Delta_af(x)} R a 2 = diag x e 2 π i Δ a f ( x ) , this says Δ k Δ a f = 0 \Delta_k\Delta_af=0 Δ k Δ a f = 0 . The unknowns are the eight values f ( x ) ∈ R / Z f(x)\in\mathbb R/\mathbb Z f ( x ) ∈ R / Z , and the equations form an integer system R f = 0 Rf=0 R f = 0 . By Pontryagin duality for R / Z \mathbb R/\mathbb Z R / Z , a relation w f = 0 wf=0 w f = 0 with w ∈ Z 8 w\in\mathbb Z^8 w ∈ Z 8 holds for every solution exactly when w w w lies in the integer row span of R R R . Each consequence is therefore decided by integer row reduction, for each of the 64 symmetric binary 3 × 3 3\times3 3 × 3 matrices T T T , with the following outcome.
Table C5. (C5) Second-difference equations for phases. Let f : F 2 3 → R / Z f:\mathbb F_2^3\to\mathbb R/\mathbb Z f : F 2 3 → R / Z , let T T T be a symmetric binary 3 × 3 3\times3 3 × 3 matrix, and let Θ \Theta Θ be as in the proof of Lemma E.6. Then:
Code. certificates/second-difference-equations-for-phases in https://github.com/numberingometry/clifford-hierarchy-plane-certificate
By (C5), 4 Δ j f = 0 4\Delta_jf=0 4 Δ j f = 0 for the listed j j j , and 2 Δ j f = 0 2\Delta_jf=0 2 Δ j f = 0 if T = Θ T=\Theta T = Θ . Thus the ratios of G G G along the listed e j e_j e j lie in μ 8 \mu_8 μ 8 , and in μ 4 \mu_4 μ 4 if T = Θ T=\Theta T = Θ . As σ ( Q P ) = Q P \sigma(Q_P)=Q_P σ ( Q P ) = Q P and σ ( Q N ) = Q N \sigma(Q_N)=Q_N σ ( Q N ) = Q N , we have A = G − 1 σ ( G ) A=G^{-1}\sigma(G) A = G − 1 σ ( G ) , and σ 2 ( W ) = W Z p \sigma^2(W)=WZ^p σ 2 ( W ) = W Z p reads G − 1 σ 2 ( G ) = Z p G^{-1}\sigma^2(G)=Z^p G − 1 σ 2 ( G ) = Z p .
Then G 8 G^8 G 8 is scalar, so M ≤ 3 M\leq3 M ≤ 3 . But T T T is nonsingular of odd size, so p ≠ 0 p\ne0 p = 0 and m = M − 1 ≥ 2 m=M-1\geq2 m = M − 1 ≥ 2 , a contradiction.
If p = 0 p=0 p = 0 , then T = B q = Θ T=B_q=\Theta T = B q = Θ , the ratios along span { e 1 , e 2 } \operatorname{span}\{e_1,e_2\} span { e 1 , e 2 } are fixed by σ \sigma σ , so ( − 1 ) q (-1)^q ( − 1 ) q is invariant under span { e 1 , e 2 } \operatorname{span}\{e_1,e_2\} span { e 1 , e 2 } up to sign and B q e 1 = B q e 2 = 0 Bq_{e_1}=Bq_{e_2}=0 B q e 1 = B q e 2 = 0 , a contradiction. If p ≠ 0 p\ne0 p = 0 , then M ≥ 4 M\geq4 M ≥ 4 , the ratios along e 1 , e 2 e_1,e_2 e 1 , e 2 are fixed by σ 2 \sigma^2 σ 2 , and G − 1 σ 2 ( G ) = Z p G^{-1}\sigma^2(G)=Z^p G − 1 σ 2 ( G ) = Z p gives p ∈ span { e 3 } p\in\operatorname{span}\{e_3\} p ∈ span { e 3 } . At rank two this contradicts p ∈ im T = span { e 1 , e 2 } p\in\operatorname{im}T=\operatorname{span}\{e_1,e_2\} p ∈ im T = span { e 1 , e 2 } . At rank three, p = e 3 p=e_3 p = e 3 , and U = Q P G U=Q_PG U = Q P G commutes with Z 3 Z_3 Z 3 , so g p = Z 3 g_p=Z_3 g p = Z 3 .
We use the notation
R A ( t ) = I + A 2 + i I − A 2 , R_A(t)=\frac{I+A}{2}+\mathrm{i}\frac{I-A}{2}, R A ( t ) = 2 I + A + i 2 I − A ,
and let ξ = ζ 2 M − 1 \xi=\zeta_{2M}^{-1} ξ = ζ 2 M − 1 .
Lemma E.7. Let U ′ = U R Z p ( ξ ) U'=UR_{Z^p}(\xi) U ′ = U R Z p ( ξ ) . Then U ′ ∈ C ( 3 ) U'\in C(3) U ′ ∈ C ( 3 ) , cond ( U ′ ) < M \operatorname{cond}(U')<M cond ( U ′ ) < M , and
U ′ ∈ GSC ( 3 ) ⟺ U ∈ GSC ( 3 ) . U'\in\operatorname{GSC}(3)\quad\Longleftrightarrow\quad U\in\operatorname{GSC}(3). U ′ ∈ GSC ( 3 ) ⟺ U ∈ GSC ( 3 ) .
Proof. By Lemma E.6, m = M − 1 m=M-1 m = M − 1 , p ≠ 0 p\ne0 p = 0 , and P : = U Z p U † P:=UZ^pU^\dagger P := U Z p U † is a Pauli. Hence
U ′ = U R Z p ( ξ ) = R P ( ξ ) U . U'=UR_{Z^p}(\xi)=R_P(\xi)U. U ′ = U R Z p ( ξ ) = R P ( ξ ) U .
Step 1: cond ( U ′ ) < M \operatorname{cond}(U')<M cond ( U ′ ) < M .
Let W = U W=U W = U be the matrix over K M K_M K M chosen above. Since m = M − 1 m=M-1 m = M − 1 , the automorphism δ = σ 2 \delta=\sigma^2 δ = σ 2 generates Gal ( K M / K M − 1 ) \operatorname{Gal}(K_M/K_{M-1}) Gal ( K M / K M − 1 ) , sends ξ \xi ξ to − ξ -\xi − ξ , and satisfies δ ( W ) ≐ W Z p \delta(W)\doteq WZ^p δ ( W ) ≐ W Z p by Step 3 of the proof of Lemma E.5. Therefore
δ ( W R Z p ( ξ ) ) ≐ W Z p R Z p ( − ξ ) = W R Z p ( ξ ) , \delta(WR_{Z^p}(\xi))\doteq WZ^pR_{Z^p}(-\xi)=WR_{Z^p}(\xi), δ ( W R Z p ( ξ )) ≐ W Z p R Z p ( − ξ ) = W R Z p ( ξ ) , because Z p R Z p ( − ξ ) = R Z p ( ξ ) Z^pR_{Z^p}(-\xi)=R_{Z^p}(\xi) Z p R Z p ( − ξ ) = R Z p ( ξ ) . Dividing W R Z p ( ξ ) WR_{Z^p}(\xi) W R Z p ( ξ ) by one of its nonzero entries gives a matrix fixed entrywise by δ \delta δ . Its entries lie in K M − 1 K_{M-1} K M − 1 , so cond ( U ′ ) ≤ M − 1 \operatorname{cond}(U')\le M-1 cond ( U ′ ) ≤ M − 1 .
Step 2: U ′ ∈ C ( 3 ) U'\in C(3) U ′ ∈ C ( 3 ) .
Fix v ∈ V 3 v\in V_3 v ∈ V 3 . Since P v Z p = ( − 1 ) ω ( v , ( 0 , p ) ) Z p P v P_vZ^p=(-1)^{\omega(v,(0,p))}Z^pP_v P v Z p = ( − 1 ) ω ( v , ( 0 , p )) Z p P v , expanding R Z p ( ξ ) P v R Z p ( ξ ) † R_{Z^p}(\xi)P_vR_{Z^p}(\xi)^\dagger R Z p ( ξ ) P v R Z p ( ξ ) † gives
U ′ P v U ′ † = { h v , ω ( v , ( 0 , p ) ) = 0 , ξ − 1 R P ( ξ 2 ) h v , ω ( v , ( 0 , p ) ) = 1. U'P_vU'^\dagger=
\begin{cases}
h_v, & \omega(v,(0,p))=0,\\
\xi^{-1}R_P(\xi^2)h_v, & \omega(v,(0,p))=1.
\end{cases} U ′ P v U ′ † = { h v , ξ − 1 R P ( ξ 2 ) h v , ω ( v , ( 0 , p )) = 0 , ω ( v , ( 0 , p )) = 1. In the first case, h v ∈ C ( 3 ) h_v\in C(3) h v ∈ C ( 3 ) since U ∈ C ( 3 ) U\in C(3) U ∈ C ( 3 ) . Suppose now ω ( v , ( 0 , p ) ) = 1 \omega(v,(0,p))=1 ω ( v , ( 0 , p )) = 1 . Since h v P v h v † = − P h_vP_vh_v^\dagger=-P h v P v h v † = − P and h v h_v h v is generalized semi-Clifford, Lemma A.4 gives ( L v , L v ′ ) ∈ L ( h v ) (L_v,L'_v)\in\mathcal{L}(h_v) ( L v , L v ′ ) ∈ L ( h v ) with the label of P P P in L v L_v L v and in L v ′ L'_v L v ′ . Choose Clifford gates C 1 , C 2 C_1,C_2 C 1 , C 2 with C 1 P C 1 † = Z 1 C_1PC_1^\dagger=Z_1 C 1 P C 1 † = Z 1 and C 1 h v C 2 = Π v D v C_1h_vC_2=\Pi_vD_v C 1 h v C 2 = Π v D v monomial. Set
D v ′ = Π v † R Z 1 ( ξ 2 ) Π v D v , C 1 R P ( ξ 2 ) h v C 2 = Π v D v ′ . D'_v=\Pi_v^\dagger R_{Z_1}(\xi^2)\Pi_vD_v,\qquad C_1R_P(\xi^2)h_vC_2=\Pi_vD'_v. D v ′ = Π v † R Z 1 ( ξ 2 ) Π v D v , C 1 R P ( ξ 2 ) h v C 2 = Π v D v ′ . By [5 Corollary A.11.1] , Π v , D v ∈ C ( 3 ) \Pi_v,D_v\in C(3) Π v , D v ∈ C ( 3 ) . The gate D v ′ D'_v D v ′ is diagonal with dyadic relative phases, so it also lies in C ( 3 ) C(3) C ( 3 ) by the diagonal classification [5 Appendix F] . The same corollary then gives R P ( ξ 2 ) h v ∈ C ( 3 ) R_P(\xi^2)h_v\in C(3) R P ( ξ 2 ) h v ∈ C ( 3 ) . There are finitely many v v v , so their corrections have a common finite level. Hence U ′ ∈ C ( 3 ) U'\in C(3) U ′ ∈ C ( 3 ) .
Step 3: U ′ ∈ GSC ( 3 ) U'\in\operatorname{GSC}(3) U ′ ∈ GSC ( 3 ) if and only if U ∈ GSC ( 3 ) U\in\operatorname{GSC}(3) U ∈ GSC ( 3 ) .
Suppose that one of the gates U , U ′ U,U' U , U ′ , call it V V V , has a GSC pair ( L , L ′ ) ∈ L ( V ) (L,L')\in\mathcal{L}(V) ( L , L ′ ) ∈ L ( V ) . Both gates send Z p Z^p Z p to P P P , since U ′ Z p U ′ † = R P ( ξ ) P R P ( ξ ) † = P U'Z^pU'^\dagger=R_P(\xi)PR_P(\xi)^\dagger=P U ′ Z p U ′ † = R P ( ξ ) P R P ( ξ ) † = P . Hence Lemma A.4 lets us assume that the labels of Z p Z^p Z p and P P P lie in L L L and L ′ L' L ′ , respectively. Then R Z p ( ξ ) ∈ A L R_{Z^p}(\xi)\in A_L R Z p ( ξ ) ∈ A L , so
U ′ A L U ′ † = U R Z p ( ξ ) A L R Z p ( ξ ) † U † = U A L U † . U'A_LU'^\dagger=UR_{Z^p}(\xi)A_LR_{Z^p}(\xi)^\dagger U^\dagger=UA_LU^\dagger. U ′ A L U ′ † = U R Z p ( ξ ) A L R Z p ( ξ ) † U † = U A L U † . Thus ( L , L ′ ) (L,L') ( L , L ′ ) is a GSC pair of both gates, proving the equivalence.
This proves Theorem 11. Indeed, the gate U U U of Lemma E.7 is K U 0 C KU_0C K U 0 C for the given gate U 0 U_0 U 0 and Clifford gates K , C K,C K , C (Lemmas E.5 and E.6). Multiplication by Clifford gates preserves the conductor (since Clifford gates are defined over K 2 K_2 K 2 up to scalar) and whether a gate is in GSC(3) or not (Lemma 4(1)). So K − 1 U ′ C − 1 K^{-1}U'C^{-1} K − 1 U ′ C − 1 has the required properties for U 0 U_0 U 0 . The case U ∈ GSC ( 3 ) U\in\operatorname{GSC}(3) U ∈ GSC ( 3 ) was treated at the start of this subsection.
Results on C(4)
Proof of Theorem 10 when n=4
In this subsection, let U ∈ C ( 4 ) U \in\mathcal{C}(4) U ∈ C ( 4 ) , and suppose that every h v = U P v U † h_v = UP_vU^\dagger h v = U P v U † , v ∈ V 4 v \in V_4 v ∈ V 4 , is Gaussian. By Lemma E.1, we may also assume that the h v h_v h v are generalized semi-Clifford, so that h v ∈ R 4 h_v \in\mathcal{R}_4 h v ∈ R 4 for v ≠ 0 v \ne0 v = 0 by Proposition D.11. These assumptions hold for all the lemmas in this subsection except Lemma F.6, which states its own hypotheses because the proof of Lemma F.4 applies it to a gate other than U U U . We want to find a pair ( L , M ) ∈ L ( U ) (L, M) \in\mathcal{L}(U) ( L , M ) ∈ L ( U ) . A Pauli pair of a gate W W W is a pair ( s , t ) (s, t) ( s , t ) of nonzero labels with W P t W † = ± P s WP_tW^\dagger= \pm P_s W P t W † = ± P s . For a gate K K K , let X ( K ) = { L : ( L , M ) ∈ L ( K ) X(K) = \{L : (L, M) \in\mathcal{L}(K) X ( K ) = { L : ( L , M ) ∈ L ( K ) for some M } M\} M } . Figure 9 shows how the lemmas below combine, and the proofs of Lemmas F.3–F.6 begin with a tree of their cases.
Figure 9. Proof of Theorem 10 when n = 4 n = 4 n = 4 .
Lemma F.1. For U ∈ C ( 4 ) U \in\mathcal{C}(4) U ∈ C ( 4 ) , either L ( U ) ≠ ∅ \mathcal{L}(U) \ne\varnothing L ( U ) = ∅ or there exist s , t ∈ V 4 ∖ { 0 } s, t \in V_4 \setminus\{0\} s , t ∈ V 4 ∖ { 0 } such that U P t U † = ± P s UP_tU^\dagger= \pm P_s U P t U † = ± P s .
Proof. For h ∈ R 4 h \in\mathcal{R}_4 h ∈ R 4 , let
N ( h ) = { s ∈ V 4 : h P s h † = ± P s } , F ( h ) = ( span supp P h ) ⊥ , ρ ( h ) = ( ∣ N ( h ) ∣ − 1 , ∣ F ( h ) ∣ − 1 , t ( h ) ) , N(h) = \{s \in V_4 : hP_sh^\dagger= \pm P_s\}, \qquad F(h) = (\operatorname{span}\operatorname{supp}_{P} h)^\perp, \qquad\rho(h) = (|N(h)| - 1, |F(h)| - 1, t(h)), N ( h ) = { s ∈ V 4 : h P s h † = ± P s } , F ( h ) = ( span supp P h ) ⊥ , ρ ( h ) = ( ∣ N ( h ) ∣ − 1 , ∣ F ( h ) ∣ − 1 , t ( h )) ,
where
t ( h ) = { 1 , if h ∈ C 1 ( 4 ) , 2 , if h ∈ C 2 ( 4 ) ∖ C 1 ( 4 ) , 3 , if h ∈ C 3 ( 4 ) ∖ C 2 ( 4 ) , 4 , if h ∈ C k ( 4 ) ∖ C 3 ( 4 ) for k ≥ 4. t(h) =
\begin{cases}
1, & \text{if } h \in\mathcal{C}_1(4),\\
2, & \text{if } h \in\mathcal{C}_2(4) \setminus\mathcal{C}_1(4),\\
3, & \text{if } h \in\mathcal{C}_3(4) \setminus\mathcal{C}_2(4),\\
4, & \text{if } h \in\mathcal{C}_k(4) \setminus\mathcal{C}_3(4) \text{ for } k \ge4.
\end{cases} t ( h ) = ⎩ ⎨ ⎧ 1 , 2 , 3 , 4 , if h ∈ C 1 ( 4 ) , if h ∈ C 2 ( 4 ) ∖ C 1 ( 4 ) , if h ∈ C 3 ( 4 ) ∖ C 2 ( 4 ) , if h ∈ C k ( 4 ) ∖ C 3 ( 4 ) for k ≥ 4.
We order ρ ( h ) \rho(h) ρ ( h ) lexicographically. Each entry of ρ \rho ρ is invariant under Clifford conjugation. For M ∈ R 4 M \in\mathcal{R}_4 M ∈ R 4 , let K ( M ) \mathcal{K}(M) K ( M ) be the set of h ∈ R 4 h \in\mathcal{R}_4 h ∈ R 4 for which some ϵ ∈ F 2 \epsilon\in\mathbb{F}_2 ϵ ∈ F 2 satisfies
h M = ( − 1 ) ϵ M h , g = i ϵ M h ∈ R 4 , ρ ( h ) ≥ ρ ( M ) , ρ ( g ) ≥ ρ ( M ) . hM = (-1)^\epsilon Mh, \qquad g = i^\epsilon Mh \in\mathcal{R}_4, \qquad\rho(h) \ge\rho(M), \qquad\rho(g) \ge\rho(M). h M = ( − 1 ) ϵ M h , g = i ϵ M h ∈ R 4 , ρ ( h ) ≥ ρ ( M ) , ρ ( g ) ≥ ρ ( M ) .
By Proposition D.11, every h ∈ R 4 h \in\mathcal{R}_4 h ∈ R 4 is Clifford conjugate to some M M M of the form (D.1), determined by ( λ , f , π ) ∈ F 2 × ( Z / 4 Z ) F 2 4 × Q 4 (\lambda, f, \pi) \in\mathbb{F}_2 \times(\mathbb{Z}/4\mathbb{Z})^{\mathbb{F}_2^4} \times Q_4 ( λ , f , π ) ∈ F 2 × ( Z /4 Z ) F 2 4 × Q 4 . After an affine permutation, which is Clifford, Q 4 Q_4 Q 4 is the group of order 2 15 2^{15} 2 15 preserving a fixed complete affine flag (Lemma D.3(1)). The set N ( M ) N(M) N ( M ) is found by conjugating the 256 Paulis, and an enumeration gives the following.
(C6) Representatives of R 4 \mathcal{R}_4 R 4 up to Clifford conjugacy
A list of 1,020 gates of the form (D.1) on four qubits contains a Clifford conjugate of every h ∈ R 4 h \in\mathcal{R}_4 h ∈ R 4 . Exactly ten listed M M M have ∣ N ( M ) ∣ − 1 ≥ 63 |N(M)| - 1 \ge63 ∣ N ( M ) ∣ − 1 ≥ 63 , and they lie in C 2 ( 4 ) \mathcal{C}_2(4) C 2 ( 4 ) .
Code. certificates/r4-representatives-up-to-clifford-conjugacy in https://github.com/numberingeometry/clifford-hierarchy-plane-certificate
The set K ( M ) \mathcal{K}(M) K ( M ) lies in R 4 \mathcal{R}_4 R 4 , which is finite: its elements are the C M ′ C † CM'C^\dagger C M ′ C † with M ′ M' M ′ of the form (D.1) and C ∈ C 2 ( 4 ) C \in\mathcal{C}_2(4) C ∈ C 2 ( 4 ) , which is finite modulo scalars. The sets N ( h ) N(h) N ( h ) and the entries of ρ ( h ) \rho(h) ρ ( h ) are found by conjugating Paulis, and V 4 V_4 V 4 has finitely many planes. A search over the listed M M M gives the following.
(C7) A plane meeting the fixed Pauli labels
For each of the other 1,010 listed M M M there is a plane Π M ≤ V 4 \Pi_M \le V_4 Π M ≤ V 4 with
N ( h ) ∩ Π M ≠ { 0 } for all h ∈ { M } ∪ K ( M ) , N(h) \cap\Pi_M \ne\{0\} \qquad\text{for all } h \in\{M\} \cup\mathcal{K}(M), N ( h ) ∩ Π M = { 0 } for all h ∈ { M } ∪ K ( M ) , where N ( h ) = { s : h P s h † = ± P s } N(h) = \{s : hP_sh^\dagger= \pm P_s\} N ( h ) = { s : h P s h † = ± P s } .
Code. certificates/plane-meeting-fixed-pauli-labels in https://github.com/numberingeometry/clifford-hierarchy-plane-certificate
By (C7), every listed M M M with ∣ N ( M ) ∣ − 1 < 63 |N(M)| - 1 < 63 ∣ N ( M ) ∣ − 1 < 63 has a two-dimensional subspace Π M ≤ V 4 \Pi_M \le V_4 Π M ≤ V 4 with
N ( h ) ∩ Π M ≠ { 0 } ( h ∈ { M } ∪ K ( M ) ) . (6) N(h) \cap\Pi_M \ne\{0\} \qquad(h \in\{M\} \cup\mathcal{K}(M)). \tag*{(6)} N ( h ) ∩ Π M = { 0 } ( h ∈ { M } ∪ K ( M )) . (6)
Fix v ≠ 0 v \ne0 v = 0 with ρ ( h v ) \rho(h_v) ρ ( h v ) minimal among the ρ ( h w ) \rho(h_w) ρ ( h w ) , w ≠ 0 w \ne0 w = 0 . By (C6), there exists C ∈ C 2 ( 4 ) C \in\mathcal{C}_2(4) C ∈ C 2 ( 4 ) with C h v C † = M Ch_vC^\dagger= M C h v C † = M . Replacing U U U by C U CU C U replaces each h w h_w h w by C h w C † Ch_wC^\dagger C h w C † , which preserves ρ \rho ρ , the hypotheses, and both alternatives of the lemma. We may therefore assume h v = M h_v = M h v = M .
Case 1: ∣ N ( M ) ∣ − 1 ≥ 63 |N(M)| - 1 \ge63 ∣ N ( M ) ∣ − 1 ≥ 63 .
By minimality, ∣ N ( h w ) ∣ − 1 ≥ 63 |N(h_w)| - 1 \ge63 ∣ N ( h w ) ∣ − 1 ≥ 63 for every w ≠ 0 w \ne0 w = 0 . Since each h w h_w h w is Clifford conjugate to a listed representative with the same N N N -count, (C6) gives h w ∈ C 2 ( 4 ) h_w \in\mathcal{C}_2(4) h w ∈ C 2 ( 4 ) . Hence, U ∈ C 3 ( 4 ) ⊆ SC ( 4 ) U \in\mathcal{C}_3(4) \subseteq\operatorname{SC}(4) U ∈ C 3 ( 4 ) ⊆ SC ( 4 ) by Theorem B.5, and L ( U ) ≠ ∅ \mathcal{L}(U) \ne\varnothing L ( U ) = ∅ .
Case 2: ∣ N ( M ) ∣ − 1 < 63 |N(M)| - 1 < 63 ∣ N ( M ) ∣ − 1 < 63 .
We first show that N ( h w ) ∩ Π M ≠ { 0 } N(h_w) \cap\Pi_M \ne\{0\} N ( h w ) ∩ Π M = { 0 } for every w ≠ 0 w \ne0 w = 0 . Let w ≠ 0 w \ne0 w = 0 and w ≠ v w \ne v w = v , h = h w h = h_w h = h w , and ϵ = ω ( v , w ) \epsilon= \omega(v,w) ϵ = ω ( v , w ) , so that h M = ( − 1 ) ϵ M h hM = (-1)^\epsilon Mh h M = ( − 1 ) ϵ M h . Then g = i ϵ M h = ± h v + w ∈ R 4 g = i^\epsilon Mh = \pm h_{v+w} \in\mathcal{R}_4 g = i ϵ M h = ± h v + w ∈ R 4 , and minimality gives ρ ( h ) ≥ ρ ( M ) \rho(h) \ge\rho(M) ρ ( h ) ≥ ρ ( M ) and ρ ( g ) ≥ ρ ( M ) \rho(g) \ge\rho(M) ρ ( g ) ≥ ρ ( M ) , so h ∈ K ( M ) h \in\mathcal{K}(M) h ∈ K ( M ) . With h v = M h_v = M h v = M , (F.1) gives N ( h w ) ∩ Π M ≠ { 0 } N(h_w) \cap\Pi_M \ne\{0\} N ( h w ) ∩ Π M = { 0 } for every w ≠ 0 w \ne0 w = 0 .
Now, for 0 ≠ s ∈ Π M 0 \ne s \in\Pi_M 0 = s ∈ Π M , let B s = U † P s U = ∑ u b u P u B_s = U^\dagger P_s U = \sum_u b_uP_u B s = U † P s U = ∑ u b u P u , and V s = { w ∈ V 4 : P w B s P w † = ± B s } V_s = \{w \in V_4 : P_wB_sP_w^\dagger= \pm B_s\} V s = { w ∈ V 4 : P w B s P w † = ± B s } . Conjugating by U U U shows that s ∈ N ( h w ) s \in N(h_w) s ∈ N ( h w ) if and only if w ∈ V s w \in V_s w ∈ V s , so the three sets V s V_s V s cover V 4 V_4 V 4 . Conjugation by P w P_w P w multiplies b u b_u b u by ( − 1 ) ω ( w , u ) (-1)^{\omega(w,u)} ( − 1 ) ω ( w , u ) , so
V s = span ( supp P B s + supp P B s ) V_s = \operatorname{span}(\operatorname{supp}_P B_s + \operatorname{supp}_P B_s) V s = span ( supp P B s + supp P B s )
is a subspace. If all three V s V_s V s were proper, they would be three distinct hyperplanes, the only way three proper subspaces cover a vector space over F 2 \mathbb{F}_2 F 2 . Then each B s B_s B s would have exactly two Pauli terms, with labels u s u_s u s and u s + d s u_s + d_s u s + d s and distinct d s d_s d s . Moreover, for s ≠ s ′ s \ne s' s = s ′ the product B s B s ′ B_sB_{s'} B s B s ′ would have the four labels u s + u s ′ + { 0 , d s , d s ′ , d s + d s ′ } u_s + u_{s'} + \{0,d_s,d_{s'},d_s+d_{s'}\} u s + u s ′ + { 0 , d s , d s ′ , d s + d s ′ } , while B s B s ′ = B s + s ′ B_sB_{s'} = B_{s+s'} B s B s ′ = B s + s ′ has two. Hence V s = V 4 V_s = V_4 V s = V 4 for some s s s , so B s B_s B s has a single Pauli term. As B s B_s B s is a Hermitian unitary and s ≠ 0 s \ne0 s = 0 , B s = ± P t B_s = \pm P_t B s = ± P t with t ≠ 0 t \ne0 t = 0 , that is, U P t U † = ± P s UP_tU^\dagger= \pm P_s U P t U † = ± P s .
Lemma F.2. Suppose U U U has a Pauli pair. Then there are C 1 , C 2 ∈ C 2 ( 4 ) C_1,C_2 \in\mathcal{C}_2(4) C 1 , C 2 ∈ C 2 ( 4 ) such that W = C 1 U C 2 † W = C_1UC_2^\dagger W = C 1 U C 2 † has the following properties.
(1) W Z 1 W † = Z 1 WZ_1W^\dagger= Z_1 W Z 1 W † = Z 1 , so W = diag ( A , B ) W = \operatorname{diag}(A,B) W = diag ( A , B ) with A , B ∈ C 4 ( 3 ) ∩ GSC ( 3 ) A,B \in\mathcal{C}_4(3) \cap\operatorname{GSC}(3) A , B ∈ C 4 ( 3 ) ∩ GSC ( 3 ) .
(2) For each v ∈ V 3 v \in V_3 v ∈ V 3 , let K v = B P v A † K_v = BP_vA^\dagger K v = B P v A † . Then ⟨ P ( 3 ) , K v ⟩ \langle\mathcal{P}(3),K_v\rangle ⟨ P ( 3 ) , K v ⟩ is a finite 2 2 2 -group modulo scalars, and it normalizes A L \mathcal{A}_L A L for some Lagrangian L ≤ V 3 L \le V_3 L ≤ V 3 .
(3) After replacing W W W by W ( I ⊗ C ) W(I \otimes C) W ( I ⊗ C ) for a single C ∈ C 2 ( 3 ) C \in\mathcal{C}_2(3) C ∈ C 2 ( 3 ) , the gate W W W is a scalar multiple of a matrix over Q ( ζ 8 ) \mathbb{Q}(\zeta_8) Q ( ζ 8 ) , and for the automorphism of Q ( ζ 8 ) \mathbb{Q}(\zeta_8) Q ( ζ 8 ) with σ ( ζ 8 ) = − ζ 8 \sigma(\zeta_8)=-\zeta_8 σ ( ζ 8 ) = − ζ 8 there are e ∈ F 2 e \in\mathbb{F}_2 e ∈ F 2 and p ∈ F 2 3 p \in\mathbb{F}_2^3 p ∈ F 2 3 with
σ ( W ) : = W ( Z 1 e Z p ) , σ ( A ) : = A Z p , σ ( B ) : = B Z p . \sigma(W) := W(Z_1^eZ^p), \qquad\sigma(A) := AZ^p, \qquad\sigma(B) := BZ^p. σ ( W ) := W ( Z 1 e Z p ) , σ ( A ) := A Z p , σ ( B ) := B Z p .
In particular ( 0 , p ) ∈ L (0,p) \in L ( 0 , p ) ∈ L for every ( L , M ) ∈ L ( A ) ∪ L ( B ) (L,M) \in\mathcal{L}(A) \cup\mathcal{L}(B) ( L , M ) ∈ L ( A ) ∪ L ( B ) .
(4) For every ( L , M ) ∈ L ( A ) (L,M) \in\mathcal{L}(A) ( L , M ) ∈ L ( A ) , we have A = λ C 3 D C 4 A = \lambda C_3DC_4 A = λ C 3 D C 4 with λ ∈ T \lambda\in\mathbb{T} λ ∈ T , C 3 , C 4 ∈ C 2 ( 3 ) C_3,C_4 \in\mathcal{C}_2(3) C 3 , C 4 ∈ C 2 ( 3 ) , C 4 A L C 4 † = A Z C_4ALC_4^\dagger= A_Z C 4 A L C 4 † = A Z and
D = π 0 i a x y + b x z + c y z + d x y z T p ′ , π 0 ∈ { 1 , π } , a , b , c ∈ F 2 , d ∈ Z / 4 , D = \pi_0^{i^{axy+bxz+cyz+dx yz}}T_{p'}, \qquad\pi_0 \in\{1,\pi\}, \quad a,b,c \in\mathbb{F}_2,\ d \in\mathbb{Z}/4, D = π 0 i a x y + b x z + cy z + d x y z T p ′ , π 0 ∈ { 1 , π } , a , b , c ∈ F 2 , d ∈ Z /4 ,
where Z p ′ = C 4 Z p C 4 † Z^{p'} = C_4Z^pC_4^\dagger Z p ′ = C 4 Z p C 4 † . The same holds for B B B . Here i f i^f i f is the diagonal gate ∣ x , y , z ⟩ ↦ i f ( x , y , z ) ∣ x , y , z ⟩ |x,y,z\rangle\mapsto i^{f(x,y,z)}|x,y,z\rangle ∣ x , y , z ⟩ ↦ i f ( x , y , z ) ∣ x , y , z ⟩ , π \pi π is the permutation gate of ( x , y , z ) ↦ ( x , y , z + x y ) (x,y,z) \mapsto(x,y,z+xy) ( x , y , z ) ↦ ( x , y , z + x y ) , and T p ′ = ( I + Z p ′ ) / 2 + ζ 8 ( I − Z p ′ ) / 2 T_{p'} = (I+Z^{p'})/2 + \zeta_8(I-Z^{p'})/2 T p ′ = ( I + Z p ′ ) /2 + ζ 8 ( I − Z p ′ ) /2 . Proof. Choose 0 ≠ t ∈ P ( U ) 0 \ne t \in\mathcal{P}(U) 0 = t ∈ P ( U ) . Then, for some 0 ≠ s ∈ V 4 0 \ne s \in V_4 0 = s ∈ V 4 and η ∈ { ± 1 } \eta\in\{\pm1\} η ∈ { ± 1 } , we have U P t U † = η P s UP_tU^\dagger= \eta P_s U P t U † = η P s . Choose C 1 , C 2 ∈ C 2 ( 4 ) C_1,C_2 \in\mathcal{C}_2(4) C 1 , C 2 ∈ C 2 ( 4 ) such that C 2 P t C 2 † = Z 1 C_2P_tC_2^\dagger= Z_1 C 2 P t C 2 † = Z 1 and C 1 ( η P s ) C 1 † = Z 1 C_1(\eta P_s)C_1^\dagger= Z_1 C 1 ( η P s ) C 1 † = Z 1 . Then W Z 1 W † = Z 1 WZ_1W^\dagger= Z_1 W Z 1 W † = Z 1 , so W = diag ( A , B ) W = \operatorname{diag}(A,B) W = diag ( A , B ) on the eigenspaces of Z 1 Z_1 Z 1 , with blocks on qubits 2, 3, 4. As R 4 \mathcal{R}_4 R 4 is closed under Clifford conjugation and sign,
W ( I ⊗ P v ) W † = diag ( A P v A † , B P v B † ) ∈ R 4 ( 0 ≠ v ∈ V 3 ) . W(I \otimes P_v)W^\dagger= \operatorname{diag}(AP_vA^\dagger,BP_vB^\dagger) \in\mathcal{R}_4 \qquad(0 \ne v \in V_3). W ( I ⊗ P v ) W † = diag ( A P v A † , B P v B † ) ∈ R 4 ( 0 = v ∈ V 3 ) .
Its blocks, the corrections of A A A and B B B , satisfy the hypotheses of Proposition E.4 : they are Gaussian, they are generalized semi-Clifford by Lemma D.2 (1) applied to a GSC pair of the left side, and they have finite level by Lemma D.2 (2). Therefore, A , B ∈ C 4 ( 3 ) ∩ GSC ( 3 ) A,B \in\mathcal{C}_4(3) \cap\operatorname{GSC}(3) A , B ∈ C 4 ( 3 ) ∩ GSC ( 3 ) .
For v ∈ V 3 v \in V_3 v ∈ V 3 the correction with X X X on the first qubit is
W ( X 1 ⊗ P v ) W † = ( 0 K v † K v 0 ) . W(X_1 \otimes P_v)W^\dagger=
\begin{pmatrix}
0 & K_v^\dagger\\
K_v & 0
\end{pmatrix}. W ( X 1 ⊗ P v ) W † = ( 0 K v K v † 0 ) .
which anticommutes with Z 1 Z_1 Z 1 . This correction lies in R 4 \mathcal{R}_4 R 4 , so it generates, together with P ( 4 ) \mathcal{P}(4) P ( 4 ) , a finite 2-group by Proposition D.11 . By Lemma D.2 (3) with j = 1 j=1 j = 1 and e = 1 e=1 e = 1 , so is ⟨ P ( 3 ) , K v ⟩ \langle\mathcal{P}(3),K_v\rangle ⟨ P ( 3 ) , K v ⟩ , and it fixes a Pauli MASA A L \mathcal{A}_L A L by Theorem C.1 .
Let σ \sigma σ be the automorphism of Q ( ζ 8 ) \mathbb{Q}(\zeta_8) Q ( ζ 8 ) with σ ( ζ 8 ) = − ζ 8 \sigma(\zeta_8)=-\zeta_8 σ ( ζ 8 ) = − ζ 8 , which fixes i i i . By Proposition D.11 , every h v ′ = W P v W † h'_v = WP_vW^\dagger h v ′ = W P v W † has entries in Q ( ζ 8 ) \mathbb{Q}(\zeta_8) Q ( ζ 8 ) , so W W W , determined up to scalar by the h v ′ h'_v h v ′ , may be taken over Q ( ζ 8 ) \mathbb{Q}(\zeta_8) Q ( ζ 8 ) . Each h v ′ h'_v h v ′ is Gaussian, so σ ( h v ′ ) ≐ h v ′ \sigma(h'_v) \doteq h'_v σ ( h v ′ ) ≐ h v ′ , and Proposition D.9 (3) gives σ ( W ) ≐ W P a \sigma(W) \doteq WP_a σ ( W ) ≐ W P a for some a ∈ V 4 a \in V_4 a ∈ V 4 . Applying this to Z 1 = σ ( W Z 1 W † ) Z_1 = \sigma(WZ_1W^\dagger) Z 1 = σ ( W Z 1 W † ) shows that P a P_a P a commutes with Z 1 Z_1 Z 1 , so P a ≐ Z 1 e ⊗ P a ′ P_a \doteq Z_1^e \otimes P_{a'} P a ≐ Z 1 e ⊗ P a ′ with e ∈ F 2 e \in\mathbb{F}_2 e ∈ F 2 and a ′ ∈ V 3 a' \in V_3 a ′ ∈ V 3 . Replacing W W W by W ( I ⊗ C ) W(I \otimes C) W ( I ⊗ C ) for one C ∈ C 2 ( 3 ) C \in\mathcal{C}_2(3) C ∈ C 2 ( 3 ) with C † P a ′ C ≐ Z p C^\dagger P_{a'}C \doteq Z^{p} C † P a ′ C ≐ Z p , which keeps (1) and (2) with A , B A,B A , B replaced by A C , B C AC,BC A C , B C , and using σ ( C ) ≐ C \sigma(C) \doteq C σ ( C ) ≐ C via Proposition D.9 (1), we get σ ( W ) ≐ W ( Z 1 e ⊗ Z p ) \sigma(W) \doteq W(Z_1^e \otimes Z^p) σ ( W ) ≐ W ( Z 1 e ⊗ Z p ) , so σ ( A ) ≐ A Z p \sigma(A) \doteq AZ^p σ ( A ) ≐ A Z p and σ ( B ) ≐ B Z p \sigma(B) \doteq BZ^p σ ( B ) ≐ B Z p . If ( L , M ) ∈ L ( A ) (L,M) \in\mathcal{L}(A) ( L , M ) ∈ L ( A ) , then Proposition D.9 (2) gives Z p ≐ A − 1 σ ( A ) ∈ A L Z^p \doteq A^{-1}\sigma(A) \in\mathcal{A}_L Z p ≐ A − 1 σ ( A ) ∈ A L , that is, ( 0 , p ) ∈ L (0,p) \in L ( 0 , p ) ∈ L . The same argument applies to B B B .
Lastly, let ( L , M ) ∈ L ( A ) (L,M) \in\mathcal{L}(A) ( L , M ) ∈ L ( A ) . By Proposition D.4 applied with n = 3 n=3 n = 3 to A A A , which is defined over K 3 K_3 K 3 up to scalar, A ≐ C 3 π 0 Δ C 4 A \doteq C_3\pi_0\Delta C_4 A ≐ C 3 π 0 Δ C 4 with C 4 A L C 4 † = A Z C_4\mathcal{A}_LC_4^\dagger= \mathcal{A}_Z C 4 A L C 4 † = A Z , π 0 ∈ { I , π } \pi_0 \in\{I,\pi\} π 0 ∈ { I , π } , and Δ \Delta Δ diagonal with entries ζ 8 g ( x ) \zeta_8^{g(x)} ζ 8 g ( x ) after a scalar, g : F 2 3 → Z / 8 g:\mathbb{F}_2^3 \to\mathbb{Z}/8 g : F 2 3 → Z /8 . Let Z p ′ ≐ C 4 Z p C 4 † Z^{p'} \doteq C_4Z^pC_4^\dagger Z p ′ ≐ C 4 Z p C 4 † , a diagonal Pauli by (3). By Proposition D.9 (1), Δ − 1 σ ( Δ ) ≐ C 4 A − 1 σ ( A ) C 4 † ≐ Z p ′ \Delta^{-1}\sigma(\Delta) \doteq C_4A^{-1}\sigma(A)C_4^\dagger\doteq Z^{p'} Δ − 1 σ ( Δ ) ≐ C 4 A − 1 σ ( A ) C 4 † ≐ Z p ′ , and Δ − 1 σ ( Δ ) = diag ( ( − 1 ) g ( x ) ) \Delta^{-1}\sigma(\Delta)=\operatorname{diag}((-1)^{g(x)}) Δ − 1 σ ( Δ ) = diag (( − 1 ) g ( x ) ) , so g ( x ) = p ′ ⋅ x + c 0 ( m o d 2 ) g(x)=p'\cdot x+c_0 \pmod2 g ( x ) = p ′ ⋅ x + c 0 ( mod 2 ) for a constant c 0 c_0 c 0 . Hence ζ 8 g = ζ 8 g ′ T p ′ i \zeta_8^g=\zeta_8^{g'}T_{p'}^i ζ 8 g = ζ 8 g ′ T p ′ i for some g ′ : F 2 3 → Z / 4 g':\mathbb{F}_2^3 \to\mathbb{Z}/4 g ′ : F 2 3 → Z /4 . Write g ′ g' g ′ as a multilinear polynomial with coefficients in Z / 4 \mathbb{Z}/4 Z /4 . The diagonal Cliffords i ℓ ( − 1 ) q i^\ell(-1)^q i ℓ ( − 1 ) q , with ℓ \ell ℓ linear and q q q quadratic, remove its linear part and reduce its quadratic coefficients modulo 2. Being diagonal, they commute with T p ′ T_{p'} T p ′ and Z p ′ Z^{p'} Z p ′ , so absorbing them into C 4 C_4 C 4 keeps C 4 A L C 4 † = A Z C_4\mathcal{A}_LC_4^\dagger=\mathcal{A}_Z C 4 A L C 4 † = A Z and Z p ′ ≐ C 4 Z p C 4 † Z^{p'} \doteq C_4Z^pC_4^\dagger Z p ′ ≐ C 4 Z p C 4 † . This gives D = π 0 Δ D=\pi_0\Delta D = π 0 Δ with Δ ≐ i a x y + b x z + c y z + d x y z T p ′ \Delta\doteq i^{axy+bxz+cyz+dxyz}T_{p'} Δ ≐ i a x y + b x z + cy z + d x y z T p ′ . The same argument applies to B B B . □
Lemma F.3. Let W = diag ( A , B ) W=\operatorname{diag}(A,B) W = diag ( A , B ) be as in Lemma F.2, with K v = B P v A † K_v=BP_vA^\dagger K v = B P v A † , and suppose that ∣ X ( K q ) ∣ = 1 |X(K_q)|=1 ∣ X ( K q ) ∣ = 1 for some q ∈ V 3 q \in V_3 q ∈ V 3 . Then at least one of the following holds.
L ( W ) ≠ ∅ \mathcal{L}(W) \ne\varnothing L ( W ) = ∅ ;
W W W has a Pauli pair ( s , t ) (s,t) ( s , t ) with P t ≠ Z 1 P_t \ne Z_1 P t = Z 1 and P t Z 1 = Z 1 P t P_tZ_1=Z_1P_t P t Z 1 = Z 1 P t ;
there exist 0 ≠ r ∈ V 3 0 \ne r \in V_3 0 = r ∈ V 3 and a , b ∈ V 4 a,b \in V_4 a , b ∈ V 4 with ω ( a , b ) = 1 \omega(a,b)=1 ω ( a , b ) = 1 and W † ( I ⊗ P r ) W = ( P a ± P b ) / 2 W^\dagger(I \otimes P_r)W=(P_a \pm P_b)/\sqrt{2} W † ( I ⊗ P r ) W = ( P a ± P b ) / 2 .
Proof. For v ∈ V 3 v \in V_3 v ∈ V 3 , let a v = A P v A † a_v=AP_vA^\dagger a v = A P v A † and b v = B P v B † b_v=BP_vB^\dagger b v = B P v B † , and let Σ = C ( A ) + C ( B ) \Sigma=\mathcal{C}(A)+\mathcal{C}(B) Σ = C ( A ) + C ( B ) and δ = dim Σ \delta=\dim\Sigma δ = dim Σ . Fix ( L A , M A ) ∈ L ( A ) (L_A,M_A) \in\mathcal{L}(A) ( L A , M A ) ∈ L ( A ) and ( L B , M B ) ∈ L ( B ) (L_B,M_B) \in\mathcal{L}(B) ( L B , M B ) ∈ L ( B ) . By Lemma D.5 (3), L A ⊆ C ( A ) L_A \subseteq\mathcal{C}(A) L A ⊆ C ( A ) and L B ⊆ C ( B ) L_B \subseteq\mathcal{C}(B) L B ⊆ C ( B ) , so 3 ≤ δ ≤ 6 3 \le\delta\le6 3 ≤ δ ≤ 6 .
We first show that every K v K_v K v with v ∉ q + Σ v \notin q+\Sigma v ∈ / q + Σ has the same unique GSC pair ( N , N ) (N,N) ( N , N ) . By Lemma F.2(2), K q K_q K q normalizes some A N \mathcal{A}_N A N , so L ( K q ) = { ( N , N ) } \mathcal{L}(K_q)=\{(N,N)\} L ( K q ) = {( N , N )} . For s ∈ C ( A ) s \in\mathcal{C}(A) s ∈ C ( A ) and t ∈ C ( B ) t \in\mathcal{C}(B) t ∈ C ( B ) , K q + s ≐ K q a s K_{q+s} \doteq K_q a_s K q + s ≐ K q a s and K q + t ≐ b t K q K_{q+t} \doteq b_tK_q K q + t ≐ b t K q with a s , b t ∈ C 2 ( 3 ) a_s,b_t \in\mathcal{C}_2(3) a s , b t ∈ C 2 ( 3 ) . By Lemma D.1 (1), each K v K_v K v with v ∈ q + Σ v \in q+\Sigma v ∈ q + Σ has exactly one GSC pair, which is of the form ( N v , N v ) (N_v,N_v) ( N v , N v ) by Lemma F.2(2). Comparing with ( γ a s N , N ) (\gamma_{a_s}N,N) ( γ a s N , N ) and ( N , γ b t N ) (N,\gamma_{b_t}N) ( N , γ b t N ) gives N v = N N_v=N N v = N , γ a s N = N \gamma_{a_s}N=N γ a s N = N and γ b t N = N \gamma_{b_t}N=N γ b t N = N .
We split into cases on δ \delta δ , and for δ ∈ { 4 , 5 } \delta\in\{4,5\} δ ∈ { 4 , 5 } on the number of Pauli terms of H = W † ( I ⊗ P r ) W H=W^\dagger(I \otimes P_r)W H = W † ( I ⊗ P r ) W , with r r r constructed in Case 3. Cases 1, 2 and 3c use (U): the unique GSC pair of K q K_q K q becomes a GSC pair of W W W .
Figure 10. Case analysis in the proof of Lemma F.3.
Case 1: δ = 3 \delta= 3 δ = 3 . In this case, Σ = L A = L B \Sigma= L_A = L_B Σ = L A = L B , since both Lagrangians lie in the three-dimensional Σ \Sigma Σ . So K q A M K q † = B P q A L P q B † = A M B K_q\mathcal{A}_M K_q^\dagger= B P_q\mathcal{A}_L P_q B^\dagger= \mathcal{A}_{M_B} K q A M K q † = B P q A L P q B † = A M B , and uniqueness gives M A = M B = N M_A = M_B = N M A = M B = N . Thus ( Σ , N ) ∈ L ( A ) ∩ L ( B ) (\Sigma,N) \in\mathcal{L}(A) \cap\mathcal{L}(B) ( Σ , N ) ∈ L ( A ) ∩ L ( B ) , and ( span { z 1 } ⊕ Σ , span { z 1 } ⊕ N ) (\operatorname{span}\{z_1\} \oplus\Sigma,\operatorname{span}\{z_1\} \oplus N) ( span { z 1 } ⊕ Σ , span { z 1 } ⊕ N ) is a GSC pair for W W W by Lemma D.2(1). This is (1).
Case 2: δ = 6 \delta= 6 δ = 6 . Since every K v K_v K v normalizes A N \mathcal{A}_N A N , so does a v = K 0 † K v a_v = K_0^\dagger K_v a v = K 0 † K v for every v ∈ V 3 v \in V_3 v ∈ V 3 . So the MASA A † A N A A^\dagger\mathcal{A}_N A A † A N A is invariant under conjugation by every Pauli, and Proposition A.1 gives A † A N A = A L A^\dagger\mathcal{A}_N A = \mathcal{A}_L A † A N A = A L for a Lagrangian L L L . Then ( L , N ) ∈ L ( A ) (L,N) \in\mathcal{L}(A) ( L , N ) ∈ L ( A ) , and B A L B † = K 0 A N K 0 † = A N B\mathcal{A}_L B^\dagger= K_0\mathcal{A}_N K_0^\dagger= \mathcal{A}_N B A L B † = K 0 A N K 0 † = A N . As before this gives (1).
Case 3: δ ∈ { 4 , 5 } \delta\in\{4,5\} δ ∈ { 4 , 5 } . We construct 0 ≠ r ∈ N 0 \ne r \in N 0 = r ∈ N such that K q K_q K q , every a s a_s a s with s ∈ C ( A ) s \in C(A) s ∈ C ( A ) and every b t b_t b t with t ∈ C ( B ) t \in C(B) t ∈ C ( B ) map P r P_r P r to ± P r \pm P_r ± P r , and show that H = W † ( I ⊗ P r ) W H = W^\dagger(I \otimes P_r)W H = W † ( I ⊗ P r ) W has one, two or four Pauli terms.
For a gate K K K normalizing A N \mathcal{A}_N A N , let R ( K ) = { r ∈ N : K P r K † ∈ ± P ( 3 ) } R(K) = \{r \in N : K P_r K^\dagger\in\pm\mathcal{P}(3)\} R ( K ) = { r ∈ N : K P r K † ∈ ± P ( 3 )} , and let R 0 = R ( K q ) R_0 = R(K_q) R 0 = R ( K q ) . Every K v K_v K v with v ∈ q + Σ v \in q + \Sigma v ∈ q + Σ normalizes A N \mathcal{A}_N A N , and ⟨ P ( 3 ) , K v ⟩ \langle\mathcal{P}(3), K_v\rangle ⟨ P ( 3 ) , K v ⟩ is a finite 2-group by Lemma F.2(2). In Clifford coordinates in which A N \mathcal{A}_N A N is diagonal, K v K_v K v is monomial, and its permutation preserves a complete affine flag by Lemma D.6(2). In coordinates adapted to the flag it reads ( x + c , y + g ( x ) , z + h ( x , y ) ) (x+c, y+g(x), z+h(x,y)) ( x + c , y + g ( x ) , z + h ( x , y )) , and its inverse has the same form. As K v Z r K v † = ( − 1 ) r ⋅ π v − 1 ( x ) K_v Z^r K_v^\dagger= (-1)^{r\cdot\pi_v^{-1}(x)} K v Z r K v † = ( − 1 ) r ⋅ π v − 1 ( x ) and K v † Z r K v = ( − 1 ) r ⋅ π v ( x ) K_v^\dagger Z^r K_v = (-1)^{r\cdot\pi_v(x)} K v † Z r K v = ( − 1 ) r ⋅ π v ( x ) , both are Paulis exactly when r r r has zero coefficient on the last flag coordinate or the last coordinate of π v \pi_v π v is affine. Hence
R ( K v ) = { r ∈ N : K v † P r K v ∈ ± P ( 3 ) } , R(K_v) = \{r \in N : K_v^\dagger P_r K_v \in\pm\mathcal{P}(3)\}, R ( K v ) = { r ∈ N : K v † P r K v ∈ ± P ( 3 )} ,
which is N N N or a plane, and dim R 0 ∈ { 2 , 3 } \dim R_0 \in\{2,3\} dim R 0 ∈ { 2 , 3 } . Hence K q K_q K q maps R 0 R_0 R 0 onto itself by a linear map Φ \Phi Φ .
Next we show that for v ∈ Σ v \in\Sigma v ∈ Σ , a v a_v a v acts on R 0 R_0 R 0 by an elementary abelian group E \mathcal{E} E such that Φ e \Phi e Φ e is unipotent for every e ∈ E e \in\mathcal{E} e ∈ E . For v ∈ Σ v \in\Sigma v ∈ Σ , write v = s + t v = s+t v = s + t with s ∈ C ( A ) s \in C(A) s ∈ C ( A ) and t ∈ C ( B ) t \in C(B) t ∈ C ( B ) . Then a v = a s a t a_v = a_s a_t a v = a s a t and a t = K q † b t K q a_t = K_q^\dagger b_t K_q a t = K q † b t K q , so every a v a_v a v normalizes A N \mathcal{A}_N A N , and K q + v = K q a v K_{q+v} = K_q a_v K q + v = K q a v . For s ∈ C ( A ) s \in C(A) s ∈ C ( A ) , the Clifford a s a_s a s acts on N N N by a linear map a ˉ s \bar a_s a ˉ s , and K q + s = K q a s K_{q+s} = K_q a_s K q + s = K q a s gives R ( K q + s ) = a ˉ s − 1 R 0 R(K_{q+s}) = \bar a_s^{-1}R_0 R ( K q + s ) = a ˉ s − 1 R 0 from inputs and R ( K q + s ) = R 0 R(K_{q+s}) = R_0 R ( K q + s ) = R 0 from outputs. Hence a ˉ s R 0 = R 0 \bar a_s R_0 = R_0 a ˉ s R 0 = R 0 . Likewise, K q + t = b t K q K_{q+t} = b_t K_q K q + t = b t K q gives b ˉ t R 0 = R 0 \bar b_t R_0 = R_0 b ˉ t R 0 = R 0 for t ∈ C ( B ) t \in C(B) t ∈ C ( B ) . Consequently, a t = K q † b t K q a_t = K_q^\dagger b_t K_q a t = K q † b t K q maps each P r P_r P r with r ∈ R 0 r \in R_0 r ∈ R 0 to ± P a ~ t r \pm P_{\widetilde a_t r} ± P a t r with a ~ t = Φ − 1 b ˉ t Φ \widetilde a_t = \Phi^{-1}\bar b_t\Phi a t = Φ − 1 b ˉ t Φ . As a result, every a v a_v a v acts on R 0 R_0 R 0 by a linear map a ~ v \widetilde a_v a v , with a ~ s = a ˉ s \widetilde a_s = \bar a_s a s = a ˉ s for s ∈ C ( A ) s \in C(A) s ∈ C ( A ) . Since a v a w = ± a w a v a_v a_w = \pm a_w a_v a v a w = ± a w a v and a v 2 = I a_v^2 = I a v 2 = I , the maps a ~ v \widetilde a_v a v commute and square to the identity, so E = { a ~ v : v ∈ Σ } \mathcal{E} = \{\widetilde a_v : v \in\Sigma\} E = { a v : v ∈ Σ } is elementary abelian. Finally, Φ a ~ v \Phi\widetilde a_v Φ a v is the action of K q a v = K q + v K_q a_v = K_{q+v} K q a v = K q + v on R 0 R_0 R 0 , which has 2-power order because ⟨ P ( 3 ) , K q + v ⟩ \langle\mathcal{P}(3),K_{q+v}\rangle ⟨ P ( 3 ) , K q + v ⟩ is a finite 2-group. So every Φ e \Phi e Φ e is unipotent.
Now we find a common fixed vector r ≠ 0 r \ne0 r = 0 of Φ \Phi Φ and E \mathcal{E} E in R 0 R_0 R 0 . For e ∈ E e \in\mathcal{E} e ∈ E , ( e − I ) 2 = 0 (e-I)^2=0 ( e − I ) 2 = 0 , so rank ( e − I ) ≤ 1 \operatorname{rank}(e-I) \le1 rank ( e − I ) ≤ 1 as dim R 0 ≤ 3 \dim R_0 \le3 dim R 0 ≤ 3 . Commuting rank-one square-zero maps have zero product, so { e − I : e ∈ E } \{e-I:e \in\mathcal{E}\} { e − I : e ∈ E } is a linear space of maps of rank at most one. Hence these maps have a common image line or a common kernel hyperplane. Write e = I + u e φ e e = I+u_e\varphi_e e = I + u e φ e . Since Φ \Phi Φ and Φ e \Phi e Φ e are both unipotent,
1 = det ( t I − Φ e ) det ( t I − Φ ) = 1 − φ e ( t I − Φ ) − 1 Φ u e , 1 = \frac{\det(tI-\Phi e)}{\det(tI-\Phi)} = 1-\varphi_e(tI-\Phi)^{-1}\Phi u_e, 1 = det ( t I − Φ ) det ( t I − Φ e ) = 1 − φ e ( t I − Φ ) − 1 Φ u e ,
so φ e Φ j u e = 0 \varphi_e\Phi^j u_e = 0 φ e Φ j u e = 0 for all j ≥ 1 j \ge1 j ≥ 1 , and φ e u e = 0 \varphi_e u_e = 0 φ e u e = 0 . In either case, the Φ \Phi Φ -invariant span of the vectors Φ j u e \Phi^j u_e Φ j u e lies in every ker φ e \ker\varphi_e ker φ e , hence in the fixed space of E \mathcal{E} E , and a unipotent Φ \Phi Φ has a nonzero fixed vector r r r there (if E \mathcal{E} E is trivial, take any fixed vector of Φ \Phi Φ ).
Let R = I ⊗ P r R = I \otimes P_r R = I ⊗ P r , so that H = W † R W H = W^\dagger R W H = W † R W . Write K q P r K q † = ( − 1 ) ε P r K_qP_rK_q^\dagger= (-1)^\varepsilon P_r K q P r K q † = ( − 1 ) ε P r and A † P r A = ∑ s α s P s A^\dagger P_rA = \sum_s \alpha_sP_s A † P r A = ∑ s α s P s . Since K q = B P q A † K_q = BP_qA^\dagger K q = B P q A † ,
B † P r B = ( − 1 ) ε P q ( A † P r A ) P q , H = ∑ s α s Z 1 ε + ω ( q , s ) ⊗ P s . B^\dagger P_rB = (-1)^\varepsilon P_q(A^\dagger P_rA)P_q, \qquad H = \sum_s \alpha_s Z_1^{\varepsilon+\omega(q,s)} \otimes P_s. B † P r B = ( − 1 ) ε P q ( A † P r A ) P q , H = s ∑ α s Z 1 ε + ω ( q , s ) ⊗ P s .
Let S = supp P ( A † P r A ) S = \operatorname{supp}_P(A^\dagger P_rA) S = supp P ( A † P r A ) . By the display, also S = supp P ( B † P r B ) S = \operatorname{supp}_P(B^\dagger P_rB) S = supp P ( B † P r B ) , and the terms of H H H correspond to the labels in S S S . Since r r r is fixed by E \mathcal{E} E , every a s a_s a s with s ∈ C ( A ) s \in C(A) s ∈ C ( A ) maps P r P_r P r to ± P r \pm P_r ± P r , so P s ( A † P r A ) P s = ± A † P r A P_s(A^\dagger P_rA)P_s = \pm A^\dagger P_rA P s ( A † P r A ) P s = ± A † P r A and ω ( s , ⋅ ) \omega(s,\cdot) ω ( s , ⋅ ) is constant on S S S . Likewise, b t = K q a t K q † b_t = K_qa_tK_q^\dagger b t = K q a t K q † maps P r P_r P r to ± P r \pm P_r ± P r for t ∈ C ( B ) t \in C(B) t ∈ C ( B ) , so ω ( t , ⋅ ) \omega(t,\cdot) ω ( t , ⋅ ) is constant on S S S . Hence S S S lies in one coset of Σ ⊥ \Sigma^\perp Σ ⊥ , and H H H has at most 2 6 − δ ≤ 4 2^{6-\delta} \le4 2 6 − δ ≤ 4 Pauli terms.
Finally, the number of terms is one, two, or four. By Lemma F.2(4), A = λ C 3 D C 4 A = \lambda C_3DC_4 A = λ C 3 D C 4 with C 3 , C 4 C_3,C_4 C 3 , C 4 Cliffords and D D D monomial with eighth-root entries. After a scalar, all three have entries in Z [ ζ 8 , 1 / 2 ] \mathbb{Z}[\zeta_8,1/2] Z [ ζ 8 , 1/2 ] . Hence α s = 2 − 3 tr ( P s A † P r A ) ∈ Z [ ζ 8 , 1 / 2 ] \alpha_s = 2^{-3}\operatorname{tr}(P_sA^\dagger P_rA) \in\mathbb{Z}[\zeta_8,1/2] α s = 2 − 3 tr ( P s A † P r A ) ∈ Z [ ζ 8 , 1/2 ] , and α s \alpha_s α s is real because H H H is Hermitian, so α s ∈ Z [ 2 , 1 / 2 ] \alpha_s \in\mathbb{Z}[\sqrt{2},1/2] α s ∈ Z [ 2 , 1/2 ] . By Lemma F.2(3), σ ( A † P r A ) = Z p A † P r A Z p \sigma(A^\dagger P_rA) = Z^pA^\dagger P_rAZ^p σ ( A † P r A ) = Z p A † P r A Z p , so σ ( α s ) = ( − 1 ) ω ( ( 0 , p ) , s ) α s \sigma(\alpha_s) = (-1)^{\omega((0,p),s)}\alpha_s σ ( α s ) = ( − 1 ) ω (( 0 , p ) , s ) α s . Since ( 0 , p ) ∈ L A ⊆ Σ (0,p) \in L_A \subseteq\Sigma ( 0 , p ) ∈ L A ⊆ Σ and S S S lies in one coset of Σ ⊥ \Sigma^\perp Σ ⊥ , this sign is the same for all s ∈ S s \in S s ∈ S . Thus the α s \alpha_s α s lie either all in Z [ 1 / 2 ] \mathbb{Z}[1/2] Z [ 1/2 ] or all in 2 Z [ 1 / 2 ] \sqrt{2}\mathbb{Z}[1/2] 2 Z [ 1/2 ] , and ∑ s α s 2 = 2 − 4 tr H 2 = 1 \sum_s \alpha_s^2 = 2^{-4}\operatorname{tr}H^2 = 1 ∑ s α s 2 = 2 − 4 tr H 2 = 1 . Write α s = m s / 2 k \alpha_s = m_s/2^k α s = m s / 2 k , respectively α s = 2 m s / 2 k \alpha_s = \sqrt{2}m_s/2^k α s = 2 m s / 2 k , with m s ∈ Z m_s \in\mathbb{Z} m s ∈ Z and k ≥ 0 k \ge0 k ≥ 0 minimal. Then ∑ s m s 2 = 4 k \sum_s m_s^2 = 4^k ∑ s m s 2 = 4 k , respectively 2 2 k − 1 2^{2k-1} 2 2 k − 1 , with at most four terms. Odd squares are 1 1 1 modulo 8 8 8 , and minimality makes some m s m_s m s odd. Reducing modulo 8 8 8 leaves only k = 0 k = 0 k = 0 with one term ± 1 \pm1 ± 1 , k = 1 k = 1 k = 1 with four terms ± 1 / 2 \pm1/2 ± 1/2 , and, in the second case, k = 1 k = 1 k = 1 with two terms ± 1 / 2 \pm1/\sqrt{2} ± 1/ 2 . This gives the three subcases below.
Write H = ± P t H = \pm P_t H = ± P t . Then W P t W † = ± I ⊗ P r WP_tW^\dagger= \pm I \otimes P_r W P t W † = ± I ⊗ P r , so ( s , t ) (s,t) ( s , t ) with P s = I ⊗ P r P_s = I \otimes P_r P s = I ⊗ P r is a Pauli pair of W W W . Since W W W commutes with Z 1 Z_1 Z 1 and I ⊗ P r I \otimes P_r I ⊗ P r commutes with Z 1 Z_1 Z 1 , so does P t P_t P t . Also P t ≠ Z 1 P_t \ne Z_1 P t = Z 1 because W Z 1 W † = Z 1 ≠ ± I ⊗ P r WZ_1W^\dagger= Z_1 \ne\pm I \otimes P_r W Z 1 W † = Z 1 = ± I ⊗ P r . This is (2).
Then H = ( P a ± P b ) / 2 H = (P_a \pm P_b)/\sqrt{2} H = ( P a ± P b ) / 2 , and H 2 = I H^2 = I H 2 = I forces P a P_a P a and P b P_b P b to anticommute, that is, ω ( a , b ) = 1 \omega(a,b) = 1 ω ( a , b ) = 1 . This is (3).
Then δ = 4 \delta= 4 δ = 4 , since 2 6 − δ ≥ 4 2^{6-\delta} \ge4 2 6 − δ ≥ 4 . Write A = λ C 3 D C 4 A = \lambda C_3DC_4 A = λ C 3 D C 4 as in Lemma F.2(4) for the GSC pair ( L A , M A ) (L_A,M_A) ( L A , M A ) , with D = D ′ T p ′ D = D'T_{p'} D = D ′ T p ′ , Z p ′ = C 4 Z p C 4 † Z^{p'} = C_4Z^pC_4^\dagger Z p ′ = C 4 Z p C 4 † and D ′ = π 0 i a x y + b x z + c y z + d x y z D' = \pi_0 i^{axy+bxz+cyz+dxyz} D ′ = π 0 i a x y + b x z + cy z + d x y z . The form D ′ D' D ′ is determined by ( π 0 , a , b , c , d ) ∈ { I , π } × F 2 3 × Z / 4 (\pi_0,a,b,c,d) \in\{I,\pi\} \times\mathbb{F}_2^3 \times\mathbb{Z}/4 ( π 0 , a , b , c , d ) ∈ { I , π } × F 2 3 × Z /4 , which gives 64 forms, and D D D also by p ′ ∈ F 2 3 p' \in\mathbb{F}_2^3 p ′ ∈ F 2 3 , which gives 512. The labels v v v and the Paulis P P P range over V 3 V_3 V 3 , and Clifford membership is decided on six Paulis. Running over these forms gives the following.
(C8) Pauli terms and the cubic coefficient
Let D = π 0 i a x y + b x z + c y z + d x y z D = \pi_0 i^{axy+bxz+cyz+dxyz} D = π 0 i a x y + b x z + cy z + d x y z with π 0 ∈ { I , π } \pi_0 \in\{I,\pi\} π 0 ∈ { I , π } , a , b , c ∈ F 2 a,b,c \in\mathbb{F}_2 a , b , c ∈ F 2 and d ∈ Z / 4 d \in\mathbb{Z}/4 d ∈ Z /4 . (a) If d d d is odd, then D † P D D^\dagger P D D † P D has at least eight Pauli terms for every non-diagonal three-qubit Pauli P P P . (b) If d d d is even, then for every p ∈ F 2 3 p \in\mathbb{F}_2^3 p ∈ F 2 3 the labels v v v with D T p P T p † D † ∈ C 2 ( 3 ) DT_pPT_p^\dagger D^\dagger\in C_2(3) D T p P T p † D † ∈ C 2 ( 3 ) form a subspace of dimension at least five.
Code. certificates/pauli-terms-and-cubic-coefficient in https://github.com/numberinggame/try/clifford-hierarchy-plane-certificate
If d d d were even, (C8)(b) would make the labels v v v with D P v P † D † DP_vP^\dagger D^\dagger D P v P † D † Clifford a subspace of dimension at least five. As C ( A ) C(A) C ( A ) is its image under the symplectic action of C 4 − 1 C_4^{-1} C 4 − 1 , this would give δ ≥ 5 \delta\ge5 δ ≥ 5 . So d d d is odd, and by (C8)(a), D ′ † P D ′ D'^\dagger P D' D ′ † P D ′ has at least eight Pauli terms for every non-diagonal Pauli P P P . The same holds for B B B . Since the coefficients of H H H are ± 1 / 2 \pm1/2 ± 1/2 , σ ( H ) = H \sigma(H) = H σ ( H ) = H . By Lemma F.2(3), σ ( H ) = ( Z 1 s ⊗ Z p ) H ( Z 1 s ⊗ Z p ) \sigma(H) = (Z_1^s \otimes Z^p)H(Z_1^s \otimes Z^p) σ ( H ) = ( Z 1 s ⊗ Z p ) H ( Z 1 s ⊗ Z p ) . Since H H H commutes with Z 1 Z_1 Z 1 , it commutes with I ⊗ Z p I \otimes Z^p I ⊗ Z p , and A † P r A A^\dagger P_rA A † P r A commutes with Z p Z^p Z p . So C 4 ( A † P r A ) C 4 † C_4(A^\dagger P_rA)C_4^\dagger C 4 ( A † P r A ) C 4 † commutes with C 4 Z p C 4 † = Z p ′ C_4Z^pC_4^\dagger= Z^{p'} C 4 Z p C 4 † = Z p ′ , hence with T p ′ T_{p'} T p ′ , and C 4 ( A † P r A ) C 4 † = D ′ † ( C 3 † P r C 3 ) D ′ C_4(A^\dagger P_rA)C_4^\dagger= D'^\dagger(C_3^\dagger P_rC_3)D' C 4 ( A † P r A ) C 4 † = D ′ † ( C 3 † P r C 3 ) D ′ has four Pauli terms. By (C8)(a), C 3 † P r C 3 C_3^\dagger P_rC_3 C 3 † P r C 3 is a diagonal Pauli Z u Z^u Z u . The same holds for B B B . The diagonal factor of D ′ D' D ′ commutes with Z u Z^u Z u , so
D ′ † Z u D ′ = π 0 † Z u π 0 , π 0 † Z u π 0 = Z u C Z x y u . D'^\dagger Z^uD' = \pi_0^\dagger Z^u\pi_0,\qquad\pi_0^\dagger Z^u\pi_0 = Z^uCZ^u_{xy}. D ′ † Z u D ′ = π 0 † Z u π 0 , π 0 † Z u π 0 = Z u C Z x y u .
Four terms force π 0 = π \pi_0 = \pi π 0 = π and u z = 1 u_z = 1 u z = 1 . The four labels of Z u C Z x y Z^uCZ_{xy} Z u C Z x y then span L Z L_Z L Z . As C 4 A L C 4 † = A Z C_4A_LC_4^\dagger= A_Z C 4 A L C 4 † = A Z , the support of A † P r A A^\dagger P_rA A † P r A spans L A L_A L A , and likewise that of B † P r B B^\dagger P_rB B † P r B spans L B L_B L B . By the display in Case 3 the two supports agree, so L A = L B L_A = L_B L A = L B . As in Case 1, uniqueness of L ( K q ) \mathcal{L}(K_q) L ( K q ) gives a common GSC pair of A A A and B B B , and hence (1). □ \square □
Lemma F.4. Let W = diag ( A , B ) W=\operatorname{diag}(A,B) W = diag ( A , B ) be as in Lemma F.2. If there exist 0 ≠ r ∈ V 3 0\ne r\in V_3 0 = r ∈ V 3 , a , b ∈ V 4 a,b\in V_4 a , b ∈ V 4 with ω ( a , b ) = 1 \omega(a,b)=1 ω ( a , b ) = 1 , and W † ( I ⊗ P r ) W = ( P a ± P b ) / 2 W^\dagger(I\otimes P_r)W=(P_a\pm P_b)/\sqrt{2} W † ( I ⊗ P r ) W = ( P a ± P b ) / 2 , then L ( W ) ≠ ∅ \mathcal{L}(W)\ne\varnothing L ( W ) = ∅ .
Proof. Steps 1 and 2 write W = Λ ( Q 1 ⊗ V ) W=\Lambda(Q_1\otimes V) W = Λ ( Q 1 ⊗ V ) with V V V and I − 2 E I-2E I − 2 E monomial, for a projector E E E on qubits 2, 3, 4, and the cases split on E E E .
Figure 11. Case analysis in the proof of Lemma F.4.
Let R = I ⊗ P r R=I\otimes P_r R = I ⊗ P r and h v ′ = W P v W † h'_v=WP_vW^\dagger h v ′ = W P v W † , so R = ( h a ′ ± h b ′ ) / 2 R=(h'_a\pm h'_b)/\sqrt{2} R = ( h a ′ ± h b ′ ) / 2 . Since ω ( a , b ) = 1 \omega(a,b)=1 ω ( a , b ) = 1 , h a ′ h'_a h a ′ and h b ′ h'_b h b ′ anticommute, and
J = ∓ i h a ′ h b ′ = ± h a + b ′ ∈ R 4 , h a ′ R = I + i J 2 . J=\mp ih'_ah'_b=\pm h'_{a+b}\in\mathcal{R}_4,\qquad h'_aR=\frac{I+iJ}{\sqrt{2}}. J = ∓ i h a ′ h b ′ = ± h a + b ′ ∈ R 4 , h a ′ R = 2 I + i J .
The gate ( I + i J ) / 2 = h a ′ R (I+iJ)/\sqrt{2}=h'_aR ( I + i J ) / 2 = h a ′ R has finite level, because conjugating a Pauli by it gives ± h a ′ P h a ′ † \pm h'_aPh'^\dagger_a ± h a ′ P h a ′ † , and J J J is a finite-level Hermitian involution. Lemma D.13(2) therefore shows that supp P J \operatorname{supp}_P J supp P J is isotropic. Since R R R commutes with Z 1 = W Z 1 W † Z_1=WZ_1W^\dagger Z 1 = W Z 1 W † , the operator ( P a ± P b ) / 2 = W † R W (P_a\pm P_b)/\sqrt{2}=W^\dagger RW ( P a ± P b ) / 2 = W † R W commutes with Z 1 Z_1 Z 1 , so a a a and b b b commute with z 1 z_1 z 1 . Since J J J anticommutes with h a ′ h'_a h a ′ and h b ′ h'_b h b ′ , it anticommutes with R R R , so every Pauli in its support anticommutes with R R R . Therefore, there exists a Clifford gate sending R R R to X 1 X_1 X 1 and J J J to Z 1 ⊗ ( − 1 ) f Z_1\otimes(-1)^f Z 1 ⊗ ( − 1 ) f , where f : F 2 3 → F 2 f:\mathbb{F}_2^3\to\mathbb{F}_2 f : F 2 3 → F 2 and ( − 1 ) f (-1)^f ( − 1 ) f is the diagonal gate on qubits 2, 3, 4: send one support label u 0 u_0 u 0 of J J J to z 1 z_1 z 1 , and a Lagrangian of span { r , u 0 } ⊥ \operatorname{span}\{r,u_0\}^{\perp} span { r , u 0 } ⊥ that contains the differences of support labels to the diagonal labels of qubits 2, 3, 4. Choose another Clifford sending P a P_a P a to X 1 X_1 X 1 and P a + b P_{a+b} P a + b to Z 1 Z_1 Z 1 . After these changes, and possibly an input X 1 X_1 X 1 ,
W X 1 ′ W † = X 1 , W Z 1 W † = Z 1 ⊗ ( − 1 ) f , X 1 ′ = ( X 1 ± Y 1 ) / 2 . WX'_1W^\dagger=X_1,\qquad WZ_1W^\dagger=Z_1\otimes(-1)^f,\qquad X'_1=(X_1\pm Y_1)/\sqrt{2}. W X 1 ′ W † = X 1 , W Z 1 W † = Z 1 ⊗ ( − 1 ) f , X 1 ′ = ( X 1 ± Y 1 ) / 2 .
The original pair ( z 1 , z 1 ) (z_1,z_1) ( z 1 , z 1 ) of W W W becomes a Pauli pair whose input and output commute with X 1 X_1 X 1 and Z 1 Z_1 Z 1 .
Let Q 1 Q_1 Q 1 be the power of T 1 T_1 T 1 with Q 1 † X 1 Q 1 = X 1 ′ Q_1^\dagger X_1Q_1=X'_1 Q 1 † X 1 Q 1 = X 1 ′ , let E = Π f = 1 E=\Pi_{f=1} E = Π f = 1 be the diagonal projector onto { f = 1 } \{f=1\} { f = 1 } , write Π ± X j = ( I ± X j ) / 2 \Pi^{X_j}_{\pm}=(I\pm X_j)/2 Π ± X j = ( I ± X j ) /2 , and let
Λ = I − 2 Π − X 1 ⊗ E = Π + X 1 ⊗ I + Π − X 1 ⊗ ( − 1 ) f . \Lambda=I-2\Pi^{X_1}_{-}\otimes E=\Pi^{X_1}_{+}\otimes I+\Pi^{X_1}_{-}\otimes(-1)^f. Λ = I − 2 Π − X 1 ⊗ E = Π + X 1 ⊗ I + Π − X 1 ⊗ ( − 1 ) f .
Then Λ X 1 Λ † = X 1 \Lambda X_1\Lambda^\dagger=X_1 Λ X 1 Λ † = X 1 and Λ Z 1 Λ † = Z 1 ⊗ ( − 1 ) f \Lambda Z_1\Lambda^\dagger=Z_1\otimes(-1)^f Λ Z 1 Λ † = Z 1 ⊗ ( − 1 ) f . So Λ † W ( Q 1 † ⊗ I ) \Lambda^\dagger W(Q_1^\dagger\otimes I) Λ † W ( Q 1 † ⊗ I ) commutes with X 1 X_1 X 1 and Z 1 Z_1 Z 1 , and therefore equals I ⊗ V I\otimes V I ⊗ V :
W = Λ ( Q 1 ⊗ V ) . W=\Lambda(Q_1\otimes V). W = Λ ( Q 1 ⊗ V ) .
Output Clifford gates that fix X 1 X_1 X 1 act on f f f : a translation X c X^c X c on qubits 2, 3, 4 replaces f f f by f ( x + c ) f(x+c) f ( x + c ) , a linear permutation of qubits 2, 3, 4 by CNOT gates replaces it by f ∘ A f\circ A f ∘ A , and the controlled Pauli Π + X 1 ⊗ I + Π − X 1 ⊗ ( − 1 ) ℓ \Pi^{X_1}_{+}\otimes I+\Pi^{X_1}_{-}\otimes(-1)^\ell Π + X 1 ⊗ I + Π − X 1 ⊗ ( − 1 ) ℓ with ℓ \ell ℓ affine adds ℓ \ell ℓ . On three bits these reduce f f f to 0 0 0 , x y xy x y or x y z xyz x y z , so E = 0 E=0 E = 0 or E E E is a diagonal projector of rank one or two.
Let U 0 = Λ ( I ⊗ V ) = W ( Q 1 † ⊗ I ) U_0=\Lambda(I\otimes V)=W(Q^\dagger_1\otimes I) U 0 = Λ ( I ⊗ V ) = W ( Q 1 † ⊗ I ) . If P v P_v P v commutes with Z 1 Z_1 Z 1 , then Q 1 Q_1 Q 1 commutes with P v P_v P v , and U 0 P v U 0 † = h v ′ U_0P_vU^\dagger_0=h'_v U 0 P v U 0 † = h v ′ . If P v P_v P v anticommutes with Z 1 Z_1 Z 1 , then P v = X 1 P w P_v=X_1P_w P v = X 1 P w with P w P_w P w commuting with $Z_1. Then U 0 P v U 0 † = X 1 h w ′ U_0P_vU^\dagger_0=X_1h'_w U 0 P v U 0 † = X 1 h w ′ . This operator is a traceless Hermitian involution, being conjugate to a nonidentity Hermitian Pauli, and it is Gaussian because h w ′ h'_w h w ′ is. It has finite level, since it conjugates a Pauli P P P to ± X 1 ( h w ′ P h w ′ † ) X 1 \pm X_1(h'_wPh'^\dagger_w)X_1 ± X 1 ( h w ′ P h w ′ † ) X 1 . Finally, Γ ( X 1 h w ′ ) = X 1 Γ ( h w ′ ) X 1 \Gamma(X_1h'_w)=X_1\Gamma(h'_w)X_1 Γ ( X 1 h w ′ ) = X 1 Γ ( h w ′ ) X 1 , and Γ ( h w ′ ) ≤ ⟨ P ( 4 ) , h w ′ ⟩ \Gamma(h'_w)\le\langle\mathcal{P}(4),h'_w\rangle Γ ( h w ′ ) ≤ ⟨ P ( 4 ) , h w ′ ⟩ is a finite 2-group by Proposition D.11. Therefore X 1 h w ′ X_1h'_w X 1 h w ′ is generalized semi-Clifford by Theorem C.1. Hence, by Proposition D.11, U 0 P v U 0 † ∈ R 4 U_0P_vU^\dagger_0\in\mathcal{R}_4 U 0 P v U 0 † ∈ R 4 for every $v\ne0. The pair ( x 1 , x 1 ) (x_1,x_1) ( x 1 , x 1 ) and the original pair are commuting, independent Pauli pairs of U 0 U_0 U 0 , so Lemma F.6 gives a GSC pair for U 0 U_0 U 0 . Since U 0 = Π X 1 + ⊗ V + Π X 1 − ⊗ ( I − 2 E ) V U_0 = \Pi_{X_1}^{+} \otimes V + \Pi_{X_1}^{-} \otimes(I - 2E)V U 0 = Π X 1 + ⊗ V + Π X 1 − ⊗ ( I − 2 E ) V , the gate H 1 U 0 H 1 = diag ( V , ( I − 2 E ) V ) H_1U_0H_1 = \operatorname{diag}(V,(I - 2E)V) H 1 U 0 H 1 = diag ( V , ( I − 2 E ) V ) commutes with Z 1 Z_1 Z 1 , and Lemmas D.1(1) and D.2(1) give ( L , M ) ∈ L ( V ) ∩ L ( ( I − 2 E ) V ) (L,M) \in\mathcal{L}(V) \cap\mathcal{L}((I - 2E)V) ( L , M ) ∈ L ( V ) ∩ L (( I − 2 E ) V ) .
Choose C 1 , C 2 ∈ C 2 ( 3 ) C_1,C_2 \in C_2(3) C 1 , C 2 ∈ C 2 ( 3 ) with C 2 A L C 2 † = A Z C_2 A_L C_2^\dagger= A_Z C 2 A L C 2 † = A Z and C 1 A Z C 1 † = A M C_1 A_Z C_1^\dagger= A_M C 1 A Z C 1 † = A M , and replace V V V by C 1 † V C 2 † C_1^\dagger V C_2^\dagger C 1 † V C 2 † and E E E by C 1 † E C 1 C_1^\dagger E C_1 C 1 † E C 1 . This replaces W W W by a Clifford multiple of itself. Now, V V V and ( I − 2 E ) V (I - 2E)V ( I − 2 E ) V both normalize A Z A_Z A Z . Hence V = ρ Δ V = \rho\Delta V = ρ Δ with ρ \rho ρ a permutation and Δ \Delta Δ diagonal, and I − 2 E I - 2E I − 2 E is monomial. The projector E E E is now a stabilizer projector, not necessarily diagonal.
Case 1: E E E is diagonal. Then Λ \Lambda Λ commutes with every I ⊗ Z c I \otimes Z^c I ⊗ Z c and Λ Z 1 Λ † = Z 1 ⊗ ( I − 2 E ) \Lambda Z_1\Lambda^\dagger= Z_1 \otimes(I - 2E) Λ Z 1 Λ † = Z 1 ⊗ ( I − 2 E ) is diagonal. Since Q 1 Q_1 Q 1 commutes with Z 1 Z_1 Z 1 and V V V normalizes A Z A_Z A Z , W = Λ ( Q 1 ⊗ V ) W = \Lambda(Q_1 \otimes V) W = Λ ( Q 1 ⊗ V ) normalizes the diagonal MASA of all four qubits. This is a GSC pair for W W W .
Case 2: E E E is not diagonal. We first determine E E E . Let T ≤ F 2 3 T \le\mathbb{F}_2^3 T ≤ F 2 3 be the space of X X X -parts of the stabilizer group of E E E . The entry E x , y E_{x,y} E x , y vanishes unless y − x ∈ T y-x \in T y − x ∈ T , and each nonzero column of E E E has exactly 2 dim T 2^{\dim T} 2 d i m T nonzero entries, of modulus 2 − dim T 2^{-\dim T} 2 − d i m T , including its diagonal entry. Monomiality of I − 2 E I - 2E I − 2 E therefore forces dim T = 1 \dim T = 1 dim T = 1 , say T = span { u } T = \operatorname{span}\{u\} T = span { u } . After a diagonal Clifford,
E = Π D ⋅ 1 2 ( I − X u ) , E = \Pi_D \cdot\frac{1}{2}(I - X^u), E = Π D ⋅ 2 1 ( I − X u ) ,
where Π D \Pi_D Π D is the diagonal projector onto an affine set D D D with D + u = D D + u = D D + u = D . On span C { ∣ x ⟩ : x ∈ D } \operatorname{span}_{\mathbb{C}}\{|x\rangle: x \in D\} span C { ∣ x ⟩ : x ∈ D } the gate I − 2 E I - 2E I − 2 E acts as X u X^u X u , and it is the identity elsewhere. Thus I − 2 E I - 2E I − 2 E is the permutation gate of τ ( x ) = x + u [ x ∈ D ] \tau(x) = x + u\,[x \in D] τ ( x ) = x + u [ x ∈ D ] , and rank E = ∣ D ∣ / 2 \operatorname{rank} E = |D|/2 rank E = ∣ D ∣/2 .
Next, ρ \rho ρ and τ ρ \tau\rho τ ρ are affine or affinely equivalent to ( x , y , z ) ↦ ( x , y , z + x y ) (x,y,z) \mapsto(x,y,z + xy) ( x , y , z ) ↦ ( x , y , z + x y ) . Indeed, since every U 0 P v U 0 † U_0P_vU_0^\dagger U 0 P v U 0 † lies in R 4 \mathcal{R}_4 R 4 , U 0 U_0 U 0 has finite level. Conjugating by H 1 H_1 H 1 makes U 0 U_0 U 0 block diagonal with blocks V V V and ( I − 2 E ) V (I - 2E)V ( I − 2 E ) V , so both blocks have finite level by Lemma D.2(2). This is unchanged by the Clifford changes above. Apply Proposition D.4(1) to the monomial gates V = ρ Δ V = \rho\Delta V = ρ Δ and ( I − 2 E ) V = τ ρ Δ (I - 2E)V = \tau\rho\Delta ( I − 2 E ) V = τ ρ Δ with the GSC pair ( L Z , L Z ) (L_Z,L_Z) ( L Z , L Z ) : the Cliffords C 1 , C 2 C_1,C_2 C 1 , C 2 there normalize A Z A_Z A Z , so their permutation parts are affine.
Finally, two independent c ∈ F 2 3 c \in\mathbb{F}_2^3 c ∈ F 2 3 with c ⋅ u = 0 c \cdot u = 0 c ⋅ u = 0 and c ⋅ ρ c \cdot\rho c ⋅ ρ affine give L ( W ) ≠ ∅ \mathcal{L}(W) \ne\varnothing L ( W ) = ∅ . Let c ⋅ u = 0 c \cdot u = 0 c ⋅ u = 0 . Then Z c Z^c Z c commutes with I − 2 E I - 2E I − 2 E . If moreover c ⋅ ρ c \cdot\rho c ⋅ ρ is affine, then V † Z c V = ( − 1 ) c ⋅ ρ ( x ) V^\dagger Z^c V = (-1)^{c \cdot\rho(x)} V † Z c V = ( − 1 ) c ⋅ ρ ( x ) is a diagonal Pauli, and since Q 1 Q_1 Q 1 acts on the first qubit, W W W sends it on qubits 2, 3, 4 to I ⊗ Z c I \otimes Z^c I ⊗ Z c in both eigenspaces of X 1 X_1 X 1 . Two independent such c c c therefore give two commuting, independent Pauli pairs of W W W , and Lemma F.6 gives L ( W ) ≠ ∅ \mathcal{L}(W) \ne\varnothing L ( W ) = ∅ .
Case 2a: rank E = 1 E = 1 E = 1 . Since ∣ D ∣ = 2 |D| = 2 ∣ D ∣ = 2 , τ \tau τ is a transposition. Affine permutations of F 2 3 \mathbb{F}_2^3 F 2 3 are even, and ( x , y , z ) ↦ ( x , y , z + x y ) (x,y,z) \mapsto(x,y,z + xy) ( x , y , z ) ↦ ( x , y , z + x y ) is a transposition, so exactly one of ρ \rho ρ and τ ρ \tau\rho τ ρ is affine. For c c c with c ⋅ u = 0 c \cdot u = 0 c ⋅ u = 0 we have c ⋅ τ ρ = c ⋅ ρ c \cdot\tau\rho= c \cdot\rho c ⋅ τ ρ = c ⋅ ρ , so c ⋅ ρ c \cdot\rho c ⋅ ρ is affine. The two independent choices of c c c give L ( W ) ≠ ∅ \mathcal{L}(W) \ne\varnothing L ( W ) = ∅ as in Case 2.
Case 2b: rank E = 2 E = 2 E = 2 . Name the coordinates of qubits 2, 3, 4 as ( s , y , z ) (s,y,z) ( s , y , z ) . Here ρ \rho ρ and τ ρ \tau\rho τ ρ are affine or affinely equivalent to ( x , y , z ) ↦ ( x , y , z + x y ) (x,y,z) \mapsto(x,y,z + xy) ( x , y , z ) ↦ ( x , y , z + x y ) , u ≠ 0 u \ne0 u = 0 , and D D D is an affine plane with D + u = D D + u = D D + u = D , since rank E = 2 E = 2 E = 2 . These data range over finite sets. The replacements ( ρ , u , D ) ↦ ( α β ρ , α ˉ u , α ( D ) ) (\rho,u,D) \mapsto(\alpha\beta\rho,\bar{\alpha}u,\alpha(D)) ( ρ , u , D ) ↦ ( α β ρ , α ˉ u , α ( D )) , with α , β \alpha,\beta α , β among the 1 , 344 1,344 1 , 344 affine permutations, multiply W W W by monomial Clifford gates and preserve the number of independent c c c as in Case 2, so the triples with fewer than two such c c c are found by a finite orbit computation, which gives the following.
(C9) Normal form of the triples ( ρ , u , D ) (\rho,u,D) ( ρ , u , D )
Let τ 0 ( x , y , z ) = ( x , y , z + x y ) \tau_0(x,y,z) = (x,y,z + xy) τ 0 ( x , y , z ) = ( x , y , z + x y ) , and let ρ \rho ρ be a permutation of F 2 3 \mathbb{F}_2^3 F 2 3 that is affine or affinely equivalent to τ 0 \tau_0 τ 0 . Let u ≠ 0 u \ne0 u = 0 and let D D D be an affine plane with D + u = D D + u = D D + u = D such that τ ρ \tau\rho τ ρ , where τ ( x ) = x + u [ x ∈ D ] \tau(x) = x + u\,[x \in D] τ ( x ) = x + u [ x ∈ D ] , is again affine or affinely equivalent to τ 0 \tau_0 τ 0 . If fewer than two independent c c c with c ⋅ u = 0 c \cdot u = 0 c ⋅ u = 0 make c ⋅ ρ c \cdot\rho c ⋅ ρ affine, then after replacing ( ρ , u , D ) (\rho,u,D) ( ρ , u , D ) by ( α β ρ , α ˉ u , α ( D ) ) (\alpha\beta\rho,\bar{\alpha}u,\alpha(D)) ( α β ρ , α ˉ u , α ( D )) for affine α , β \alpha,\beta α , β , with α ˉ \bar{\alpha} α ˉ the linear part of α \alpha α , in coordinates ( s , y , z ) (s,y,z) ( s , y , z ) we have ρ ( s , y , z ) = ( s , y , z + s y ) \rho(s,y,z) = (s,y,z + sy) ρ ( s , y , z ) = ( s , y , z + sy ) , u = e y u = e_y u = e y , and D = { s = 1 } D = \{s = 1\} D = { s = 1 } or D = { z = 1 } D = \{z = 1\} D = { z = 1 } .
Code. certificates/normal-form-of-exceptional-balanced-configurations in https://github.com/numberinggeometry/clifford-hierarchy-plane-certificate
By (C9), there are two independent c c c as in Case 2, which gives L ( W ) ≠ ∅ \mathcal{L}(W) \ne\varnothing L ( W ) = ∅ , unless after such a replacement ρ ( s , y , z ) = ( s , y , z + s y ) \rho(s,y,z) = (s,y,z + sy) ρ ( s , y , z ) = ( s , y , z + sy ) , u = e y u = e_y u = e y , and D = { ℓ = 1 } D = \{\ell= 1\} D = { ℓ = 1 } with ℓ ∈ { s , z } \ell\in\{s,z\} ℓ ∈ { s , z } . We split into further cases by ℓ \ell ℓ .
Here ρ \rho ρ , u u u and D D D are explicit, and by (C10), for the correction h = W X s W † h = WX_sW^\dagger h = W X s W † the gate Z 1 h ∈ ⟨ P ( 4 ) , h ⟩ Z_1h \in\langle P(4),h\rangle Z 1 h ∈ ⟨ P ( 4 ) , h ⟩ has order divisible by three, although this group is a finite 2-group by Proposition D.11 , a contradiction.
Let C = ( H 1 H y C Z 1 y H 1 H y ) CNOT y → z C = (H_1H_yCZ_{1y}H_1H_y)\operatorname{CNOT}_{y\to z} C = ( H 1 H y C Z 1 y H 1 H y ) CNOT y → z . On the eigenspace s = 0 s = 0 s = 0 , E E E vanishes, so Λ = I \Lambda= I Λ = I , and ρ \rho ρ is the identity. On s = 1 s = 1 s = 1 , Λ = I − 2 Π X 1 − ⊗ Π X y − = H 1 H y C Z 1 y H 1 H y \Lambda= I - 2\Pi_{X_1}^{-} \otimes\Pi_{X_y}^{-} = H_1H_yCZ_{1y}H_1H_y Λ = I − 2 Π X 1 − ⊗ Π X y − = H 1 H y C Z 1 y H 1 H y and ρ = CNOT y → z \rho= \operatorname{CNOT}_{y\to z} ρ = CNOT y → z . Hence W = diag ( G 0 , G 1 ) W = \operatorname{diag}(G_0,G_1) W = diag ( G 0 , G 1 ) with respect to Z s Z_s Z s , with blocks on the qubits 1 , y , z 1,y,z 1 , y , z ,
G 0 = Q 1 Δ 0 , G 1 = C Q 1 Δ 1 , G_0 = Q_1\Delta_0,\qquad G_1 = CQ_1\Delta_1, G 0 = Q 1 Δ 0 , G 1 = C Q 1 Δ 1 ,
where Δ 0 , Δ 1 \Delta_0,\Delta_1 Δ 0 , Δ 1 are diagonal gates on y , z y,z y , z .
We now determine Δ 0 \Delta_0 Δ 0 and Δ 1 \Delta_1 Δ 1 . For t ∈ F 2 2 t \in\mathbb{F}_2^2 t ∈ F 2 2 , the Pauli X s X 1 X t X_sX_1X^t X s X 1 X t anticommutes with Z s Z_s Z s , and the off-diagonal block of its conjugate is G 1 X 1 X t G 0 † G_1X_1X^tG_0^\dagger G 1 X 1 X t G 0 † . Since Q 1 X 1 Q 1 † = S 1 X 1 Q_1X_1Q_1^\dagger= S_1X_1 Q 1 X 1 Q 1 † = S 1 X 1 and Δ 1 X t Δ 0 † = diag ( θ t ) X t \Delta_1X^t\Delta_0^\dagger= \operatorname{diag}(\theta_t)X^t Δ 1 X t Δ 0 † = diag ( θ t ) X t with θ t ( x ) = Δ 1 ( x ) / Δ 0 ( x + t ) \theta_t(x) = \Delta_1(x)/\Delta_0(x+t) θ t ( x ) = Δ 1 ( x ) / Δ 0 ( x + t ) , this block equals C ( S 1 ⊗ diag θ t ) C(S_1 \otimes\operatorname{diag}\theta_t) C ( S 1 ⊗ diag θ t ) up to a Pauli factor and a scalar. By Proposition D.11 and Lemma D.2 (3), with Z s Z_s Z s in place of Z 1 Z_1 Z 1 , it generates a finite 2-group with the Paulis, so it normalizes a Pauli MASA, and (C10) then makes every diag θ t \operatorname{diag}\theta_t diag θ t a diagonal Clifford. In particular, every ratio θ t / θ 0 = Δ 0 ( x ) / Δ 0 ( x + t ) \theta_t/\theta_0 = \Delta_0(x)/\Delta_0(x+t) θ t / θ 0 = Δ 0 ( x ) / Δ 0 ( x + t ) is a diagonal Clifford. Modulo diagonal Clifford gates common to both blocks, and the input gates C Z s y CZ_{sy} C Z sy , C Z s z CZ_{sz} C Z sz , this gives
Δ 0 = T y a T z b C y z c , Δ 1 = λ S y d S z e C Z y z f Δ 0 , a , b , c , d , e , f ∈ F 2 . \Delta_0 = T_y^aT_z^bC_{yz}^c,\qquad\Delta_1 = \lambda S_y^dS_z^eCZ_{yz}^f\Delta_0,\qquad a,b,c,d,e,f \in\mathbb{F}_2. Δ 0 = T y a T z b C y z c , Δ 1 = λ S y d S z e C Z y z f Δ 0 , a , b , c , d , e , f ∈ F 2 .
For the Paulis X s X 1 X_sX_1 X s X 1 , X s X 1 X y X_sX_1X_y X s X 1 X y , X s X 1 X z X_sX_1X_z X s X 1 X z , the off-diagonal blocks are Clifford and, as above, generate finite 2-groups with the Paulis, so their symplectic actions are unipotent by Lemma D.6 (2). Up to a scalar, G 0 G_0 G 0 and G 1 G_1 G 1 are explicit gates determined by ( a , … , f ) ∈ F 2 6 (a,\ldots,f) \in\mathbb{F}_2^6 ( a , … , f ) ∈ F 2 6 , so the three off-diagonal blocks are explicit, and a symplectic map γ \gamma γ of V 3 V_3 V 3 is unipotent exactly when ( γ + I ) 6 = 0 (\gamma+ I)^6 = 0 ( γ + I ) 6 = 0 . The two earlier uses of (C10) are finite in the same way: for ℓ = z \ell= z ℓ = z all data are explicit, and for ℓ = s \ell= s ℓ = s the values of θ t \theta_t θ t are ratios of entries of Δ \Delta Δ , which lie in μ 8 \mu_8 μ 8 as in Proposition D.4 (2), since W W W is defined over Q ( ζ 8 ) \mathbb{Q}(\zeta_8) Q ( ζ 8 ) up to scalar (Lemma F.2(3)). These checks give the following.
The case rank E = 2 E = 2 E = 2
In Case 2b of the proof of Lemma F.4 : for ℓ = z \ell= z ℓ = z and the correction h = W X s W † h = WX_sW^\dagger h = W X s W † , the monomial gate Z 1 h Z_1h Z 1 h , in the basis ∣ ± ⟩ ⊗ ∣ x ⟩ |\pm\rangle\otimes|x\rangle ∣ ± ⟩ ⊗ ∣ x ⟩ , has a permutation of cycle type 2 2 6 2 2^2 6^2 2 2 6 2 , so this case does not occur. For ℓ = s \ell= s ℓ = s , the Pauli-MASA condition on the off-diagonal block makes every diag θ t \operatorname{diag}\theta_t diag θ t Clifford, and among the 64 choices of a , b , c , d , e , f ∈ F 2 a,b,c,d,e,f \in\mathbb{F}_2 a , b , c , d , e , f ∈ F 2 the three unipotence conditions hold exactly when a = b = c = e = 0 a=b=c=e=0 a = b = c = e = 0 and d = f d=f d = f .
By hand (ℓ = z \ell= z ℓ = z ). In the eigenbasis of X 1 X_1 X 1 , h = diag ( M , τ M τ ) h = \operatorname{diag}(M,\tau M\tau) h = diag ( M , τ M τ ) with M M M monomial of permutation σ ( s , y , z ) = ( s + 1 , y , y + z ) \sigma(s,y,z) = (s+1,y,y+z) σ ( s , y , z ) = ( s + 1 , y , y + z ) and τ ( s , y , z ) = ( s , y + z , z ) \tau(s,y,z) = (s,y+z,z) τ ( s , y , z ) = ( s , y + z , z ) . So ( Z 1 h ) 2 (Z_1h)^2 ( Z 1 h ) 2 has permutation τ σ τ σ ( s , y , z ) = ( s , y + z , y ) \tau\sigma\tau\sigma(s,y,z) = (s,y+z,y) τ σ τ σ ( s , y , z ) = ( s , y + z , y ) , of cycle type 1 2 3 2 1^2 3^2 1 2 3 2 .
Code. certificates/balanced-rank-two-branch in https://github.com/numberinggeometry/clifford-hierarchy-plane-certificate
By (C10), the three conditions are, respectively,
( d + f , e ) = ( 0 , 0 ) , ( d + f + a + c , e + c ) = ( 0 , 0 ) , ( d + f , e + b ) = ( 0 , 0 ) . (d+f,e)=(0,0),\qquad(d+f+a+c,e+c)=(0,0),\qquad(d+f,e+b)=(0,0). ( d + f , e ) = ( 0 , 0 ) , ( d + f + a + c , e + c ) = ( 0 , 0 ) , ( d + f , e + b ) = ( 0 , 0 ) .
Hence a = b = c = e = 0 a=b=c=e=0 a = b = c = e = 0 and d = f d=f d = f . For d = f = 0 d=f=0 d = f = 0 both blocks normalize the Pauli MASA generated by Z 1 Z_1 Z 1 , X y X_y X y , X z X_z X z , and for d = f = 1 d=f=1 d = f = 1 the one generated by Z 1 Z_1 Z 1 , X y X_y X y , Y z Y_z Y z . Adjoining Z s Z_s Z s gives a GSC pair for W W W . □ \square □
Lemma F.5. Let W = diag ( A , B ) W = \operatorname{diag}(A,B) W = diag ( A , B ) be as in Lemma F.2, with K v = B P v A † K_v = BP_vA^\dagger K v = B P v A † , and suppose that ∣ X ( K v ) ∣ ≥ 2 |X(K_v)| \ge2 ∣ X ( K v ) ∣ ≥ 2 for every v ∈ V 3 v \in V_3 v ∈ V 3 . Then at least one of the following holds.
L ( W ) ≠ ∅ \mathcal{L}(W) \ne\varnothing L ( W ) = ∅ .
W W W has a Pauli pair ( s , t ) (s,t) ( s , t ) with P t ≠ Z 1 P_t \ne Z_1 P t = Z 1 and P t Z 1 = Z 1 P t P_tZ_1 = Z_1P_t P t Z 1 = Z 1 P t .
Proof. The mixed block K v K_v K v is Gaussian, since σ ( K v ) = B Z p P v Z p A † = K v \sigma(K_v) = BZ^pP_vZ^pA^\dagger= K_v σ ( K v ) = B Z p P v Z p A † = K v by Lemma F.2(3). By Lemma F.2(2), ⟨ P ( 3 ) , K v ⟩ \langle P(3),K_v\rangle ⟨ P ( 3 ) , K v ⟩ is a finite 2-group and K v K_v K v normalizes a Pauli MASA, so K v K_v K v has a GSC pair, and it has finite level by the second paragraph of the proof of Proposition D.11 . Proposition D.4 gives K v = C 1 Π π C 2 K_v = C_1\Pi_{\pi}C_2 K v = C 1 Π π C 2 with C 1 , C 2 ∈ C ( 3 ) C_1,C_2 \in\mathcal{C}(3) C 1 , C 2 ∈ C ( 3 ) , π = 1 \pi= 1 π = 1 or π ( x , y , z ) = ( x , y , z + x y ) \pi(x,y,z)=(x,y,z+xy) π ( x , y , z ) = ( x , y , z + x y ) , and f : F 2 3 → Z / 4 f:\mathbb{F}_2^3\to\mathbb{Z}/4 f : F 2 3 → Z /4 . Write f = ℓ + 2 q + a x y + b x z + c y z + d x y z f=\ell+2q+axy+bxz+cyz+dxyz f = ℓ + 2 q + a x y + b x z + cy z + d x y z with deg ℓ ≤ 1 \deg\ell\leq1 deg ℓ ≤ 1 , q q q quadratic, a , b , c ∈ { 0 , 1 } a,b,c\in\{0,1\} a , b , c ∈ { 0 , 1 } and d ∈ Z / 4 d\in\mathbb{Z}/4 d ∈ Z /4 . Then i ℓ + 2 q i^{\ell+2q} i ℓ + 2 q is a diagonal Clifford gate, which we absorb into C 2 C_2 C 2 . So K v ≐ C 1 D C 2 K_v \doteq C_1DC_2 K v ≐ C 1 D C 2 with D D D one of the 64 forms of (C11), and Clifford factors change neither membership in C 3 ( 3 ) C_3(3) C 3 ( 3 ) nor ∣ X ( ⋅ ) ∣ |X(\cdot)| ∣ X ( ⋅ ) ∣ (Lemma D.1(1)), so it suffices to examine these 64 forms.
Mixed blocks with two input Lagrangians.
Let D = π 0 i a x y + b x z + c y z + d x y z D=\pi_0i^{axy+bxz+cyz+dxyz} D = π 0 i a x y + b x z + cy z + d x y z with π 0 ∈ { I , π } \pi_0\in\{I,\pi\} π 0 ∈ { I , π } , a , b , c ∈ F 2 a,b,c\in\mathbb{F}_2 a , b , c ∈ F 2 and d ∈ Z / 4 d\in\mathbb{Z}/4 d ∈ Z /4 , a block form of Lemma F.2(4) with p ′ = 0 p'=0 p ′ = 0 . If ∣ X ( D ) ∣ ≥ 2 |X(D)|\geq2 ∣ X ( D ) ∣ ≥ 2 , then D ∈ C 3 ( 3 ) D\in C_3(3) D ∈ C 3 ( 3 ) .
Code. certificates/mixed-blocks-with-two-input-lagrangians in https://github.com/numberinggeometry/clifford-hierarchy-plane-certificate
By (C11), K v ∈ C 3 ( 3 ) K_v\in C_3(3) K v ∈ C 3 ( 3 ) for every v ∈ V 3 v\in V_3 v ∈ V 3 . Conjugating W W W by X 1 X_1 X 1 swaps A A A and B B B and replaces each K v K_v K v by K v † K_v^\dagger K v † , which preserves the hypothesis. We may therefore assume that A ∉ C 3 ( 3 ) A\notin C_3(3) A ∈ / C 3 ( 3 ) or that both blocks lie in C 3 ( 3 ) C_3(3) C 3 ( 3 ) . Let a v = A P v A † a_v=AP_vA^\dagger a v = A P v A † and b v = B P v B † b_v=BP_vB^\dagger b v = B P v B † , so that K v = K 0 a v K_v=K_0a_v K v = K 0 a v .
Write B ( A , B ) \mathcal{B}(A,B) B ( A , B ) for the alternative
L ( A ) ∩ L ( B ) ≠ ∅ or ∃ r , q ≠ 0 : A P r A † ≐ B P r B † ≐ P q . \mathcal{L}(A)\cap\mathcal{L}(B)\ne\varnothing\quad\text{or}\quad\exists\,r,q\ne0:\; AP_rA^\dagger\doteq BP_rB^\dagger\doteq P_q. L ( A ) ∩ L ( B ) = ∅ or ∃ r , q = 0 : A P r A † ≐ B P r B † ≐ P q .
It suffices to prove B ( A , B ) \mathcal{B}(A,B) B ( A , B ) . Indeed, if ( L , M ) ∈ L ( A ) ∩ L ( B ) (L,M)\in\mathcal{L}(A)\cap\mathcal{L}(B) ( L , M ) ∈ L ( A ) ∩ L ( B ) , then W A span { z 1 } ⊕ L W † = A span { z 1 } ⊕ M WA_{\operatorname{span}\{z_1\}\oplus L}W^\dagger=A_{\operatorname{span}\{z_1\}\oplus M} W A span { z 1 } ⊕ L W † = A span { z 1 } ⊕ M by Lemma D.2(1), which is (1). Otherwise, A P r A † = η 0 P q AP_rA^\dagger=\eta_0P_q A P r A † = η 0 P q and B P r B † = η 1 P q BP_rB^\dagger=\eta_1P_q B P r B † = η 1 P q for some r , q ≠ 0 r,q\ne0 r , q = 0 and signs η 0 , η 1 \eta_0,\eta_1 η 0 , η 1 , so
W ( I ⊗ P r ) W † = η 0 Z 1 ϵ ⊗ P q , ( − 1 ) ϵ = η 0 η 1 , W(I\otimes P_r)W^\dagger=\eta_0Z_1^\epsilon\otimes P_q,\qquad(-1)^\epsilon=\eta_0\eta_1, W ( I ⊗ P r ) W † = η 0 Z 1 ϵ ⊗ P q , ( − 1 ) ϵ = η 0 η 1 ,
and P t = I ⊗ P r P_t=I\otimes P_r P t = I ⊗ P r commutes with Z 1 Z_1 Z 1 and differs from it, which is (2). In both cases, Lemma D.12 turns the finite 2-groups ⟨ P ( 3 ) , K v ⟩ \langle\mathcal{P}(3),K_v\rangle ⟨ P ( 3 ) , K v ⟩ of Lemma F.2(2) into unipotence conditions on one Clifford gate F F F , and (C15) checks that these conditions give B ( A , B ) \mathcal{B}(A,B) B ( A , B ) .
Figure 12. Case analysis in the proof of Lemma F.5.
We first reduce A A A to a normal form and show that X ( K 0 ) X(K_0) X ( K 0 ) contains its input Lagrangian L Z L_Z L Z . The 512 block forms D D D of Lemma F.2(4) are given by ( π 0 , a , b , c , d , p ′ ) ∈ { I , π } × F 2 3 × Z / 4 × F 2 3 (\pi_0,a,b,c,d,p')\in\{I,\pi\}\times\mathbb{F}_2^3\times\mathbb{Z}/4\times\mathbb{F}_2^3 ( π 0 , a , b , c , d , p ′ ) ∈ { I , π } × F 2 3 × Z /4 × F 2 3 . Their classes under D ↦ C 1 D C 2 D\mapsto C_1DC_2 D ↦ C 1 D C 2 , C 1 , C 2 ∈ C 2 ( 3 ) C_1,C_2\in C_2(3) C 1 , C 2 ∈ C 2 ( 3 ) , preserve the level, C 2 ( 3 ) C_2(3) C 2 ( 3 ) is finite modulo scalars, and membership in C 3 ( 3 ) C_3(3) C 3 ( 3 ) is decided on a basis of V 3 V_3 V 3 . Sorting the forms into classes gives the following.
Clifford classes of the block forms
Under D ↦ C 1 D C 2 D\mapsto C_1DC_2 D ↦ C 1 D C 2 with C 1 , C 2 ∈ C 2 ( 3 ) C_1,C_2\in C_2(3) C 1 , C 2 ∈ C 2 ( 3 ) , the 512 block forms D D D of Lemma F.2(4) fall into 30 classes. Ten classes are third-level, and every correction D P v D † DP_vD^\dagger D P v D † of the other twenty is third-level. We call the listed representative of a class its normal form. The third-level classes containing a form with p ′ = 0 p'=0 p ′ = 0 are those of the four gates CS y z a CCZ b \operatorname{CS}_{yz}^{a}\operatorname{CCZ}^{b} CS y z a CCZ b .
Code. certificates/block-form-clifford-classes in https://github.com/numberinggeometry/clifford-hierarchy-plane-certificate
Replace W W W by ( I ⊗ C 1 † ) W ( I ⊗ C 2 † ) (I\otimes C_1^\dagger)W(I\otimes C_2^\dagger) ( I ⊗ C 1 † ) W ( I ⊗ C 2 † ) with C 1 , C 2 ∈ C 2 ( 3 ) C_1,C_2\in C_2(3) C 1 , C 2 ∈ C 2 ( 3 ) so that A A A is one of the twenty non-third-level normal forms. Then L ( A ) = L Z \mathcal{L}(A)=L_Z L ( A ) = L Z , A = diag ( e i π a x z + c y z + d x y z , T p A ) A=\operatorname{diag}(e^{i\pi axz+cyz+dxyz},T_{p_A}) A = diag ( e iπ a x z + cy z + d x y z , T p A ) of Lemma F.2(4), and Lemma F.2(3) gives σ ( A ) = A Z p A \sigma(A)=AZ^{p_A} σ ( A ) = A Z p A and σ ( B ) = B Z p A \sigma(B)=BZ^{p_A} σ ( B ) = B Z p A . Let J A ≤ Sp ( V 3 ) J_A\leq\operatorname{Sp}(V_3) J A ≤ Sp ( V 3 ) be generated by the symplectic actions of the Clifford gates a v P w a v † a_vP_wa_v^\dagger a v P w a v † , where v , w ∈ V 3 v,w\in V_3 v , w ∈ V 3 . The set X ( K 0 ) X(K_0) X ( K 0 ) is invariant under J A J_A J A : as a v = K 0 † K v a_v=K_0^\dagger K_v a v = K 0 † K v , each Clifford c = a v P w a v † c=a_vP_wa_v^\dagger c = a v P w a v † satisfies K 0 c = ( K v P w K v † ) K 0 K_0c=(K_vP_wK_v^\dagger)K_0 K 0 c = ( K v P w K v † ) K 0 with K v P w K v † K_vP_wK_v^\dagger K v P w K v † Clifford, and Lemma D.1(2) applies. The normal form A A A is one of twenty, and J A J_A J A depends only on A A A . By the argument before (C11), K 0 ≐ C 1 D C 2 K_0 \doteq C_1DC_2 K 0 ≐ C 1 D C 2 with C 1 , C 2 ∈ C 2 ( 3 ) C_1,C_2 \in\mathcal{C}_2(3) C 1 , C 2 ∈ C 2 ( 3 ) and D D D one of the 64 forms there, and D D D is third-level since K 0 K_0 K 0 is. By (C12), D ≐ C Y C ′ D \doteq CYC' D ≐ C Y C ′ with C , C ′ ∈ C 2 ( 3 ) C,C' \in\mathcal{C}_2(3) C , C ′ ∈ C 2 ( 3 ) and Y Y Y one of the four gates C S y z a C C Z b \mathrm{CS}_{yz}^{a}\mathrm{CCZ}^{b} CS y z a CCZ b . So K 0 ≐ F ( C ′ ′ † Y C ′ ′ ) K_0 \doteq F(C''^\dagger Y C'') K 0 ≐ F ( C ′′ † Y C ′′ ) with F = C 1 C C ′ C 2 F=C_1CC'C_2 F = C 1 C C ′ C 2 and C ′ ′ = C ′ C 2 C''=C'C_2 C ′′ = C ′ C 2 in C 2 ( 3 ) \mathcal{C}_2(3) C 2 ( 3 ) , and since a left Clifford factor does not change input Lagrangians (Lemma D.1[1 ] ), X ( K 0 ) = X ( C ′ ′ † Y C ′ ′ ) X(K_0)=X(C''^\dagger Y C'') X ( K 0 ) = X ( C ′′ † Y C ′′ ) , and it remains to check the following for the twenty normal forms.
Invariant sets of input Lagrangians. Let A A A be a non-third-level normal form of (C12), and let D D D be a Clifford conjugate of one of the four gates C S y z a C C Z b \mathrm{CS}_{yz}^{a}\mathrm{CCZ}^{b} CS y z a CCZ b . If X ( D ) X(D) X ( D ) is invariant under J A J_A J A , then L Z ∈ X ( D ) L_Z \in X(D) L Z ∈ X ( D ) .
Code. certificates/invariant-sets-of-input-lagrangians in https://github.com/numberingometry/clifford-hierarchy-plane-certificate
By (C13), L Z ∈ X ( K 0 ) L_Z \in X(K_0) L Z ∈ X ( K 0 ) .
Next we reduce B B B to a normal form. Since A A A normalizes A Z A_Z A Z , K 0 A Z K 0 † = B A Z B † K_0A_ZK_0^\dagger=BA_ZB^\dagger K 0 A Z K 0 † = B A Z B † is a Pauli MASA, so B = F 0 B 0 B=F_0B_0 B = F 0 B 0 with F 0 ∈ C 2 ( 3 ) F_0\in\mathcal{C}_2(3) F 0 ∈ C 2 ( 3 ) and B 0 B_0 B 0 monomial. By Proposition D.4, after a scalar B 0 B_0 B 0 has eighth-root entries and its permutation is affine or affinely equivalent to π \pi π of Lemma F.2(4), and Proposition D.9(1) gives B 0 ‾ − 1 σ ( B 0 ) = B − 1 σ ( B ) = Z p A \overline{B_0}^{-1}\sigma(B_0)=B^{-1}\sigma(B)=Z^{p_A} B 0 − 1 σ ( B 0 ) = B − 1 σ ( B ) = Z p A . As in the proof of Lemma F.2(4), this gives B 0 ≐ Π i g T p A B_0 \doteq\Pi i^gT_{p_A} B 0 ≐ Π i g T p A with Π \Pi Π a permutation gate and g : F 2 3 → Z / 4 g:\mathbb{F}_2^3\to\mathbb{Z}/4 g : F 2 3 → Z /4 . The data are A A A (twenty normal forms), the permutation of Π \Pi Π (among the 10,752 permutations that are affine or affinely equivalent to π \pi π ) and g ∈ ( Z / 4 ) F 2 3 g\in(\mathbb{Z}/4)^{\mathbb{F}_2^3} g ∈ ( Z /4 ) F 2 3 . Left multiplication of B 0 B_0 B 0 by monomial Clifford gates, absorbed into F 0 F_0 F 0 , acts on these finitely many data, and an orbit computation gives the following.
Reduction of B 0 B_0 B 0 to 256 gates. Let A A A be a non-third-level normal form with T T T -factor T p A T_{p_A} T p A , and B 0 = Π i g T p A B_0=\Pi i^gT_{p_A} B 0 = Π i g T p A with g : F 2 3 → Z / 4 g:\mathbb{F}_2^3\to\mathbb{Z}/4 g : F 2 3 → Z /4 and ρ \rho ρ affine or affinely equivalent to π \pi π of Lemma F.2(4). Let ρ 0 \rho_0 ρ 0 be the identity, and for 0 ≠ k ∈ F 2 3 0\ne k\in\mathbb{F}_2^3 0 = k ∈ F 2 3 let ρ k = λ k − 1 π λ k \rho_k=\lambda_k^{-1}\pi\lambda_k ρ k = λ k − 1 π λ k with λ k \lambda_k λ k linear and λ k ( k ) = ( 0 , 0 , 1 ) \lambda_k(k)=(0,0,1) λ k ( k ) = ( 0 , 0 , 1 ) . Modulo left multiplication by monomial Clifford gates, B 0 B_0 B 0 is one of the 256 gates Π ρ k i a x y + b x z + c y z + d x y z T p A \Pi_{\rho_k}i^{axy+bxz+cyz+dxyz}T_{p_A} Π ρ k i a x y + b x z + cy z + d x y z T p A with k ∈ F 2 3 k\in\mathbb{F}_2^3 k ∈ F 2 3 , a , b , c ∈ F 2 a,b,c\in\mathbb{F}_2 a , b , c ∈ F 2 and d ∈ Z / 4 d\in\mathbb{Z}/4 d ∈ Z /4 , or ρ ( x + k ) + ρ ( x ) \rho(x+k)+\rho(x) ρ ( x + k ) + ρ ( x ) does not depend on x x x exactly for k ∈ { 0 , ( 1 , 1 , 1 ) } k\in\{0,(1,1,1)\} k ∈ { 0 , ( 1 , 1 , 1 )} , and then some B 0 P v A † ∈ C 3 ( 3 ) B_0P_vA^\dagger\in\mathcal{C}_3(3) B 0 P v A † ∈ C 3 ( 3 ) .
Code. certificates/reduction-to-common-input-pair-domain in https://github.com/numberingometry/clifford-hierarchy-plane-certificate
By (C14), after absorbing monomial Cliffords into F 0 F_0 F 0 , B 0 B_0 B 0 is one of the 256 gates listed there, or the permutation ρ \rho ρ of B 0 B_0 B 0 is not affine and ρ ( x + k ) + ρ ( x ) \rho(x+k)+\rho(x) ρ ( x + k ) + ρ ( x ) does not depend on x x x exactly for k ∈ { 0 , ( 1 , 1 , 1 ) } k\in\{0,(1,1,1)\} k ∈ { 0 , ( 1 , 1 , 1 )} . In the latter case some B 0 P v A † B_0P_vA^\dagger B 0 P v A † is not third-level, contrary to (C11).
Now every D v = B 0 P v A † D_v=B_0P_vA^\dagger D v = B 0 P v A † is third-level, since K v = F 0 D v K_v=F_0D_v K v = F 0 D v is. The pair ( A , B 0 ) (A,B_0) ( A , B 0 ) is one of the finitely many pairs left by (C14), so the D v D_v D v are explicit, and their decompositions are found by a search over C 2 ( 3 ) \mathcal{C}_2(3) C 2 ( 3 ) , which is finite modulo scalars. The unipotence conditions below and B ( A , B ) \mathcal{B}(A,B) B ( A , B ) depend on F F F only through γ F ∈ Sp ( 6 , 2 ) \gamma_F\in\operatorname{Sp}(6,2) γ F ∈ Sp ( 6 , 2 ) , a group of order 1,451,520, since L ( F B ′ ) = { ( L , γ F M ) : ( L , M ) ∈ L ( B ′ ) } \mathcal{L}(F B')=\{(L,\gamma_FM):(L,M)\in\mathcal{L}(B')\} L ( F B ′ ) = {( L , γ F M ) : ( L , M ) ∈ L ( B ′ )} by Lemma D.1(1) and F P q F † = P γ F q FP_qF^\dagger=P_{\gamma_Fq} F P q F † = P γ F q . A search over Sp ( 6 , 2 ) \operatorname{Sp}(6,2) Sp ( 6 , 2 ) for each pair gives the following.
Pair domains for blocks
(a) Let A A A be a non-third-level normal form of (C12) and B 0 B_0 B 0 one of the 256 gates of (C14) for this A A A (5,120 pairs). For the 360 pairs with every D v = B 0 P v A † ∈ C 3 ( 3 ) D_v=B_0P_vA^\dagger\in\mathcal{C}_3(3) D v = B 0 P v A † ∈ C 3 ( 3 ) , each D v = G v Y v D_v=G_vY_v D v = G v Y v with G v ∈ C 2 ( 3 ) G_v\in\mathcal{C}_2(3) G v ∈ C 2 ( 3 ) and Y v Y_v Y v a Clifford conjugate of some C S y z a C C Z b \mathrm{CS}_{yz}^{a}\mathrm{CCZ}^{b} CS y z a CCZ b , and B ( A , F G 0 − 1 B 0 ) \mathcal{B}(A,FG_0^{-1}B_0) B ( A , F G 0 − 1 B 0 ) holds for every F ∈ C 2 ( 3 ) F\in\mathcal{C}_2(3) F ∈ C 2 ( 3 ) with γ F G 0 − 1 G v ϵ \gamma_FG_0^{-1}G_v\epsilon γ F G 0 − 1 G v ϵ unipotent for all v ∈ V 3 v\in V_3 v ∈ V 3 and ϵ ∈ E Y v \epsilon\in E_{Y_v} ϵ ∈ E Y v .
(b) Let A A A be a third-level normal form and D D D a Clifford conjugate of some C S y z a C C Z b \mathrm{CS}_{yz}^{a}\mathrm{CCZ}^{b} CS y z a CCZ b with X ( D ) X(D) X ( D ) invariant under E A E_A E A (13,960 pairs, reduced to 2,076). Then B ( A , F D A ) \mathcal{B}(A,FDA) B ( A , F D A ) holds for every F ∈ C 2 ( 3 ) F\in\mathcal{C}_2(3) F ∈ C 2 ( 3 ) with γ F ϵ f \gamma_F\epsilon f γ F ϵ f unipotent for all ϵ ∈ E D \epsilon\in E_D ϵ ∈ E D and f ∈ E A f\in E_A f ∈ E A .
Code. certificates/block-pair-domains in https://github.com/numberingometry/clifford-hierarchy-plane-certificate
By (C15)(a), D v = G v Y v D_v = G_vY_v D v = G v Y v , with G v ∈ C 2 ( 3 ) G_v \in\mathcal{C}_2(3) G v ∈ C 2 ( 3 ) and Y v Y_v Y v a Clifford conjugate of some C S y z a C C Z b \mathrm{CS}_{yz}^{a}\mathrm{CCZ}^{b} CS y z a CCZ b . Let F = F 0 G 0 F = F_0G_0 F = F 0 G 0 , so that B = F 0 B 0 = F G 0 − 1 B 0 B = F_0B_0 = FG_0^{-1}B_0 B = F 0 B 0 = F G 0 − 1 B 0 . Then K v = F 0 D v = ( F G 0 − 1 G v ) Y v K_v = F_0D_v = (FG_0^{-1}G_v)Y_v K v = F 0 D v = ( F G 0 − 1 G v ) Y v , and ⟨ P ( 3 ) , K v ⟩ \langle\mathcal{P}(3),K_v\rangle ⟨ P ( 3 ) , K v ⟩ is a finite 2-group, so Lemma D.12 makes γ F γ G 0 − 1 γ G v e \gamma_F\gamma_{G_0}^{-1}\gamma_{G_v}e γ F γ G 0 − 1 γ G v e unipotent for every v ∈ V 3 v \in V_3 v ∈ V 3 and e ∈ E Y v e \in E_{Y_v} e ∈ E Y v . By (C15)(a), these conditions give B ( A , B ) \mathcal{B}(A,B) B ( A , B ) .
Case 2: A , B ∈ C 3 ( 3 ) A,B \in\mathcal{C}_3(3) A , B ∈ C 3 ( 3 ) .
We first reduce K 0 K_0 K 0 to a normal form. As in Case 1, take A A A to be one of the ten third-level normal forms of (C12), which are diagonal. The mixed block K 0 = B A † K_0 = BA^\dagger K 0 = B A † is Gaussian, since σ ( K 0 ) = B Z p Z p A † = K 0 \sigma(K_0) = BZ^pZ^{p}A^\dagger= K_0 σ ( K 0 ) = B Z p Z p A † = K 0 by Lemma F.2(3). It lies in C 3 ( 3 ) \mathcal{C}_3(3) C 3 ( 3 ) by (C11), and has a GSC pair. By Proposition D.4 it is C 1 D 0 C 2 C_1D_0C_2 C 1 D 0 C 2 up to scalar, with C 1 , C 2 C_1,C_2 C 1 , C 2 Clifford and D 0 = π 0 i a x y + b x z + c y z + d x y z D_0 = \pi_0 i^{axy+bxz+cyz+dxyz} D 0 = π 0 i a x y + b x z + cy z + d x y z , a form D D D of Lemma F.2(4) with p ′ = 0 p'=0 p ′ = 0 . It is third-level since K 0 K_0 K 0 is, so by (C12) it lies in the Clifford class of one of the four gates C S y z a C C Z b \mathrm{CS}_{yz}^{a}\mathrm{CCZ}^{b} CS y z a CCZ b . So K 0 ≐ C Y C ′ K_0 \doteq CY C' K 0 ≐ C Y C ′ with C , C ′ C,C' C , C ′ Clifford and Y Y Y one of these gates, and K 0 ≐ ( C C ′ † Y C ′ ) = F D K_0 \doteq(CC'^{\dagger}Y C') = FD K 0 ≐ ( C C ′ † Y C ′ ) = F D with F ∈ C 2 ( 3 ) F \in\mathcal{C}_2(3) F ∈ C 2 ( 3 ) and D D D a Clifford conjugate of Y Y Y . The set X ( D ) = X ( K 0 ) X(D) = X(K_0) X ( D ) = X ( K 0 ) is invariant under E A E_A E A : both a v a_v a v and b v b_v b v are Clifford, and K 0 a v = K v ≐ b v K 0 K_0a_v = K_v \doteq b_vK_0 K 0 a v = K v ≐ b v K 0 , so Lemma D.1(2) applies.
For every v v v , K v = ( F a v ) ( a v † D a v ) K_v = (Fa_v)(a_v^\dagger Da_v) K v = ( F a v ) ( a v † D a v ) with a v † D a v a_v^\dagger Da_v a v † D a v again a Clifford conjugate of some C S y z a C C Z b \mathrm{CS}_{yz}^{a}\mathrm{CCZ}^{b} CS y z a CCZ b , and ⟨ P ( 3 ) , K v ⟩ \langle\mathcal{P}(3),K_v\rangle ⟨ P ( 3 ) , K v ⟩ is a finite 2-group. Lemma D.12 makes γ F γ a v e ′ \gamma_F\gamma_{a_v}e' γ F γ a v e ′ unipotent for every e ′ ∈ E a v † D a v = a v † E D γ a v e' \in E_{a_v^\dagger Da_v} = a_v^\dagger E_D\gamma_{a_v} e ′ ∈ E a v † D a v = a v † E D γ a v , that is, γ F e f \gamma_Fef γ F e f is unipotent for all e ∈ E D e \in E_D e ∈ E D and f ∈ E A f \in E_A f ∈ E A . As in Case 1, this is a finite check: A A A is one of ten normal forms, D D D is a Clifford conjugate of one of four gates, so it takes finitely many values modulo scalars, and only γ F ∈ Sp ( 6 , 2 ) \gamma_F \in\operatorname{Sp}(6,2) γ F ∈ Sp ( 6 , 2 ) matters. By (C15)(b), B ( A , B ) \mathcal{B}(A,B) B ( A , B ) holds. □
Lemma F.6. Let W ∈ U ( 16 ) W \in\mathrm{U}(16) W ∈ U ( 16 ) satisfy W P v W † ∈ R 4 WP_vW^\dagger\in\mathcal{R}_4 W P v W † ∈ R 4 for every 0 ≠ v ∈ V 4 0 \ne v \in V_4 0 = v ∈ V 4 . Suppose W W W has Pauli pairs ( s 1 , t 1 ) (s_1,t_1) ( s 1 , t 1 ) and ( s 2 , t 2 ) (s_2,t_2) ( s 2 , t 2 ) with t 1 , t 2 t_1,t_2 t 1 , t 2 linearly independent and ω ( t 1 , t 2 ) = 0 \omega(t_1,t_2)=0 ω ( t 1 , t 2 ) = 0 . Then L ( W ) ≠ ∅ \mathcal{L}(W) \ne\varnothing L ( W ) = ∅ .
Proof. Since ω ( t 1 , t 2 ) = 0 \omega(t_1,t_2)=0 ω ( t 1 , t 2 ) = 0 and ω ( s 1 , s 2 ) = 0 \omega(s_1,s_2)=0 ω ( s 1 , s 2 ) = 0 , there are C 1 , C 2 ∈ C 2 ( 4 ) C_1,C_2 \in\mathcal{C}_2(4) C 1 , C 2 ∈ C 2 ( 4 ) with C 2 P t j C 2 † = Z j C_2P_{t_j}C_2^\dagger= Z_j C 2 P t j C 2 † = Z j and C 1 ( ± P s j ) C 1 † = Z j C_1(\pm P_{s_j})C_1^\dagger= Z_j C 1 ( ± P s j ) C 1 † = Z j for j = 1 , 2 j=1,2 j = 1 , 2 . Replacing W W W by C 1 W C 2 † C_1WC_2^\dagger C 1 W C 2 † , which keeps the hypothesis, we get W Z j W † = Z j WZ_jW^\dagger= Z_j W Z j W † = Z j , so
W = ⨁ x ∈ F 2 2 B x . W = \bigoplus_{x\in\mathbb{F}_2^2} B_x. W = x ∈ F 2 2 ⨁ B x .
where B x B_x B x acts on qubits 3, 4 in the joint eigenspace Z j = ( − 1 ) x j Z_j = (-1)^{x_j} Z j = ( − 1 ) x j . By Lemma D.2(1), it suffices to find a common GSC pair of the four blocks.
We first show that the blocks are pairwise compatible. For x ≠ y x \ne y x = y , after conjugating W W W by an affine permutation of the two control qubits, which keeps the hypothesis, x x x and y y y differ only in the second control bit. Then diag ( B x , B y ) \operatorname{diag}(B_x,B_y) diag ( B x , B y ) is a block of W W W with respect to Z 1 Z_1 Z 1 , and it satisfies the hypotheses of Proposition E.4: its corrections are blocks of corrections W P v W † ∈ R 4 WP_vW^\dagger\in\mathcal{R}_4 W P v W † ∈ R 4 with P v P_v P v commuting with Z 1 Z_1 Z 1 , so they are Gaussian, generalized semi-Clifford by Lemma D.2(1), and of finite level by Lemma D.2(2). Proposition E.4 and Lemma D.2(1) give
L ( B x ) ∩ L ( B y ) ≠ ∅ for all x , y ∈ F 2 2 . \mathcal{L}(B_x)\cap\mathcal{L}(B_y)\ne\varnothing\qquad\text{for all }x,y\in\mathbb{F}_2^2. L ( B x ) ∩ L ( B y ) = ∅ for all x , y ∈ F 2 2 .
Each B x B_x B x has finite level by Lemma D.2(2), so by Lemma D.5(2) the input Lagrangians of its GSC pairs are exactly the Lagrangians inside P ( B x ) P(B_x) P ( B x ) . Hence dim P ( B x ) ∈ { 2 , 3 , 4 } \dim P(B_x)\in\{2,3,4\} dim P ( B x ) ∈ { 2 , 3 , 4 } , with 4 exactly when B x B_x B x is Clifford. We split on these dimensions. Case 1a uses (U), Cases 1b and 1c combine the Galois automorphism with (U) on the three Lagrangians containing a fixed label, and Case 2 is a special case of Theorem G.1.
Figure 13. Case analysis in the proof of Lemma F.6.
Case 1: some B x B_x B x is not Clifford.
If dim P ( B x ) = 2 \dim P(B_x)=2 dim P ( B x ) = 2 for some x x x , we are in Case 1a discussed below. Otherwise, we first find a label p p p common to all blocks. As in the proof of Lemma F.2(3), Proposition D.9(3) gives σ ( W ) = W P a \sigma(W)=WP_a σ ( W ) = W P a with P a P_a P a commuting with Z 1 , Z 2 Z_1,Z_2 Z 1 , Z 2 . Hence there is one label p ∈ V 2 p \in V_2 p ∈ V 2 with σ ( B x ) ≐ B x P p \sigma(B_x) \doteq B_xP_p σ ( B x ) ≐ B x P p for all x x x , and by Proposition D.9 (2), p p p lies in the input Lagrangian of every GSC pair of every B x B_x B x .
If p = 0 p=0 p = 0 , each B x B_x B x is defined over Q ( i ) \mathbb{Q}(i) Q ( i ) up to scalar, so by Proposition D.4 (2) it is Clifford equivalent to a diagonal gate with entries in μ 4 \mu_4 μ 4 , and after diagonal Cliffords to I I I or CS. A non-Clifford block would then have dim P = 2 \dim P=2 dim P = 2 , as CS does, which we have excluded. Hence p ≠ 0 p\ne0 p = 0 . Then no B x B_x B x is Clifford, because σ ( C ) ≐ C \sigma(C) \doteq C σ ( C ) ≐ C for every Clifford C C C by Proposition D.9 (1). So dim P ( B x ) = 3 \dim P(B_x)=3 dim P ( B x ) = 3 , that is, P ( B x ) = p x P(B_x)=p_x P ( B x ) = p x for a nonzero p x p_x p x , and the input Lagrangians of B x B_x B x are the three Lagrangians L p x = { L = L ⊥ : p x ∈ L } \mathcal{L}_{p_x}=\{L=L^\perp:p_x\in L\} L p x = { L = L ⊥ : p x ∈ L } . Since p p p lies in all three, whose intersection is span { p x } \operatorname{span}\{p_x\} span { p x } , p x = p p_x=p p x = p for every x x x .
Let B x P p B x † = ± P q x B_xP_pB_x^\dagger=\pm P_{q_x} B x P p B x † = ± P q x , and let
ϕ x : L p → L q x , B x A L B x † = A ϕ x ( L ) . \phi_x:\mathcal{L}_p\to\mathcal{L}_{q_x},\qquad B_x A_L B_x^\dagger=A_{\phi_x(L)}. ϕ x : L p → L q x , B x A L B x † = A ϕ x ( L ) .
be the resulting bijection. Pairwise compatibility says that for all x , y x,y x , y there is L ∈ L p L\in\mathcal{L}_p L ∈ L p with ϕ x ( L ) = ϕ y ( L ) \phi_x(L)=\phi_y(L) ϕ x ( L ) = ϕ y ( L ) . Cases 1b and 1c split on whether the q x q_x q x are all equal.
By Lemma D.5 (2), L ( B x ) \mathcal{L}(B_x) L ( B x ) consists of a single pair ( L , M ) (L,M) ( L , M ) . By pairwise compatibility, ( L , M ) ∈ L ( B y ) (L,M)\in\mathcal{L}(B_y) ( L , M ) ∈ L ( B y ) for every y y y .
Pairwise compatibility gives, for every pair with q x ≠ q y q_x\ne q_y q x = q y , a Lagrangian containing both q x q_x q x and q y q_y q y , so all q x q_x q x are pairwise orthogonal and lie in one Lagrangian M M M . For q x ≠ q y q_x\ne q_y q x = q y the common output is M M M , so ϕ x − 1 ( M ) = ϕ y − 1 ( M ) \phi_x^{-1}(M)=\phi_y^{-1}(M) ϕ x − 1 ( M ) = ϕ y − 1 ( M ) . Comparing two blocks with the same q q q through a block with a different one shows that all ϕ x − 1 ( M ) \phi_x^{-1}(M) ϕ x − 1 ( M ) agree. This is a common GSC pair.
Then π x = ϕ 0 − 1 ϕ x \pi_x=\phi_0^{-1}\phi_x π x = ϕ 0 − 1 ϕ x is a permutation of the three-element set L p \mathcal{L}_p L p , and pairwise compatibility says that any two of π 0 = 1 , π 1 , π 2 , π 3 \pi_0=1,\pi_1,\pi_2,\pi_3 π 0 = 1 , π 1 , π 2 , π 3 agree at some point. By Lemma D.7 (1), all π x \pi_x π x fix a common L L L , and ( L , ϕ 0 ( L ) ) (L,\phi_0(L)) ( L , ϕ 0 ( L )) is a common GSC pair.
Then W = ⨁ x B x W=\bigoplus_x B_x W = ⨁ x B x lies in F 2 ( 2 , 2 ) \mathcal{F}_2(2,2) F 2 ( 2 , 2 ) , of finite level since every correction lies in R 4 \mathcal{R}_4 R 4 . Thus W ∈ GSC ( 4 ) W\in\operatorname{GSC}(4) W ∈ GSC ( 4 ) by Theorem G.1 . □ \square □
Proof of Theorem 10 when n = 4 n=4 n = 4 . The lemmas above combine as in Figure 9 . Let every h v h_v h v be Gaussian and generalized semi-Clifford. By Lemma F.1, L ( U ) ≠ ∅ \mathcal{L}(U)\ne\varnothing L ( U ) = ∅ or U U U has a Pauli pair, and in the latter case Lemma F.2 gives W = diag ( A , B ) W=\operatorname{diag}(A,B) W = diag ( A , B ) . If ∣ X ( K q ) ∣ = 1 |X(K_q)|=1 ∣ X ( K q ) ∣ = 1 for some q q q , Lemma F.3 applies, and otherwise Lemma F.5 applies. Their alternative (2) gives a Pauli pair commuting with and independent of ( z 1 , z 1 ) (z_1,z_1) ( z 1 , z 1 ) , so Lemma F.6 applies, and alternative (3) of Lemma F.3 is settled by Lemma F.4 . So U ∈ GSC ( 4 ) U\in\operatorname{GSC}(4) U ∈ GSC ( 4 ) whenever every h v h_v h v is Gaussian and generalized semi-Clifford. This is the hypothesis of Lemma E.1 for n = 4 n=4 n = 4 , so the first assertion of Theorem 10 holds for n = 4 n=4 n = 4 . Now let every h v h_v h v be Gaussian. By Lemma E.1 , every h v h_v h v is generalized semi-Clifford and U ∈ GSC ( 4 ) U\in\operatorname{GSC}(4) U ∈ GSC ( 4 ) . Then Proposition D.14 with m = 2 m=2 m = 2 gives U ∈ C 6 ( 4 ) U\in\mathcal{C}_6(4) U ∈ C 6 ( 4 ) , and therefore h v ∈ C 5 ( 4 ) h_v\in\mathcal{C}_5(4) h v ∈ C 5 ( 4 ) for every v v v . □ \square □
A finite level reduction
We show that, to prove C k ( 4 ) ⊆ GSC ( 4 ) \mathcal{C}_k(4)\subseteq\operatorname{GSC}(4) C k ( 4 ) ⊆ GSC ( 4 ) for every k k k , it suffices to check the single level k = 4290 k=4290 k = 4290 .
Proposition F.7. Suppose that C k ( 4 ) ⊈ GSC ( 4 ) \mathcal{C}_k(4)\not\subseteq\operatorname{GSC}(4) C k ( 4 ) ⊆ GSC ( 4 ) for some k k k . Then there is a gate U ′ ∈ C 4290 ( 4 ) ∖ GSC ( 4 ) U'\in\mathcal{C}_{4290}(4)\setminus\operatorname{GSC}(4) U ′ ∈ C 4290 ( 4 ) ∖ GSC ( 4 ) whose corrections are generalized semi-Clifford and with cond ( U ′ ) ≤ 285 \operatorname{cond}(U')\le285 cond ( U ′ ) ≤ 285 . In particular, C k ( 4 ) ⊆ GSC ( 4 ) \mathcal{C}_k(4)\subseteq\operatorname{GSC}(4) C k ( 4 ) ⊆ GSC ( 4 ) for every k k k if and only if C 4290 ( 4 ) ⊆ GSC ( 4 ) \mathcal{C}_{4290}(4)\subseteq\operatorname{GSC}(4) C 4290 ( 4 ) ⊆ GSC ( 4 ) .
Proof. Let e 1 , … , e 8 e_1,\ldots,e_8 e 1 , … , e 8 be the standard basis of V 4 V_4 V 4 and D = Z [ 1 / 2 ] / Z D=\mathbb{Z}[1/2]/\mathbb{Z} D = Z [ 1/2 ] / Z . A coordinate θ ∈ D \theta\in D θ ∈ D stands for the root of unity e 2 π i θ e^{2\pi i\theta} e 2 π i θ , and ζ a ⋅ θ = e 2 π i a ⋅ θ \zeta^{a\cdot\theta}=e^{2\pi i\,a\cdot\theta} ζ a ⋅ θ = e 2 π i a ⋅ θ for a ∈ Z 128 a\in\mathbb{Z}^{128} a ∈ Z 128 and θ ∈ D 128 \theta\in D^{128} θ ∈ D 128 . An exact Clifford gate is a product of H H H , S S S and CNOT. Its entries lie in Z [ ζ 8 , 1 / 2 ] \mathbb{Z}[\zeta_8,1/2] Z [ ζ 8 , 1/2 ] , its determinant is a root of unity of 2-power order, and every Clifford gate is a scalar multiple of one.
Let U ∈ C ( 4 ) ∖ GSC ( 4 ) U \in C(4) \setminus\operatorname{GSC}(4) U ∈ C ( 4 ) ∖ GSC ( 4 ) have least level. Its corrections have lower level, so they are generalized semi-Clifford. By Proposition D.4, h e i = λ i C 1 i Π π i D i C 2 i h_{e_i} = \lambda_i C_{1i}\Pi_{\pi_i}D_iC_{2i} h e i = λ i C 1 i Π π i D i C 2 i with exact Clifford gates C 1 i , C 2 i C_{1i}, C_{2i} C 1 i , C 2 i , a permutation π i \pi_i π i , a diagonal D i D_i D i with entries in μ 2 s \mu_{2^s} μ 2 s for some s s s , and λ i ∈ C × \lambda_i \in\mathbb{C}^{\times} λ i ∈ C × . As h e i h_{e_i} h e i is a traceless Hermitian involution, det h e i = 1 \det h_{e_i}=1 det h e i = 1 , so λ i 16 \lambda_i^{16} λ i 16 is a root of unity of 2 2 2 -power order, and we absorb λ i \lambda_i λ i into D i D_i D i . Thus h e i = g i ( θ U ) h_{e_i}=g_i(\theta_U) h e i = g i ( θ U ) for some θ U ∈ D 128 \theta_U\in D^{128} θ U ∈ D 128 , where
g i ( θ ) = C 1 i Π π i diag x ∈ F 2 4 ( e 2 π i θ i , x ) C 2 i ( 1 ≤ i ≤ 8 ) . g_i(\theta)=C_{1i}\Pi_{\pi_i}\operatorname{diag}_{x\in\mathbb{F}_2^4}\left(e^{2\pi i\theta_{i,x}}\right)C_{2i}\qquad(1\leq i\leq8). g i ( θ ) = C 1 i Π π i diag x ∈ F 2 4 ( e 2 π i θ i , x ) C 2 i ( 1 ≤ i ≤ 8 ) .
For every v ∈ V 4 v\in V_4 v ∈ V 4 , Proposition D.4 also gives exact Clifford gates C v , C v ′ C_v,C'_v C v , C v ′ and a permutation ρ v \rho_v ρ v preserving a complete affine flag F v F_v F v such that C v − 1 h v C v ′ − 1 C_v^{-1}h_vC_v'^{-1} C v − 1 h v C v ′ − 1 is monomial with permutation ρ v \rho_v ρ v . Finally, U ∉ GSC ( 4 ) U\notin\operatorname{GSC}(4) U ∈ / GSC ( 4 ) , and h u + v ≐ h u h v h_{u+v}\doteq h_uh_v h u + v ≐ h u h v , so by Lemma 3, for each of the 2,295 Lagrangians M M M (Lemma A.2) there are i i i , a basis label b b b of M M M and w ∉ M w\notin M w ∈ / M such that the coefficient c M c_M c M of P w P_w P w in h e i P b h e i h_{e_i}P_bh_{e_i} h e i P b h e i is nonzero. Fix these discrete data, and for θ ∈ D 128 \theta\in D^{128} θ ∈ D 128 consider the conditions:
(E1) g i = g i † g_i=g_i^\dagger g i = g i † , and g i g j = ± g j g i g_ig_j=\pm g_jg_i g i g j = ± g j g i with the sign of P e i P e j = ± P e j P e i P_{e_i}P_{e_j}=\pm P_{e_j}P_{e_i} P e i P e j = ± P e j P e i ;
(E2) for every v = ∑ i v i e i v=\sum_i v_ie_i v = ∑ i v i e i , the entries of C v − 1 w v C v ′ − 1 C_v^{-1}w_vC_v'^{-1} C v − 1 w v C v ′ − 1 off the permutation ρ v \rho_v ρ v vanish, where w v = g 1 v 1 ⋯ g 8 v 8 w_v=g_1^{v_1}\cdots g_8^{v_8} w v = g 1 v 1 ⋯ g 8 v 8 ;
(N) for every Lagrangian M M M , the coefficient c M c_M c M , computed from the g i g_i g i , is nonzero.
All of them hold at θ U \theta_U θ U , since w v ( θ U ) ≐ h v w_v(\theta_U)\doteq h_v w v ( θ U ) ≐ h v .
Step 2: if θ ∈ D 128 \theta\in D^{128} θ ∈ D 128 satisfies (E1), (E2) and (N), and its coordinates have order dividing 2 N 2^N 2 N with N ≥ 3 N\geq3 N ≥ 3 , then there is U ′ ∈ C 15 N + 15 ( 4 ) ∖ GSC ( 4 ) U'\in C_{15N+15}(4)\setminus\operatorname{GSC}(4) U ′ ∈ C 15 N + 15 ( 4 ) ∖ GSC ( 4 ) with generalized semi-Clifford corrections and cond ( U ′ ) ≤ N \operatorname{cond}(U')\leq N cond ( U ′ ) ≤ N .
The g i g_i g i 's are unitary, and by (E1) they are Hermitian and satisfy the commutation relations of the P e i P_{e_i} P e i . A 16-dimensional representation of these relations is unique up to unitary equivalence, so g i = U ′ P e i U ′ † g_i=U'P_{e_i}U'^\dagger g i = U ′ P e i U ′ † for a unitary U ′ U' U ′ , and h v ′ = U ′ P v U ′ † ≐ w v h'_v=U'P_vU'^\dagger\doteq w_v h v ′ = U ′ P v U ′ † ≐ w v . By (E2), C v − 1 h v ′ C v ′ − 1 C_v^{-1}h'_vC_v'^{-1} C v − 1 h v ′ C v ′ − 1 is monomial with permutation ρ v \rho_v ρ v . Its nonzero entries α \alpha α satisfy α α ‾ = 1 \alpha\overline{\alpha}=1 α α = 1 and lie in O K N [ 1 / 2 ] \mathcal{O}_{K_N}[1/2] O K N [ 1/2 ] . The prime 2 is totally ramified in K N K_N K N , and complex conjugation fixes the prime above it, so α \alpha α is an algebraic integer whose conjugates all have absolute value one. By Kronecker's theorem α \alpha α is a root of unity in K N K_N K N , so α ∈ μ 2 N \alpha\in\mu_{2^N} α ∈ μ 2 N . Hence [ C v − 1 h v ′ C v ′ − 1 ] [C_v^{-1}h'_vC_v'^{-1}] [ C v − 1 h v ′ C v ′ − 1 ] lies in the group M F v ( N ) \mathcal{M}_{F_v}(N) M F v ( N ) of the proof of Proposition D.11, which has order 2 15 N 2^{15N} 2 15 N by Lemma D.3(1). As shown there, a finite 2-group containing P ( 4 ) \mathcal{P}(4) P ( 4 ) lies in [ C c ( 4 ) ] [\mathcal{C}_c(4)] [ C c ( 4 )] , where c c c is its nilpotency class, here at most 15 N + 14 15N+14 15 N + 14 . Therefore every h v ′ h'_v h v ′ lies in C 15 N + 14 ( 4 ) C_{15N+14}(4) C 15 N + 14 ( 4 ) and is generalized semi-Clifford, and U ′ ∈ C 15 N + 15 ( 4 ) U'\in C_{15N+15}(4) U ′ ∈ C 15 N + 15 ( 4 ) . By (N), no A M A_M A M is normalized by all g i g_i g i , so U ′ ∉ GSC ( 4 ) U'\notin\operatorname{GSC}(4) U ′ ∈ / GSC ( 4 ) by Lemma 3. Finally, the solutions of the linear system X P e i = g i X XP_{e_i}=g_iX X P e i = g i X , 1 ≤ i ≤ 8 1\leq i\leq8 1 ≤ i ≤ 8 , which has coefficients in K N K_N K N , are the multiples of U ′ U' U ′ , so cond ( U ′ ) ≤ N \operatorname{cond}(U')\leq N cond ( U ′ ) ≤ N .
Each entry or coefficient in (E1), (E2), and (N) is a sum ∑ t c t ζ a t ⋅ θ \sum_t c_t\zeta^{a_t\cdot\theta} ∑ t c t ζ a t ⋅ θ with distinct a t ∈ Z 128 a_t\in\mathbb{Z}^{128} a t ∈ Z 128 and c t ∈ K 3 c_t\in K_3 c t ∈ K 3 . Roots of unity of 2 2 2 -power order in distinct cosets of μ 8 \mu_8 μ 8 are linearly independent over K 3 K_3 K 3 , since ζ 2 m j \zeta_{2^m}^j ζ 2 m j , 0 ≤ j < 2 m − 3 0\leq j<2^{m-3} 0 ≤ j < 2 m − 3 , form a basis of K m K_m K m over K 3 K_3 K 3 . Group the terms of each sum into blocks of ζ a t ⋅ θ \zeta^{a_t\cdot\theta} ζ a t ⋅ θ , fix a term t 0 t_0 t 0 in each block, and let ζ ( a t − a t 0 ) ⋅ θ = ζ 8 ℓ t \zeta^{(a_t-a_{t_0})\cdot\theta}=\zeta_8^{\ell_t} ζ ( a t − a t 0 ) ⋅ θ = ζ 8 ℓ t . Let S ⊆ D 128 S\subseteq D^{128} S ⊆ D 128 be the set of θ \theta θ with
( a t − a t 0 ) ⋅ θ = ℓ t / 8 for all blocks , 8 ( a t − a t ′ ) ⋅ θ ≠ 0 for t , t ′ in distinct blocks of a sum in (N) . (a_t-a_{t_0})\cdot\theta=\ell_t/8\quad\text{for all blocks},\qquad8(a_t-a_{t'})\cdot\theta\ne0\quad\text{for }t,t'\text{ in distinct blocks of a sum in (N)}. ( a t − a t 0 ) ⋅ θ = ℓ t /8 for all blocks , 8 ( a t − a t ′ ) ⋅ θ = 0 for t , t ′ in distinct blocks of a sum in (N) .
For θ ∈ S \theta\in S θ ∈ S , each block sum equals the block sum at θ U \theta_U θ U times a root of unity. So the sums in (E1) and (E2) still vanish, and each sum in (N) still has a nonzero block in a coset of its own, so it is nonzero. Thus every point of S S S satisfies (E1), (E2) and (N), and θ U ∈ S \theta_U\in S θ U ∈ S .
The entries of g i g_i g i are linear in the 16 variables e 2 π i θ i , x e^{2\pi i\theta_{i,x}} e 2 π i θ i , x , and those of g i † g_i^\dagger g i † in their inverses. In (E1), differences of exponents have norm at most 2. In (E2), w v w_v w v contains each g i g_i g i at most once, so a difference has norm at most 2 \sqrt{2} 2 in each of the eight groups of variables, and at most 4 in total. In (N), g i P b g i † g_iP_bg_i^\dagger g i P b g i † has the 241 exponents θ i , x − θ i , y \theta_{i,x}-\theta_{i,y} θ i , x − θ i , y , x ≠ y x\ne y x = y , so differences have norm at most 2 2 2\sqrt{2} 2 2 , and the 2,295 sums give at most 2 , 295 ( 241 2 ) < 2 26 2,295\binom{241}{2}<2^{26} 2 , 295 ( 2 241 ) < 2 26 disequalities.
Write the equalities as A θ = b A\theta=b A θ = b with A A A an integer matrix of rank r ≤ 128 r\leq128 r ≤ 128 and b b b with entries in 1 8 Z / Z \frac{1}{8}\mathbb{Z}/\mathbb{Z} 8 1 Z / Z . Let A = P diag ( d 1 , … , d r , 0 , … , 0 ) Q A=P\operatorname{diag}(d_1,\ldots,d_r,0,\ldots,0)Q A = P diag ( d 1 , … , d r , 0 , … , 0 ) Q be its Smith normal form, with P , Q P,Q P , Q unimodular, and let y = Q θ y=Q\theta y = Qθ . The equalities prescribe d j y j d_jy_j d j y j for j ≤ r j\leq r j ≤ r and leave y r + 1 , … , y 128 y_{r+1},\ldots,y_{128} y r + 1 , … , y 128 free. At θ U \theta_U θ U , each y j y_j y j with j ≤ r j\leq r j ≤ r has order dividing 2 3 + ν 2 ( d j ) 2^{3+\nu_2(d_j)} 2 3 + ν 2 ( d j ) , and ∑ j ν 2 ( d j ) ≤ log 2 δ r ( A ) ≤ r log 2 4 ≤ 256 \sum_j\nu_2(d_j)\leq\log_2\delta_r(A)\leq r\log_2 4\leq256 ∑ j ν 2 ( d j ) ≤ log 2 δ r ( A ) ≤ r log 2 4 ≤ 256 by Hadamard's inequality, where δ j \delta_j δ j is the gcd of the nonzero j × j j\times j j × j minors of A A A . minors. Keep these coordinates of θ U \theta_U θ U . Every disequality that is constant in the free coordinates then still holds. Another disequality λ ⋅ θ ≠ 0 \lambda\cdot\theta\ne0 λ ⋅ θ = 0 becomes q ⋅ ( y r + 1 , … , y 128 ) ≠ c q \cdot(y_{r+1},\ldots,y_{128}) \ne c q ⋅ ( y r + 1 , … , y 128 ) = c for an integer vector q ≠ 0 q \ne0 q = 0 , and r ≤ 127 r \le127 r ≤ 127 , and
ν 2 ( gcd q ) = ν 2 δ r + 1 ( ( A λ ) ) − ν 2 δ r ( A ) ≤ log 2 ( 16 2 ⋅ 4 r ) < 259 , \nu_2(\gcd q)=\nu_2\delta_{r+1}\left(\binom{A}{\lambda}\right)-\nu_2\delta_r(A)\le\log_2(16\sqrt{2}\cdot4^r)<259, ν 2 ( g cdq ) = ν 2 δ r + 1 ( ( λ A ) ) − ν 2 δ r ( A ) ≤ log 2 ( 16 2 ⋅ 4 r ) < 259 ,
so ν 2 ( gcd q ) ≤ 258 \nu_2(\gcd q)\le258 ν 2 ( g cdq ) ≤ 258 . On the grid of free coordinates of order dividing 2 285 2^{285} 2 285 , such a disequality fails on a proportion at most 2 258 − 285 = 2 − 27 2^{258-285}=2^{-27} 2 258 − 285 = 2 − 27 of the points. There are fewer than 2 26 2^{26} 2 26 of them, so some grid point satisfies all, and the resulting θ = Q − 1 y \theta=Q^{-1}y θ = Q − 1 y has coordinates of order dividing 2 max { 259 , 285 } = 2 285 2^{\max\{259,285\}}=2^{285} 2 m a x { 259 , 285 } = 2 285 .
Steps 2 and 5 with N = 285 N=285 N = 285 give U ′ ∈ C 4290 ( 4 ) ∖ GSC ( 4 ) U' \in C_{4290}(4) \setminus\operatorname{GSC}(4) U ′ ∈ C 4290 ( 4 ) ∖ GSC ( 4 ) with generalized semi-Clifford corrections and cond ( U ′ ) ≤ 285 \operatorname{cond}(U')\le285 cond ( U ′ ) ≤ 285 . In the last assertion the forward direction is trivial, and the converse follows from the first assertion.
Beyond generalized semi-Clifford
In this section, we prove Lemma 13 and Proposition 14 and construct gates outside GSC of every exact level k ≥ 5 k\ge5 k ≥ 5 on every n ≥ 5 n\ge5 n ≥ 5 qubits. We use the sets F ( n c , n t ) \mathcal{F}(n_c,n_t) F ( n c , n t ) and F j ( n c , n t ) \mathcal{F}_j(n_c,n_t) F j ( n c , n t ) defined in Section V with n = n c + n t n=n_c+n_t n = n c + n t . For U ∈ F 2 ( n c , n t ) U\in\mathcal{F}_2(n_c,n_t) U ∈ F 2 ( n c , n t ) , Lemma 4(1) allows us to drop the Clifford factors C 1 , C 2 C_1,C_2 C 1 , C 2 and write
U = ∑ x ∈ F 2 n c ∣ π ( x ) ⟩ ⟨ x ∣ ⊗ V x (7) U=\sum_{x\in\mathbb{F}_2^{n_c}}|\pi(x)\rangle\langle x|\otimes V_x \tag*{(7)} U = x ∈ F 2 n c ∑ ∣ π ( x )⟩ ⟨ x ∣ ⊗ V x (7)
with a permutation π \pi π of F 2 n c \mathbb{F}_2^{n_c} F 2 n c and Clifford gates V x V_x V x . Let S x = γ V x ∈ Sp ( V n t ) S_x=\gamma_{V_x}\in\operatorname{Sp}(V_{n_t}) S x = γ V x ∈ Sp ( V n t ) be the symplectic action of V x V_x V x , so that V x P v V x † = P S x v V_xP_vV_x^\dagger=P_{S_xv} V x P v V x † = P S x v .
Proof of Lemma 13. Let R ≤ V n R\le V_n R ≤ V n be the span of the labels of Z 1 , … , Z n c Z_1,\ldots,Z_{n_c} Z 1 , … , Z n c , and for x ∈ F 2 n c x\in\mathbb{F}_2^{n_c} x ∈ F 2 n c let Q x = ∣ x ⟩ ⟨ x ∣ ⊗ I Q_x=|x\rangle\langle x|\otimes I Q x = ∣ x ⟩ ⟨ x ∣ ⊗ I . The Q x Q_x Q x are pairwise orthogonal projections with sum I I I , and they span A R A_R A R . Hence every projection in A R A_R A R is ∑ y ∈ Y Q y \sum_{y\in Y}Q_y ∑ y ∈ Y Q y for some Y ⊆ F 2 n c Y\subseteq\mathbb{F}_2^{n_c} Y ⊆ F 2 n c , and it has rank 2 n t ∣ Y ∣ 2^{n_t}|Y| 2 n t ∣ Y ∣ . Recall that γ C \gamma_C γ C is symplectic and C A S C † = A γ C S CA_SC^\dagger=A_{\gamma_C S} C A S C † = A γ C S for C ∈ C 2 ( n ) C\in C_2(n) C ∈ C 2 ( n ) and S ≤ V n S\le V_n S ≤ V n .
We first show that every U ∈ F ( n c , n t ) U\in\mathcal{F}(n_c,n_t) U ∈ F ( n c , n t ) satisfies the condition. Write U = C 1 M C 2 U=C_1MC_2 U = C 1 M C 2 with C 1 , C 2 ∈ C 2 ( n ) C_1,C_2\in C_2(n) C 1 , C 2 ∈ C 2 ( n ) and M = ∑ x ∣ π ( x ) ⟩ ⟨ x ∣ ⊗ V x M=\sum_x|\pi(x)\rangle\langle x|\otimes V_x M = ∑ x ∣ π ( x )⟩ ⟨ x ∣ ⊗ V x . Then M Q x M † = Q π ( x ) MQ_xM^\dagger=Q_{\pi(x)} M Q x M † = Q π ( x ) for every x x x , so M A R M † = A R MA_RM^\dagger=A_R M A R M † = A R . The subspaces S = γ C 2 R S=\gamma_{C_2}R S = γ C 2 R and T = γ C 1 R T=\gamma_{C_1}R T = γ C 1 R are isotropic of dimension n c n_c n c , and
U A S U † = C 1 M A R M † C 1 † = C 1 A R C 1 † = A T . UA_SU^\dagger=C_1MA_RM^\dagger C_1^\dagger=C_1A_RC_1^\dagger=A_T. U A S U † = C 1 M A R M † C 1 † = C 1 A R C 1 † = A T .
Conversely, let U ∈ C ( n ) U\in C(n) U ∈ C ( n ) satisfy U A S U † = A T UA_SU^\dagger=A_T U A S U † = A T for isotropic subspaces S , T ≤ V n S,T\le V_n S , T ≤ V n of dimension n c n_c n c . A basis of an isotropic subspace extends to a symplectic basis of V n V_n V n , so Sp ( V n ) \operatorname{Sp}(V_n) Sp ( V n ) acts transitively on the isotropic subspaces of dimension n c n_c n c . Since every binary symplectic map is induced by a Clifford gate, there are C , C ′ ∈ C 2 ( n ) C,C'\in C_2(n) C , C ′ ∈ C 2 ( n ) with γ C S = R \gamma_C S=R γ C S = R and γ C ′ T = R \gamma_{C'}T=R γ C ′ T = R . Then M = C ′ U C † M=C'UC^\dagger M = C ′ U C † satisfies M A R M † = A R MA_RM^\dagger=A_R M A R M † = A R . For each x x x , M Q x M † MQ_xM^\dagger M Q x M † is a projection in A R A_R A R of rank 2 n t 2^{n_t} 2 n t , so M Q x M † = Q π ( x ) MQ_xM^\dagger=Q_{\pi(x)} M Q x M † = Q π ( x ) for some π ( x ) ∈ F 2 n c \pi(x)\in\mathbb{F}_2^{n_c} π ( x ) ∈ F 2 n c . For x ≠ x ′ x\ne x' x = x ′ , the projections M Q x M † MQ_xM^\dagger M Q x M † and M Q x ′ M † MQ_{x'}M^\dagger M Q x ′ M † are orthogonal, so π \pi π is a permutation of F 2 n c \mathbb{F}_2^{n_c} F 2 n c . Hence M Q x = Q π ( x ) M MQ_x=Q_{\pi(x)}M M Q x = Q π ( x ) M , and the unitary M M M maps the range ∣ x ⟩ ⊗ C 2 n t |x\rangle\otimes\mathbb{C}^{2^{n_t}} ∣ x ⟩ ⊗ C 2 n t of Q x Q_x Q x onto the range ∣ π ( x ) ⟩ ⊗ C 2 n t |\pi(x)\rangle\otimes\mathbb{C}^{2^{n_t}} ∣ π ( x )⟩ ⊗ C 2 n t of Q π ( x ) Q_{\pi(x)} Q π ( x ) . Therefore
M = ∑ x Q π ( x ) M Q x = ∑ x ∣ π ( x ) ⟩ ⟨ x ∣ ⊗ V x , V x = ( ⟨ π ( x ) ∣ ⊗ I ) M ( ∣ x ⟩ ⊗ I ) ∈ U ( 2 n t ) , M=\sum_x Q_{\pi(x)}MQ_x=\sum_x|\pi(x)\rangle\langle x|\otimes V_x,\qquad V_x=(\langle\pi(x)|\otimes I)M(|x\rangle\otimes I)\in U(2^{n_t}), M = x ∑ Q π ( x ) M Q x = x ∑ ∣ π ( x )⟩ ⟨ x ∣ ⊗ V x , V x = (⟨ π ( x ) ∣ ⊗ I ) M ( ∣ x ⟩ ⊗ I ) ∈ U ( 2 n t ) ,
and U = C ′ † M C U=C'^\dagger MC U = C ′ † M C lies in F ( n c , n t ) \mathcal{F}(n_c,n_t) F ( n c , n t ) .
Proof of Proposition 14
Theorem G.1. Let U = C 1 ( ∑ x ∣ π ( x ) ⟩ ⟨ x ∣ ⊗ V x ) C 2 ∈ F 2 ( n c , n t ) U=C_1\left(\sum_x|\pi(x)\rangle\langle x|\otimes V_x\right)C_2\in\mathcal{F}_2(n_c,n_t) U = C 1 ( ∑ x ∣ π ( x )⟩ ⟨ x ∣ ⊗ V x ) C 2 ∈ F 2 ( n c , n t ) , and let S x S_x S x be the symplectic action of V x V_x V x .
U ∈ GSC ( n ) U\in\operatorname{GSC}(n) U ∈ GSC ( n ) if and only if there are Lagrangians L , L ′ L,L' L , L ′ of V n t V_{n_t} V n t with S x L = L ′ S_xL=L' S x L = L ′ for every x ∈ F 2 n c x\in\mathbb{F}_2^{n_c} x ∈ F 2 n c .
If n c ≤ 1 n_c\le1 n c ≤ 1 or n t ≤ 2 n_t\le2 n t ≤ 2 , then U ∈ GSC ( n ) U\in\operatorname{GSC}(n) U ∈ GSC ( n ) .
If n c ≥ 2 n_c\ge2 n c ≥ 2 and n t ≥ 3 n_t\ge3 n t ≥ 3 , then F 2 ( n c , n t ) ⊈ GSC ( n ) \mathcal{F}_2(n_c,n_t)\not\subseteq\operatorname{GSC}(n) F 2 ( n c , n t ) ⊆ GSC ( n ) .
In particular, (2) and (3) imply Proposition 14.
Proof. By Lemma 4(1), we may assume C 1 = C 2 = I C_1=C_2=I C 1 = C 2 = I , which changes neither the blocks nor the level.
Part (1). Let R ≤ V n R\leq V_n R ≤ V n be spanned by the Z Z Z -labels of the n c n_c n c control qubits. For a Lagrangian L L L of V n t V_{n_t} V n t , the space R ⊕ L R\oplus L R ⊕ L is a Lagrangian of V n V_n V n , and A R ⊕ L A_{R\oplus L} A R ⊕ L is spanned by the operators ∣ x ⟩ ⟨ x ∣ ⊗ P v \lvert x\rangle\langle x\rvert\otimes P_v ∣ x ⟩ ⟨ x ∣ ⊗ P v with x ∈ F 2 n c x\in\mathbb{F}_2^{n_c} x ∈ F 2 n c and v ∈ L v\in L v ∈ L . Since
U ( ∣ x ⟩ ⟨ x ∣ ⊗ P v ) U † = ∣ π ( x ) ⟩ ⟨ π ( x ) ∣ ⊗ V x P v V x † = ∣ π ( x ) ⟩ ⟨ π ( x ) ∣ ⊗ P S x v , U(\lvert x\rangle\langle x\rvert\otimes P_v)U^\dagger=\lvert\pi(x)\rangle\langle\pi(x)\rvert\otimes V_xP_vV_x^\dagger=\lvert\pi(x)\rangle\langle\pi(x)\rvert\otimes P_{S_xv}, U (∣ x ⟩ ⟨ x ∣ ⊗ P v ) U † = ∣ π ( x )⟩ ⟨ π ( x )∣ ⊗ V x P v V x † = ∣ π ( x )⟩ ⟨ π ( x )∣ ⊗ P S x v ,
the condition S x L = L ′ S_xL=L' S x L = L ′ for every x x x gives U A R ⊕ L U † ⊆ A R ⊕ L ′ UA_{R\oplus L}U^\dagger\subseteq A_{R\oplus L'} U A R ⊕ L U † ⊆ A R ⊕ L ′ , with equality because both algebras have dimension 2 n 2^n 2 n . Hence U ∈ G S C ( n ) U\in\mathrm{GSC}(n) U ∈ GSC ( n ) by Lemma 2.
Conversely, let ( S , T ) ∈ L ( U ) (S,T)\in\mathcal{L}(U) ( S , T ) ∈ L ( U ) . Since U ( ∣ x ⟩ ⟨ x ∣ ⊗ I ) U † = ∣ π ( x ) ⟩ ⟨ π ( x ) ∣ ⊗ I U(\lvert x\rangle\langle x\rvert\otimes I)U^\dagger=\lvert\pi(x)\rangle\langle\pi(x)\rvert\otimes I U (∣ x ⟩ ⟨ x ∣ ⊗ I ) U † = ∣ π ( x )⟩ ⟨ π ( x )∣ ⊗ I , we have U A R U † = A R UA_RU^\dagger=A_R U A R U † = A R , and Lemma A.4 , applied to ( R , R ) (R,R) ( R , R ) and ( S , T ) (S,T) ( S , T ) , gives a GSC pair of U U U whose two Lagrangians contain R R R . A Lagrangian N N N with R ≤ N ≤ R ⊥ = R ⊕ V n t R\leq N\leq R^\perp=R\oplus V_{n_t} R ≤ N ≤ R ⊥ = R ⊕ V n t equals R ⊕ ( N ∩ V n t ) R\oplus(N\cap V_{n_t}) R ⊕ ( N ∩ V n t ) , as in the proof of Lemma D.2 , so this pair is ( R ⊕ L , R ⊕ L ′ ) (R\oplus L,R\oplus L') ( R ⊕ L , R ⊕ L ′ ) for Lagrangians L , L ′ L,L' L , L ′ of V n t V_{n_t} V n t . By the display above, ∣ π ( x ) ⟩ ⟨ π ( x ) ∣ ⊗ P S x v \lvert\pi(x)\rangle\langle\pi(x)\rvert\otimes P_{S_xv} ∣ π ( x )⟩ ⟨ π ( x )∣ ⊗ P S x v lies in A R ⊕ L ′ A_{R\oplus L'} A R ⊕ L ′ for every x x x and v ∈ L v\in L v ∈ L , so S x L ⊆ L ′ S_xL\subseteq L' S x L ⊆ L ′ , with equality by dimension.
Parts (2) and (3). A Sylow coset is a right coset P g Pg P g of a Sylow 2-subgroup P P P of Sp ( 4 , 2 ) ≅ S 6 \operatorname{Sp}(4,2)\cong S_6 Sp ( 4 , 2 ) ≅ S 6 . We split into three cases according to ( n c , n t ) (n_c,n_t) ( n c , n t ) .
If n t = 0 n_t=0 n t = 0 , take L = L ′ = 0 L=L'=0 L = L ′ = 0 , and if n c = 0 n_c=0 n c = 0 , take any L L L and L ′ = S 0 L L'=S_0L L ′ = S 0 L . If n c = 1 n_c=1 n c = 1 , the gate ( X π ( 0 ) ⊗ I ) U ( I ⊗ V 0 † ) = diag ( I , V 1 V 0 † ) (X^{\pi(0)}\otimes I)U(I\otimes V_0^\dagger)=\operatorname{diag}(I,V_1V_0^\dagger) ( X π ( 0 ) ⊗ I ) U ( I ⊗ V 0 † ) = diag ( I , V 1 V 0 † ) has finite level k k k . By Proposition A.5, ( V 1 V 0 † ) 2 k − 2 ∈ μ 4 P ( n t ) (V_1V_0^\dagger)^{2^k-2}\in\mu_4P(n_t) ( V 1 V 0 † ) 2 k − 2 ∈ μ 4 P ( n t ) , so S 1 S 0 − 1 S_1S_0^{-1} S 1 S 0 − 1 has 2-power order. The cyclic 2-group it generates fixes a Lagrangian L ′ L' L ′ , since the number of Lagrangians is odd (Lemma A.2 ), and L = S 0 − 1 L ′ L=S_0^{-1}L' L = S 0 − 1 L ′ gives S 0 L = S 1 L = L ′ S_0L=S_1L=L' S 0 L = S 1 L = L ′ . Part (1) applies.
For n t = 1 n_t=1 n t = 1 , tensoring with the identity on one additional target qubit gives U ⊗ I ∈ F 2 ( n c , 2 ) U\otimes I\in\mathcal{F}_2(n_c,2) U ⊗ I ∈ F 2 ( n c , 2 ) , which is generalized semi-Clifford exactly when U U U is, by Lemma 4(2). We may therefore take n t = 2 n_t=2 n t = 2 . We show that the S x S_x S x lie in one Sylow coset P g Pg P g . Then P P P fixes a Lagrangian L ′ L' L ′ , since the number of Lagrangians is odd, and L = g − 1 L ′ L=g^{-1}L' L = g − 1 L ′ gives S x L = L ′ S_xL=L' S x L = L ′ for every x x x , so Part (1) applies.
The proof is by induction on the level for all gates of the form (G.1) with the same n c n_c n c and n t = 2 n_t=2 n t = 2 at once. At level one, the blocks are Paulis, so every S x = I S_x=I S x = I . In the induction step, we first show that each set T a = { S x + a S x − 1 : x ∈ F 2 n c } \mathcal{T}_a=\{S_{x+a}S_x^{-1}:x\in\mathbb{F}_2^{n_c}\} T a = { S x + a S x − 1 : x ∈ F 2 n c } generates a 2-group. The correction
U ( X a ⊗ I ) U † = ∑ x ∣ π ( x + a ) ⟩ ⟨ π ( x ) ∣ ⊗ V x + a V x † U(X^a\otimes I)U^\dagger=\sum_x\lvert\pi(x+a)\rangle\langle\pi(x)\rvert\otimes V_{x+a}V_x^\dagger U ( X a ⊗ I ) U † = x ∑ ∣ π ( x + a )⟩ ⟨ π ( x )∣ ⊗ V x + a V x †
is again of the form (G.1), with the permutation x ↦ π ( π − 1 ( x ) + a ) x\mapsto\pi(\pi^{-1}(x)+a) x ↦ π ( π − 1 ( x ) + a ) and lower level, and the actions of its blocks form T a \mathcal{T}_a T a . By induction, T a \mathcal{T}_a T a lies in one Sylow coset, so H = ⟨ s τ − 1 : s ∈ T a ⟩ H=\langle s\tau^{-1}:s\in\mathcal{T}_a\rangle H = ⟨ s τ − 1 : s ∈ T a ⟩ is a 2-group for fixed τ ∈ T a \tau\in\mathcal{T}_a τ ∈ T a . Since T a \mathcal{T}_a T a is inverse-closed, τ − 2 ∈ H \tau^{-2}\in H τ − 2 ∈ H and
τ ( s τ − 1 ) − 1 τ − 1 = ( s − 1 τ − 1 ) − 1 τ − 2 ∈ H . \tau(s\tau^{-1})^{-1}\tau^{-1}=(s^{-1}\tau^{-1})^{-1}\tau^{-2}\in H. τ ( s τ − 1 ) − 1 τ − 1 = ( s − 1 τ − 1 ) − 1 τ − 2 ∈ H .
Thus τ \tau τ normalizes H H H and ⟨ T a ⟩ = H ⟨ τ ⟩ \langle\mathcal{T}_a\rangle=H\langle\tau\rangle ⟨ T a ⟩ = H ⟨ τ ⟩ is a 2-group.
Next let { x , x + a , x + b , x + a + b } \{x,x+a,x+b,x+a+b\} { x , x + a , x + b , x + a + b } be an affine plane, and let α = S x + a S x − 1 \alpha=S_{x+a}S_x^{-1} α = S x + a S x − 1 , β = S x + b S x − 1 \beta=S_{x+b}S_x^{-1} β = S x + b S x − 1 , γ = S x + a + b S x − 1 \gamma=S_{x+a+b}S_x^{-1} γ = S x + a + b S x − 1 . Then γ β − 1 α \gamma\beta^{-1}\alpha γ β − 1 α , α ∈ T a \alpha\in\mathcal{T}_a α ∈ T a , β ∈ T b \beta\in\mathcal{T}_b β ∈ T b and α γ − 1 ∈ T a + b \alpha\gamma^{-1}\in\mathcal{T}_{a+b} α γ − 1 ∈ T a + b , so ⟨ α , γ β − 1 ⟩ \langle\alpha,\gamma\beta^{-1}\rangle ⟨ α , γ β − 1 ⟩ , ⟨ β , γ α − 1 ⟩ \langle\beta,\gamma\alpha^{-1}\rangle ⟨ β , γ α − 1 ⟩ , ⟨ γ , β α − 1 ⟩ \langle\gamma,\beta\alpha^{-1}\rangle ⟨ γ , β α − 1 ⟩ lie in the 2-groups ⟨ T a ⟩ \langle\mathcal{T}_a\rangle ⟨ T a ⟩ , ⟨ T b ⟩ \langle\mathcal{T}_b\rangle ⟨ T b ⟩ and ⟨ T a + b ⟩ \langle\mathcal{T}_{a+b}\rangle ⟨ T a + b ⟩ . For every n c n_c n c , α , β , γ ∈ Sp ( 4 , 2 ) ≅ S 6 \alpha,\beta,\gamma\in\operatorname{Sp}(4,2)\cong S_6 α , β , γ ∈ Sp ( 4 , 2 ) ≅ S 6 , a group of order 720, in which a subgroup is a 2-group exactly when it lies in one of the 45 Sylow 2-subgroups. Checking all triples gives the following.
(C16) A 2-group criterion in S 6 S_6 S 6
Let a , b , c ∈ Sp ( 4 , 2 ) ≅ S 6 a,b,c\in\operatorname{Sp}(4,2)\cong S_6 a , b , c ∈ Sp ( 4 , 2 ) ≅ S 6 . If ⟨ a , c b − 1 ⟩ \langle a,cb^{-1}\rangle ⟨ a , c b − 1 ⟩ , ⟨ b , c a − 1 ⟩ \langle b,ca^{-1}\rangle ⟨ b , c a − 1 ⟩ and ⟨ c , b a − 1 ⟩ \langle c,ba^{-1}\rangle ⟨ c , b a − 1 ⟩ are 2-groups, then so is ⟨ a , b , c ⟩ \langle a,b,c\rangle ⟨ a , b , c ⟩ .
Code. certificates/s6-two-group-criterion in https://github.com/numberinggeometry/clifford-hierarchy-plane-certificate
By (C16), ⟨ α , β , γ ⟩ \langle\alpha,\beta,\gamma\rangle ⟨ α , β , γ ⟩ is a 2-group, so the four actions S x , α S x , β S x , γ S x S_x,\alpha S_x,\beta S_x,\gamma S_x S x , α S x , β S x , γ S x on the plane lie in one Sylow coset.
Finally, every three points of F 2 n c \mathbb{F}_2^{n_c} F 2 n c lie in an affine plane, so every subset of F = { S x : x ∈ F 2 n c } F=\{S_x:x\in\mathbb{F}_2^{n_c}\} F = { S x : x ∈ F 2 n c } with at most three elements lies in a Sylow coset. For every n c n_c n c , F ⊆ Sp ( 4 , 2 ) ≅ S 6 F\subseteq\operatorname{Sp}(4,2)\cong S_6 F ⊆ Sp ( 4 , 2 ) ≅ S 6 . Right multiplication preserves Sylow cosets, so we may assume 1 ∈ F 1\in F 1 ∈ F . Then F ∖ { 1 } F\setminus\{1\} F ∖ { 1 } is a clique of the graph on the 255 nonidentity elements of 2-power order, joined when they lie in a common Sylow 2-subgroup, so it lies in one of the finitely many maximal cliques, and listing them gives the following.
(C17) Sylow cosets in S 6 S_6 S 6 and three-element subsets. Let F ⊆ Sp ( 4 , 2 ) ≅ S 6 F \subseteq\operatorname{Sp}(4,2) \cong S_6 F ⊆ Sp ( 4 , 2 ) ≅ S 6 . If every subset of F F F with at most three elements lies in a right coset P g Pg P g of a Sylow 2 2 2 -subgroup P P P , then so does F F F .
Code. certificates/s6-sylow-cosets-and-three-element-subsets in https://github.com/numbergeometry/clifford-hierarchy-plane-certificate
By (C17), F F F lies in one Sylow coset.
By Theorem G.3 with k = n = 5 k=n=5 k = n = 5 , the gate U E 6 ∈ F 2 ( 2 , 3 ) U_{E_6} \in\mathcal{F}_2(2,3) U E 6 ∈ F 2 ( 2 , 3 ) is not generalized semi-Clifford. Letting it act as the identity on n c − 2 n_c-2 n c − 2 further control qubits and n t − 3 n_t-3 n t − 3 further target qubits gives a gate of F 2 ( n c , n t ) \mathcal{F}_2(n_c,n_t) F 2 ( n c , n t ) for every n c ≥ 2 n_c \ge2 n c ≥ 2 and n t ≥ 3 n_t \ge3 n t ≥ 3 , which is not generalized semi-Clifford by Lemma 4(2).
Constructing non-generalized semi-Clifford gates
For a Hermitian Pauli P p P_p P p let
R p = I + P p 2 + i I − P p 2 , (8) R_p = \frac{I+P_p}{2} + i\frac{I-P_p}{2}, \tag*{(8)} R p = 2 I + P p + i 2 I − P p , (8)
a Clifford gate with entries in Z [ i , 1 / 2 ] \mathbb{Z}[i,1/2] Z [ i , 1/2 ] whose symplectic action is the transvection t p ( v ) = v + ω ( v , p ) p t_p(v)=v+\omega(v,p)p t p ( v ) = v + ω ( v , p ) p . On three qubits take
( P p 0 , … , P p 5 ) = ( Z 0 , X 0 , Z 0 Z 1 , X 1 , Z 1 Z 2 , X 1 X 2 ) , (P_{p_0},\ldots,P_{p_5})=(Z_0,X_0,Z_0Z_1,X_1,Z_1Z_2,X_1X_2), ( P p 0 , … , P p 5 ) = ( Z 0 , X 0 , Z 0 Z 1 , X 1 , Z 1 Z 2 , X 1 X 2 ) ,
in which P p i P_{p_i} P p i and P p j P_{p_j} P p j anticommute exactly for i j ∈ { 01 , 12 , 23 , 34 , 25 } ij\in\{01,12,23,34,25\} ij ∈ { 01 , 12 , 23 , 34 , 25 } , the edges of the Dynkin diagram of E 6 E_6 E 6 . Let A ^ = R p 1 R p 2 R p 3 R p 4 R p 5 \widehat{A}=R_{p_1}R_{p_2}R_{p_3}R_{p_4}R_{p_5} A = R p 1 R p 2 R p 3 R p 4 R p 5 and B ^ = R p 0 R p 2 \widehat{B}=R_{p_0}R_{p_2} B = R p 0 R p 2 , with symplectic actions A = t p 1 ⋯ t p 5 A=t_{p_1}\cdots t_{p_5} A = t p 1 ⋯ t p 5 and B = t p 0 t p 2 B=t_{p_0}t_{p_2} B = t p 0 t p 2 . For a root of unity ξ \xi ξ , define the five-qubit gate with control qubits c , t c,t c , t
U ξ = ∑ c , t ∈ F 2 ∣ c t ⟩ ⟨ c t ∣ ⊗ ( ξ A ^ ) c B ^ t , U E 6 = U 1 . (9) U_\xi=\sum_{c,t\in\mathbb{F}_2}|ct\rangle\langle ct|\otimes(\xi\widehat{A})^c\widehat{B}^t,\qquad U_{E_6}=U_1. \tag*{(9)} U ξ = c , t ∈ F 2 ∑ ∣ c t ⟩ ⟨ c t ∣ ⊗ ( ξ A ) c B t , U E 6 = U 1 . (9)
Lemma G.2. Let f ∈ C a ( m ) f\in\mathcal{C}_a(m) f ∈ C a ( m ) with a ≥ 1 a\ge1 a ≥ 1 satisfy f Z c f † = ± Z c fZ_cf^\dagger=\pm Z_c f Z c f † = ± Z c for a qubit c c c , λ \lambda λ a root of unity of order 2 ℓ 2^\ell 2 ℓ , and Δ λ = diag ( λ , 1 ) \Delta_\lambda=\operatorname{diag}(\lambda,1) Δ λ = diag ( λ , 1 ) act on the qubit c c c . Then f Δ λ ∈ C max ( a , ℓ ) ( m ) f\Delta_\lambda\in\mathcal{C}_{\max(a,\ell)}(m) f Δ λ ∈ C m a x ( a , ℓ ) ( m ) .
Proof. We use induction on N = max ( a , ℓ ) N=\max(a,\ell) N = max ( a , ℓ ) . If N ≤ 2 N\le2 N ≤ 2 , then f f f and Δ λ \Delta_\lambda Δ λ lie in the group C N ( m ) \mathcal{C}_N(m) C N ( m ) , and so does f Δ λ f\Delta_\lambda f Δ λ . Let N ≥ 3 N\ge3 N ≥ 3 and let Q Q Q be a Hermitian Pauli. If Q Q Q commutes with Z c Z_c Z c , then so does Δ λ \Delta_\lambda Δ λ , and the correction of f Δ λ f\Delta_\lambda f Δ λ at Q Q Q is f Q f † ∈ C N − 1 ( m ) fQf^\dagger\in\mathcal{C}_{N-1}(m) f Q f † ∈ C N − 1 ( m ) . Otherwise, Q Q Q swaps the two eigenspaces of Z c Z_c Z c , so Q † Δ λ Q = diag ( 1 , λ ) Q^\dagger\Delta_\lambda Q=\operatorname{diag}(1,\lambda) Q † Δ λ Q = diag ( 1 , λ ) and
Δ λ Q Δ λ † = Q diag ( λ ‾ , λ ) = λ Q Δ λ − 2 , ( f Δ λ ) Q ( f Δ λ ) † = λ ( f Q f † ) ( f Δ λ − 2 f † ) . \Delta_\lambda Q\Delta_\lambda^\dagger=Q\operatorname{diag}(\overline{\lambda},\lambda)=\lambda Q\Delta_\lambda^{-2},\qquad(f\Delta_\lambda)Q(f\Delta_\lambda)^\dagger=\lambda(fQf^\dagger)(f\Delta_\lambda^{-2}f^\dagger). Δ λ Q Δ λ † = Q diag ( λ , λ ) = λ Q Δ λ − 2 , ( f Δ λ ) Q ( f Δ λ ) † = λ ( f Q f † ) ( f Δ λ − 2 f † ) .
Since f f f fixes or swaps the eigenspaces of Z c Z_c Z c , f Δ λ − 2 f † f\Delta_\lambda^{-2}f^\dagger f Δ λ − 2 f † is Δ λ − 2 \Delta_\lambda^{-2} Δ λ − 2 or λ − 2 Δ λ 2 \lambda^{-2}\Delta_\lambda^2 λ − 2 Δ λ 2 . So the correction is a scalar multiple of g Δ μ g\Delta_\mu g Δ μ , where g = f Q f † ∈ C max ( a − 1 , 1 ) ( m ) g=fQf^\dagger\in\mathcal{C}_{\max(a-1,1)}(m) g = f Q f † ∈ C m a x ( a − 1 , 1 ) ( m ) satisfies g Z c g † = ± Z c gZ_cg^\dagger=\pm Z_c g Z c g † = ± Z c and μ \mu μ has order 2 max ( ℓ − 1 , 0 ) 2^{\max(\ell-1,0)} 2 m a x ( ℓ − 1 , 0 ) . By induction, g Δ μ ∈ C N − 1 ( m ) g\Delta_\mu\in\mathcal{C}_{N-1}(m) g Δ μ ∈ C N − 1 ( m ) , and as N − 1 ≥ 2 N-1\ge2 N − 1 ≥ 2 the scalar does not matter. Hence f Δ λ ∈ C N ( m ) f\Delta_\lambda\in\mathcal{C}_N(m) f Δ λ ∈ C N ( m ) .
:::
Theorem G.3. For every k ≥ 5 k\ge5 k ≥ 5 and n ≥ 5 n\ge5 n ≥ 5 , there is a gate in F 2 ( 2 , n − 2 ) ∩ C k ( n ) \mathcal{F}_2(2,n-2)\cap\mathcal{C}_k(n) F 2 ( 2 , n − 2 ) ∩ C k ( n ) that is neither in C k − 1 ( n ) \mathcal{C}_{k-1}(n) C k − 1 ( n ) nor generalized semi-Clifford.
Proof. Let ξ \xi ξ be chosen so that ξ = 1 \xi=1 ξ = 1 if k = 5 k=5 k = 5 , and ξ \xi ξ has order 2 k 2^k 2 k if k ≥ 6 k\ge6 k ≥ 6 . We show that U ξ ∈ C k ( 5 ) ∖ C k − 1 ( 5 ) U_\xi\in\mathcal{C}_k(5)\setminus\mathcal{C}_{k-1}(5) U ξ ∈ C k ( 5 ) ∖ C k − 1 ( 5 ) and U ξ ∉ GSC ( 5 ) U_\xi\notin\operatorname{GSC}(5) U ξ ∈ / GSC ( 5 ) . Then U ξ ⊗ I U_\xi\otimes I U ξ ⊗ I , with n − 5 n-5 n − 5 further target qubits, proves the theorem: it lies in F 2 ( 2 , n − 2 ) ∩ C k ( n ) \mathcal{F}_2(2,n-2)\cap\mathcal{C}_k(n) F 2 ( 2 , n − 2 ) ∩ C k ( n ) and is not generalized semi-Clifford by Lemma 4(2), and it is not in C k − 1 ( n ) \mathcal{C}_{k-1}(n) C k − 1 ( n ) by the following fact, which we use twice. If V ⊗ I ∈ C j V\otimes I\in\mathcal{C}_j V ⊗ I ∈ C j , then V ∈ C j V\in\mathcal{C}_j V ∈ C j , by induction on j j j from ( V ⊗ I ) ( P ⊗ I ) ( V ⊗ I ) † = V P V † ⊗ I (V\otimes I)(P\otimes I)(V\otimes I)^\dagger=VPV^\dagger\otimes I ( V ⊗ I ) ( P ⊗ I ) ( V ⊗ I ) † = V P V † ⊗ I ; here the identity may act on any of the qubits.
U E 6 U_{E_6} U E 6 is an explicit 32 × 32 32\times32 32 × 32 matrix with entries in Z [ i , 1 / 2 ] \mathbb{Z}[i,1/2] Z [ i , 1/2 ] , and membership in C 5 ( 5 ) \mathcal{C}_5(5) C 5 ( 5 ) is decided by finitely many conjugations by Paulis and Clifford tests, recorded in the following fact.
(C18) The gate U E 6 U_{E_6} U E 6 lies in C 5 ( 5 ) C_5(5) C 5 ( 5 )
The gate U E 6 U_{E_6} U E 6 of (G.3) lies in C 5 ( 5 ) C_5(5) C 5 ( 5 ) .
Code. certificates/e6-gate-level-five in https://github.com/numberinggeometry/clifford-hierarchy-plane-certificate
This is (C18).
Since U ξ = U E 6 diag ( 1 , ξ ) c = ξ U E 6 Δ ^ ξ ‾ U_\xi= U_{E_6}\operatorname{diag}(1,\xi)_c = \xi U_{E_6}\widehat{\Delta}_{\overline{\xi}} U ξ = U E 6 diag ( 1 , ξ ) c = ξ U E 6 Δ ξ and U E 6 U_{E_6} U E 6 commutes with Z c Z_c Z c , Lemma G.2 with a = 5 a=5 a = 5 gives U ξ ∈ C max ( 5 , k ) ( 5 ) = C k ( 5 ) U_\xi\in C_{\max(5,k)}(5)=C_k(5) U ξ ∈ C m a x ( 5 , k ) ( 5 ) = C k ( 5 ) .
The correction at X c X_c X c is
U ξ X c U ξ † = ∑ t ∈ F 2 ( ∣ 1 t ⟩ ⟨ 0 t ∣ ⊗ ξ A ^ + ∣ 0 t ⟩ ⟨ 1 t ∣ ⊗ ( ξ A ^ ) − 1 ) . U_\xi X_c U_\xi^\dagger=
\sum_{t\in\mathbb{F}_2}
\left(|1t\rangle\langle0t|\otimes\xi\widehat{A}
+|0t\rangle\langle1t|\otimes(\xi\widehat{A})^{-1}\right). U ξ X c U ξ † = t ∈ F 2 ∑ ( ∣1 t ⟩ ⟨ 0 t ∣ ⊗ ξ A + ∣0 t ⟩ ⟨ 1 t ∣ ⊗ ( ξ A ) − 1 ) .
It acts as the identity on t t t , and on c c c and the targets as ( X ⊗ ξ A ^ ) diag ( I , ( ξ A ^ ) − 2 ) (X\otimes\xi\widehat{A})\operatorname{diag}(I,(\xi\widehat{A})^{-2}) ( X ⊗ ξ A ) diag ( I , ( ξ A ) − 2 ) . If U ξ ∈ C k − 1 ( 5 ) U_\xi\in C_{k-1}(5) U ξ ∈ C k − 1 ( 5 ) , then this gate lies in C k − 2 ( 4 ) C_{k-2}(4) C k − 2 ( 4 ) , so diag ( I , ( ξ A ^ ) − 2 ) ∈ C k − 2 ( 4 ) \operatorname{diag}(I,(\xi\widehat{A})^{-2})\in C_{k-2}(4) diag ( I , ( ξ A ) − 2 ) ∈ C k − 2 ( 4 ) and ( ξ A ^ ) 2 k − 3 ∈ μ 4 P ( 3 ) (\xi\widehat{A})^{2^{k-3}}\in\mu_4P(3) ( ξ A ) 2 k − 3 ∈ μ 4 P ( 3 ) by Proposition A.5. The matrices A A A and B B B are explicit 6 × 6 6\times6 6 × 6 products of transvections over F 2 \mathbb{F}_2 F 2 , and computing with them gives the following.
(C19) Root words for E 6 E_6 E 6
Let A A A and B B B be as in Appendix G.2. Then A A A has order 8 8 8 and χ A 2 B ( z ) = z 6 + z 3 + 1 \chi_{A^2B}(z)=z^6+z^3+1 χ A 2 B ( z ) = z 6 + z 3 + 1 .
Code. certificates/e6-root-words in https://github.com/numberinggeometry/clifford-hierarchy-plane-certificate
By (C19), A A A has order 8 8 8 . For k = 5 k=5 k = 5 , this contradicts A ^ 4 ∈ μ 4 P ( 3 ) \widehat{A}^4\in\mu_4P(3) A 4 ∈ μ 4 P ( 3 ) . For k ≥ 6 k\ge6 k ≥ 6 , A ^ 8 \widehat{A}^8 A 8 is a Pauli up to a unit-modulus element of Z [ i , 1 / 2 ] \mathbb{Z}[i,1/2] Z [ i , 1/2 ] , which lies in μ 4 \mu_4 μ 4 . Hence A ^ 2 k − 3 ∈ μ 4 P ( 3 ) \widehat{A}^{2^{k-3}}\in\mu_4P(3) A 2 k − 3 ∈ μ 4 P ( 3 ) , and then ξ 2 k − 3 ∈ μ 4 \xi^{2^{k-3}}\in\mu_4 ξ 2 k − 3 ∈ μ 4 , although it has order 8 8 8 .
The blocks of U ξ U_\xi U ξ have the symplectic actions A c B t A^cB^t A c B t . If U ξ U_\xi U ξ were generalized semi-Clifford, Theorem G.1 (1) would give Lagrangians L , L ′ L,L' L , L ′ of V 3 V_3 V 3 with A c B t L = L ′ A^cB^tL=L' A c B t L = L ′ for all c , t c,t c , t . Then c = t = 0 c=t=0 c = t = 0 gives L ′ = L L'=L L ′ = L , and A L = B L = L AL=BL=L A L = B L = L . But by (C19), A 2 B A^2B A 2 B has characteristic polynomial z 6 + z 3 + 1 z^6+z^3+1 z 6 + z 3 + 1 , the ninth cyclotomic polynomial, which is irreducible over F 2 \mathbb{F}_2 F 2 because 2 2 2 has order 6 6 6 modulo 9 9 9 . The characteristic polynomial of A 2 B A^2B A 2 B on a subspace invariant under A A A and B B B divides it, so such a subspace is 0 0 0 or V 3 V_3 V 3 .