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

Binary Symplectic Representation

Abstract

An overview of the binary symplectic representation of Pauli-strings.

Keywords:Pauli StringsComplete BasisBinary.

Elements of the Pauli-strings can be mapped to the 2n2n bit-strings via the binary symplectic representation.

Single Qubit

The 1-qubit Pauli-strings are

P={I,X,Z,Y}.\mathcal{P} = \big\{\mathbb{I}, X, Z, Y \big\}.

Any element of Pj∈PP_j \in \mathcal{P} can be written as

Pj=(−i)zj⋅xjZzjXxj,P_j = (-i)^{z_j \cdot x_j} Z^{z_j} X^{x_j},

where zj,xj∈{0,1}1z_j,x_j \in \{0,1\}^1, meaning that PjP_j can be captured by the 2-bit string

pj=(xj∣zj)∈{0,1}2.p_j = (x_j \mid z_j) \in \{0,1\}^{2}.

The (−i)zj⋅xj(-i)^{z_j \cdot x_j} phase term ensures the correct behavior when multiply the Pauli-strings.

Single Qubit Mappings
I=(−i)0⋅0Z0X0⟶(0∣0)X=(−i)0⋅1Z0X1⟶(1∣0)Z=(−i)1⋅0Z1X0⟶(0∣1)Y=(−i)1⋅1Z1X1⟶(1∣1)\begin{align*} \mathbb{I} = (-i)^{0 \cdot 0} Z^0 X^0 \longrightarrow (0 \mid 0) \\ {X} = (-i)^{0 \cdot 1} Z^0 X^1 \longrightarrow (1 \mid 0) \\ {Z} = (-i)^{1 \cdot 0} Z^1 X^0 \longrightarrow (0 \mid 1) \\ {Y} = (-i)^{1 \cdot 1} Z^1 X^1 \longrightarrow (1 \mid 1) \\ \end{align*}

As ZX=−iYZX = -iY, it can be seen that the phase term ensures the correct multiplication behavior.

Multiplication of Single Qubit Pauli’s

Consider two elements of the single qubit Pauli-string and their mappings to 2-bit-strings

Pj→pj=(xj∣zj)  and  Pk→pk=(xk∣zk).P_j \rightarrow p_j = (x_j \mid z_j) ~ ~ {\rm and} ~ ~ P_k \rightarrow p_k = (x_k \mid z_k).

Then

PjPk=(−1)zj⋅xkPl:Pl→pl=(xj⊕xk∣zj⊕zk),P_jP_k = (-1)^{z_j \cdot x_k} P_l : P_l \rightarrow p_l = (x_j \oplus x_k \mid z_j \oplus z_k),

Similarly,

PkPj=(−1)zk⋅xjPl:Pl→pl=(xj⊕xk∣zj⊕zk).P_kP_j = (-1)^{z_k \cdot x_j} P_l : P_l \rightarrow p_l = (x_j \oplus x_k \mid z_j \oplus z_k).
Proof
PjPk=[(−1)zj⋅xjZzjXxj][(−1)zk⋅xkZzkXxk]=(−1)zj⋅xj⊕zk⋅xkZzjXxjZzkXxk=(−1)zj⋅xj⊕zk⋅xk(−1)zk⋅xjZzj⊕zkXxj⊕xk=(−1)(zj⋅xj)⊕(zk⋅xk)⊕(zk⋅xj)Zzj⊕zkXxj⊕xk=(−1)(zj⋅xj)⊕(zk⋅xk)⊕(zk⋅xj)⊕(zj⋅xk)(−1)zj⋅xkZzj⊕zkXxj⊕xk=(−1)zj⋅xk[(−1)(zj⊕zk)⋅(xj⊕xk)Z(zj⊕zk)X(xj⊕xk)]=(−1)zj⋅xkPl,\begin{align*} P_jP_k &= \big[ (-1)^{z_j \cdot x_j} Z^{z_j} X^{x_j} \big] \big[ (-1)^{z_k \cdot x_k} Z^{z_k} X^{x_k} \big] \\ &= (-1)^{z_j \cdot x_j \oplus z_k \cdot x_k} Z^{z_j} X^{x_j} Z^{z_k} X^{x_k} \\ &= (-1)^{z_j \cdot x_j \oplus z_k \cdot x_k} (-1)^{z_k \cdot x_j} Z^{z_j \oplus z_k} X^{x_j \oplus x_k} \\ &= (-1)^{(z_j \cdot x_j) \oplus (z_k \cdot x_k) \oplus (z_k \cdot x_j)} Z^{z_j \oplus z_k} X^{x_j \oplus x_k} \\ &= (-1)^{(z_j \cdot x_j) \oplus (z_k \cdot x_k) \oplus (z_k \cdot x_j) \oplus (z_j \cdot x_k)}(-1)^{z_j \cdot x_k} Z^{z_j \oplus z_k} X^{x_j \oplus x_k} \\ &= (-1)^{z_j \cdot x_k} [ (-1)^{(z_j \oplus z_k) \cdot (x_j \oplus x_k)}Z^{(z_j \oplus z_k)} X^{(x_j \oplus x_k)} ] \\ &= (-1)^{z_j \cdot x_k} P_l, \end{align*}

