OctoInform Beta

the paper · §III. Cyclic stabilizer codes under global control · §III, (E1)

Dimension of a stabilizer codespace: m≤nm \le n pairwise commuting Pauli strings with independent binary symplectic vectors cut out a complex subspace of dimension 2n−m2^{n - m}

Dimension of a stabilizer codespace from independent generators.

Hover over a blue or green term in the text, or a node in the graph, to find it in the other. Select it to read its declaration both in Lean and in words.

The setting

In the stabilizer formalism of quantum error correction, an nn-qubit code is specified by a list of mm commuting Pauli operators whose joint +1+1 eigenspace forms the codespace. Each independent generator halves the dimension of the state space, so m≤nm \le n pairwise commuting, independent generators on nn qubits define a codespace of complex dimension 2n−m2^{n - m} encoding n−mn - m logical qubits. Expressing the generators as nn-qubit Pauli strings modulo phase allows their independence to be stated directly in terms of binary symplectic vectors over 𝔽2\mathbb{F}_2.

Pauli strings

The three Pauli matrices σx,σy,σz\sigma_x, \sigma_y, \sigma_z are the 2×22 \times 2 complex matrices given in (1), where ii denotes the imaginary unit: σx=(0110),σy=(0−ii0),σz=(100−1).\begin{aligned} \sigma_x &= \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}, & \sigma_y &= \begin{pmatrix} 0 & -i \\ i & 0 \end{pmatrix}, & \sigma_z &= \begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}. \end{aligned}(1)

A single-qubit Pauli operator modulo phase is an element PP of the four-element set {I,X,Y,Z}\{I, X, Y, Z\}.✦ Its single-qubit Pauli matrix μ(P)\mu(P) is the 2×22 \times 2 complex matrix indexed by {0,1}\{0, 1\} defined by (2), where I2I_2 is the 2×22 \times 2 identity matrix: μ(I)=I2,μ(X)=σx,μ(Y)=σy,μ(Z)=σz.\begin{aligned} \mu(I) &= I_2, & \mu(X) &= \sigma_x, \\ \mu(Y) &= \sigma_y, & \mu(Z) &= \sigma_z. \end{aligned}(2)✦

For a natural number nn, an nn-qubit Pauli string modulo phase is a tuple p=(p0,…,pn−1)p = (p_0, \dots, p_{n - 1}) assigning a single-qubit Pauli operator pi∈{I,X,Y,Z}p_i \in \{I, X, Y, Z\} to each qubit site i∈{0,…,n−1}i \in \{0, \dots, n - 1\}.✦ Its Pauli string matrix M(p)M(p) is the complex matrix on the nn-qubit state space ℂ{0,1}n\mathbb{C}^{\{0, 1\}^n}, indexed by computational basis bitstrings a,b∈{0,1}na, b \in \{0, 1\}^n, with entries given by (3): M(p)a,b=∏i=0n−1μ(pi)ai,bi.M(p)_{a, b} = \prod_{i = 0}^{n - 1} \mu(p_i)_{a_i, b_i}.(3)✦

Binary symplectic vectors

Each single-qubit Pauli operator P∈{I,X,Y,Z}P \in \{I, X, Y, Z\} has a Pauli XX-bit bX(P)∈𝔽2b_X(P) \in \mathbb{F}_2 and a Pauli ZZ-bit bZ(P)∈𝔽2b_Z(P) \in \mathbb{F}_2, given by (4): (bX(I),bZ(I))=(0,0),(bX(X),bZ(X))=(1,0),(bX(Y),bZ(Y))=(1,1),(bX(Z),bZ(Z))=(0,1).\begin{aligned} (b_X(I), b_Z(I)) &= (0, 0), & (b_X(X), b_Z(X)) &= (1, 0), \\ (b_X(Y), b_Z(Y)) &= (1, 1), & (b_X(Z), b_Z(Z)) &= (0, 1). \end{aligned}(4)

