Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Tutorial

Pauli Group

Abstract

Details, properties and applications of the Pauli Group

Keywords:Pauli OperatorsQubitsComplete Basis.

The Pauli Group is a group formed by taking the tensor product of the Pauli operators and the identity operator. It consists of all combinations of the tensor products with phases {±1,±i}\{\pm 1, \pm i \}.

Single Qubit Group

The Pauli operators in the computational basis are

X=σ1=[0110],  Y=σ2=[0ii0],  Z=σ3=[1001].X = \sigma_1 = \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix}, ~ ~ Y = \sigma_2 =\begin{bmatrix} 0 & -i \\ i & 0 \end{bmatrix}, ~ ~ Z = \sigma_3 = \begin{bmatrix} 1 & 0 \\ 0 & -1 \end{bmatrix}.

They multiple as

σiσj=δijI+iϵijkσk\sigma_{i} \sigma_j = \delta_{ij}\mathbb{I} + i \epsilon_{ijk} \sigma_k

where ϵijk\epsilon_{ijk} is the Levi-Civita symbol and I\mathbb{I} is the identity operator.

Hence, by multiplying any combinations of the Pauli operators together one will always get a Pauli operator with a phase of either ±1\pm 1 or ±i\pm i. Therefore, they form a group.

Single Qubit Pauli Group

The single qubit Pauli group is

P1X,Z,iI={±I,±iI,±X,±iX,±Y,±iY,±Z,±iZ}.\begin{align*} \mathcal{P}_1 &\coloneqq \langle X, Z, i \mathbb{I} \rangle \\ &= \{ \pm \mathbb{I}, \pm i \mathbb{I}, \pm {X}, \pm i {X}, \pm {Y}, \pm i {Y}, \pm {Z}, \pm i {Z} \}. \end{align*}

Note, in the above we have give the generator of the Pauli-group, denoted as \langle \cdot \rangle, using the fact that Y=iXZY=i XZ.

Single Qubit Commutator Relation

The single qubit Pauli operators commute as

[σj,σk]=2iϵjklσl[\sigma_j, \sigma_k] = 2 i \epsilon_{jkl} \sigma_l

where, as above, ϵijk\epsilon_{ijk} is the Levi-Civita symbol and i=1i = \sqrt{-1}.

Explicit Commutator Relations
[X,X]=0,[X,Y]=2iZ,[X,Z]=2iY,[Y,X]=2iZ,[Y,Y]=0,[Y,Z]=2iX[Z,X]=2iY,[Z,Y]=2iX,[Z,Z]=0,\begin{align*} &[X, X] = 0, \\ &[X, Y] = 2i Z, \\ &[X, Z] = -2iY, \\ & \\ &[Y, X] = -2i Z, \\ &[Y, Y] = 0, \\ &[Y, Z] = 2i X \\ & \\ &[Z, X] = 2iY, \\ &[Z, Y] = -2i X, \\ &[Z, Z] = 0, \end{align*}

n-Qubit Pauli Group

The nn-qubit Pauli group is then given by the tensor product of the elements of the single qubit Pauli-group P1\mathcal{P}_1.

nn-qubit Pauli Group

The nn-qubit Pauli group is

Pn{βP1P2P3...Pn:PjP1  j,β{±1,±i}}.\begin{align*} \mathcal{P}_n &\coloneqq \big\{ \beta P_1 \otimes P_2 \otimes P_3 \otimes ... \otimes P_n : P_j \in \mathcal{P}_1~\forall~j, \beta \in \{\pm 1, \pm i \} \big\}. \end{align*}

The group has 4n+14^{n+1} elements, as there are 4n4^n different combinations of tensor products of {X,Y,Z,I}\{X, Y, Z, \mathbb{I} \} of length nn, with the group then containing each potential combination with a phase of ±1\pm 1 and ±i\pm i.

An important subset of the Pauli-group is the Pauli-strings

Pns{P1P2P3...Pn:PjP1  j}Pn,\begin{align*} \mathcal{P}^s_n &\coloneqq \big\{ P_1 \otimes P_2 \otimes P_3 \otimes ... \otimes P_n : P_j \in \mathcal{P}_1~\forall~j \big\} \subset \mathcal{P}_n, \end{align*}

which are the elements of the Pauli-group with global phase +1.

Properties