such that

Pl=(−1)zl⋅xlZzlXxl,P_l = (-1)^{z_l \cdot x_l}Z^{z_l} X^{x_l},

with zl=zj⊕zkz_l = z_j \oplus z_k and xl=xj⊕xkx_l = x_j \oplus x_k.

Note, in the above we have used the fact that

XxjZzk=(−1)xj⋅zkZzkXxj.X^{x_j} Z^{z_k} = (-1)^{x_j \cdot z_k} Z^{z_k} X^{x_j}.

It can then be seen that

PkPj=[(−1)zk⋅xkZzkXxk][(−1)zj⋅xjZzjXxj]=(−1)zk⋅xj[(−1)(zj⊕zk)⋅(xj⊕xk)Z(zj⊕zk)X(xj⊕xk)]=(−1)zk⋅xjPl.\begin{align*} P_kP_j &= \big[ (-1)^{z_k \cdot x_k} Z^{z_k} X^{x_k} \big] \big[ (-1)^{z_j \cdot x_j} Z^{z_j} X^{x_j} \big] \\ &= (-1)^{z_k \cdot x_j} [ (-1)^{(z_j \oplus z_k) \cdot (x_j \oplus x_k)}Z^{(z_j \oplus z_k)} X^{(x_j \oplus x_k)} ] \\ &= (-1)^{z_k \cdot x_j} P_l. \end{align*}

Commutation of Single Qubit Pauli’s

From the above it can be seen that

PjPk=(−1)(zk⋅xj)⊕(zj⋅xk)PkPj.P_jP_k = (-1)^{(z_k \cdot x_j) \oplus (z_j \cdot x_k)} P_kP_j.

Therefore, the Pauli-strings represented by the bit-strings

pj=(xj∣zj)  and  pk=(xk∣zk)p_j = (x_j \mid z_j) ~ ~ {\rm and} ~ ~ p_k = (x_k \mid z_k)

commute if

(zj⋅xk)⊕(zk⋅xj)=0 mod 2,(z_j \cdot x_k) \oplus (z_k \cdot x_j) = 0 ~ {\rm mod}~2,

which is the binary symplectic inner product of these bit-strings.

nn-qubits Pauli-strings

The nn-qubit Pauli-strings are the nn fold tensor product of the single qubit Pauli’s:

P=⨂j=1nPj:Pj∈{I,X,Z,Y} ∀ j.P = \bigotimes_{j=1}^n P_j : P_j \in \big\{\mathbb{I}, X, Z, Y \big\}~\forall~j.

Using the definition for single qubit Pauli’s given above, this becomes