The space of binary symplectic vectors on nn qubits is the 𝔽2\mathbb{F}_2-vector space 𝔽2n×𝔽2n\mathbb{F}_2^n \times \mathbb{F}_2^n, whose elements are written (x∣z)(x \mid z) with x,z∈𝔽2nx, z \in \mathbb{F}_2^n.✦ The symplectic representation of an nn-qubit Pauli string pp is the binary symplectic vector ϕ(p)=(x∣z)∈𝔽2n×𝔽2n\phi(p) = (x \mid z) \in \mathbb{F}_2^n \times \mathbb{F}_2^n whose coordinates at each site i∈{0,…,n−1}i \in \{0, \dots, n - 1\} are given by (5): xi=bX(pi),zi=bZ(pi).\begin{aligned} x_i &= b_X(p_i), \\ z_i &= b_Z(p_i). \end{aligned}(5)

For a sequence s=(s0,s1,…)s = (s_0, s_1, \dots) of nn-qubit Pauli strings indexed by ℕ\mathbb{N} and a natural number mm, the symplectic span of the first mm generators is the 𝔽2\mathbb{F}_2-linear subspace V(s,m)⊆𝔽2n×𝔽2nV(s, m) \subseteq \mathbb{F}_2^n \times \mathbb{F}_2^n defined by (6): V(s,m)=span⁡𝔽2{ϕ(sj):0≤j<m}.V(s, m) = \operatorname{span}_{\mathbb{F}_2}\{\phi(s_j) : 0 \le j < m\}.(6)

The stabilizer codespace

For a sequence s=(s0,s1,…)s = (s_0, s_1, \dots) of nn-qubit Pauli strings indexed by ℕ\mathbb{N} and a natural number mm, the stabilizer codespace 𝒞(s,m)\mathcal{C}(s, m) is the complex linear subspace of ℂ{0,1}n\mathbb{C}^{\{0, 1\}^n} consisting of all state vectors ψ\psi fixed by the first mm Pauli string matrices, as in (7): 𝒞(s,m)={ψ∈ℂ{0,1}n:M(sj)ψ=ψfor all 0≤j<m}.\begin{aligned} \mathcal{C}(s, m) = \bigl\{\psi \in \mathbb{C}^{\{0, 1\}^n} :\; &M(s_j)\psi = \psi \\ &\text{for all } 0 \le j < m\bigr\}. \end{aligned}(7)✦

The claim

Theorem. Let nn and mm be natural numbers with m≤nm \le n, and let s=(s0,s1,…)s = (s_0, s_1, \dots) be a sequence of nn-qubit Pauli strings. Suppose that for every 0≤k<m0 \le k < m, the symplectic representation satisfies ϕ(sk)∉V(s,k)\phi(s_k) \notin V(s, k), and that for all 0≤j,k<m0 \le j, k < m, the Pauli string matrices M(sj)M(s_j) and M(sk)M(s_k) commute. Then the complex dimension of the stabilizer codespace 𝒞(s,m)\mathcal{C}(s, m) is dim⁡ℂ𝒞(s,m)=2n−m.\dim_{\mathbb{C}} \mathcal{C}(s, m) = 2^{n - m}.(8)✦

Because the condition ϕ(sk)∉V(s,k)\phi(s_k) \notin V(s, k) for every 0≤k<m0 \le k < m expresses 𝔽2\mathbb{F}_2-linear independence of the first mm symplectic vectors, the theorem gives the codespace dimension 2n−m2^{n - m} for any m≤nm \le n pairwise commuting, linearly independent Pauli string generators.

What is checked

For a natural number nn, the Lean library defines the Pauli matrices σx,σy,σz\sigma_x, \sigma_y, \sigma_z, single-qubit Pauli operators and their single-qubit Pauli matrices, nn-qubit Pauli strings and their Pauli string matrices on ℂ{0,1}n\mathbb{C}^{\{0, 1\}^n}, the Pauli XX-bit and ZZ-bit, binary symplectic vectors in 𝔽2n×𝔽2n\mathbb{F}_2^n \times \mathbb{F}_2^n, the symplectic representation, the symplectic span of generators, and the stabilizer codespace. The dimension formula (8) is stated for any natural numbers m≤nm \le n and any sequence ss of nn-qubit Pauli strings whose first mm Pauli string matrices pairwise commute and whose first mm symplectic representations satisfy ϕ(sk)∉V(s,k)\phi(s_k) \notin V(s, k) for every 0≤k<m0 \le k < m.