Real 3-qubit gate decompositions via triality


Abstract

We show that any unimodular real 3-qubit gate can be expressed as the product of at most 14 CNOT gates plus single-qubit gates, improving on the bound of 16 due to Wei and Di. Our method uses the exotic triality symmetry of \(\operatorname{PSO}(8)\), and we explore some of the useful properties of this map in relation to the study of real 3-qubit gates.

1 Introduction↩︎

Any quantum gate can be written as a product of single-qubit gates and 2-qubit gates [1]. In fact, almost any 2-qubit gate \(V \in \operatorname{U}(4)\) is universal, meaning that every \(n\)-qubit gate can be expressed as a quantum circuit involving only single-qubit gates and copies of \(V\) acting on pairs of qubits [2], [3]. For the sake of comparing different gate decomposition algorithms, it is convenient to fix a particular \(V\); a popular choice is the controlled-NOT (CNOT) gate, shown to be universal in [4].

Once the existence of such quantum circuits has been established, it is natural to ask how large they must be: for instance, what is the minimal \(N\) such that every \(n\)-qubit gate \(V \in \operatorname{U}(2^n)\) can be written as \(L_1 C_1 L_2 C_2 \cdots L_N C_N L_{N+1}\) where the \(C_i\) are CNOTs and the \(L_i\) are in \(\operatorname{U}(2)^{\otimes n}\)? In almost all cases the exact answer is unknown. Shende, Markov, and Bullock [5] showed using a dimension-counting argument that at least \((4^n-3n-1)/4\) CNOTs are required. Many decomposition algorithms have been devised providing upper bounds; the current best seems to be \(\tfrac{22}{48} 4^n - \tfrac{3}{2} 2^n + \tfrac{5}{3}\) CNOTs due to Krol and Al-Ars [6], who also give a comprehensive overview of these algorithms.

The case \(n=2\) is well-understood, at least. Any \(V \in \operatorname{U}(4)\) can be written as the product of at most 3 CNOTs plus single-qubit gates, this bound is sharp, and there are exact algorithms to compute optimal decompositions [7]. A special feature of this case that simplifies analysis is the “magic basis” coordinate change, which conjugates the subgroup \(\operatorname{SU}(2) \otimes \operatorname{SU}(2) \subseteq \operatorname{SU}(4)\) generated by single-qubit gates onto \(\operatorname{SO}(4)\). This allows the technique of Cartan decomposition to be applied directly, which by contrast cannot be done for the subgroup \(\operatorname{SU}(2)^{\otimes n} \subseteq \operatorname{SU}(2^n)\) when \(n > 2\).

In this paper we study the special case of unimodular (\(\det = 1\)) real 3-qubit gates. Wei and Di [8] showed that any \(V \in \operatorname{SO}(8)\) is the product of at most 16 CNOTs plus single-qubit gates. Our main result (Theorem 11) is an explicit quantum circuit realizing any element of \(\operatorname{SO}(8)\) as the product of at most 14 CNOTs plus 35 single-qubit rotations.

Perhaps more interesting than this modest improvement is our technique, which relies on the triality symmetry \(\mathcal{T}: \operatorname{PSO}(8) \to \operatorname{PSO}(8)\). This is a rather exotic map which only appears in association with the \(\mathfrak{so}(8)\) Lie algebra, so we spend some time defining it and exploring its properties. Its utility in the study of 3-qubit gates does not seem to have been observed before; in some ways it behaves as a real 3-qubit version of the magic basis transformation which is so useful in the 2-qubit case. More specifically, it transforms many subgroups defined in terms of tensor products into straightforward block matrix subgroups, which makes matrix factorizations easier to see.

In Section 2 we set up notation and review some Lie algebra and Lie group material, including Cartan decomposition. Section 3 is devoted to the triality map. In Section 4 we discuss an interesting Cartan decomposition of \(\operatorname{PSO}(8)\) involving triality, which we apply in Section 5 to construct our new circuit.

2 Preliminaries↩︎

2.1 Matrix notation↩︎

We use the interval notation \([m,n]\) for the set \(\{m,m{+}1,\ldots,n\}\) when \(m,n\) are integers. As a special case, \([n] = [1,n] = \{1,2,\ldots,n\}\). If \(A\) is an \(m \times n\) matrix and \(I \subseteq [m], J \subseteq [n]\) are subsets, write \(A_{IJ}\) for the \(|I| \times |J|\) submatrix \([A_{ij}]_{i \in I, j \in J}\). For instance, if \(A = \left[ \begin{smallmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{smallmatrix} \right]\) then \(A_{[2], [1,3]} = \left[ \begin{smallmatrix} 1 & 3 \\ 4 & 6 \end{smallmatrix} \right]\).

Given square matrices \(A_1, \ldots, A_k\), write \(A_1 \oplus \cdots \oplus A_k\) for the block-diagonal matrix with \(A_1, \ldots, A_k\) as blocks. For example, \[\begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} \oplus \begin{bmatrix} 5 & 6 \\ 7 & 8 \end{bmatrix} = \begin{bmatrix} 1 & 2 & 0 & 0 \\ 3 & 4 & 0 & 0 \\ 0 & 0 & 5 & 6 \\ 0 & 0 & 7 & 8 \end{bmatrix}\] More generally, if \(S_1, \ldots, S_k\) are sets of matrices, then \[S_1 \oplus \cdots \oplus S_k = \{A_1 \oplus \cdots \oplus A_k : A_i \in S_i \text{ for each i}\}.\] We also write \(\operatorname{diag}(x_1,\ldots,x_n)\) for the diagonal matrix with diagonal entries \(x_1,\ldots,x_n\). As a special case that will arise frequently, for each subset \(J \subseteq [n]\) define \(\Delta_{J}\) as the diagonal matrix with \[(\Delta_J)_{ii} = \begin{cases} -1 & \text{if i \in J} \\ 1 & \text{if i \notin J} \end{cases}\] Finally, the operator \(\operatorname{S}\) applied to a matrix group gives the subgroup where \(\det = 1\), and \(\operatorname{P}\) takes the quotient modulo scalar multiplication.

Example 1.

(a) \(\Delta_{\{2,3\} \subseteq [5]} = \operatorname{diag}(1,-1,-1,1,1)\).

(b) \(\operatorname{SO}(2) \oplus \operatorname{SO}(2) = \{A \oplus B : A,B \in \operatorname{O}(2), \det A = \det B = 1\}\).

(c) \(\operatorname{S}(\operatorname{O}(2) \oplus \operatorname{O}(2))\) is (a) plus the connected component where \(\det A = \det B = -1\).

(d) \(\operatorname{P}\operatorname{S}(\operatorname{O}(2) \oplus \operatorname{O}(2))\) is the image of (b) in \(\operatorname{PSO}(4)\).

We are especially concerned here with \(\operatorname{PSO}(8)\), the group of real orthogonal matrices of determinant 1, subject to the rule that \(A\) and \(-A\) are considered the same matrix. The reason for making the distinction between \(\operatorname{PSO}(8)\) and \(\operatorname{SO}(8)\) is that the triality map involves an indeterminacy of sign, and so is well-defined as a map \(\operatorname{PSO}(8) \to \operatorname{PSO}(8)\) but not \(\operatorname{SO}(8) \to \operatorname{SO}(8)\). That said, our final circuit decomposition will be perfectly valid in \(\operatorname{SO}(8)\).

2.2 Quantum gate conventions↩︎

Take the Pauli matrices to be \[\sigma_x = \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix} \qquad \sigma_y = \begin{bmatrix} 0 & -i \\ i & 0 \end{bmatrix} \qquad \sigma_z = \begin{bmatrix} 1 & 0 \\ 0 & -1 \end{bmatrix}\] and set \(R_a(\theta) = \exp(-i\theta\sigma_a/2)\) for \(a \in \{x,y,z\}\). These rotations generate \(\operatorname{SU}(2)\) since \(i\sigma_x, i\sigma_y, i\sigma_z\) generate \(\mathfrak{su}(2)\) as a Lie algebra, and it is well-known that any element of \(\operatorname{SU}(2)\) can be written as \(R_{a_1}(\theta_1)R_{a_2}(\theta_2)R_{a_3}(\theta_3)\) where \(a_1 a_2 a_3\) is any word on the alphabet \(\{x,y,z\}\) with no two consecutive letters the same. Our convention is that \(\mathfrak{su}(n)\) consists of the \(n \times n\) skew-Hermitian matrices.

We take \(\mathbb{C}^2\) to have ordered orthonormal basis \(\bra{0}, \bra{1}\), and more generally \((\mathbb{C}^2)^{\otimes n}\) to have basis \(\{\bra{w} : w \in \{0,1\}^n\}\), indexed by the length \(n\) binary words ordered lexicographically. Write \(C_i^j \in \operatorname{U}(2^n)\) for the CNOT gate with control qubit \(i\) and target qubit \(j\), i.e.the linear operator defined by \[\bra{w_1 \cdots w_n} \mapsto \begin{cases} \bra{w_1 \cdots w_n} & \text{if w_i = 0}\\ \bra{w_1 \cdots \tilde{w}_j \cdots w_n} & \text{if w_i = 1} \end{cases}\] where \(\tilde{x} = 1-x\). For instance, with \(n = 2\), \[C_1^2 = \begin{quantikz} & \ctrl{1} & \\ & \targ{} & \end{quantikz} = \left[\begin{smallmatrix} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 1 \\ 0 & 0 & 1 & 0 \end{smallmatrix}\right] \qquad \text{and} \qquad C_2^1 = \begin{quantikz} & \targ{} & \\ & \ctrl{-1} & \end{quantikz} = \left[\begin{smallmatrix} 1 & 0 & 0 & 0 \\ 0 & 0 & 0 & 1 \\ 0 & 0 & 1 & 0 \\ 0 & 1 & 0 & 0 \end{smallmatrix}\right]\]

2.3 Lie group notation and Cartan decomposition↩︎

The following notation will hold for the rest of the paper, unless otherwise noted.

  • \(\mathcal{G}\) is a compact connected Lie group with Lie algebra \(\mathfrak{g}\).

  • \(\mathcal{H}_0\) is the connected component of the identity in a Lie group \(\mathcal{H}\).

  • \(\theta : \mathcal{G}\to \mathcal{G}\) is an automorphism and an involution, i.e.an invertible function satisfying \(\theta(gh) = \theta(g)\theta(h)\) and \(\theta(\theta(g)) = g\) for all \(g,h \in \mathcal{G}\).

  • \(c_g : \mathcal{H}\to \mathcal{H}\) is the conjugation automorphism \(c_g(h) = ghg^{-1}\).

  • \(\mathcal{G}^{\pm \theta} = \{g \in \mathcal{G}: \theta(g) = g^{\pm 1}\}\), so \(\mathcal{G}^\theta\) is the subgroup of fixed points of \(\theta\), while \(\mathcal{G}^{-\theta}\) is just a subset.

  • \(\mathcal{Z}(S) = \{h \in \mathcal{H}: sh = hs \text{ for all s \in S}\}\) is the centralizer of a subset \(S \subseteq \mathcal{H}\). We write \(\mathcal{Z}(g)\) instead of \(\mathcal{Z}(\{g\})\).

  • \(\mathfrak{k}\) and \(\mathfrak{p}\) are the \(1\)- and \((-1)\)-eigenspaces of the induced Lie algebra homomorphism \(d\theta : \mathfrak{g}\to \mathfrak{g}\), so \(\mathfrak{k}\) is a subalgebra and \(\mathfrak{g}= \mathfrak{k}\oplus \mathfrak{p}\).

  • \(\mathcal{K}= \exp \mathfrak{k}= (\mathcal{G}^\theta)_0\) is the connected component of the identity in \(\mathcal{G}^\theta\). We will call any closed subgroup arising this way a Cartan subgroup.

  • \(\mathfrak{a}\) is a maximal abelian subalgebra of \(\mathfrak{p}\) and \(\mathcal{A}= \exp(\mathfrak{a})\).

  • Later we will have more than one involution \(\theta\), in which case we write \(\mathcal{K}_\theta\), \(\mathfrak{a}_\theta\), etc.to be more specific.

We try to consistently use calligraphic capitals for abstract Lie groups, lowercase Fraktur for Lie algebras, capitals for matrices and named matrix groups, Greek letters for automorphisms of groups and Lie algebras, and lowercase \(g,h,k\) etc.for elements of abstract Lie groups. That said, we also use calligraphic capitals for certain distinguished matrices and for the triality automorphism \(\mathcal{T}\).

Theorem 1 (Cartan decomposition). [9] With notation as above, we have \(\mathcal{G}= \mathcal{K}\mathcal{A}\mathcal{K}\). That is, any \(g \in \mathcal{G}\) can be written as \(k_1 a k_2\) with \(k_1,k_2 \in \mathcal{K}\) and \(a \in \mathcal{A}\). Also, \(\mathfrak{g}= \mathfrak{k}\oplus \mathfrak{p}\) and \[\exp(\mathfrak{p}) = \bigcup_{k \in \mathcal{K}} k\mathcal{A}k^{-1} \qquad \text{and} \qquad \mathfrak{p}= \bigcup_{k \in \mathcal{K}} \mathop{\mathrm{Ad}}_k(\mathfrak{a})\] where \(\mathop{\mathrm{Ad}}_k : \mathfrak{g}\to \mathfrak{g}\) is the derivative of the conjugation map \(c_k\) at the identity.

Example 2. If \(\mathcal{G}= \operatorname{U}(n)\) and \(\theta : \mathcal{G}\to \mathcal{G}\) is complex conjugation, then \(\mathcal{G}^\theta = \operatorname{O}(n)\) and \(\mathcal{K}= \operatorname{SO}(n)\) and \(\mathcal{G}^{-\theta}\) is the set of symmetric unitary matrices. At the Lie algebra level, \[\mathfrak{k}= \mathfrak{so}(n) \qquad \text{and} \qquad \mathfrak{p}= \{\text{symmetric imaginary matrices}\}.\] The choice of \(\mathfrak{a}\) is not unique, but we can take \(\mathfrak{a}\subseteq \mathfrak{p}\) to be the imaginary diagonal matrices, making \(\mathcal{A}= \exp(\mathfrak{a})\) the group of diagonal unitary matrices. Hence the Cartan decomposition factors any unitary as \(O_1 D O_2\) with \(O_1,O_2 \in \operatorname{SO}(n)\) and \(D\) unitary diagonal.

Besides the decomposition \(\mathcal{G}= \mathcal{K}\mathcal{A}\mathcal{K}\), we will also use a basic corollary of Theorem 1.

Corollary 1. \(\mathfrak{g}\) is generated as a Lie algebra by \(\mathfrak{k}\) and \(\mathfrak{a}\).

Proof. It is a basic fact in Lie theory that if \(\mathop{\mathrm{ad}}_X : \mathfrak{g}\to \mathfrak{g}\) is the linear map \(\mathop{\mathrm{ad}}_X(Y) = [X,Y]\), then \(\mathop{\mathrm{Ad}}_{\exp(X)} = \exp(\mathop{\mathrm{ad}}_X)\) [9]. That is, \[\mathop{\mathrm{Ad}}_{\exp(X)}(Y) = Y + [X,Y] + \frac{1}{2!}[X,[X,Y]] + \frac{1}{3!}[X,[X,[X,Y]]] + \cdots\] In particular, this shows that \(\mathop{\mathrm{Ad}}_{\exp(X)}(Y)\) is in the subalgebra generated by \(X\) and \(Y\). Theorem 1 therefore implies that \(\mathfrak{p}\) is in the subalgebra generated by \(\mathfrak{k}\) and \(\mathfrak{a}\), which proves the corollary since \(\mathfrak{g}= \mathfrak{k}\oplus \mathfrak{p}\). ◻