Below we highlight and prove key properties of the Pauli-group and the set of Pauli-strings.

  1. All elements of Pn\mathcal{P}_n square to ±I\pm \mathbb{I},

    Pj2=PjPj=±I  PjPn.P_j^2 = P_j P_j = \pm \mathbb{I} ~\forall~P_j \in \mathcal{P}_n.
    Proof

    It can be seen that the square of any single qubit Pauli operator is the identity:

    σj2=σjσj=I  j.\sigma_j^2 = \sigma_j \sigma_j = \mathbb{I} ~ \forall ~j.

    Ignoring the global phase, the square of any PjPnP_j \in \mathcal{P}_n is then

    Pj2=PjPj=Pj1Pj1Pj2Pj2PjnPjn=I2I2I2=I2n,\begin{align*} P_j^2 = P_jP_j &= P^1_jP^1_j \otimes P^2_jP^2_j \otimes \ldots \otimes P^n_jP^n_j \\ &= \mathbb{I}_2 \otimes \mathbb{I}_2 \otimes \ldots \mathbb{I}_2 \\ &= \mathbb{I}_{2^n}, \end{align*}

    where PqαP_q^\alpha is the single qubit Pauli operator of the Pq P_q~th element of Pn\mathcal{P}_n at position α\alpha, and Id\mathbb{I}_d is the identity operator of dimension dd.

    One then just needs to consider the global phase β{±1,±i}\beta \in \{\pm 1, \pm i\}. It can be seen that 12=11^2=1 and (1)2=1(-1)^2=1, whilst i2=1i^2=-1 and (i)2=1(-i)^2=-1. Hence, if the global phase is real then the element squares to positive identity; if the global phase is complex then the element squares to negative identity.

  2. All elements of Pn\mathcal{P}_n are either Hermitian or anti-Hermitian

    Pj=±Pj  PjPnP_j^\dagger = \pm P_j ~ \forall~P_j \in \mathcal{P}_n
    Proof

    It can be seen that all single qubit Pauli operators are Hermitian:

    σj=σj  j.\sigma_j^\dagger = \sigma_j ~ \forall ~j.

    The adjoint of any PjPnP_j \in \mathcal{P}_n is then

    Pj=β(Pj1Pj2Pjn)=β(Pj1)(Pj2)(Pjn)=βPj1Pj2Pjn\begin{align*} P_j^\dagger &= \beta^* \big(P^1_j \otimes P^2_j \otimes \ldots \otimes P^n_j\big)^\dagger \\ &= \beta^* (P^1_j)^\dagger \otimes (P^2_j)^\dagger \otimes \ldots \otimes (P^n_j)^\dagger \\ &= \beta^*P^1_j \otimes P^2_j \otimes \ldots \otimes P^n_j \\ \end{align*}

    where PqαP_q^\alpha is the single qubit Pauli operator of the Pq P_q~th element of Pn\mathcal{P}_n at position α\alpha, and β{±1,±i}\beta \in \{\pm 1, \pm i \} is the overall phase of the element.

    As 1=11^*=1 and (1)=1(-1)^*=-1, whilst i=ii^*=-i and (i)=i(-i)^*=i, it can be seen that if the overall phase is real then the element is Hermitian, whereas if the overall phase is complex then the element is anti-Hermitian.

  3. All elements of Pn\mathcal{P}_n are unitary,

    PjPj=PjPj=I  PjPn\begin{align*} P_jP_j^\dagger &= P_j^\dagger P_j = \mathbb{I}~\forall~P_j \in \mathcal{P}_n \end{align*}
    Proof

    It can be seen that all single qubit Pauli operators are unitary:

    σjσj=σjσj=I  j.\sigma_j^\dagger \sigma_j = \sigma_j \sigma_j^\dagger = \mathbb{I}~ \forall ~j.

    Moreover, the square of any single qubit Pauli operator is the identity:

    σj2=σjσj=I  j.\sigma_j^2 = \sigma_j \sigma_j = \mathbb{I} ~ \forall ~j.

    The adjoint of any PjPnP_j \in \mathcal{P}_n is then

    Pj=β(Pj1Pj2Pjn)=β(Pj1)(Pj2)(Pjn)=βPj1Pj2Pjn\begin{align*} P_j^\dagger &= \beta^* \big(P^1_j \otimes P^2_j \otimes \ldots \otimes P^n_j\big)^\dagger \\ &= \beta^* (P^1_j)^\dagger \otimes (P^2_j)^\dagger \otimes \ldots \otimes (P^n_j)^\dagger \\ &= \beta^*P^1_j \otimes P^2_j \otimes \ldots \otimes P^n_j \\ \end{align*}

    where PqαP_q^\alpha is the single qubit Pauli operator of the Pq P_q~th element of Pn\mathcal{P}_n at position α\alpha, and β{±1,±i}\beta \in \{\pm 1, \pm i \} is the overall phase of the element.

    Hence,

    PjPj=ββ(Pj1Pj1Pj2Pj2PjnPjn)=I\begin{align*} P_j P_j^\dagger &= \beta \beta^* (P^1_jP^1_j\otimes P^2_jP^2_j \otimes \ldots \otimes P^n_jP^n_j) \\ &= \mathbb{I} \end{align*}

    as ββ=1  β{±1,±i}\beta \beta^* = 1 ~\forall ~ \beta \in \{\pm 1, \pm i \} and all single qubit Pauli operators square to the identity. The same argument can be made for PjPjP_j^\dagger P_j.

  4. All elements of PnI\mathcal{P}_n \setminus \mathbb{I} are traceless,

    tr[Pj]=0  PjPnI\textrm{tr}\big[P_j \big] = 0 ~ \forall~P_j \in \mathcal{P}_n \setminus \mathbb{I}
    Proof

    It can be seen that all single qubit Pauli operators are traceless:

    tr[σj]=0  j.\textrm{tr}\big[\sigma_j \big] = 0 ~ \forall ~j.

    The trace of of any PjPnP_j \in \mathcal{P}_n is then

    tr[Pj]=βtr[Pj1Pj2Pjn]=βtr[Pj1]tr[Pj2]tr[Pjn]=0.\begin{align*} \textrm{tr}\big[P_j \big] &= \beta \textrm{tr}\big[ P^1_j \otimes P^2_j \otimes \ldots \otimes P^n_j \big] \\ &= \beta \textrm{tr}\big[ P^1_j \big] \otimes \textrm{tr}\big[ P^2_j \big] \otimes \ldots \otimes \textrm{tr}\big[ P^n_j \big] \\ &= 0. \end{align*}

    where PqαP_q^\alpha is the single qubit Pauli operator of the Pq P_q~th element of Pn\mathcal{P}_n at position α\alpha, and β{±1,±i}\beta \in \{\pm 1, \pm i \} is the overall phase of the element. For PqIP_q \neq \mathbb{I}, at least one PqαP_q^\alpha can not be equal to the identity.

    Hence, it can be seen that if the operator at any location of the Pauli string is not the identity then the trace will be zero.

  5. Given any two elements of Pn\mathcal{P}_n, they either commute or anti-commute i.e.,

    PlPj=±PjPl  Pl,PjPn.P_lP_j = \pm P_jP_l ~\forall~P_l, P_j \in \mathcal{P}_n.
    Proof

    Consider two single qubit Pauli operators σl\sigma_l and σj\sigma_j.

    It can be seen that if l=jl=j, then the Pauli operators trivially commute. If ljl \neq j, then they anti-commute, as

    σlσj=iϵljkσkσjσl=iϵjlkσk.\begin{align*} \sigma_l \sigma_j = i \epsilon_{ljk} \sigma_k \\ \sigma_j \sigma_l = i \epsilon_{jlk} \sigma_k. \\ \end{align*}

    From here, it can be seen that (l,j,k)(j,l,k)(l,j,k) \rightarrow (j,l,k) is an odd permutation. Then, given that the combination of two odd permutations is then an even permutation, if (l,j,k)(l,j,k) is an odd permutation of (1,2,3)(1,2,3) then (j,l,k)(j,l,k) is an even permutation, and vice versa. Hence, ϵljk=ϵjlk\epsilon_{ljk} = - \epsilon_{jlk}, meaning that σlσj=σjσl\sigma_l \sigma_j = - \sigma_j \sigma_l if ljl \neq j.

    Therefore, when consider the commutator of single qubit Pauli operators and the identity, if both operators are the same, or one is the identity, then they commute. Otherwise they anti-commute. One can therefore say that whenever the commutator is non-trivial, they anti-commute.

    Now consider two Pauli strings Pl,PkPnP_l, P_k \in \mathcal{P}_n, where we can ignore the global phase as

    βγ=γβ  β,γ{±1,±i},\beta \gamma = \gamma \beta ~\forall~\beta, \gamma \in \{\pm 1, \pm i\},

    i.e., all scalar commute. Due to the tensor product structure of the Pauli group elements, it can be seen that

    PlPj=Pl1Pj1Pl2Pj2PlnPjnPjPl=Pj1Pl1Pj2Pl2PjnPln,\begin{align*} P_lP_j &= P^1_l P_j^1 \otimes P^2_l P_j^2 \otimes \ldots \otimes P^n_l P_j^n \\ P_j P_l &= P^1_j P_l^1 \otimes P^2_j P_l^2 \otimes \ldots \otimes P^n_j P_l^n, \end{align*}

    where PqαP_q^\alpha is the single qubit Pauli operator of the Pq P_q~th element of Pn\mathcal{P}_n at position α\alpha.

    The single Pauli operator at each location will then commute or anti-commute. It can be seen that if the number of locations where it anti-commutes is even then the whole Pauli string commutes; if the number of locations where it anti-commutes is odd then the whole Pauli string anti-commutes.

    To determine if two Pauli string commute or anti-commute, one therefore needs to count the number of locations where the Pauli-strings intersect non-trivially.

  6. All Hermitian elements of PnI\mathcal{P}_n \setminus \mathbb{I} have eigenvalues ±1\pm 1, where the +1 and -1 degenerate eigenspaces are of equal dimension.

    All non-Hermitian elements of Pn\mathcal{P}_n have eigenvalues ±i\pm i, where the +i+i and i-i degenerate eigenspaces are of equal dimension.

    Proof

    Let PP be a Hermitian element of PnI\mathcal{P}_n \setminus \mathbb{I}.

    The vector ψ\ket{\psi} is an eigenvector of the Pauli-string PP with eigenvalue λ\lambda if

    Pψ=λψ.P \ket{\psi} = \lambda \ket{\psi}.

    From here, it can be seen that

    P[Pψ]=P[λψ]=λ[Pψ]=λ2ψ.P \big[ P \ket{\psi} \big] = P \big[ \lambda \ket{\psi} \big] = \lambda \big[ P \ket{\psi} \big] = \lambda^2 \ket{\psi}.

    By using Property 1 it can also be seen that

    P[Pψ]=P2ψ=ψ.P \big[ P \ket{\psi} \big] = P^2 \ket{\psi} = \ket{\psi}.

    Therefore,

    λ2ψ=ψ,\lambda^2 \ket{\psi} = \ket{\psi},

    meaning λ=±1\lambda = \pm 1. Hence, the eigenvalues of any Hermitian element of the Pauli-group are +1 or -1.

    Now, using Property 4, it can be seen that the sum of the eigenvalues of any Pauli-group element is zero (as the trace of a square operator is the sum of its eigenvalues). As each of the eigenvalues can only be -1 or -1, there must be an equal number of eigenvectors that have eigenvalue +1 and there are with eigenvalue -1. Therefore, there are 2n12^{n-1} eigenvalues of +1 and 2n12^{n-1} eigenvalues of -1, as dim P=2n\textrm{dim}~P=2^n meaning it has 2n2^n total eigenvalues.

    Then, as PP is Hermitian, each of its eigenvectors are orthonormal. Hence, the +1 eigenspace of PP is spanned by 2n12^{n-1} orthogonal vectors, and is therefore of dimension 2n12^{n-1}. The same argument can be made for the -1 eigenspace.

    Now, let PP be a anti-Hermitian element of Pn\mathcal{P}_n.

    As P2=IP^2=-\mathbb{I} now, following the same proof as above it can be seen that the eigenvalues of PP will be ±i\pm i.

    We now note that any anti-Hermitian element of Pn\mathcal{P}_n can be written as

    P=βPH,P=\beta P_H,

    where β=±i\beta = \pm i and PHP_H is a Hermitian Pauli-group element. The rest of the above proof then applies, with the eigenvectors of PP and PHP_H being the same, completing the proof.

  7. Given any two Pauli-strings, Pk,PlPnsP_k, P_l \in \mathcal{P}^s_n, it holds that

    tr[PkPl]={2nif k=l0if kl\textrm{tr}\big[P_k P_l \big] = \begin{cases} 2^n &\textrm{if} ~ k=l \\ 0 &\textrm{if} ~ k \neq l \end{cases}
    Proof

    It can be seen that

    PkPl=Pk1Pl1Pk2Pl2PknPln\begin{align*} P_kP_l &= P^1_k P_l^1 \otimes P^2_k P_l^2 \otimes \ldots \otimes P^n_k P_l^n \\ \end{align*}

    where PqαP_q^\alpha is the single qubit Pauli operator of the Pq P_q~th element of Pn\mathcal{P}_n at position α\alpha.

    It is then noted that

    PkiPli=I    Pki=Pli,P_k^iP_l^i = \mathbb{I} \iff P_k^i=P_l^i,

    as per (2). Hence,

    PkPl=I    Pki=Pli  i[1,n].P_kP_l = \mathbb{I} \iff P_k^i=P_l^i~\forall~i \in [1, n].

    If Pki=Pli  i[1,n]P_k^i=P_l^i~\forall~i \in [1, n] then Pk=PlP_k=P_l, meaning that

    tr[PkPl]=tr[I]=d   if   k=l.\textrm{tr}\big[P_k P_l \big] = \textrm{tr}\big[ \mathbb{I} \big] = d ~ ~ ~\textrm{if} ~ ~ ~ k=l.

    If PkPlP_k \neq P_l, there exists at least one ii such that PkiPliP_k^i \neq P_l^i, meaning that

    PkPlI.P_k P_l \neq \mathbb{I}.

    Hence, using Property 4, it can be concluded that

    tr[PkPl]=0   if   kl,\textrm{tr} \big[ P_k P_l \big] = 0 ~ ~ ~ \textrm{if} ~ ~ ~ k \neq l,

    completing the proof.

  8. The set Pns\mathcal{P}^s_n forms a complete basis for the space of 2n×2n2^n \times 2^n complex matrices.

    Proof

    We first consider the space of 2×22 \times 2 complex matrices.

    An arbitrary 2×22 \times 2 complex matrix is of the form

    A=[abcd]  where  a,b,c,dC.A = \begin{bmatrix} a & b \\ c & d \end{bmatrix} ~ ~ \textrm{where} ~ ~ a,b,c,d \in \mathbb{C}.

    Now, let

    B=αI+βX+γY+δZ,=[α+δβiγβ+iγαδ]\begin{align*} B &= \alpha \mathbb{I} + \beta X + \gamma Y + \delta Z, \\ &= \begin{bmatrix} \alpha + \delta & \beta - i \gamma \\ \beta + i \gamma & \alpha - \delta \end{bmatrix} \end{align*}

    where I\mathbb{I} is the qubit identity and X,Y,ZX, Y, Z are the single qubit Pauli-operators.

    For A=BA=B it must be the case that

    α=a+d2β=b+c2γ=cb2iδ=ad2\begin{align*} \alpha &= \frac{a+d}{2} \\ \beta &= \frac{b+c}{2} \\ \gamma &= \frac{c-b}{2i} \\ \delta &= \frac{a-d}{2} \\ \end{align*}

    Therefore, for every combination of a,b,c,da,b,c,d there exists a α,β,γ,δ\alpha, \beta, \gamma, \delta such that AA can be decomposed as a combination of the identity plus Pauli’s. Therefore, the set {I,X,Y,Z}\{\mathbb{I}, X, Y, Z\} form an operator basis for the space of 2×22 \times 2 complex matrices (for qubits). We note that, in general, α,β,γ,δC\alpha, \beta, \gamma, \delta \in \mathbb{C}.

    To expand to 2n×2n2^n \times 2^n complex matrices, we first note that the space of operators on H2n\mathcal{H}^{2^n} is equilivent to the space of operators on (H2)n(\mathcal{H}^2)^{\otimes n}, i.e.,

    L(H2n)=L(H2)n,\mathcal{L}(\mathcal{H}^{2^n}) = \mathcal{L}(\mathcal{H}^2)^{\otimes n},

    where L(V)\mathcal{L}(\mathcal{V}) is the set of operators on the space V\mathcal{V}. Therefore, if a basis of the space of operators on (H2)n(\mathcal{H}^2)^{\otimes n} can be found then it is also a basis of the space of operators on H2n\mathcal{H}^{2^n}.

    We then use the fact that in a tensor product space a basis of the whole space can be found by taking the tensor product of basis states from each subspace. See here for a proof.

    Hence, the set of operators

    {I,X,Y,Z}n,\{\mathbb{I}, X, Y, Z\}^{\otimes n},

    i.e., the nn-fold tensor product of all single qubit Pauli-operators, is basis of H2n\mathcal{H}^{2^n} — the nn-qubit space. This set of operators is exactly Pns\mathcal{P}^s_n (the Pauli-strings), completing the proof.