P=⨂j=1n(−i)zj⋅xjZzjXxj=(−i)z⋅x⨂j=1nZzjXxj,\begin{align*} P &= \bigotimes_{j=1}^n (-i)^{z_j \cdot x_j} Z^{z_j} X^{x_j} \\ &= (-i)^{\bm{z} \cdot \bm{x}} \bigotimes_{j=1}^n Z^{z_j} X^{x_j}, \end{align*}

where x=(x1x2…xn)\bm{x} = (x_1x_2 \ldots x_n) and z=(z1z2…zn)\bm{z} = (z_1z_2 \ldots z_n), such that x,z∈{0,1}n\bm{x}, \bm{z} \in \{0,1\}^n.

Hence, an nn-qubit Pauli string can be represented by the 2n2n bit-string

P→p=(x∣z).P \rightarrow p = (\bm{x} \mid \bm{z}).

Multiplication of Multi-Qubit Pauli’s

Consider two elements of the single qubit Pauli-string and their mappings to 2-bit-strings

P→p=(xp∣zp)  and  Q→q=(xq∣zq).P \rightarrow p = (\bm{x}_p \mid \bm{z}_p) ~ ~ {\rm and} ~ ~ Q \rightarrow q = ({\bm{x_q}} \mid \bm{z}_q).

Then

PQ=(−1)zp⋅xqL:L→l=(xp⊕xq∣zp⊕zq),PQ = (-1)^{\bm{z}_p \cdot \bm{x}_q} L : L \rightarrow l = (\bm{x}_p \oplus \bm{x}_q \mid \bm{z}_p \oplus \bm{z}_q),

Similarly,

QP=(−1)zq⋅xpL:L→l=(xp⊕xq∣zp⊕zq).QP = (-1)^{\bm{z}_q \cdot \bm{x}_p} L : L \rightarrow l = (\bm{x}_p \oplus \bm{x}_q \mid \bm{z}_p \oplus \bm{z}_q).
Proof
PQ=[(−i)zp⋅xp⨂j=1nZzjpXxjp][(−i)zq⋅xq⨂j=1nZzjqXxjq]=(−i)(zp⋅xp)⊕(zq⋅xq)[⨂j=1nZzjpXxjpZzjqXxjq]=(−i)(zp⋅xp)⊕(zq⋅xq)[⨂j=1n(−i)(zjq⋅xjp)Zzjp⊕zjqXxjp⊕xjq]=(−i)(zp⋅xp)⊕(zq⋅xq)(−i)zq⋅xp[⨂j=1nZzjp⊕zjqXxjp⊕xjq]=(−i)(zp⋅xp)⊕(zq⋅xq)⊕(zq⋅xp)⊕(zp⋅xq)(−1)(zp⋅xq)[⨂j=1nZzjp⊕zjqXxjp⊕xjq]=(−1)(zp⋅xq)[(−i)(zp⊕zq)⋅(xp⊕xq)⨂j=1nZzjp⊕zjqXxjp⊕xjq]=(−1)(zp⋅xq)L,\begin{align*} PQ &= \biggl[ (-i)^{\bm{z}_p \cdot \bm{x}_p} \bigotimes_{j=1}^n Z^{z^p_j} X^{x^p_j} \biggl] \biggl[ (-i)^{\bm{z}_q \cdot \bm{x}_q} \bigotimes_{j=1}^n Z^{z^q_j} X^{x^q_j} \biggl] \\ &= (-i)^{(\bm{z}_p \cdot \bm{x}_p) \oplus (\bm{z}_q \cdot \bm{x}_q)} \bigg[ \bigotimes_{j=1}^n Z^{z^p_j} X^{x^p_j} Z^{z^q_j} X^{x^q_j} \bigg] \\ &= (-i)^{(\bm{z}_p \cdot \bm{x}_p) \oplus (\bm{z}_q \cdot \bm{x}_q)} \bigg[ \bigotimes_{j=1}^n (-i)^{(z^q_j \cdot x^p_j)} Z^{z^p_j \oplus z^q_j} X^{x^p_j \oplus x^q_j} \bigg] \\ &= (-i)^{(\bm{z}_p \cdot \bm{x}_p) \oplus (\bm{z}_q \cdot \bm{x}_q)} (-i)^{\bm{z}_q \cdot \bm{x}_p} \bigg[ \bigotimes_{j=1}^n Z^{z^p_j \oplus z^q_j} X^{x^p_j \oplus x^q_j} \bigg] \\ &= (-i)^{(\bm{z}_p \cdot \bm{x}_p) \oplus (\bm{z}_q \cdot \bm{x}_q) \oplus (\bm{z}_q \cdot \bm{x}_p) \oplus (\bm{z}_p \cdot \bm{x}_q)} (-1)^{(\bm{z}_p \cdot \bm{x}_q)} \bigg[ \bigotimes_{j=1}^n Z^{z^p_j \oplus z^q_j} X^{x^p_j \oplus x^q_j} \bigg] \\ &= (-1)^{(\bm{z}_p \cdot \bm{x}_q)} \bigg[ (-i)^{(\bm{z}_p \oplus \bm{z}_q) \cdot (\bm{x}_p \oplus \bm{x}_q)} \bigotimes_{j=1}^n Z^{z^p_j \oplus z^q_j} X^{x^p_j \oplus x^q_j} \bigg] \\ &= (-1)^{(\bm{z}_p \cdot \bm{x}_q)} L, \end{align*}