How does one compute a Cartan decomposition of \(g \in \mathcal{G}\) in practice? One approach is to compute the Cartan double \(g\theta(g)^{-1}\) of \(g \in \mathcal{G}\). Indeed, if \(g = k_1 a k_2\) with \(k_1, k_2 \in \mathcal{K}\) and \(a \in \mathcal{A}\subseteq \mathcal{G}^{-\theta}\), then \[\label{eq:cartan-double} g\theta(g)^{-1} = (k_1 a k_2)(k_1 a^{-1} k_2)^{-1} = k_1 a^2 k_1^{-1}.\tag{1}\] If \(\mathcal{G}\) is a matrix group (a subgroup of a finite quotient \(\mathcal{G}'\) of \(\operatorname{U}(n)\)), then \(\mathcal{A}\) is a subgroup of a maximal torus in \(\mathcal{G}'\), which in turn must be conjugate to the torus of diagonal matrices [10]. Thus, we can compute \(k_1\) and \(a^2\) as in 1 by diagonalizing \(g\theta(g)^{-1}\) in an appropriate basis. There are finitely many square roots of \(a^2\) in \(\mathcal{A}\) (because the same is true for diagonal matrices), and each possible square root \(a\) can be checked for correctness by seeing whether the putative \(k_2 = a^{-1} k_1^{-1} g\) actually lies in \(\mathcal{K}\). With more work, one can choose a distinguished subset \(\mathcal{A}_\circ \subseteq \mathcal{A}\) such that \(g \in \mathcal{K}a \mathcal{K}\) for a unique \(a \in \mathcal{A}_\circ\), thereby avoiding this last issue; see [9] for the simply connected case.

For instance, in the setting of Example 2 we would find a basis of real eigenvectors for the symmetric unitary matrix \(U\overline{U}^{-1} = UU^T = O_1 D^2 O_1^{-1}\) in order to find \(O_1\) and \(D^2\). The next example covers the Cartan decompositions we will be concerned with.

Example 3. Say \(\mathcal{G}= \operatorname{PSO}(n)\) and \(0 < p < n\). Set \(\theta = c_{\Delta_{[p]}}\), so \(\theta(U) = \Delta_{[p]}U\Delta_{[p]}\). Then \(\mathcal{G}^\theta = \mathcal{Z}(\Delta_{[p]})\) is the block-diagonal subgroup \(\operatorname{P}\operatorname{S}(\operatorname{O}(p) \oplus \operatorname{O}(n-p))\), and the connected component of the identity is \(\mathcal{K}= \operatorname{P}(\operatorname{SO}(p) \oplus \operatorname{SO}(n-p))\). Note that \(\mathcal{K}\) is not necessarily isomorphic to \(\operatorname{PSO}(p) \times \operatorname{PSO}(n-p)\). For instance, \(\operatorname{P}(\operatorname{SO}(4) \oplus \operatorname{SO}(4))\) has center \(\{I, \Delta_{[4]}\}\) while \(\operatorname{PSO}(4) \times \operatorname{PSO}(4)\) has trivial center.

The Lie algebra \(\mathfrak{so}(n)\) of \(\mathcal{G}\) consists of all \(n \times n\) real skew-symmetric matrices. The \(1\)-eigenspace of \(d\theta\) is \(\mathfrak{so}(p) \oplus \mathfrak{so}(n-p)\), while the \((-1)\)-eigenspace \(\mathfrak{p}\) consists of the matrices \(\left[ \begin{smallmatrix} 0 & -M^T \\ M & 0 \end{smallmatrix}\right]\) where \(M\) is \((n-p) \times p\). We take \[\begin{align} &\mathfrak{a}= \left\{ \begin{bmatrix} 0_{p,p} & 0_{p,n-2p} & -D\\ 0_{n-2p,p} & 0_{n-2p,n-2p} & 0_{n-2p,p}\\ D & 0_{p,n-2p} & 0_{p,p} \end{bmatrix} : \text{D p \times p real diagonal} \right\}\\ &\mathcal{A}= \left\{ \begin{bmatrix} \cos D & 0_{p,n-2p} & -\sin D\\ 0_{n-2p,p} & I_{n-2p,n-2p} & 0_{n-2p,p}\\ \sin D & 0_{p,n-2p} & \cos D \end{bmatrix} : \text{D p \times p real diagonal} \right\} \end{align}\] For instance, Cartan decomposition in the case \(n = 8\) and \(p = 3\) says that every \(V \in \operatorname{PSO}(8)\) can be factored as a product \[\left[\begin{smallmatrix} \ast & \ast & \ast & 0 & 0 & 0 & 0 & 0\\ \ast & \ast & \ast & 0 & 0 & 0 & 0 & 0\\ \ast & \ast & \ast & 0 & 0 & 0 & 0 & 0\\ 0 & 0 & 0 & \ast & \ast & \ast & \ast & \ast\\ 0 & 0 & 0 & \ast & \ast & \ast & \ast & \ast\\ 0 & 0 & 0 & \ast & \ast & \ast & \ast & \ast\\ 0 & 0 & 0 & \ast & \ast & \ast & \ast & \ast\\ 0 & 0 & 0 & \ast & \ast & \ast & \ast & \ast \end{smallmatrix}\right] \left[\begin{smallmatrix} x_1 & 0 & 0 & 0 & 0 & -y_1 & 0 & 0\\ 0 & x_2 & 0 & 0 & 0 & 0 & -y_2 & 0\\ 0 & 0 & x_3 & 0 & 0 & 0 & 0 & -y_3\\ 0 & 0 & 0 & 1 & 0 & 0 & 0 & 0\\ 0 & 0 & 0 & 0 & 1 & 0 & 0 & 0\\ y_1& 0 & 0 & 0 & 0 & x_1 & 0 & 0\\ 0 & y_2 & 0 & 0 & 0 & 0 & x_2 & 0\\ 0 & 0 & y_3 & 0 & 0 & 0 & 0 & x_3 \end{smallmatrix}\right] \left[\begin{smallmatrix} \ast & \ast & \ast & 0 & 0 & 0 & 0 & 0\\ \ast & \ast & \ast & 0 & 0 & 0 & 0 & 0\\ \ast & \ast & \ast & 0 & 0 & 0 & 0 & 0\\ 0 & 0 & 0 & \ast & \ast & \ast & \ast & \ast\\ 0 & 0 & 0 & \ast & \ast & \ast & \ast & \ast\\ 0 & 0 & 0 & \ast & \ast & \ast & \ast & \ast\\ 0 & 0 & 0 & \ast & \ast & \ast & \ast & \ast\\ 0 & 0 & 0 & \ast & \ast & \ast & \ast & \ast \end{smallmatrix}\right]\]

Definition 1. The \(\mathcal{K}\)-double coset of \(g \in \mathcal{G}\) is the set \[\mathcal{K}g \mathcal{K}= \{k_1 g k_2 : k_1,k_2 \in \mathcal{K}\}.\] By the canonical parameters of \(g \in \mathcal{G}\) (with respect to the subgroup \(\mathcal{K}\)), we mean any data associated to \(g\) that uniquely identifies its \(\mathcal{K}\)-double coset \(\mathcal{K}g \mathcal{K}\).

Example 4. Say \(\mathcal{G}= \operatorname{U}(4)\) and \(\theta = c_{\Delta_{[2]}}\) is conjugation by \(\operatorname{diag}(-1,-1,1,1)\). Then \(\mathcal{K}= \mathcal{G}^\theta = \operatorname{U}(2) \oplus \operatorname{U}(2)\). We claim that the singular values of the upper-left \(2 \times 2\) corner \(U_{[2][2]}\) of \(U \in \operatorname{U}(4)\) are canonical parameters with respect to \(\mathcal{K}\).

On the one hand, left- or right-multiplying by an element of \(\mathcal{K}\) does not change these singular values. On the other, Cartan decomposition tells us that any \(U \in \operatorname{U}(4)\) can be factored as \[\label{ex:U4-cartan} \begin{bmatrix} V_1 & 0 \\ 0 & V_2 \end{bmatrix} \begin{bmatrix} \cos x_1 & 0 & -\sin x_1 & 0 \\ 0 & \cos x_2 & 0 & -\sin x_2\\ \sin x_1 & 0 & \cos x_1 & 0\\ 0 & \sin x_2 & 0 & \cos x_2 \end{bmatrix} \begin{bmatrix} V_3 & 0 \\ 0 & V_4 \end{bmatrix}\tag{2}\] with \(V_i \in \operatorname{U}(2)\). The middle matrix can be freely left- or right-multiplied by any matrix \(\operatorname{diag}(\pm 1, \pm 1, \pm 1, \pm 1)\) since these lie in \(\mathcal{K}\), by which means we can make \(\cos x_i, \sin x_i \geq 0\). Then \(U_{[2][2]} = V_1 \operatorname{diag}(\cos x_1, \cos x_2) V_3\) has singular values \(\cos x_1, \cos x_2\). These uniquely determine \(\sin x_1, \sin x_2 \geq 0\), and therefore the whole middle matrix in 2 and the \(\mathcal{K}\)-double coset of \(U\). This completes the argument.

Note that the sets \(\mathfrak{k}\), \(\mathfrak{p}\), \(\mathcal{K}\) in Theorem 1 are uniquely determined by \(\theta\), while \(\mathfrak{a}\) and \(\mathcal{A}\) are not. It may be convenient to replace \(\mathcal{A}\) in the Cartan decomposition \(\mathcal{G}= \mathcal{K}\mathcal{A}\mathcal{K}\) with a different set \(\mathcal{A}' \subseteq \mathcal{G}\) which is not necessarily a torus. By definition, \(\mathcal{G}= \mathcal{K}\mathcal{A}'\mathcal{K}\) holds if \(\mathcal{A}'\) covers all possible canonical parameters.

Example 5. Continuing on from Example 4, we claim \(\mathcal{K}C_2^1 \mathcal{K}C_2^1 \mathcal{K}= \operatorname{U}(4)\). Set \(\mathcal{A}' = C_2^1 \mathcal{K}C_2^1\). We must show that for any \(\sigma_1,\sigma_2 \in [0,1]\), there must exist \(A \in \mathcal{A}'\) such that \(A_{[2][2]}\) has singular values \(\sigma_1, \sigma_2\). The canonical parameters of \(C_2^1 \operatorname{diag}(V_1,V_2) C_2^1 \in \mathcal{A}'\) are the singular values of its upper-left \(2 \times 2\) corner \[\label{eq:corner} \begin{bmatrix} 1 & 0 \\ 0 & 0 \end{bmatrix} V_1 \begin{bmatrix} 1 & 0 \\ 0 & 0 \end{bmatrix} + \begin{bmatrix} 0 & 0 \\ 0 & 1 \end{bmatrix} V_2 \begin{bmatrix} 0 & 0 \\ 0 & 1 \end{bmatrix}.\tag{3}\] By choosing \(V_i = \left[ \begin{smallmatrix} \cos x_i & -\sin x_i \\ \sin x_i & \cos x_i \end{smallmatrix} \right]\) for \(i = 1,2\) we can make the matrix 3 have any arbitrary singular values \(\cos x_1, \cos x_2\).

As explained above, if \(\mathcal{K}g \mathcal{K}= \mathcal{K}h \mathcal{K}\) then the Cartan doubles \(g\theta(g)^{-1}\) and \(h\theta(h)^{-1}\) are conjugate. If \(\mathcal{G}\) is simply connected, this is a necessary and sufficient condition to have \(\mathcal{K}g \mathcal{K}= \mathcal{K}h \mathcal{K}\), so the conjugacy class of the Cartan double \(g\theta(g)^{-1}\) supplies canonical parameters [9]. For instance, the \(\operatorname{SO}(n)\)-double coset of \(U \in \operatorname{SU}(n)\) is uniquely identified by the eigenvalues of \(UU^T\).

Unfortunately neither \(\operatorname{SO}(n)\) nor \(\operatorname{PSO}(n)\) is simply connected for \(n > 1\). We will not attempt to fix this issue in general, contenting ourselves with definitions that work in our specific cases of interest, which we return to in §2.6.

We end this section with a simple but useful lemma on Lie groups.

Lemma 1. If \(\mathcal{H}_1\) is a connected Lie group and \(\mathcal{H}_2 \subseteq \mathcal{H}_1\) is a closed subgroup with \(\dim \mathcal{H}_2 = \dim \mathcal{H}_1\), then \(\mathcal{H}_1 = \mathcal{H}_2\).

Proof. It is well-known that \(\mathcal{H}_1/\mathcal{H}_2\) can be made into a smooth manifold of dimension \(\dim \mathcal{H}_1 - \dim \mathcal{H}_2\) so that the quotient map \(\pi : \mathcal{H}_1 \to \mathcal{H}_1/\mathcal{H}_2\) is smooth. In the present case, \(\mathcal{H}_1/\mathcal{H}_2\) must be discrete since it is a manifold of dimension 0. Therefore the disjoint union \(\mathcal{H}_1 = \bigsqcup_{x \in \mathcal{H}_1/\mathcal{H}_2} \pi^{-1}(x)\) is a disjoint union of open sets. Since \(\mathcal{H}_1\) is connected, there can only be one set in this union, i.e.\(\mathcal{H}_1 = \mathcal{H}_2\). ◻

2.4 Commuting involutions↩︎

Suppose \(\theta_1, \theta_2 : \mathcal{G}\to \mathcal{G}\) are two commuting involutive automorphisms, i.e. \[\theta_1^2 = \theta_2^2 = \mathop{\mathrm{id}}= \theta_1 \theta_2 \theta_1^{-1} \theta_2^{-1}.\] Apply Cartan decomposition with respect to \(\theta_1\) to \(g \in \mathcal{G}\), writing \(g = k_1 a k_2\) with \(k_1, k_2 \in \mathcal{K}_{\theta_1}\) and \(a_1 \in \mathcal{A}_{\theta_1}\). The commuting property implies \(\theta_2(\mathcal{K}_{\theta_1}) \subseteq \mathcal{K}_{\theta_1}\), so one can Cartan decompose \(k_1, k_2\) using the automorphism \(\theta_2 : \mathcal{K}_{\theta_1} \to \mathcal{K}_{\theta_1}\). The relevant fixed-point subgroup in \(\mathcal{K}_{\theta_1}\) is \((\mathcal{K}_{\theta_1} \cap \mathcal{K}_{\theta_2})_0\), which we abbreviate as \(\mathcal{K}_{\theta_1,\theta_2}\). This gives an expression \[g = k_3 b_1 k_4 a k_5 b_2 k_6.\] with \(k_3,k_4,k_5,k_6 \in \mathcal{K}_{\theta_1,\theta_2}\), and \(b_1, b_2\) in a torus maximal in \((\mathcal{K}_{\theta_1})^{-\theta_2}\).

2.5 Two-qubit magic↩︎

In this subsection we review some useful facts about 2-qubit gates which will also be crucial in our 3-qubit decomposition.

Definition 2. A magic matrix \(Q \in \operatorname{U}(2^n)\) is one with \(Q^\dagger (\operatorname{SU}(2)^{\otimes n}) Q \subseteq \operatorname{SO}(2^n)\).

For instance, \[Q = \frac{1}{2}\begin{bmatrix} 1 & 1 & i & i\\ 1 & -1 & i & -i\\ -1 & 1 & i & -i\\ 1 & 1 & -i & -i \end{bmatrix}\] is a magic matrix, as can be verified by checking that \(Q^\dagger (X \otimes I_2) Q\) and \(Q^\dagger (I_2 \otimes X) Q\) are real for \(X \in \{i\sigma_x, i\sigma_y, i\sigma_z\}\).

The existence and use of magic matrices is well-known [11][13]. We take a moment to discuss a more conceptual explanation, but this material can safely be skipped.

Definition 3. A real structure on \(\mathbb{C}^n\) is a conjugate-linear map \(c : \mathbb{C}^n \to \mathbb{C}^n\) satisfying \(c^2 = \mathop{\mathrm{id}}\).

The basic example is that \(c\) is complex conjugation. Viewing \(c\) as a real-linear map, it has \(1\)- and \((-1)\)-eigenspaces \(V_+\) and \(V_-\), which one thinks of as the “real” and “imaginary” elements of \(\mathbb{C}^n\) with respect to \(c\). If \(A\) is an \(n \times n\) complex matrix commuting with \(c\), then \(AV_+ = V_+\), and if \(B\) is an \(n \times n\) matrix whose columns form an orthonormal basis of \(V_+\), then \(B^\dagger AB\) is a real matrix.

Let \(\iota : \mathbb{C}^2 \to \mathbb{C}^2\) be the conjugate-linear map with \(\iota(\bra{0}) = \bra{1}\) and \(\iota(\bra{1}) = -\bra{0}\). Define \(c = \iota^{\otimes n} : (\mathbb{C}^2)^{\otimes n} \to (\mathbb{C}^2)^{\otimes n}\). Thus, if \(w\) is a binary word and \(\tilde{w}\) denotes its negation, we have \(c(\bra{w}) = (-1)^{\sum w} \bra{\tilde{w}}\). Since \(\sum w + \sum \tilde{w} = n\) for any \(w\), we see that \(c^2 = (-1)^n\). Therefore \(c\) is a real structure on \((\mathbb{C}^2)^{\otimes n}\) if and only if \(n\) is even. Moreover, a matrix of the form \(\left[\begin{smallmatrix} a & -\overline{b}\\ b & \overline{a}\end{smallmatrix}\right]\) commutes with \(\iota\), so \(c\) commutes with all elements of \(\operatorname{SU}(2)^{\otimes n}\). It follows that magic matrices exist for any even \(n\): take the columns to be an orthonormal basis of \(c\)-fixed vectors.

One possible orthogonal basis of \(V_+\) consists of the vectors \[\bra{w} + \bra{c(w)} \qquad \text{and} \qquad i(\bra{w} - \bra{c(w)})\] over binary words \(w\) with \(w_1 = 0\). In the case \(n = 2\), we make a different choice: \[\begin{align} &\tfrac{1}{2}(\bra{00} + \bra{01} - \bra{10} + \bra{11})\\ &\tfrac{1}{2}(\bra{00} - \bra{01} + \bra{10} + \bra{11})\\ &\tfrac{1}{2}(i\bra{00} + i\bra{01} + i\bra{10} - i\bra{11})\\ &\tfrac{1}{2}(i\bra{00} - i\bra{01} - i\bra{10} - i\bra{11}), \end{align}\] This orthonormal basis leads to the matrix 4 . The \(n = 2\) case is special, in fact.

Proposition 2. If \(Q \in \operatorname{U}(4)\) is a magic matrix, then \(Q^\dagger(\operatorname{SU}(2)^{\otimes 2})Q = \operatorname{SO}(4)\).

Proof. We have \(Q^\dagger(\operatorname{SU}(2)^{\otimes 2})Q \subseteq \operatorname{SO}(4)\) by definition. Since both sides are connected Lie groups of dimension 6, they are equal by Lemma 1. ◻

More advanced techniques from representation theory (the Frobenius-Schur indicator) can be used to show that magic matrices do not exist for odd \(n\). In that case the map \(c\) satisfies \(c^2 = -1\), defining a so-called quaternionic structure on \((\mathbb{C}^2)^{\otimes n}\) and yielding matrices \(R\) such that \(R^\dagger \operatorname{SU}(2)^{\otimes n} R\) is contained in the symplectic group \(\operatorname{Sp}(2^{n-1})\) (cf. Definition 8). See [11] for more detail on these constructions.

For the rest of the paper we fix the magic matrix \[\label{eq:magic} \mathcal{Q}= \frac{1}{2}\begin{bmatrix} 1 & 1 & i & i\\ 1 & -1 & i & -i\\ -1 & 1 & i & -i\\ 1 & 1 & -i & -i \end{bmatrix}.\tag{4}\] Also set \(\mathcal{M}= I_2 \otimes \mathcal{Q}\). Standard techniques for two-qubit gates show that \(\mathcal{Q}\) is equivalent to a single CNOT up to multiplication by single-qubit gates: \[\label{eq:magic-circuit} \mathcal{Q}= \begin{quantikz} & \gate{R_x(\pi/2)} & \ctrl{1}& \gate{R_x(-\pi)} & &\\ & \gate{R_z(-\pi/2)} & \targ{} & \gate{R_x(\pi/2)} & \gate{R_z(-\pi/2)} & \end{quantikz}\tag{5}\] Our choice of \(\mathcal{Q}\) is somewhat arbitrary except that it seems to yield nicer formulas (e.g.in Figure 2 later) than some other possible choices. We have not tried to optimize \(\mathcal{Q}\) in any rigorous sense.

The next result is a technical lemma for later use.

Lemma 2. Let \(\mathcal{H}= \mathcal{Z}(\{I_2 \otimes \sigma_y,\sigma_y \otimes \sigma_z\})\), the group of invertible matrices commuting with \(I_2 \otimes \sigma_y\) and \(\sigma_y \otimes \sigma_z\). Then \(\mathcal{Q}^{\dagger} (\operatorname{SU}(2) \otimes I_2)\mathcal{Q}= \operatorname{O}(4) \cap \mathcal{H}\), which is the subgroup of matrices in \(\operatorname{O}(4)\) of the form \[\label{eq:SU-I} \begin{bmatrix} a & -b & -c & -d\\ b & a & d & -c\\ c & -d & a & b\\ d & c & -b & a \end{bmatrix}\tag{6}\]

Proof. The fact that \(\operatorname{O}(4) \cap \mathcal{H}\) is the set of orthogonal matrices of the form 6 amounts to solving the linear system that says a matrix commutes with \(I_2 \otimes \sigma_y\) and with \(\sigma_y \otimes \sigma_z\). One computes \[\mathcal{Q}(I_2 \otimes \sigma_y)\mathcal{Q}^\dagger = -I_2 \otimes \sigma_y \quad \text{and} \quad \mathcal{Q}(\sigma_y \otimes \sigma_z)\mathcal{Q}^\dagger = -I_2 \otimes \sigma_x,\] which commute with all elements of \(\operatorname{SU}(2) \otimes I_2\). Thus \(\mathcal{Q}^\dagger(\operatorname{SU}(2) \otimes I_2)\mathcal{Q}\subseteq \operatorname{O}(4) \cap \mathcal{H}\).

On the other hand, the form 6 shows that \(\operatorname{O}(4) \cap \mathcal{H}\) is the image of \(\operatorname{SU}(2)\) under the injective map replacing each complex entry \(a+bi\) of a matrix with the \(2 \times 2\) block \(\left[ \begin{smallmatrix} a & -b \\ b & a \end{smallmatrix} \right]\). In particular, \(\mathcal{Q}^\dagger(\operatorname{SU}(2) \otimes I_2)\mathcal{Q}\) and \(\operatorname{O}(4) \cap \mathcal{H}\) have the same dimension and are connected, so are equal by Lemma 1. ◻

2.6 Block matrix subgroups of \(\operatorname{PSO}(n)\)↩︎

Suppose \(\pi = \{\pi_1, \ldots, \pi_k\}\) is a partition of the set \([n]\). That is, \([n]\) is the disjoint union of the sets \(\pi_1, \ldots, \pi_k\), called the blocks of the partition. For instance, \(\{\{1,3,4\},\{2,6\},\{5\}\}\) is a partition of \([6]\) which we will usually abbreviate as \(134|26|5\) (or equivalently \(26|134|5\), etc.). Let \(\operatorname{SO}(\pi)\) be the subgroup of \(\operatorname{SO}(n)\) consisting of block matrices whose blocks occur in positions \(\pi_i \times \pi_i\) for \(i = 1, \ldots, k\), and which all have determinant 1. Following our usual notation, \(\operatorname{PSO}(\pi)\) then denotes the image of \(\operatorname{SO}(\pi)\) in \(\operatorname{PSO}(n)\).

Example 6.

  • \(\operatorname{PSO}(123\cdots n) = \operatorname{PSO}(n)\).

  • \(\operatorname{PSO}(1|2|3|\cdots|n)\) is trivial.

  • \(\operatorname{P}(\operatorname{SO}(n_1) \oplus \operatorname{SO}(n_2) \oplus \cdots)\) is \(\operatorname{PSO}(\{[n_1], [n_1+1,n_1+n_2], \ldots, \})\).

  • \(\operatorname{PSO}(13|24)\) is the group of matrices of the form \(\left[ \begin{smallmatrix} a & 0 & -b & 0\\ 0 & c & 0 & -d\\ b & 0 & a & 0\\ 0 & d & 0 & c \end{smallmatrix}\right]\).

The meet of two partitions \(\pi\) and \(\pi'\) of the same set is \[\pi \cap \pi' = \{b \cap b' : b \in \pi, b' \in \pi', b \cap b' \neq \emptyset\}.\] For instance, \(123|45678 \cap 234|15678 = 1|23|4|5678\).

Lemma 3. \(\operatorname{PSO}(\pi \cap \pi') = (\operatorname{PSO}(\pi) \cap \operatorname{PSO}(\pi'))_0\).

Proof. It suffices to show that \(\operatorname{PSO}(\pi \cap \pi')\) and \(\operatorname{PSO}(\pi) \cap \operatorname{PSO}(\pi')\) have the same Lie algebra. For brevity, write \(S^2\) for the set \(S \times S\). The Lie algebra \(\mathfrak{so}(\pi)\) of \(\operatorname{PSO}(\pi)\) consists of the skew-symmetric real matrices \(A\) whose nonzero entries lie in the set \(\bigcup_i \pi_i^2\). The Lie algebras of our two subgroups are \(\mathfrak{so}(\pi \cap \pi')\) and \(\mathfrak{so}(\pi) \cap \mathfrak{so}(\pi')\) respectively. Indeed, the latter has its nonzero entries constrained to the set \[\bigcup_i \pi_i^2 \cap \bigcup_j (\pi_j')^2 = \bigcup_{i,j} (\pi_i \cap \pi_j')^2.\] Since we can delete all empty terms \(\pi_i \cap \pi_j' = \emptyset\), this by definition is \(\bigcup_{k} (\pi \cap \pi')_k^2\). ◻

In general, \(\operatorname{PSO}(\pi) \cap \operatorname{PSO}(\pi')\) may not be connected, e.g.\(\operatorname{PSO}(123|456) \cap \operatorname{PSO}(14|25|36)\) consists of the 4 matrices \(A \oplus A\) where \[A \in \{I_3, \Delta_{\{1\}}, \Delta_{\{2\}}, \Delta_{\{3\}}\}.\] However, since \(123|456 \cap 14|25|36 = 1|2|3|4|5|6\), Lemma 3 correctly predicts that \((\operatorname{PSO}(123|456) \cap \operatorname{PSO}(14|25|36))_0\) is trivial.

If \(\pi = \{\pi_-,\pi_+\}\) has just two blocks, then \(\operatorname{PSO}(\pi)\) is a Cartan subgroup, namely \(\mathcal{K}_{\theta}\) where \(\theta = c_{\Delta_{\pi_-}}\). We can then apply the techniques of Cartan decomposition from §2.3, for which it is useful to have canonical parameters. We start with the slightly simpler case of \(\operatorname{SO}(n)\).

Definition 4. Let \(0 < p \leq n/2\). The \(p\)-canonical parameters of \(U \in \operatorname{SO}(n)\) are the singular values \(\sigma(U_{[p][p]})\) of the upper-left \(p \times p\) corner of \(U\), together with:

  • the sign of \(\det U_{[p][p]}\) if \(p < n-p\)

  • the signs of \(\det U_{[p][p]}\) and \(\det U_{[p][n-p+1,n]}\) if \(p = n/2\).

Proposition 3. Let \(\mathcal{K}= \operatorname{SO}(p) \oplus \operatorname{SO}(n-p)\). Then the \(p\)-canonical parameters of \(U \in \operatorname{SO}(n)\) are canonical parameters with respect to the subgroup \(\mathcal{K}\): that is, \(U \in \mathcal{K}V \mathcal{K}\) if and only if \(U\) and \(V\) have the same \(p\)-canonical parameters.

Example 7. If \(n = 2\) and \(p = 1\) then \(\mathcal{K}\) is trivial, so the \(\mathcal{K}\)-double coset of \(U\) is just \(\{U\}\). In this case, Proposition 3 asserts that \(U \in \operatorname{SO}(2)\) is uniquely determined by \(|U_{11}|\) and the signs of \(U_{11}\) and \(U_{21}\).

Proof of Proposition 3. We must show that \(\mathcal{K}U \mathcal{K}= \mathcal{K}V \mathcal{K}\) if and only if \(U\) and \(V\) have the same \(p\)-canonical parameters. One direction is easy: left and right multiplication of \(U\) by elements of \(\mathcal{K}\) has the effect of left- and right- multiplying \(U_{[p][p]}\) by a special orthogonal matrix, which changes neither its singular values nor its determinant. Note that the situation would be different if \(\mathcal{K}\) were the larger group \(\operatorname{S}(\operatorname{O}(p) \oplus \operatorname{O}(n-p))\), since we could change the sign of \(\det U_{[p][p]}\).

Conversely, suppose \(U\) and \(V\) have the same \(p\)-canonical parameters. By Cartan decomposition (Theorem 1), we may write \(U = K_1 A K_2\) and \(V = K_3 B K_4\) with \[A = \begin{bmatrix} \cos D & 0 & -\sin D \\ 0 & I_{n-2p} & 0 \\ \sin D & 0 & \cos D \end{bmatrix} \quad \text{and} \quad B = \begin{bmatrix} \cos E & 0 & -\sin E \\ 0 & I_{n-2p} & 0 \\ \sin E & 0 & \cos E \end{bmatrix}\] for some \(p \times p\) real diagonal matrices \(D,E\). Our goal is to show that \(U\) and \(V\) are in the same \(\mathcal{K}\)-double coset. We do this by explicitly describing how to get from \(B\) to \(A\) by a series of multiplications with elements of \(\mathcal{K}\).

Since \(U\) and \(V\) have the same canonical parameters, \(\cos D\) and \(\cos E\) must be equal up to permuting diagonal entries and flipping their signs, subject to the constraint \(\det \cos D = \det \cos E\). In the case \(p = n/2\) we also have the assumption \(\det \sin D = \det \sin E\). By taking \(P\) to be an appropriate \(p \times p\) permutation matrix, we can conjugate \(B\) by \(P \oplus I_{n-2p} \oplus P\) so that the upper-left and lower-right blocks become \(\cos D\) up to signs. Since replacing \(P\) by \(P \cdot \operatorname{diag}(-1,1,1,\ldots,1)\) in this operation has no impact on the two blocks being considered, we may assume \(\det P = 1\). Thus \(P \oplus I_{n-2p} \oplus P \in \mathcal{K}\), so this conjugation does not change the double coset of \(B\). Hence we may assume that \(\cos D\) and \(\cos E\) are equal up to signs, in which case \(\sin D\) and \(\sin E\) are as well.

Next, let \(q_i \in \{\pm 1\}\) be such that \(q_i \cos D_{ii} = \cos E_{ii}\) for \(i = 1,\ldots,p-1\). Set \(q = q_1 \cdots q_{p-1}\) and \(Q = \operatorname{diag}(q_1, \ldots, q_{p-1}, q)\). Then \(Q \cos D\) and \(\cos E\) are equal except perhaps for the sign of the \(p\)th diagonal entry. However, since \(\det Q = q_1^2 \cdots q_{p-1}^2 = 1\) and \(\det \cos D = \det \cos E\) by assumption, we have \(\det(Q \cos D) = \cos E\), forcing \(Q \cos D = \cos E\). Left-multiplying \(B\) by \(Q \oplus I_{n-2p} \oplus Q \in \mathcal{K}\) therefore allows us to assume \(\cos D = \cos E\).

Similarly, if \(R\) has the form \(\operatorname{diag}(\pm 1, \cdots, \pm 1)\), then conjugating \(B\) by \(R \oplus I_{n-2p} \oplus R\) lets us change signs of the lower-left and upper-right blocks, leaving the other blocks unchanged. Proceeding as above, we may assume that \(\sin D\) and \(\sin E\) match except that perhaps \(\sin D_{11} = -\sin E_{11}\). Now consider two cases.

  • If \(p = n/2\), then by assumption \(\det \sin D = \det \sin E\). As in the last paragraph, this forces \(\sin D = \sin E\).

  • If \(p < n-p\), then the matrix \(\Delta_{\{n-p,n-p+1\}}\) lies in \(\mathcal{K}= \operatorname{SO}(p) \oplus \operatorname{SO}(n-p)\). Hence we may conjugate \(B\) by it, which has the effect of flipping the sign of \(\sin E_{11}\) without changing any other entries.

Either way, we can make \(\sin D = \sin E\) and \(\cos D = \cos E\), thereby reducing \(B\) to \(A\) and completing the proof. ◻

The factorization of \(V \in \operatorname{O}(n)\) as \[V = L_1 \begin{bmatrix} \cos D & 0 & -\sin D \\ 0 & I_{n-2p} & 0 \\ \sin D & 0 & \cos D \end{bmatrix} L_2\] with \(L_1,L_2 \in \operatorname{O}(p) \oplus \operatorname{O}(n-p)\) (cf. Example 3) is an instance of the cosine-sine decomposition. A numerical algorithm for computing it can be found in [14]. Using such an algorithm, we can compute matrices \(K_1,K_2 \in \operatorname{SO}(p) \oplus \operatorname{SO}(n-p)\) with \(K_1 V K_2 = U\) whenever \(U,V \in \operatorname{SO}(n)\) have the same \(p\)-canonical parameters (also using the operations in the proof of Proposition 3 to ensure that the blocks of \(K_1\) and \(K_2\) have determinant 1).

Strictly speaking, we are interested in the projective case \(\mathcal{G}= \operatorname{PSO}(n)\) and \(\mathcal{K}= \operatorname{P}(\operatorname{SO}(p) \oplus \operatorname{SO}(n-p))\), in which case a slight modification of Definition 1 is required to get canonical parameters. In fact the difference will never really turn out to matter, but we include the following for completeness.

Corollary 2. Fix \(p \leq n-p\) and let the projective \(p\)-canonical parameters of \(U \in \operatorname{PSO}(n)\) be the singular values of \(\sigma(U_{[p][p]})\) together with

  • \(\operatorname{sgn}\det U_{[p][p]}\) (if \(p < n-p\) and \(p\) is even)

  • \(\operatorname{sgn}\det U_{[p][p]}\) and \(\operatorname{sgn}\det U_{[p][n-p+1,n]}\) (if \(p = n/2\) is even)

  • \(\operatorname{sgn}\det U_{[p][p]} \cdot \operatorname{sgn}\det U_{[p][n-p+1,n]}\) (if \(p = n/2\) is odd)

Then \(U,V \in \operatorname{PSO}(n)\) are in the same double coset of \(\mathcal{K}= \operatorname{P}(\operatorname{SO}(p) \oplus \operatorname{SO}(n-p))\) if and only if they have the same projective \(p\)-canonical parameters.

Proof. Two matrices \(U\) and \(V\) will be in the same \(\mathcal{K}\)-double coset if and only if \(U\) is in the same \(\operatorname{SO}(p) \oplus \operatorname{SO}(n-p)\)-double coset as either \(V\) or \(-V\), if and only if \(U\) has the same \(p\)-canonical parameters as either \(V\) or \(-V\). The last condition holds if and only if \(U\) and \(V\) have the same projective \(p\)-canonical parameters; checking this in the various cases comes down to the fact that, if \(p\) is odd, then replacing \(V\) by \(-V\) flips the signs of \(\det V_{[p][p]}\) and \(\det V_{[p][n-p+1,n]}\), but not if \(p\) is even. ◻

2.7 Automorphisms and roots↩︎

Constructing a triality symmetry of \(\mathfrak{so}(8)\) will be easier after reviewing some generalities on Lie algebras. For more detailed background, see [10].

An automorphism of a Lie group \(\mathcal{G}\) is an invertible function \(\theta : \mathcal{G}\to \mathcal{G}\) satisfying \(\theta(gh) = \theta(g)\theta(h)\), and an automorphism of a Lie algebra \(\mathfrak{g}\) is an invertible linear function \(\phi : \mathfrak{g}\to \mathfrak{g}\) satisfying \(\phi([X,Y]) = [\phi(X),\phi(Y)]\). In either case, the set of automorphisms forms a group under composition, written \(\mathop{\mathrm{Aut}}(\mathcal{G})\) or \(\mathop{\mathrm{Aut}}(\mathfrak{g})\) as appropriate. Fixing \(g \in \mathcal{G}\), each conjugation function \(c_g(x) = gxg^{-1}\) defines an automorphism of \(\mathcal{G}\), and its derivative \(\mathop{\mathrm{Ad}}_g\) at the identity is an automorphism of \(\mathfrak{g}\). In the case where \(\mathcal{G}\) is a matrix Lie group, \(\mathop{\mathrm{Ad}}_g : \mathfrak{g}\to \mathfrak{g}\) will also simply be conjugation by \(g\). Automorphisms of the type \(c_g\) and \(\mathop{\mathrm{Ad}}_g\) are inner automorphisms, and make up subgroups \(\mathop{\mathrm{Inn}}(\mathcal{G}) \subseteq \mathop{\mathrm{Aut}}(\mathcal{G})\) and \(\mathop{\mathrm{Inn}}(\mathfrak{g}) \subseteq \mathop{\mathrm{Aut}}(\mathfrak{g})\). The outer automorphism group of \(\mathcal{G}\) is the quotient \(\mathop{\mathrm{Out}}(\mathcal{G}) = \mathop{\mathrm{Aut}}(\mathcal{G})/\mathop{\mathrm{Inn}}(\mathcal{G})\), and similarly in the Lie algebra case. A typical example of an non-inner automorphism is complex conjugation acting on \(\operatorname{U}(n)\) or on \(\mathfrak{u}(n)\).

It follows from the classification of compact Lie algebras by their Dynkin diagrams that, with one exception, if \(\mathfrak{g}\) is the Lie algebra of a simple compact group then \(\mathop{\mathrm{Out}}(\mathfrak{g})\) is either trivial or has a single non-identity element \(\phi\) which has \(\phi^2 = \mathop{\mathrm{id}}\). For instance, take \(\phi\) to be complex conjugation in the case \(\mathfrak{g}= \mathfrak{su}(n)\) and conjugation by a reflection in the case \(\mathfrak{g}= \mathfrak{so}(2m)\). The one exception is that \(\mathop{\mathrm{Out}}(\mathfrak{so}(8))\) has order 6, being isomorphic to the symmetric group on 3 elements. An element of order 3 in \(\mathop{\mathrm{Out}}(\mathfrak{so}(8))\) is called a triality map, and we will construct one in §3.1.

Now suppose \(\mathfrak{g}^0\) is the Lie algebra of a compact group \(\mathcal{G}\), and set \(\mathfrak{g}= \mathfrak{g}^0 \otimes \mathbb{C}\). Each \(Z \in \mathfrak{g}^0\) defines a linear operator \(\mathop{\mathrm{ad}}_Z : \mathfrak{g}\to \mathfrak{g}, X \mapsto [Z,X]\), which can be shown1 to be diagonalizable. Choose a maximal abelian subalgebra \(\mathfrak{h}^0 \subseteq \mathfrak{g}^0\) and set \(\mathfrak{h}= \mathfrak{h}^0 \otimes \mathbb{C}\). Since the operators \(\{\mathop{\mathrm{ad}}_H : H \in \mathfrak{h}\}\) commute, they are simultaneously diagonalizable. This means \(\mathfrak{g}\) breaks up as a direct sum of eigenspaces \(\bigoplus_{\alpha \in \Phi \cup \{0\}} \mathfrak{g}_{\alpha}\) satisfying \[\mathop{\mathrm{ad}}_H(X) = [H,X] = \alpha(H)X \qquad \text{for all H \in \mathfrak{h} and X \in \mathfrak{g}_{\alpha}}.\] Here each eigenvalue \(\alpha\) depends linearly on \(H\), i.e.\(\alpha\) is an element of \(\mathfrak{h}^*\). The zero eigenspace \(\mathfrak{g}_0\) is just \(\mathfrak{h}\) itself. The set of nonzero eigenvalues is a finite subset \(\Phi \subseteq \mathfrak{h}^*\) called the root system of \(\mathfrak{g}\) (with respect to \(\mathfrak{h}\)). Elements of \(\Phi\) are roots and their eigenspaces \(\mathfrak{g}_\alpha\) are root spaces.

Example 8. Say \(\mathfrak{g}^0 = \mathfrak{su}(n)\), and take the maximal abelian subalgebra \(\mathfrak{h}^0\) to be imaginary diagonal matrices. Then \(\mathfrak{g}= \mathfrak{sl}(n,\mathbb{C})\) and \(\mathfrak{h}\) consists of all (trace zero) diagonal matrices. If \(H \in \mathfrak{h}\) is diagonal then \([H, E_{ij}] = (H_{ii}-H_{jj}) E_{ij}\), where \(E_{ij}\) is the matrix with \(1\) in position \((i,j)\) and \(0\)’s elsewhere. Thus, if \(e_i \in \mathfrak{h}^*\) is the linear functional sending \(H\) to \(H_{ii}\), then \([H,E_{ij}] = (e_i-e_j)(H) E_{ij}\), so the root system is \(\{e_i - e_j : i,j \in [n], i \neq j\}\), with associated root spaces \(\mathfrak{g}_{e_i-e_j} = \mathbb{C}E_{ij}\).

Next we describe how an automorphism \(\phi : \mathfrak{g}\to \mathfrak{g}\) is (almost) determined by its action on roots. Assume \(\phi\) maps \(\mathfrak{h}\) to \(\mathfrak{h}\); it follows from [10] that this assumption can always be satisfied without changing the element of \(\mathop{\mathrm{Out}}(\mathfrak{g})\) that \(\phi\) represents. For \(X \in \mathfrak{g}_\alpha\), \[\label{eq:root-action} [H, \phi(X)] = \phi [\phi^{-1}(H), X] = \alpha(\phi^{-1}(H)) \phi(X).\tag{7}\] The linear functional \(H \mapsto \alpha(\phi^{-1}(H))\) is by definition \((\phi^{-1})^*(\alpha)\) where \((\phi^{-1})^*\) is the dual map to \(\phi^{-1}\). In this language, 7 shows that \(\phi\) maps \(\mathfrak{g}_\alpha\) to \(\mathfrak{g}_{(\phi^{-1})^* \alpha}\).

The final key fact is that each root space \(\mathfrak{g}_\alpha\) is 1-dimensional [10]. Thus if we choose a nonzero \(X_\alpha \in \mathfrak{g}_{\alpha}\) for each \(\alpha\) (a root vector), we must have \(\phi(X_{\alpha}) = c_\alpha X_{(\phi^{-1})^* \alpha}\) for some scalars \(c_\alpha\). The conclusion is that, up to these scalars, \(\phi : \mathfrak{g}\to \mathfrak{g}\) is completely determined by its action on \(\mathfrak{h}\). Conversely, if one just starts with the action of \(\phi\) on \(\mathfrak{h}\), the next theorem asserts that the scalars \(c_\alpha\) can be chosen so that the formula \(X_{\alpha} \mapsto c_\alpha X_{(\phi^{-1})^* \alpha}\) actually defines a Lie algebra homomorphism.

Theorem 4. [10] Suppose \(\mathfrak{g}\) is a complex simple Lie algebra, and \(\mathfrak{h}\) is a maximal abelian subalgebra with corresponding root system \(\Phi \subseteq \mathfrak{h}^*\). If \(f : \mathfrak{h}\to \mathfrak{h}\) is any invertible linear map such that \((f^{-1})^*(\Phi) \subseteq \Phi\), then there is a Lie algebra automorphism \(\phi : \mathfrak{g}\to \mathfrak{g}\) agreeing with \(f\) on \(\mathfrak{h}\).

3 Triality↩︎

In this section we construct triality automorphisms for \(\mathfrak{so}(8)\) and \(\operatorname{PSO}(8)\). One possible construction—indeed, Cartan’s original construction—proceeds via the algebra of octonions [15]. We give a different description relying on quaternion arithmetic, which we extracted from an article of Baez [16]; see also [17]. The reader who is just interested in a quick explicit description of these maps for purposes of calculation can skip to the end of §3.1 (or §3.4) and §3.2 respectively.

3.1 Triality for \(\mathfrak{so}(8)\)↩︎

As discussed in the previous section, constructing a triality automorphism mostly amounts to describing its action on roots, so we start with an explicit description of the root system and root vectors for \(\mathfrak{so}(2m)\). Let \(f_{ji}\) be the matrix with \(1\) in position \((j,i)\) and \(-1\) in position \((i,j)\) and \(0\)’s elsewhere. Let \(H_i = f_{2i,2i-1}\) for \(i = 1, \ldots, m\) and \(\mathfrak{h}^0 = \operatorname{span}_{\mathbb{R}} \{H_1, \ldots,H_m\}\). Then the \({2m \choose 2}\) matrices \(\{f_{ji} : 1 \leq i < j \leq m\}\) form a basis of \(\mathfrak{so}(2m)\), and \(\mathfrak{h}^0\) is a maximal abelian subalgebra. For instance, in the case \(m = 4\), \[a_1 H_1 + a_2 H_2 + a_3 H_3 + a_4 H_4 = \left[\begin{smallmatrix} 0 & -a_1 & 0 & 0 & 0 & 0 & 0 & 0\\ a_1 & 0 & 0 & 0 & 0 & 0 & 0 & 0\\ 0 & 0 & 0 & -a_2 & 0 & 0 & 0 & 0\\ 0 & 0 & a_2 & 0 & 0 & 0 & 0 & 0\\ 0 & 0 & 0 & 0 & 0 & -a_3 & 0 & 0\\ 0 & 0 & 0 & 0 & a_3 & 0 & 0 & 0\\ 0 & 0 & 0 & 0 & 0 & 0 & 0 & -a_4\\ 0 & 0 & 0 & 0 & 0 & 0 & a_4 & 0 \end{smallmatrix}\right]\] and \(\mathfrak{h}^0\) is the set of all such matrices for \(a_1,a_2,a_3,a_4 \in \mathbb{R}\).

Write \(\mathfrak{so}(n,\mathbb{C}) := \mathfrak{so}(n) \otimes \mathbb{C}\) and \(\mathfrak{h}:= \mathfrak{h}^0 \otimes \mathbb{C}\). Note that \(\mathfrak{so}(n,\mathbb{C})\) is the space of complex skew-symmetric (not skew-Hermitian!) matrices. Let \(e_1, \ldots, e_m \in \mathfrak{h}^*\) be the dual basis to \(-iH_1,\ldots,-iH_m\), so \(e_j(H_k) = i\delta_{jk}\). The root system of \(\mathfrak{so}(2m,\mathbb{C})\) then consists of the \(2m(m-1)\) linear functionals \(\{\pm e_p \pm e_q : p \neq q\}\). For root vectors we take

  • \(X_{e_p-e_q} \in \mathfrak{so}(2m,\mathbb{C})_{e_p-e_q}\) the skew-symmetric matrix with \(\tfrac{1}{2}\left[ \begin{smallmatrix} 1 & i \\ -i & 1 \end{smallmatrix}\right]\) in entries \([2p-1,2p] \times [2q-1,2q]\) and \(0\)’s elsewhere above the diagonal,

  • \(X_{e_p+e_q} \in \mathfrak{so}(2m,\mathbb{C})_{e_p+e_q}\) the skew-symmetric matrix with \(\tfrac{1}{2}\left[ \begin{smallmatrix} 1 & -i \\ -i & -1 \end{smallmatrix}\right]\) in entries \([2p-1,2p] \times [2q-1,2q]\) and \(0\)’s elsewhere above the diagonal,

  • \(X_{-\alpha} = \overline{X_{\alpha}} \in \mathfrak{so}(2m,\mathbb{C})_{\alpha}\) if \(\alpha = e_p\pm e_q\),

where we assume \(p < q\) in all cases.

Example 9. With \(m = 4\) we have \[X_{e_1-e_2} = \frac{1}{2}\left[\begin{smallmatrix} 0 & 0 & 1 & i & 0 & 0 & 0 & 0\\ 0 & 0 & -i & 1 & 0 & 0 & 0 & 0\\ -1 & i & 0 & 0 & 0 & 0 & 0 & 0\\ -i & -1 & 0 & 0 & 0 & 0 & 0 & 0\\ 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0\\ 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0\\ 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0\\ 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \end{smallmatrix}\right]\] and the statement that \(X_{e_1-e_2}\) is a root vector for \(e_1-e_2\) means \[[a_1 H_1 + a_2 H_2 + a_3 H_3 + a_4 H_4, X_{e_1-e_2}] = i(a_1-a_2)X_{e_1-e_2}.\] More generally, there are 24 roots for \(\mathfrak{so}(8,\mathbb{C})\) and the corresponding root vectors (unique up to scalar multiples) come from choosing one of the 6 possible \(2 \times 2\) subblocks indicated in the figure

Figure 1: image.

to fill with one of the matrices \(\left[ \begin{smallmatrix} 1 & i \\ -i & 1 \end{smallmatrix}\right]\), \(\left[ \begin{smallmatrix} 1 & -i \\ -i & -1 \end{smallmatrix}\right]\), or their conjugates, then applying the skew-symmetrizing operator \(A \mapsto \tfrac{1}{2}(A-A^T)\).

For convenience, identify \(\mathfrak{h}^0 \subseteq \mathfrak{so}(2m)\) with \(\mathbb{R}^m\) by taking \(H_1, \ldots, H_m\) to be the standard basis, and likewise identify \(i(\mathfrak{h}^0)^* = \operatorname{span}_{\mathbb{R}} \{e_1,\ldots,e_m\}\) with \(\mathbb{R}^m\) by taking \(e_1, \ldots, e_m\) as the standard basis. For instance, \((1,0,0,-1)\) represents either \(H_1-H_4\) or \(e_1-e_4\) as determined by context.

Let \[D_m = \{\pm e_i \pm e_j : i,j \in [m], i \neq j\} \subseteq \mathbb{R}^m\] be the root system of \(\mathfrak{so}(2m,\mathbb{C})\) for \(m > 1\). The root lattice \(\mathbb{Z}D_m\) is the set of integer linear combinations of elements of \(D_m\), and its dual lattice is \[(\mathbb{Z}D_m)^* = \{x \in \mathbb{Z}^m : x \cdot v \in \mathbb{Z}\text{ for all v \in \mathbb{Z}D_m} \}.\]

Proposition 5. For \(m > 1\),

(a) \(\mathbb{Z}D_m = \{(v_1, \ldots, v_m) \in \mathbb{Z}^m : \sum_i v_i \equiv 0 \pmod{2}\}\).

(b) \((\mathbb{Z}D_m)^* = \mathbb{Z}^m \cup (\mathbb{Z}+\tfrac{1}{2})^m\).

In words: \(\mathbb{Z}D_m\) is the set of integer vectors with even sum, while \((\mathbb{Z}D_m)^*\) consists of the vectors \((x_1, \ldots, x_m)\) with the \(x_i\) either being all integers or all half-integers.

Proof.

(a) Every vector in \(D_m\) has sum 0 or 2, so any integer linear combination of such vectors has even sum. Conversely, suppose \(v \in \mathbb{Z}^m\) has even sum; induct on length. Since \(v\) has even sum, it either has two distinct nonzero entries \(v_i, v_j\), or else one entry satisfying \(|v_i| \geq 2\). In the first case, set \(\alpha = \operatorname{sgn}(v_i)e_i + \operatorname{sgn}(v_j)e_j \in \mathbb{Z}D_m\). In the second case, set \(\alpha = \operatorname{sgn}(v_i)2e_i\), which is also an element of \(\mathbb{Z}D_m\) since \(2e_i = (e_i+e_k)+(e_i-e_k)\) where \(k \neq i\) is arbitrary. In either case, \(v-\alpha\) has even sum and satisfies \(|v-\alpha| < |v|\), so \(v-\alpha \in \mathbb{Z}D_m\) by induction. Hence \(v = (v-\alpha) + \alpha \in \mathbb{Z}D_m\) as well.

(b) If \(x \in \mathbb{Z}^m \cup (\mathbb{Z}+\tfrac{1}{2})^m\), then \(\pm x_i \pm x_j\) is an integer for all \(i,j\), so \(x \in (\mathbb{Z}D_m)^*\). Conversely, suppose \(x \in (\mathbb{Z}D_m)^*\), so \(\pm x_i \pm x_j \in \mathbb{Z}\) for all \(i,j\). Note that this includes \(i = j\), since \(\mathbb{Z}D_m\) contains \(2e_i\) as noted in (a). Thus \(2x_i \in \mathbb{Z}\) for each \(i\), i.e.each \(x_i\) is in \(\mathbb{Z}\cup (\mathbb{Z}+\tfrac{1}{2})\). But if one particular \(x_i\) is in either set \(\mathbb{Z}\) or \(\mathbb{Z}+\tfrac{1}{2}\), then every other \(x_j\) must also be in the same set since \(x_i + x_j \in \mathbb{Z}\).

 ◻

We now turn to the case \(m = 4\) in particular. Identify \((x_1,x_2,x_3,x_4) \in \mathbb{R}^4\) with the quaternion \(x_1 + x_2 i + x_3 j + x_4 k\). The only knowledge we require of the algebra of quaternions \(\mathbb{H}= \{x_1 + x_2 i + x_3 j + x_4 k : x_1,x_2,x_3,x_4 \in \mathbb{R}\}\) is the basic multiplication rules \[i^2 = j^2 = k^2 = -1, \qquad ij = -ji = k,\quad jk = -kj = i,\quad ki = -ik = j,\] the associativity of the multiplication, and the fact that the norm \[|x_1+x_2 i+x_3 j + x_4 k| = \sqrt{x_1^2+x_2^2+x_3^2+x_4^2}\] satisfies \(|q_1 q_2| = |q_1||q_2|\).

The miracle that occurs after identifying \(\mathbb{R}^4\) with \(\mathbb{H}\) is that \((\mathbb{Z}D_4)^*\) is not just a lattice but a subring of \(\mathbb{H}\), i.e.it is closed under multiplication.

Definition 5. The Hurwitz quaternions are the set of quaternions of the form \(x_1 + x_2 i + x_3 j + x_4 k\) where \((x_1,x_2,x_3,x_4) \in \mathbb{Z}^4 \cup (\mathbb{Z}+\tfrac{1}{2})^4\).

Proposition 5(b) identifies \((\mathbb{Z}D_4)^*\) with the set of Hurwitz quaternions. Hurwitz proposed them as a notion of “integral” quaternions, as they enjoy some number-theoretic benefits over the more obvious set of quaternions with integer coefficients. It is a good exercise to check that that the product of two Hurwitz quaternions must be a third.

Because of the subring property, the linear map \(m_q(x) = qx\) defined by each \(q \in (\mathbb{Z}D_4)^*\) maps \((\mathbb{Z}D_4)^*\) to itself. Therefore we also get a dual map \(m_q^* : \mathbb{Z}D_4 \to \mathbb{Z}D_4\). In order to lead to an automorphism of \(\mathfrak{so}(8)\), this map must preserve the root system \(D_4\), which consists of those integer vectors in \(\mathbb{Z}D_4\) with length \(\sqrt{2}\). Hence \(m_q^*\) should be length-preserving, which by the property \(|qx| = |q||x|\) happens exactly if \(|q| = 1\). There are \(24\) norm 1 Hurwitz quaternions: \[\pm 1, \pm i, \pm j, \pm k, \qquad \text{and} \qquad \frac{\pm 1 \pm i \pm j \pm k}{2}.\] Set \(\omega = \tfrac{-1+i+j+k}{2}\). One checks that \(\omega^3 = 1\), so \((m_{\omega}^*)^3 = \mathop{\mathrm{id}}\). We have now constructed an order 3 operator \(m_{\omega}^* \otimes \mathbb{C}\) on \(\mathbb{Z}D_4 \otimes \mathbb{C}\simeq \mathfrak{h}^*\) preserving the root system \(D_4\), which extends to an order 3 automorphism of \(\mathfrak{so}(8,\mathbb{C})\) by Theorem 4. The latter is the desired triality map.

Let us make this construction more explicit. Recall that we are identifying

  • the basis \(H_1, H_2,H_3,H_4\) of \(\mathfrak{h}^0\)

  • the basis \(e_1,e_2,e_3,e_4\) of \(i(\mathfrak{h}^0)^*\)

  • the basis \(1,i,j,k\) of \(\mathbb{H}\).

Since \[\omega i = \frac{-1-i+j-k}{2}, \qquad \omega j = \frac{-1-i-j+k}{2}, \qquad \omega k = \frac{-1+i-j-k}{2},\] the linear map \(T : \mathfrak{h}^0 \to \mathfrak{h}^0, H \mapsto \omega H\) has matrix \[\label{eq:triality-matrix-h} \frac{1}{2} \begin{bmatrix} -1 & -1 & -1 & -1\\ 1 & -1 & -1 & 1\\ 1 & 1 & -1 & -1\\ 1 & -1 & 1 & -1 \end{bmatrix}.\tag{8}\] Note that this matrix is orthogonal, so under our identification of \(\mathfrak{h}^0\) and \(i(\mathfrak{h}^0)^*\), the same matrix represents the map \((T^{-1})^*\). Accordingly, we write the action of both \(T\) and \((T^{-1})^*\) as just \(x \mapsto \omega x\). As per Theorem 4, we can extend \(T\) to an automorphism of \(\mathfrak{so}(8,\mathbb{C})\) by sending \(X_\alpha \mapsto c_\alpha X_{\omega \alpha}\) for appropriate scalars \(c_\alpha\). We will not discuss a conceptual way to think about these scalars, but the required automorphism equations \(\tau([X_{\alpha},X_{\beta}]) = [\tau(X_{\alpha}), \tau(X_{\beta})]\) for all \(\alpha,\beta \in \Phi\) lead to a system of equations for the \(c_{\alpha}\), using the fact that \([X_{\alpha}, X_{\beta}] \in \mathfrak{g}_{\alpha+\beta}\). This yields the following explicit definition.

Definition 6. The triality map \(\tau : \mathfrak{so}(8,\mathbb{C}) \to \mathfrak{so}(8,\mathbb{C})\) is the linear map with \[\tau(Y) = \begin{cases} \omega Y & \text{if Y \in \mathfrak{h}}\\ X_{\omega \alpha} & \text{if Y = X_{\alpha} with \pm \alpha \notin \{e_1-e_3, e_1+e_4, e_2+e_3,e_2+e_4\}}\\ -X_{\omega \alpha} & \text{if Y = X_{\alpha} with \pm \alpha \in \{e_1-e_3, e_1+e_4, e_2+e_3,e_2+e_4\}} \end{cases}\]

What we really want is an automorphism of the real subalgebra \(\mathfrak{so}(8) \subseteq \mathfrak{so}(8,\mathbb{C})\). By construction, \(\overline{X_\alpha} = X_{-\alpha}\) for all \(\alpha\), so the real subalgebra \(\mathfrak{so}(8)\) is spanned by \(\mathfrak{h}^0\) together with all vectors \(X_{\alpha}+X_{-\alpha}\) and \(i(X_{\alpha}-X_{-\alpha})\). Evidently \(\tau\) preserves the span of such vectors, so it restricts to an automorphism of \(\mathfrak{so}(8)\) as desired. See Example 10 below for an example calculation with \(\tau\).

Even more explicitly, consider the matrix of \(\tau\) with respect to the basis \(\{f_{ji} : 1 < i < j \leq 8\}\) of \(\mathfrak{so}(8)\), ordered with the pairs \((j,i)\) in lex order. Reading the entries of this \(28 \times 28\) matrix left to right across rows, starting with row 1, gives the string

where \(-\) indicates \(-1/2\), \(+\) indicates \(1/2\), and each digit \(d\) is short for a string of \(d\) \(0\)’s (so 66 means a string of 12 zeros).

Several arbitrary choices went into our construction of \(\tau\), and one could equally well call any \(\alpha \circ \tau \circ \alpha^{-1}\) for \(\alpha \in \mathop{\mathrm{Aut}}(\mathfrak{so}(8))\) a triality map. Empirically, Definition 6 seems to lead to nicer formulas later than some other possible choices, but we have not tried to make this idea precise.

3.2 Triality for \(\operatorname{PSO}(8)\)↩︎

We would like to lift \(\tau\) to an automorphism \(\mathcal{T}\) acting on real 3-qubit gates by setting \(\mathcal{T}(\exp(X)) = \exp \tau(X)\). Unfortunately this simply does not work if we view \(X\) as an element of \(\operatorname{SO}(8)\). For instance, since \(\exp \left[ \begin{smallmatrix} 0 & -x \\ x & 0 \end{smallmatrix} \right] = \left[ \begin{smallmatrix} \cos x & -\sin x \\ \sin x & \cos x \end{smallmatrix} \right]\), we would have \(\mathcal{T}(\exp(2\pi H_1)) = \mathcal{T}(I) = I\) but \[\exp(\tau(2\pi H_1)) = \exp(\pi(-H_1+H_2+H_3+H_4)) = -I.\] Instead we use \(\operatorname{PSO}(8)\).

Lemma 4. Let \(\mathcal{G}\) be a connected Lie group with trivial center and Lie algebra \(\mathfrak{g}\). Any automorphism \(\psi : \mathfrak{g}\to \mathfrak{g}\) lifts to an automorphism \(\Psi : \mathcal{G}\to \mathcal{G}\) satisfying \(\Psi \circ \exp = \exp \circ \psi\).

Proof. Let \(\tilde{\mathcal{G}}\) be the simply connected universal cover of \(\mathcal{G}\) and \(q : \tilde{\mathcal{G}} \to \mathcal{G}\) the covering map. Since \(q\) is a covering map, \(\ker(q)\) and therefore \(\mathop{\mathrm{Aut}}(\ker(q))\) are discrete groups. As \(\tilde{\mathcal{G}}\) is connected, the homomorphism \(\tilde{\mathcal{G}} \to \mathop{\mathrm{Aut}}(\ker(q))\) sending \(g\) to \(c_g\) must be constant. This shows \(\ker(q)\) is a subgroup of the center \(\mathcal{Z}(\tilde{\mathcal{G}})\). The assumption that \(G\) has trivial center then forces \(\ker(q) = \mathcal{Z}(\tilde{\mathcal{G}})\).

It is a standard fact from Lie theory that \(\psi\) lifts to an automorphism \(\tilde{\Psi} : \tilde{\mathcal{G}}\to \tilde{\mathcal{G}}\) with \(\tilde{\Psi} \circ \widetilde{\exp} = \widetilde{\exp} \circ \psi\), where \(\widetilde{\exp}\) is the exponential map for \(\tilde{\mathcal{G}}\). We want \(q \circ \tilde{\Psi} : \tilde{\mathcal{G}} \to \mathcal{G}\) to descend to a map \(\mathcal{G}\to \mathcal{G}\), which happens if and only if \(\ker(q) \subseteq \ker(q \circ \tilde{\Psi})\). By the previous paragraph, this is the same as saying \(\mathcal{Z}(\tilde{\mathcal{G}}) \subseteq \tilde{\Psi}^{-1}(\mathcal{Z}(\tilde{\mathcal{G}}))\). But the right-hand side is just \(\mathcal{Z}(\tilde{\mathcal{G}})\) since \(\tilde{\Psi}^{-1}\) is an automorphism. ◻

Definition 7. The triality map \(\mathcal{T}: \operatorname{PSO}(8) \to \operatorname{PSO}(8)\) is the group automorphism defined by \(\mathcal{T}(\exp(X)) = \exp(\tau(X))\).

Since \(\operatorname{PSO}(8)\) has trivial center, Lemma 4 assures us this is well-defined.

Example 10. Let \(A = \exp(\theta f_{51})\), the block matrix with \(\left[ \begin{smallmatrix} \cos \theta & -\sin \theta \\ \sin \theta & \cos \theta \end{smallmatrix} \right]\) in entries \(\{1,5\} \times \{1,5\}\) and the identity in the complementary block. We compute \(\mathcal{T}(A)\).

By definition, \(\mathcal{T}(A) = \exp(\theta \tau(f_{51}))\). Recalling the root vectors \(X_{\alpha}\) from §3.1, \[f_{51} = -\frac{1}{2}(X_{e_1-e_3} + X_{e_1+e_3} + X_{-e_1+e_3} + X_{-e_1-e_3}).\] Computing \(\omega(1-j) = i+j\) and \(\omega(1+j) = -1+k\) and applying Definition 6, \[\tau(f_{51}) = -\frac{1}{2}(-X_{e_2+e_3} + X_{-e_1+e_4} - X_{-e_2-e_3} + X_{e_1-e_4}) = \frac{1}{2} \left[\begin{smallmatrix} 0 & 0 & 0 & 0 & 0 & 0 & -1 & 0\\ 0 & 0 & 0 & 0 & 0 & 0 & 0 & -1\\ 0 & 0 & 0 & 0 & 1 & 0 & 0 & 0\\ 0 & 0 & 0 & 0 & 0 & -1 & 0 & 0\\ 0 & 0 & -1 & 0 & 0 & 0 & 0 & 0\\ 0 & 0 & 0 & 1 & 0 & 0 & 0 & 0\\ 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0\\ 0 & 1 & 0 & 0 & 0 & 0 & 0 & 0 \end{smallmatrix}\right]\] Using the fact that \(\tau(f_{51})^2 = -1/4\) we compute \[\mathcal{T}(A) = \exp(\theta \tau(f_{51})) = \cos(\theta/2) + 2\sin(\theta/2) \tau(f_{51}) = \left[\begin{smallmatrix} c & 0 & 0 & 0 & 0 & 0 & -s & 0\\ 0 & c & 0 & 0 & 0 & 0 & 0 & -s\\ 0 & 0 & c & 0 & s & 0 & 0 & 0\\ 0 & 0 & 0 & c & 0 & -s & 0 & 0\\ 0 & 0 & -s & 0 & c & 0 & 0 & 0\\ 0 & 0 & 0 & s & 0 & c & 0 & 0\\ s & 0 & 0 & 0 & 0 & 0 & c & 0\\ 0 & s & 0 & 0 & 0 & 0 & 0 & c \end{smallmatrix} \right]\] where \(c = \cos(\theta/2)\) and \(s = \sin(\theta/2)\).

Since the matrices \(f_{ji}\) generate \(\mathfrak{so}(8)\), the corresponding 1-parameter families of rotations \(\exp(\theta f_{ji})\) generate \(\operatorname{PSO}(8)\). These are called Givens rotations. One can check that \(\tau(f_{ji})^2 = -1/4\) for all \(i,j\), so \(\exp(\theta f_{ji}) = \cos(\theta_{ji}/2) + 2\sin(\theta_{ji}/2) \tau(f_{ji})\). These facts lead to the following algorithm computing \(\mathcal{T}(V)\) for an arbitrary \(V \in \operatorname{PSO}(8)\), amounting to repeated applications of Example 10.

(a) Write \(V\) as a product of Givens rotations \(\exp(\theta_{ji} f_{ji})\) in some order.

(b) Compute each \(\tau(f_{ji})\), e.g.using the fact that each \(f_{ji}\) is a linear combination of the 4 root vectors \(X_{\pm e_i \pm e_j}\).

(c) Replace each \(\exp(\theta_{ji} f_{ji})\) in the decomposition from (a) by \[\exp(\theta_{ji} \tau(f_{ji})) = \cos(\theta_{ji}/2) + 2\sin(\theta_{ji}/2) \tau(f_{ji}).\] The resulting product is \(\mathcal{T}(V)\).

3.3 Some correspondences under triality↩︎

We now work out how \(\mathcal{T}\) acts on some interesting subgroups \(\mathcal{G}\) of \(\operatorname{PSO}(8)\). Let \(\mu : \operatorname{SU}(8) \to \operatorname{SU}(8)\) be conjugation by \(\mathcal{M}^\dagger\), so \(\mu(U) = \mathcal{M}^\dagger U \mathcal{M}\) and \(\mu(\operatorname{SU}(2)^{\otimes 3}) = \operatorname{SU}(2) \otimes \operatorname{SO}(4)\). It will be convenient to record correspondences between elements \(V \in \operatorname{PSU}(8)\) and \(\mathcal{T}(\mu(V))\). Of course, this only makes sense if \(\mu(V)\) happens to be real, so more accurately we view \(\mu\) as a map \(\operatorname{PSO}(8) \to \mathcal{M}\operatorname{PSO}(8)\mathcal{M}^\dagger\). The reason for the use of \(\mu\) is explained in §4.

Figure 2 shows the results of applying \(\mathcal{T}\circ \mu\) to various one-parameter subgroups \(\exp(\mathbb{R}X) = \{\exp(tX) : t \in \mathbb{R}\}\). Since these amount to just computing the one element \(\tau(\mu(X))\), we omit the verifications.

Figure 2: Triality correspondences

The entries in Figure 2 can be used to work out what happens to larger subgroups. For instance:

Proposition 6.

(a) \((\mathcal{T}\circ \mu)\operatorname{P}(I_4 \otimes \operatorname{SU}(2)) = \operatorname{PSO}(125|3|4|6|7|8) \subseteq \operatorname{PSO}(8)\).

(b) \((\mathcal{T}\circ \mu)\operatorname{P}(I_2 \otimes \operatorname{SU}(2) \otimes I_2) = \operatorname{PSO}(378|1|2|4|5|6)\).

(c) \((\mathcal{T}\circ \mu)\operatorname{P}(C_1^2(I_2 \otimes \operatorname{SU}(2) \otimes I_2)C_1^2) = \operatorname{PSO}(348|1|2|5|6|7)\).

Proof. For part (a), since \(I_4 \otimes \operatorname{SU}(2)\) is the group generated by the one-parameter families \(I_4 \otimes R_a(\mathbb{R})\) for \(a \in \{x,y,z\}\), Figure 2 shows that \((\mathcal{T}\circ \mu)\operatorname{P}(I_4 \otimes \operatorname{SU}(2))\) is the group generated by the one-parameter families \(\exp(\mathbb{R}f_{51})\), \(\exp(\mathbb{R}f_{21})\), and \(\exp(\mathbb{R}f_{52})\). Identifying \(\operatorname{PSO}(125|3|4|6|7|8)\) with \(\operatorname{PSO}(3)\), these are just the families of rotations around the \(y\)-, \(z\)-, and \(x\)-axes respectively, which together generate \(\operatorname{PSO}(3)\). Parts (b) and (c) are analogous. ◻

An interesting feature of the triality map is that it realizes all of the exceptional isomorphisms between the classical matrix Lie algebras of types \(A_n, B_n, C_n, D_n\), in various ways. In this way, it is similar to the magic basis change \(\mu\), which realizes the isomorphism \(\operatorname{SO}(4) \simeq (\operatorname{SU}(2) \times \operatorname{SU}(2))/\{\pm 1\}\). For instance:

  • \(A_1 \simeq B_1\): Proposition 6(a-c) show \(\operatorname{PSU}(2) \simeq \operatorname{PSO}(3)\).

  • \(D_2 \simeq A_1 \oplus A_1\): One can check \(\mathcal{T}^{-1}\operatorname{PSO}(125|378|4|6) = \operatorname{P}(I_2 \otimes \operatorname{SO}(4))\), so \(\operatorname{PSO}(4) \simeq \operatorname{PSO}(3) \times \operatorname{PSO}(3)\).

  • \(A_3 \simeq D_3\): One can check that \(\mathcal{T}^{-1}\operatorname{PSO}(123578|4|6)\) is the group \[\left\{ \left[\begin{smallmatrix} \operatorname{Re}(U) & -\operatorname{Im}(U) \\ \operatorname{Im}(U) & \operatorname{Re}(U) \end{smallmatrix} \right] : U \in \operatorname{SU}(4) \right\},\] so \(\operatorname{SU}(4) / \{\pm I\} \simeq \operatorname{PSO}(6)\).

  • \(C_2 \simeq B_2\): \(\operatorname{P}(\operatorname{Sp}(2)) \simeq \operatorname{PSO}(5)\) follows from Lemma 7 in the next section, where the symplectic groups \(\operatorname{Sp}(n)\) are also defined.

3.4 Pauli operators and triality↩︎

In §3.1 we used the basis of skew-symmetric unit matrices \(\{f_{ji} : 1 \leq i < j \leq 8\}\) of \(\mathfrak{so}(8)\). It turns out that, up to scalars, the triality map identifies these matrices with another natural basis of \(\mathfrak{so}(8)\), the basis of Pauli operators.

We will use a word \(abc\cdots\) on the alphabet \(\{X,Y,Z,I\}\) as an abbreviation for the tensor product \(i\sigma_a \otimes \sigma_b \otimes \sigma_c \otimes \cdots\), where \(\sigma_I\) means the \(2 \times 2\) identity \(I_2\). For instance, \[YXI = i\sigma_y \otimes \sigma_x \otimes I_2 = \left[ \begin{smallmatrix} 0 & 0 & 0 & 0 & 0 & 0 & 1 & 0\\ 0 & 0 & 0 & 0 & 0 & 0 & 0 & 1\\ 0 & 0 & 0 & 0 & 1 & 0 & 0 & 0\\ 0 & 0 & 0 & 0 & 0 & 1 & 0 & 0\\ 0 & 0 & -1 & 0 & 0 & 0 & 0 & 0\\ 0 & 0 & 0 & -1 & 0 & 0 & 0 & 0\\ -1 & 0 & 0 & 0 & 0 & 0 & 0 & 0\\ 0 & -1 & 0 & 0 & 0 & 0 & 0 & 0 \end{smallmatrix} \right]\] Each \(\sigma_a\) is Hermitian, so such a tensor product is skew-Hermitian. Indeed, the \(4^n\) \(n\)-qubit Pauli operators \(W \in \{I,X,Y,Z\}^n\) form a basis of \(\mathfrak{su}(2^n)\). Since \(\sigma_x, \sigma_z, I_2\) are real while \(\sigma_y\) is pure imaginary, a Pauli operator \(W\) is real iff it has an odd number of \(Y\)’s. One can calculate using the binomial theorem that the number of such operators is \({2^n \choose 2} = \dim \mathfrak{so}(2^n)\), so they form a basis of \(\mathfrak{so}(2^n)\).

The following array shows the correspondence between Pauli operators and skew-symmetric unit matrices \(f_{ji}\), where a Pauli operator \(\pm W\) in position \((j,i)\) means that \(\tau(W) = \pm 2f_{ji}\): \[\label{eq:pauli-correspondence} \text{\texttt{ \begin{tabular}{cccccccc} · & · & · & · & · & · & · & · \\ +IIY & · & · & · & · & · & · & ·\\ +YXZ & -YXX & · & · & · & · & · & ·\\ +XYX & +XYZ & -ZZY & · & · & · & · & ·\\ -IYZ & +IYX & +YZI & -XIY & · & · & · & ·\\ -ZYX & -ZYZ & -XZY & -YII & -ZIY & · & · & ·\\ -YZZ & +YZX & -IYI & +ZXY & -YXI & +XXY & · & ·\\ -YIX & -YIZ & +IXY & +ZYI & -YYY & +XYI & -IZY & · \end{tabular}}}\tag{9}\] For instance, \(\tau(i\sigma_y \otimes \sigma_x \otimes \sigma_x) = -2f_{32}\). Alternatively, one could view a Pauli operator \(W\) as an element of \(\operatorname{PSO}(8)\), in which case 9 says that \[\mathcal{T}(W) = \mathcal{T}(\exp(\pi W/2)) = \exp(\pm \pi f_{ji}) = J_{\{i,j\}}\] if \(W\) occurs in entry \((j,i)\).

Corollary 3. Suppose \(c : \mathfrak{so}(8) \to \mathfrak{so}(8)\) is conjugation by some diagonal orthogonal matrix \(\Delta_S\), and set \(c' = \tau^{-1} \circ c \circ \tau\). Then the Pauli basis is an eigenbasis for the involution \(c'\).

Proof. The matrices \(2f_{ji}\) form an eigenbasis of \(c\), with eigenvalue \(-1\) if \(|\{i,j\} \cap S| = 1\) and \(+1\) otherwise. Therefore the matrices \(\tau^{-1}(2f_{ji})\) form an eigenbasis of \(\tau^{-1} \circ c \circ \tau\). ◻

The significance of this is that it makes it easy to find the Cartan decomposition \(\mathfrak{k}\oplus \mathfrak{p}\) with respect to an involution of the form \(c' = \tau^{-1} \circ c \circ \tau\): \(\mathfrak{k}\) is the span of the Pauli operators fixed by \(c'\), while \(\mathfrak{p}\) is spanned by those negated by \(c'\).

4 Real circuit elements↩︎

It is a priori unclear when a long product of CNOTs and single-qubit gates actually multiplies to a real matrix. This is one advantage of using the magic matrix \(\mathcal{M}\): we know at least that any element of \(\mathcal{M}^\dagger (R_y(\mathbb{R}) \otimes \operatorname{SU}(2) \otimes \operatorname{SU}(2))\mathcal{M}\) is guaranteed to be real. In this section we discuss some other basic circuit elements that will be useful in constructing real 3-qubit gates. These considerations also lead us toward to an interesting subgroup of \(\operatorname{PSO}(8)\) that turns out to be key to our Cartan decomposition in §5 later.

Lemma 5. Let \(C \in \{C_1^2, C_1^3\}\) and let \(\mathcal{G}\) be the subgroup \[C(R_x(\mathbb{R}) \otimes \operatorname{SU}(2) \otimes \operatorname{SU}(2))C \subseteq \operatorname{SU}(8)\] Then \(\mu(\mathcal{G}) = \mathcal{M}^\dagger \mathcal{G}\mathcal{M}\subseteq \operatorname{SO}(8)\).

Proof. One checks that if \(C\) has control qubit 1 and target qubit 2 or 3, then \(\mu(C)\) has the form \(\operatorname{diag}(I_4, iS)\) with \(S\) a real matrix. First suppose \(U \in I_2 \otimes \operatorname{SU}(2) \otimes \operatorname{SU}(2)\). Then \(\mu(U) \in I_2 \otimes \operatorname{SO}(4)\) has the form \(W \oplus W\) for \(W\) real, so \[\mu(CUC) = (I_4 \oplus iS)(W \oplus W)(I_4 \oplus iS) = W \oplus -SWS\] is real.

Next, suppose \(U = R_x(\theta) \otimes I_4\), so \[\mathcal{M}^\dagger C U C \mathcal{M}= \exp(-i\mathcal{M}^\dagger C (\sigma_x \otimes I_4) C \mathcal{M}\cdot \theta/2).\] Since \(\mathcal{M}= I_2 \otimes \mathcal{Q}\) commutes with \(\sigma_x \otimes I_4 = \left[ \begin{smallmatrix} 0 & I_4 \\ I_4 & 0 \end{smallmatrix} \right]\), the argument to the matrix exponential above is \[\begin{align} -i\mathcal{M}^\dagger C(\sigma_x \otimes I_4) C \mathcal{M}&= -i\mathcal{M}^\dagger C\mathcal{M}\cdot (\sigma_x \otimes I_4)\cdot \mathcal{M}^\dagger C \mathcal{M}\\ &= -i(I_4 \oplus iS) \begin{bmatrix} 0 & I_4 \\ I_4 & 0 \end{bmatrix} (I_4 \oplus iS) = \begin{bmatrix} 0 & S \\ S & 0 \end{bmatrix}, \end{align}\] again a real matrix. ◻

Definition 8. The symplectic group \(\operatorname{Sp}(n) \subseteq \operatorname{U}(2n)\) is the subgroup of matrices \(U\) where each \(2 \times 2\) block \(U_{[2i-1,2i][2i-1,2i]}\) has the form \(\left[ \begin{smallmatrix} w & -\bar{z} \\ z & \bar{w} \end{smallmatrix} \right]\).

For instance, \(\operatorname{Sp}(1) = \operatorname{SU}(2)\). The symplectic group \(\operatorname{Sp}(n)\) is a compact simply connected group of dimension \(n(2n+1)\). Setting \(\Omega = I_n \otimes i\sigma_y = \left[ \begin{smallmatrix} 0 & 1 \\ -1 & 0 \end{smallmatrix} \right]^{\oplus n}\), an alternative phrasing of Definition 8 is that \(\operatorname{Sp}(n) = \{U \in \operatorname{U}(2n) : \Omega \overline{U} \Omega^T = U\}\). This reveals \(\operatorname{Sp}(n)\) as a Cartan subgroup of \(\operatorname{U}(2n)\).

As an aside, the algebra of quaternions \(\mathbb{H}\) is isomorphic to the algebra of \(2 \times 2\) matrices of the form \(\left[ \begin{smallmatrix} w & -\bar{z} \\ z & \bar{w} \end{smallmatrix} \right]\) by identifying this matrix with \(w+jz\). Making this replacement for each \(2 \times 2\) block reveals \(\operatorname{Sp}(n)\) as the group of \(n \times n\) unitary quaternionic matrices. We will not use this perspective, but it has the nice feature of unifying the classical compact matrix groups \(\operatorname{O}(n)\), \(\operatorname{U}(n)\), and \(\operatorname{Sp}(n)\) as being the unitary matrices whose entries come from the three possible associative real division algebras \(\mathbb{R}\), \(\mathbb{C}\), and \(\mathbb{H}\).

Lemma 6. The subgroup of \(\operatorname{U}(4)\) generated by \[\mathcal{H}_1 = R_y(\mathbb{R}) \otimes \operatorname{SU}(2) \quad \text{and} \quad \mathcal{H}_2 = C_1^2 (R_x(\mathbb{R}) \otimes \operatorname{SU}(2))C_1^2\] is \[\operatorname{Sp}(2) = \left\{\left[\begin{smallmatrix} a & -\overline{b} & c & -\overline{d} \\ b & \overline{a} & d & \overline{c}\\ e & -\overline{f} & g & -\overline{h}\\ f & \overline{e} & h & \overline{g} \end{smallmatrix}\right] \in \operatorname{U}(4) \right\}\]

Proof. It suffices to show that the Lie algebras \[\begin{align} \mathfrak{h}_1 &= i \mathbb{R}\sigma_y \otimes I_2 + I_2 \otimes \mathfrak{su}(2) = \left\{ \left[ \begin{smallmatrix} ir & -\overline{a} & -s & 0\\ a & -ir & 0 & -s\\ s & 0 & ir & -\overline{a}\\ 0 & s & a & -ir \end{smallmatrix} \right] : r,s \in \mathbb{R}\right\} \\ \mathfrak{h}_2 &= C_1^2 (i \mathbb{R}\sigma_x \otimes I_2 + I_2 \otimes \mathfrak{su}(2)) C_1^2 = \left\{ \left[ \begin{smallmatrix} ir & -\overline{a} & 0 & is\\ a & -ir & is & 0\\ 0 & is & -ir & a\\ is & 0 & -\overline{a} & ir \end{smallmatrix} \right] : r,s \in \mathbb{R}\right\} \end{align}\] generate the Lie algebra \[\mathfrak{sp}(2) = \left\{ \left[ \begin{smallmatrix} ir & -\overline{a} & -b & -\overline{c}\\ a & -ir & c & -\overline{b}\\ b & -\overline{c} & is & -\overline{d}\\ c & \overline{b} & d & -is \end{smallmatrix}\right] : r,s \in \mathbb{R}\right\}.\]

Let \(\theta : \operatorname{Sp}(2) \to \operatorname{Sp}(2)\) be conjugation by \(\sigma_x \otimes \sigma_x\), so \(\theta\) (and \(d\theta\)) have the effect of rotating a matrix by \(180^\circ\). The subspace \(\mathfrak{k}\subseteq \mathfrak{sp}(2)\) fixed by \(d\theta\) is exactly \(\mathfrak{h}_2\).

The \((-1)\)-eigenspace of \(d\theta\) is \[\label{eq:sp2-cartan} \mathfrak{p}= \left\{ \left[ \begin{smallmatrix} ir & -\overline{a} & -\overline{b} & -s\\ a & -ir & s & -b\\ b & -s & ir & -a\\ s & \overline{b} & \overline{a} & -ir \end{smallmatrix}\right] : r,s \in \mathbb{R}\right\}.\tag{10}\] Let \(\mathfrak{a}\) be the span of the two commuting elements \[i\sigma_y \otimes I_2 = \left[ \begin{smallmatrix} 0 & 0 & 1 & 0\\ 0 & 0 & 0 & 1\\ -1 &0 & 0 & 0\\ 0 & -1 & 0 & 0 \end{smallmatrix} \right] \qquad \text{and} \qquad I_2 \otimes i\sigma_y = \left[ \begin{smallmatrix} 0 & 1 & 0 & 0\\ -1 & 0 & 0 & 0\\ 0 & 0 & 0 & 1\\ 0 & 0 & -1 & 0 \end{smallmatrix} \right].\] Note that \(\mathfrak{a}\subseteq \mathfrak{h}_1\) and that \(\mathfrak{a}\) is also contained in the \((-1)\)-eigenspace \(\mathfrak{p}\) of \(d\theta\). We claim \(\mathfrak{a}\) is a maximal abelian subalgebra of \(\mathfrak{p}\). Indeed, a matrix \(A\) commutes with \(I_2 \otimes i\sigma_y\) if and only if each \(2 \times 2\) block has the form \(\left[ \begin{smallmatrix} x & -y \\ y & x \end{smallmatrix} \right]\); in particular, if \(A\) has the form 10 then we must have \(r = 0\) and \(a,b \in \mathbb{R}\). Similarly, \(A\) commutes with \(i\sigma_y \otimes I_2\) iff \(a,b \in \mathbb{R}\) and \(s = 0\). Thus if both conditions hold then \(A = \left[ \begin{smallmatrix} 0 & -a & -b & 0\\ a & 0 & 0 & -b\\ b & 0 & 0 & -a\\ 0 & b & a & 0 \end{smallmatrix}\right]\), which already lies in \(\mathfrak{a}\). Cartan decomposition (specifically Corollary 1) therefore shows \(\mathfrak{sp}(2)\) is generated by \(\mathfrak{k}= \mathfrak{h}_2\) together with \(\mathfrak{a}\subseteq \mathfrak{h}_1\). ◻

Combining Lemmas 5 and 6 gives:

Corollary 4. \(\mu\operatorname{P}(\operatorname{Sp}(2) \otimes \operatorname{SU}(2))\subseteq \operatorname{SO}(8)\).

The discussion above identifies \(\mu\operatorname{P}(\operatorname{Sp}(2) \otimes \operatorname{SU}(2))\) as a subgroup of \(\operatorname{PSO}(8)\) determined by relatively simple circuit elements. The second key fact about it is that it is a Cartan subgroup, which we leverage in the next section to derive our new circuit for \(\operatorname{PSO}(8)\).

Lemma 7. \((\mathcal{T}\circ \mu)\operatorname{P}(\operatorname{Sp}(2) \otimes I_2) = \operatorname{PSO}(34678|1|2|5)\).

Proof. Set \(\Omega = I_2 \otimes i\sigma_y \otimes I_2\) and \(\mathcal{H}= \mu\operatorname{P}(\operatorname{Sp}(2) \otimes \operatorname{SU}(2))\), so \(\Omega U \Omega^T = \overline{U}\) for \(U \in \operatorname{Sp}(2) \otimes I_2\). Making the substitution \(U = \mathcal{M}V \mathcal{M}^\dagger\) for \(V \in \mathcal{H}\subseteq \operatorname{SO}(8)\) and rearranging shows that \(V\) commutes with \(\mathcal{M}^T \Omega \mathcal{M}= I_4 \otimes i\sigma_y\). Evidently any \(V \in \mathcal{H}\) also commutes with any element of \(\mu\operatorname{P}(I_4 \otimes \operatorname{SU}(2))\).

We see from the above that \(\mathcal{T}(\mathcal{H})\) commutes with both \[\mathcal{T}(\mathcal{M}^T \Omega \mathcal{M}) = \Delta_{\{1,2\}} \qquad \text{and} \qquad \mathcal{T}(\mu(I_4 \otimes i\sigma_z)) = \Delta_{\{2,5\}}.\] Since \(\mathcal{T}(\mathcal{H})\) is connected, \[\begin{align} \label{eq:secret-PSO5} \mathcal{T}(\mathcal{H}) &\subseteq \mathcal{Z}(\{\Delta_{\{1,2\}},\Delta_{\{2,5\}}\})_0 = (\operatorname{PSO}(12|345678) \cap \operatorname{PSO}(134678|25))_0 \nonumber\\ &= \operatorname{PSO}(34678|1|2|5), \end{align}\tag{11}\] using Lemma 3. But both \(\mathcal{T}(\mathcal{H}) \simeq \operatorname{Sp}(2)\) and \(\operatorname{PSO}(5)\) have dimension 10, so the inclusion 11 is an equality by Lemma 1. ◻

Theorem 7. Let \(\psi : \operatorname{PSO}(8) \to \operatorname{PSO}(8)\) be conjugation by \(\Delta_{\{1,2,5\}}\), and let \(\chi = \mathcal{T}^{-1} \circ \psi \circ \mathcal{T}\). Then \(\mathcal{K}_{\chi} = \mu \operatorname{P}(\operatorname{Sp}(2) \otimes \operatorname{SU}(2)) \subseteq \operatorname{PSO}(8)\).

Proof. Since \(V \in \operatorname{PSO}(8)\) is fixed by \(\psi\) if and only if \(\mathcal{T}^{-1}(V)\) is fixed by \(\chi\), we have \(\mathcal{K}_{\chi} = \mathcal{T}^{-1}(\mathcal{K}_{\psi})\). Now \[\begin{align} \mathcal{K}_{\chi} &= \mathcal{T}^{-1}(\mathcal{K}_{\psi}) = \mathcal{T}^{-1}(\operatorname{PSO}(125|34678))\\ &= \mathcal{T}^{-1}(\operatorname{PSO}(125|3|4|6|7|8) \cdot \operatorname{PSO}(34678|1|2|5))\\ &= \mu\operatorname{P}(I_4 \otimes \operatorname{SU}(2)) \cdot \mu\operatorname{P}(\operatorname{Sp}(2) \otimes I_4), \end{align}\] using Proposition 6(a) and Lemma 7 in the last line. ◻

Given the utility of the slightly mysterious subgroup \(\mathcal{K}_\chi = \mu \operatorname{P}(\operatorname{Sp}(2) \otimes \operatorname{SU}(2))\), it would be useful to have other descriptions; here is one possibility.

Proposition 8. \(\mu \operatorname{P}(\operatorname{Sp}(2) \otimes \operatorname{SU}(2))\) is the set of matrices \(V = \left[\begin{smallmatrix} V_{11} & V_{12} \\ V_{21} & V_{22} \end{smallmatrix}\right]\) where the \(4 \times 4\) blocks \(V_{ij}\) have the property that each \(V_{ij}V_{kl}^T\) commutes with \(I_2 \otimes \sigma_y\) and \(\sigma_y \otimes \sigma_z\), i.e.has the form \[\label{eq:SU-I-2} \begin{bmatrix} a & -b & -c & -d\\ b & a & d & -c\\ c & -d & a & b\\ d & c & -b & a \end{bmatrix}.\qquad{(1)}\]

Proof. Suppose that \(V = \mu(S \otimes W)\) where \(S \in \operatorname{Sp}(2)\) and \(W \in \operatorname{SU}(2)\). By definition, \(S = \left[ \begin{smallmatrix} S_{11} & S_{12} \\ S_{21} & S_{22} \end{smallmatrix} \right]\) where each \(S_{ij}\) has the form \(\left[ \begin{smallmatrix} a & -\overline{b} \\ b & \overline{a} \end{smallmatrix}\right]\). Dividing by \(|a|^2+|b|^2\) shows that each \(S_{ij}\) can be written \(c_{ij}U_{ij}\) where \(c_{ij} \in \mathbb{R}\) and \(U_{ij} \in \operatorname{SU}(2)\). Since \(\mathcal{M}= I_2 \otimes \mathcal{Q}= \operatorname{diag}(\mathcal{Q},\mathcal{Q})\), \[\begin{align} \label{eq:K1-2} V &= \mathcal{M}^{-1}(S \otimes W)\mathcal{M}= \begin{bmatrix} \mathcal{Q}& 0 \\ 0 & \mathcal{Q}\end{bmatrix}^\dagger \begin{bmatrix} S_{11} \otimes W & S_{12} \otimes W \\ S_{21} \otimes W & S_{22} \otimes W \end{bmatrix} \begin{bmatrix} \mathcal{Q}& 0 \\ 0 & \mathcal{Q}\end{bmatrix} \nonumber\\ &= \begin{bmatrix} c_{11}\mathcal{Q}^\dagger(U_{11} \otimes W) \mathcal{Q}& c_{12}\mathcal{Q}^\dagger(U_{12} \otimes W) \mathcal{Q}\\ c_{21}\mathcal{Q}^\dagger(U_{21} \otimes W) \mathcal{Q}& c_{22}\mathcal{Q}^\dagger(U_{22} \otimes W) \mathcal{Q}\end{bmatrix} \end{align}\tag{12}\] This calculation shows that each \(V_{ij}V_{kl}^T\) lies in the subgroup \(\mathcal{Q}^\dagger (\operatorname{SU}(2) \otimes I_2) \mathcal{Q}\) up to a scalar multiple. By Lemma 2, this is equivalent to the stated condition.

Conversely, suppose the stated conditions on \(V\) hold. Cartan decomposition with respect to \(\operatorname{S}(\operatorname{O}(4) \times \operatorname{O}(4)) \subseteq \operatorname{SO}(8)\) lets us write \[V = \begin{bmatrix} O_1 & 0 \\ 0 & O_2 \end{bmatrix} \begin{bmatrix} C & -S \\ S & C \end{bmatrix} \begin{bmatrix} O_3 & 0 \\ 0 & O_4 \end{bmatrix} = \begin{bmatrix} O_1 C O_3 & -O_1 S O_4 \\ O_2 C O_3 & O_2 S O_4 \end{bmatrix}\] where \(C\) and \(S\) are nonnegative real diagonal with \(C^2+S^2=I_4\) and \(O_1, \ldots, O_4 \in \operatorname{O}(4)\). The matrix \(V_{11}V_{11}^T = O_1 C^2 O_1^T\) is symmetric and also has the form ?? by assumption, which together force it to be a scalar matrix. This shows \(C^2\) and hence \(C\) are scalar matrices. The same argument with other blocks shows that \(S\) is a scalar matrix.

Thus, each block \(V_{ij}\) actually has the form \(c_{ij}O_{ij}\) for \(c_{ij} \in \mathbb{R}\) and \(O_{ij} \in \operatorname{O}(4)\). Moreover, each \(V_{ij}V_{kl}^T = c_{ij}c_{kl} O_{ij}O_{kl}^T\) lies in the subgroup \(\mathcal{Q}(\operatorname{SU}(2) \otimes I_2)\mathcal{Q}^\dagger\) up to a scalar multiple by assumption and by Lemma 2. Reversing the argument in the first paragraph of the proof, we conclude that \(V \in \mu \operatorname{P}(\operatorname{Sp}(2) \otimes \operatorname{SU}(2))\). ◻

We can also describe the Lie algebra of \(\mathcal{K}_\chi = \mu \operatorname{P}(\operatorname{Sp}(2) \otimes \operatorname{SU}(2))\).

Proposition 9. The Lie subalgebra of \(\mathfrak{so}(8)\) corresponding to \(\mathcal{K}_\chi\) is

(a) the span of the Pauli operators \[\{XXY,XYI,XZY,ZXY,ZYI,ZZY,YII,IXY,IYX,IYZ,IYI,IZY,IIY\};\]

(b) the subspace of matrices \(A \in \mathfrak{so}(8)\) with \(\operatorname{tr}(AB) = 0\) for the 15 Pauli operators \(B\) not listed in part (a);

(c) the space of real skew-symmetric matrices \(H = \left[ \begin{smallmatrix} H_{11} & -H_{21}^T \\ H_{21} & H_{22} \end{smallmatrix} \right]\) where the \(4 \times 4\) blocks \(H_{ij}\) have the property that each \(H_{ij} - H_{kl}\) commutes with \(I_2 \otimes \sigma_y\) and \(\sigma_y \otimes \sigma_z\), i.e.has the form \[\begin{bmatrix} 0 & -r & -s & -t\\ r & 0 & t & -s\\ s & -t & 0 & r\\ t & s & -r & 0 \end{bmatrix}.\]

Proof.

(a) By Theorem 7, \(\mathcal{K}_\chi = \mu\operatorname{P}(\operatorname{Sp}(2) \otimes \operatorname{SU}(2))\) is the fixed-point subgroup of an involution of the type considered in Corollary 3. By that corollary, its Lie algebra is spanned by the Pauli operators fixed by \(d\chi\). These can be easily read off of 9 : they are the elements in positions \(\{1,2,5\}^2 \cup \{3,4,6,7,8\}^2\), since those are the pairs \((j,i)\) such that \(f_{ji}\) is fixed by \(\psi\).

(b) The Pauli operators form an orthogonal basis of \(\mathfrak{so}(n)\) under the inner product \((A,B) = \operatorname{tr}(AB)\): this follows from the fact that \(\operatorname{tr}(AB) = 0\) if \(A,B \in \{I_2,\sigma_x,\sigma_y,\sigma_z\}\) are distinct, plus the general property \(\operatorname{tr}(P \otimes Q) = \operatorname{tr}(P)\operatorname{tr}(Q)\). Therefore (a) implies (b).

(c) Follows by taking derivatives in Proposition 8.

 ◻

One might wonder whether this construction can be simplified. One issue is that, unlike more familiar involutions like complex conjugation or conjugation by a fixed matrix, \(\chi\) is not a linear function. That is, the entries of \(\chi(V)\) do not depend linearly on the entries of \(V\). For instance, \[\chi\left( \left[ \begin{smallmatrix} \cos t & -\sin t \\ \sin t & \cos t \end{smallmatrix} \right] \oplus I_6 \right) = \left[\begin{smallmatrix} c & s \\ -s & c \end{smallmatrix} \right] \oplus \left[\begin{smallmatrix} c & -s \\ s & c \end{smallmatrix} \right] \oplus \left[\begin{smallmatrix} c & -s \\ s & c \end{smallmatrix} \right] \oplus \left[\begin{smallmatrix} c & -s \\ s & c \end{smallmatrix} \right]\] where \(c = \cos(t/2)\) and \(s = \sin(t/2)\).

Perhaps \(\mathcal{K}_{\chi}\) can be described as the fixed-point set of an entirely different involution \(\phi\)? If this were the case, then since \(d\phi\) is an automorphism, it would be an isometry with respect to the Killing form on \(\mathfrak{so}(8)\). Its \((-1)\)-eigenspace is therefore the orthogonal complement \(\mathfrak{k}_{\chi}^\perp\) of the \(1\)-eigenspace \(\mathfrak{k}_\chi\). By the same logic applied to \(d\chi\), \(\mathfrak{k}_{\chi}^\perp\) is simply \(\mathfrak{p}\). Therefore \(d\phi\) and \(d\chi\) have the same eigenvalues and eigenspaces, i.e.they are the same linear map. Since \(d\phi\) determines \(\phi\) by the formula \(\phi(\exp(X)) = \exp(d\phi(X))\), this means \(\phi = \chi\).

5 Cartan decompositions for \(\operatorname{PSO}(8)\)↩︎

As with many other circuit decompositions in quantum computing [6], [8], [11], [18][20], ours relies on iterated Cartan decomposition. Here is a more specific outline, which the methods of [8] also follow.

  1. Choose commuting involutive automorphisms \(\theta_1, \theta_2\) of \(\operatorname{PSO}(8)\), and sets

    • \(\mathcal{A}\subseteq \operatorname{PSO}(8)\) with \(\mathcal{K}_{\theta_1}\mathcal{A}\mathcal{K}_{\theta_1} = \operatorname{PSO}(8)\)

    • \(\mathcal{B}\subseteq \operatorname{PSO}(8)\) with \(\mathcal{K}_{\theta_1,\theta_2}\mathcal{B}\mathcal{K}_{\theta_1,\theta_2} = \mathcal{K}_{\theta_1}\).

  2. Given \(V \in \operatorname{PSO}(8)\), use two Cartan decompositions as in §2.4 to write \[\label{eq:double-decomp} V = K_1 B_1 K_2 A K_3 B_2 K_4\tag{13}\] where \(A \in \mathcal{A}\) and \(B_1,B_2 \in \mathcal{B}\) and \(K_1,\ldots,K_4 \in \mathcal{K}_{\theta_1,\theta_2}\).

  3. Find explicit decompositions for \(\mathcal{M}\) and for elements of \(\mu^{-1}(\mathcal{A})\) and \(\mu^{-1}(\mathcal{B})\) and \(\mu^{-1}(\mathcal{K}_{\theta_1,\theta_2})\) in terms of CNOTs and single-qubit gates.

This works because we can rewrite 13 as \[\begin{align} V &= \mathcal{M}^\dagger \mu^{-1}(V) \mathcal{M}= \mathcal{M}^\dagger \mu^{-1}(K_1 B_1 K_2 A K_3 B_2 K_4) \mathcal{M}\\ &= \mathcal{M}^\dagger \mu^{-1}(K_1)\mu^{-1}(B_1)\cdots \mu^{-1}(K_4)\mathcal{M}. \end{align}\] As described in more detail in §4, the point of applying \(\mu^{-1}\) and then its inverse here is to make it easier to see which circuit elements will lead to a real matrix.

There is a sense in which \(\operatorname{PSO}(8)\) is a rich setting for Cartan decomposition techniques: among all connected simple compact Lie groups, only \(\operatorname{PSO}(8)\) and its simply connected cover \(\operatorname{Spin}(8)\) have more than one distinct outer automorphism of order 2.

Example 11. Take \(\theta_1\) and \(\theta_2\) to be conjugation by \(\Delta_{[4]}\) and by \(i\sigma_y \otimes I_4 = \left[ \begin{smallmatrix} 0 & I_4 \\ -I_4 & 0 \end{smallmatrix} \right]\), respectively. Then \[\mathcal{K}_{\theta_1} = \operatorname{P}(\operatorname{SO}(4) \oplus \operatorname{SO}(4)) \quad \text{and} \quad \mathcal{K}_{\theta_1,\theta_2} = I_2 \otimes \operatorname{PSO}(4).\] This decomposition has the convenient property that \(\mu^{-1}(\mathcal{K}_{\theta_1,\theta_2}) = I_2 \otimes \operatorname{SU}(2) \otimes \operatorname{SU}(2)\) are already single-qubit operations. Wei and Di use this method, taking \(\mathcal{A}\) and \(\mathcal{B}\) are taken to be appropriate tori for Cartan decomposition. They find explicit circuits expressing elements of \(\mu^{-1}(\mathcal{A})\) (involving 6 CNOTs) and \(\mu^{-1}(\mathcal{B})\) (involving 4). The magic matrix \(\mathcal{M}\) can be written as a product of one CNOT and some single-qubit gates (cf. 5 ), so in total their method incurs a cost of \(1+4+6+4+1 = 16\) CNOT gates.

For the rest of the paper, let \(\psi_1, \psi_2 : \operatorname{PSO}(8) \to \operatorname{PSO}(8)\) denote conjugation by \(\Delta_{\{1,2,5\}}\) and \(\Delta_{\{6,7\}}\), and \(\chi_i = \mathcal{T}^{-1} \circ \psi_i \circ \mathcal{T}\). Note that \(\psi_1, \chi_1\) were called just \(\psi,\chi\) in §4. A simpler description of \(\chi_2\) is possible: \[\chi_2(V) = \mathcal{T}^{-1}(\Delta_{\{6,7\}} \mathcal{T}(V)\Delta_{\{6,7\}}) = \mathcal{T}^{-1}(\Delta_{\{6,7\}})V \mathcal{T}^{-1}(\Delta_{\{6,7\}}),\] so \(\chi_2\) is conjugation by \(\mathcal{T}^{-1}(\Delta_{\{6,7\}}) = i\sigma_x \otimes \sigma_x \otimes \sigma_y\). No such simplification is possible for \(\chi_1\), since \(\Delta_{\{1,2,5\}} \notin \operatorname{PSO}(8)\); as observed in §4, \(\chi_1\) is not even linear.

Proposition 10. We have \[\mathcal{K}_{\chi_1} = \mathcal{T}^{-1}(\mathcal{K}_{\psi_1}) = \mathcal{T}^{-1}\operatorname{PSO}(125|34678) = \mu\operatorname{P}(\operatorname{Sp}(2) \otimes \operatorname{SU}(2))\] and \[\mathcal{K}_{\chi_1,\chi_2} = \mathcal{T}^{-1}(\mathcal{K}_{\psi_1,\psi_2}) = \mathcal{T}^{-1}\operatorname{PSO}(125|348|67)\]

Proof. The first part was Theorem 7. The second part follows from Lemma 3: \[\begin{align} \mathcal{K}_{\psi_1,\psi_2} &= (\operatorname{PSO}(125|34678) \cap \operatorname{PSO}(123458|67))_0\\ &= \operatorname{PSO}(125|348|67). \end{align}\] ◻

Because of Proposition 10, our method amounts to applying triality, using two Cartan decompositions coming from subgroups conjugate to \[\operatorname{PSO}(8) \supseteq \operatorname{P}(\operatorname{SO}(3) \times \operatorname{SO}(5)) \supseteq \operatorname{P}(\operatorname{SO}(3) \times \operatorname{SO}(2) \times \operatorname{SO}(3)),\] and applying inverse triality. The next lemma provides explicit quantum circuits for each factor that will appear in these decompositions.

Lemma 8.

(a) Let \(\mu^{-1}(\mathcal{A})\) be the set of 3-qubit gates of the form \[\begin{quantikz} & \ctrl{2} & \gate{R_x(\alpha_2)} & \ctrl{1} & \gate{R_y(\pi/2)} & \ctrl{2} & \gate{R_x(\pi/2)} & \ctrl{2} &\\ & & & \targ{} & \gate{R_x(\pi/2)} & & & &\\ & \targ{} & \gate{R_y(\alpha_3)}& & \gate{R_x(\pi/2)} & \targ{} & \gate{R_z(\alpha_1)} & \targ{} & \end{quantikz}\] for \(\alpha_1,\alpha_2,\alpha_3 \in \mathbb{R}\). Then \(\mathcal{K}_{\chi_1} \mathcal{A}\mathcal{K}_{\chi_1} = \operatorname{PSO}(8)\).

(b) Let \(\mu^{-1}(\mathcal{B})\) be the set of \(3\)-qubit gates of the form \(R_y(\beta_1) \otimes R_y(\beta_2) \otimes I_2\) with \(\beta_1, \beta_2 \in \mathbb{R}\). Then \(\mathcal{K}_{\chi_1,\chi_2}\mathcal{B}\mathcal{K}_{\chi_1,\chi_2} = \mathcal{K}_{\chi_1}\).

(c) \(\mu^{-1}(\mathcal{K}_{\chi_1,\chi_2})\) is the set of 3-qubit gates of the form \[\begin{quantikz} & \ctrl{1} & \gate{R_x(\gamma)} & \ctrl{1} &\\ & \targ{} & \gate{R^1} & \targ{} &\\ & & \gate{R^2} & & \end{quantikz}\] with \(\gamma \in \mathbb{R}\) and \(R^1,R^2 \in \operatorname{SU}(2)\).

Actually, we have already proven (b) and (c): together they amount to the Cartan decomposition of \(\operatorname{Sp}(2)\) used in the proof of Lemma 6. We give a second proof below using what we have learned about triality. It is also worth noting that the set \(\mathcal{A}\) in (a) is not a torus or even a group, so (a) is not expressing the “standard” Cartan decomposition as in Theorem 1. Rather, \(\mathcal{A}\) was chosen to cover all possible canonical parameters with respect to \(\mathcal{K}_{\chi_1}\) while still having a short circuit description.

Proof of Lemma 8.

(a) An equivalent statement is that \(\mathcal{K}_{\psi_1} \mathcal{T}(\mathcal{A}) \mathcal{K}_{\psi_1} = \operatorname{PSO}(8)\). Since \(\mathcal{K}_{\psi_1} = \operatorname{PSO}(125|34678)\), it suffices by Proposition 3 to show that for any \(\sigma_1, \sigma_2, \sigma_3 \in [0,1]\) and any sign \(s \in \{\pm 1\}\), there exists \(A \in \mathcal{T}(\mathcal{A})\) such that \(A_{\{1,2,5\},\{1,2,5\}}\) has singular values \(\sigma_1,\sigma_2,\sigma_3\) and determinant of sign \(s\).

Write the circuit in (a) as the product of gates appearing in
Figure [-@fig:fig:triality], i.e.
$$\begin{figure}\includegraphics[width=0.8\textwidth]{_pdflatex/psaqnzom.png}\label{mbuqrdxv}\end{figure} \, \raisebox{8mm}{\text{and}} \,
\begin{figure}\includegraphics[width=0.8\textwidth]{_pdflatex/lodtvxhb.png}\label{uqlyanbj}\end{figure} \,\raisebox{8mm}{\text{and}} \,
\raisebox{-2mm}{\begin{figure}\includegraphics[width=0.8\textwidth]{_pdflatex/cjvkfexi.png}\label{jianmrtw}\end{figure}} \,\raisebox{8mm}{\text{and etc.}} \,$$ {#eq: sublabel=eq:mbuqrdxv,eq:uqlyanbj,eq:jianmrtw} 
Consulting Figure [-@fig:fig:triality] to apply
$\mathcal{T}\circ \mu$, we see $\mathcal{T}(\mathcal{A})$ is the set
of matrices $$\begin{align}
\begin{bmatrix}
-\cos \alpha_1 & 0 & 0 & 0 & 0 & 0 & \sin \alpha_1 & 0\\
0 & \cos \alpha_2 & 0 & -\sin \alpha_2 & 0 & 0 & 0 & 0\\
0 & 0 & 1 & 0 & 0 & 0 & 0 & 0\\
0 & 0 & 0 & 0 & \sin \alpha_3 & -\cos \alpha_3 & 0 & 0\\
0 & 0 & 0 & 0 & -\cos \alpha_3 & -\sin \alpha_3 & 0 & 0\\
\sin \alpha_1 & 0 & 0 & 0 & 0 & 0 & \cos \alpha_1 & 0\\
0 & -\sin \alpha_2 & 0 & -\cos \alpha_2 & 0 & 0 & 0 & 0\\
0 & 0 & 0 & 0 & 0 & 0 & 0 & 1
\end{bmatrix}
\end{align}$$ The submatrix
$\operatorname{diag}(-\cos \alpha_1, \cos \alpha_2, -\cos \alpha_3)$
in rows and columns $\{1,2,5\}$ obviously has the desired property.

(b) Using Figure 2 we compute \(\mathcal{T}(\mathcal{B}) = \operatorname{PSO}(46|78|1|2|3|5)\). We must prove that \(\mathcal{K}_{\psi_1}\) and \(\mathcal{K}_{\psi_1,\psi_2}\mathcal{T}(\mathcal{B})\mathcal{K}_{\psi_1,\psi_2}\) are equal, which by Proposition 10 is equivalent to the equation \[\operatorname{PSO}(125|348|67) \cdot \operatorname{PSO}(1|2|3|46|5|78) \cdot \operatorname{PSO}(125|348|67) \overset{?}{=} \operatorname{PSO}(125|34678).\] Rows and columns \(1,2,5\) are uninteresting here, so let us remove them and relabel 6,7,3,4,8 as 1,2,3,4,5: \[\operatorname{PSO}(12|345) \cdot \operatorname{PSO}(14|25|3) \cdot \operatorname{PSO}(12|345) \overset{?}{=} \operatorname{PSO}(5).\] or \[\left[ \begin{smallmatrix} \ast & \ast & 0 & 0 & 0\\ \ast & \ast & 0 & 0 & 0\\ 0 & 0 & \ast & \ast & \ast\\ 0 & 0 & \ast & \ast & \ast\\ 0 & 0 & \ast & \ast & \ast \end{smallmatrix}\right] \left[ \begin{smallmatrix} \ast & 0 & 0 & \ast & 0\\ 0 & \ast & 0 & 0 & \ast\\ 0 & 0 & 1 & 0 & 0\\ \ast & 0 & 0 & \ast & 0\\ 0 & \ast & 0 & 0 & \ast \end{smallmatrix}\right] \left[ \begin{smallmatrix} \ast & \ast & 0 & 0 & 0\\ \ast & \ast & 0 & 0 & 0\\ 0 & 0 & \ast & \ast & \ast\\ 0 & 0 & \ast & \ast & \ast\\ 0 & 0 & \ast & \ast & \ast \end{smallmatrix}\right] \overset{?}{=} \operatorname{PSO}(5).\] This equation certainly holds: it is the standard Cartan decomposition for the pair \(\operatorname{P}(\operatorname{SO}(2) \oplus \operatorname{SO}(3)) \subseteq \operatorname{PSO}(5)\), cf. Example 3.

(c) Applying \(\mathcal{T}\circ \mu\) to the set of gates in question gives \(\operatorname{PSO}(125|348|67)\) by Figure 2, which is \(\mathcal{T}(\mathcal{K}_{\chi_1,\chi_2})\) by Proposition 10.

 ◻

By assembling the circuits derived in Lemma 8, we arrive at our new decomposition for real 3-qubit gates.

Theorem 11. Every \(V \in \operatorname{SO}(8)\) can be written as a product of at most 14 CNOT gates interleaved with single-qubit gates (elements of \(\operatorname{SU}(2)^{\otimes 3}\)). More explicitly, \(V\) can be written as \[\tag{14} \begin{figure}\includegraphics[width=0.8\textwidth]{_pdflatex/ceaolxpt.png}\tag{15}\end{figure}\] where \(S_1^T\) and \(S_2\) have the form \[\tag{16} \begin{figure}\includegraphics[width=0.8\textwidth]{_pdflatex/kgbcwxsv.png}\tag{17}\end{figure}\] and \[\tilde{\mathcal{Q}}= \raisebox{-8mm}{\begin{figure}\includegraphics[width=0.8\textwidth]{_pdflatex/qzjdlatk.png}\label{pncarwbt}\end{figure}}\tag{18}\] with \(R^1,U^1,U^2 \in \operatorname{SU}(2)\) and \(\beta_1,\ldots,\beta_6, \alpha_1, \ldots, \alpha_4 \in \mathbb{R}\).

In this decomposition there are 14 CNOT gates total and 35 single-qubit rotations. Also, there are \(6+4+6 = 16\) free angles above and 4 free elements of \(\operatorname{SU}(2)\), for a total of \(16 + 4\cdot 3 = 28\) free parameters. Since this is also the dimension of \(\operatorname{SO}(8)\), the circuit is optimal in the sense that none of the parameters can be eliminated. Of course, this does not rule out the existence of shorter circuits.

Proof. View \(V\) as an element of \(\operatorname{PSO}(8)\). This is necessary for use of the triality map, but irrelevant in the end: if we produce a circuit of the desired type for \(V \in \operatorname{PSO}(8)\) which evaluates to \(-V \in \operatorname{SO}(8)\), it can be easily modified to evaluate to \(+V \in \operatorname{SO}(8)\), for instance by replacing \(U^1\) with \(-U^1\).

By (iterated) Cartan decomposition, every element of \(\operatorname{PSO}(8)\) has the form \[= \mathcal{M}^\dagger \mu^{-1}(K_1)\mu^{-1}(B_1)\mu^{-1}(K_2)\mu^{-1}(A)\mu^{-1}(K_3)\mu^{-1}(B_2)\mu^{-1}(K_4)\mathcal{M}\] with \(K_1,\ldots,K_4 \in \mathcal{K}_{\theta_1,\theta_2}\) and \(A \in \mathcal{A}\) and \(B_1,B_2 \in \mathcal{B}\). Substituting in the circuit decompositions of these three sets from Lemma 8 shows that every element of \(\operatorname{PSO}(8)\) can be written as \[\tag{19} \begin{figure}\includegraphics[width=0.8\textwidth]{_pdflatex/qojwusbr.png}\tag{20}\end{figure}\] where \(S_1^T\) and \(S_2\) have the form \[\tag{21} \begin{figure}\includegraphics[width=0.8\textwidth]{_pdflatex/lktdvpry.png}\tag{22}\end{figure}\] and \[\tag{23} \mathcal{Q}= \raisebox{-8mm}{\begin{figure}\includegraphics[width=0.8\textwidth]{_pdflatex/valigbwq.png}\tag{24}\end{figure}}\]

This is almost the same as what we’re trying to prove. First, the single-qubit rotations \(R_x(\pi/2)\) and \(R_z(-\pi/2)\) appearing on qubit 3 in the decomposition 23 of \(I_2 \otimes \mathcal{Q}\) can be absorbed into the arbitrary 1-qubit gates \(U^1, (U^2)^\dagger\) shown in 19 . Similarly, the gate \(R_x(-\pi)\) on qubit 2 in the same decomposition can be absorbed into the arbitrary 1-qubit gates \(R^1, (R^2)^\dagger\); this requires the identity \[\tag{25} \raisebox{-6mm}{\begin{figure}\includegraphics[width=0.8\textwidth]{_pdflatex/ixhgutrd.png}\tag{26}\end{figure}} = \raisebox{-6mm}{\begin{figure}\includegraphics[width=0.8\textwidth]{_pdflatex/deuqthxa.png}\tag{27}\end{figure}}\] In this way we transform 23 into the circuit for \(\tilde{\mathcal{Q}}\) shown in the theorem statement.

Next we use the identity 25 to move a few more gates around. In 21 , write the arbitrary 1-qubit gate \(R^2 \in \operatorname{SU}(2)\) appearing in \(S_2\) as \(R_x(\beta_7)R_z(\beta_6)R_y(\beta_5)\), and write the analogous gate in \(S_1^T\) as \(R_x(\beta_7')R_z(\beta_6')R_y(\beta_5')\). By the identity 25 we may commute the \(R_x\) factors into the very center of the circuit 19 on qubit 2, replacing the gate \(R_x(\pi/2)\) by \(R_x(\beta_7)R_x(\pi/2)R_x(\beta_7')\). Setting \(\alpha_4 = \beta_7+\pi/2+\beta_7'\) gives 14 exactly. ◻

Acknowledgements↩︎

I’m grateful to Jim van Meter for useful comments and for helping me navigate the literature in this area.

References↩︎

[1]
D. P. DiVincenzo, “Two-bit gates are universal for quantum computation,” Phys. Rev. A, vol. 51, pp. 1015–1022, 1995.
[2]
D. Deutsch, A. Barenco, and A. Ekert, Universality in quantum computation,” Proc. Roy. Soc. Lond. A, vol. 449, pp. 669–679, 1995.
[3]
S. Lloyd, “Almost any quantum logic gate is universal,” Phys. Rev. Lett., vol. 75, pp. 346–349, 1995.
[4]
A. Barenco et al., “Elementary gates for quantum computation,” Phys. Rev. A, vol. 52, pp. 3457–3467, 1995.
[5]
V. V. Shende, I. L. Markov, and S. S. Bullock, “Minimal universal two-qubit controlled-NOT-based circuits,” Phys. Rev. A, vol. 69, p. 062321, 2004.
[6]
A. M. Krol and Z. Al-Ars, Beyond quantum Shannon decomposition: Circuit construction for \(n\)-qubit gates based on block-ZXZ decomposition,” Phys. Rev. Applied, vol. 22, no. 3, p. 034019, 2024.
[7]
F. Vatan and C. Williams, “Optimal quantum circuits for general two-qubit gates,” Phys. Rev. A, vol. 69, p. 032315, 2004.
[8]
H.-R. Wei and Y.-M. Di, “Decomposition of orthogonal matrix and synthesis of two-qubit and three-qubit orthogonal gates,” Quantum Info. Comput., vol. 12, no. 3–4, pp. 262–270, 2012.
[9]
S. Helgason, Differential geometry, Lie groups, and symmetric spaces. Academic Press, Inc., 1978.
[10]
J. E. Humphreys, Introduction to lie algebras and representation theory. Springer-Verlag, 1980.
[11]
S. S. Bullock and G. K. Brennen, “Canonical decompositions of \(n\)-qubit quantum computations and concurrence,” Journal of Mathematical Physics, vol. 45, no. 6, pp. 2447–2467, 2004.
[12]
S. A. Hill and W. K. Wootters, “Entanglement of a pair of quantum bits,” Phys. Rev. Lett., vol. 78, pp. 5022–5025, 1997.
[13]
Y. Makhlin, “Nonlocal properties of two-qubit gates and mixed states, and the optimization of quantum computations,” Quantum Information Processing, vol. 1, no. 4, pp. 243–252, 2002.
[14]
B. D. Sutton, “Computing the complete CS decomposition,” Numer. Algor., vol. 50, pp. 33–65, 2009.
[15]
J. H. Conway and D. A. Smith, On quaternions and octonions : Their geometry, arithmetic, and symmetry. Peters, 2003.
[16]
J. Baez, “This week’s finds in mathematical physics (week 91).” https://math.ucr.edu/home/baez/week91.html, 1996.
[17]
M.-A. Knus and J.-P. Tignol, arXiv:0912.3405Triality and étale algebras,” 2010.
[18]
B. Drury and P. Love, “Constructive quantum Shannon decomposition from Cartan involutions,” Journal of Physics A: Mathematical and Theoretical, vol. 41, no. 39, p. 395305, 2008.
[19]
N. Khaneja and S. J. Glaser, “Cartan decomposition of \({SU}(2^n)\) and control of spin systems,” Chemical Physics, vol. 267, no. 1, pp. 11–23, 2001.
[20]
V. V. Shende, S. S. Bullock, and I. L. Markov, “Synthesis of quantum-logic circuits,” IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, vol. 25, no. 6, pp. 1000–1010, 2006.

  1. The formula \(\exp(\mathop{\mathrm{ad}}_Z) = \mathop{\mathrm{Ad}}_{\exp(Z)}\) implies that \(\exp(\mathbb{R}\mathop{\mathrm{ad}}_Z)\) is compact, being the image under \(\mathop{\mathrm{Ad}}\) of the compact subgroup \(\exp(\mathbb{R}Z) \subseteq \mathcal{G}\). If the Jordan form of \(\mathop{\mathrm{ad}}_Z\) had a \(d \times d\) Jordan block with \(d > 1\), then \(\exp(t\mathop{\mathrm{ad}}_Z)\) would have a matrix entry of the form \(e^{\lambda t}p(t)\) with \(p\) a polynomial of degree \(d-1\). This entry would tend to infinity as \(t \to \infty\) or \(-\infty\), contradicting compactness.↩︎