such that

L=(−1)zl⋅xlZzlXxl,L = (-1)^{\bm{z}_l \cdot \bm{x}_l}Z^{\bm{z}_l} X^{\bm{x}_l},

with zl=zj⊕zk\bm{z}_l = \bm{z}_j \oplus \bm{z}_k and xl=xj⊕xk\bm{x}_l = \bm{x}_j \oplus \bm{x}_k.

Note, in the above we have used the fact that

XxjZzk=(−1)xj⋅zkZzkXxj.X^{x_j} Z^{z_k} = (-1)^{x_j \cdot z_k} Z^{z_k} X^{x_j}.

It can then be seen that

QP=[(−i)zq⋅xq⨂j=1nZzjqXxjq][(−i)zp⋅xp⨂j=1nZzjpXxjp]=(−1)(zq⋅xp)[(−i)(zp⊕zq)⋅(xp⊕xq)⨂j=1nZzjp⊕zjqXxjp⊕xjq]=(−1)(zq⋅xp)L.\begin{align*} QP &= \biggl[ (-i)^{\bm{z}_q \cdot \bm{x}_q} \bigotimes_{j=1}^n Z^{z^q_j} X^{x^q_j} \biggl] \biggl[ (-i)^{\bm{z}_p \cdot \bm{x}_p} \bigotimes_{j=1}^n Z^{z^p_j} X^{x^p_j} \biggl] \\ &= (-1)^{(\bm{z}_q \cdot \bm{x}_p)} \bigg[ (-i)^{(\bm{z}_p \oplus \bm{z}_q) \cdot (\bm{x}_p \oplus \bm{x}_q)} \bigotimes_{j=1}^n Z^{z^p_j \oplus z^q_j} X^{x^p_j \oplus x^q_j} \bigg] \\ &= (-1)^{(\bm{z}_q \cdot \bm{x}_p)} L. \end{align*}

Commutation of Multi-Qubit Pauli’s

From the above, it can be seen that

PQ=(−1)(zp⋅xq)⊕(zq⋅xp)QP.PQ = (-1)^{(\bm{z}_p \cdot \bm{x}_q) \oplus (\bm{z}_q \cdot \bm{x}_p)} QP.

Therefore, the Pauli-strings represented by the bit-strings

p=(xp∣zp)  and  q=(xq∣zq)p = (\bm{x}_p \mid \bm{z}_p) ~ ~ {\rm and} ~ ~ q = (\bm{x}_q \mid \bm{z}_q)

commute if

(zp⋅xq)⊕(zq⋅xp)=0 mod 2,(\bm{z}_p \cdot \bm{x}_q) \oplus (\bm{z}_q \cdot \bm{x}_p) = 0 ~ {\rm mod}~2,

which is the binary symplectic inner product of these bit-strings.