MerLean-example

7 Def 3: Deformed Operator

We define the deformed operator \(\widetilde{P} = P \cdot \prod _{e \in \gamma } Z_e\) on the extended qubit system \(V \oplus E\). A Pauli operator \(P\) that commutes with the logical operator \(L = \prod _{v \in V} X_v\) can be lifted to the extended system using an edge-path \(\gamma \) satisfying the boundary condition \(\partial \gamma = S_Z(P)|_V\).

Definition 134 Z-Support on Vertices
#

The Z-support on vertices of a Pauli operator \(P\) on \(V\) is the binary vector \(\operatorname {zSupportOnVertices}(P) \in (\mathbb {Z}/2\mathbb {Z})^V\) defined by

\[ \operatorname {zSupportOnVertices}(P)(v) = \begin{cases} 1 & \text{if } P.\operatorname {zVec}(v) \neq 0, \\ 0 & \text{otherwise.} \end{cases} \]

This is the characteristic function of \(S_Z(P) \cap V\).

Definition 135 Commutes With Logical

A Pauli operator \(P\) on \(V\) commutes with the logical operator \(L = \prod _{v \in V} X_v\) if the sum of its Z-support on vertices vanishes in \(\mathbb {Z}/2\mathbb {Z}\):

\[ \sum _{v \in V} \operatorname {zSupportOnVertices}(P)(v) = 0. \]

Equivalently, \(P\) has an even number of vertices with \(Z\)-action.

Definition 136 Boundary Condition

The boundary condition for a Pauli operator \(P\) on \(V\) and an edge-path \(\gamma \in (\mathbb {Z}/2\mathbb {Z})^{E}\) asserts that

\[ \partial \gamma = \operatorname {zSupportOnVertices}(P), \]

where \(\partial \) denotes the boundary map of the graph \(G\).

Definition 137 Deformed Operator on Extended Qubits

The deformed operator \(\widetilde{P}\) on the extended qubit system \(V \oplus E\) is defined as follows. Given a Pauli operator \(P\) on \(V\) and an edge-path \(\gamma \in (\mathbb {Z}/2\mathbb {Z})^E\):

  • On vertex qubits (\(v \in V\)): \(\widetilde{P}.\operatorname {xVec}(v) = P.\operatorname {xVec}(v)\) and \(\widetilde{P}.\operatorname {zVec}(v) = P.\operatorname {zVec}(v)\).

  • On edge qubits (\(e \in E\)): \(\widetilde{P}.\operatorname {xVec}(e) = 0\) and \(\widetilde{P}.\operatorname {zVec}(e) = \gamma (e)\).

That is, \(\widetilde{P}\) acts as \(P\) on vertex qubits and as \(Z_e\) (if \(\gamma (e)=1\)) or identity (if \(\gamma (e)=0\)) on edge qubits.

Theorem 138 Deforming the Identity

Deforming the identity operator with edge-path \(\gamma \) gives a pure-\(Z\) edge operator:

\[ \widetilde{\mathbf{1}}(\gamma ).\operatorname {xVec}(q) = 0 \quad \text{for all } q \in V \oplus E, \]
\[ \widetilde{\mathbf{1}}(\gamma ).\operatorname {zVec}(q) = \begin{cases} 0 & \text{if } q \in V, \\ \gamma (e) & \text{if } q = e \in E. \end{cases} \]
Proof

By extensionality, it suffices to check each component. For each qubit \(q \in V \oplus E\), we case-split on whether \(q\) is a vertex or an edge qubit and simplify using the definition of \(\operatorname {deformedOpExt}\).

Theorem 139 Deforming with Zero Path

Deforming \(P\) with the zero edge-path extends \(P\) trivially to the edge qubits:

\[ \widetilde{P}(0).\operatorname {xVec}(q) = \begin{cases} P.\operatorname {xVec}(v) & \text{if } q = v \in V, \\ 0 & \text{if } q \in E, \end{cases} \]
\[ \widetilde{P}(0).\operatorname {zVec}(q) = \begin{cases} P.\operatorname {zVec}(v) & \text{if } q = v \in V, \\ 0 & \text{if } q \in E. \end{cases} \]
Proof

By extensionality, it suffices to check each component. For each qubit \(q\), we case-split on whether \(q\) is a vertex or edge qubit and simplify using the definition of \(\operatorname {deformedOpExt}\).

Theorem 140 Self-Inverse Property

The deformed operator is self-inverse: \(\widetilde{P} \cdot \widetilde{P} = \mathbf{1}\).

Proof

By extensionality, it suffices to verify equality on each qubit \(q \in V \oplus E\).

For the \(\operatorname {xVec}\) component: if \(q = v \in V\), then \((\widetilde{P} \cdot \widetilde{P}).\operatorname {xVec}(v) = P.\operatorname {xVec}(v) + P.\operatorname {xVec}(v) = 0\) by the characteristic-two identity \(a + a = 0\) in \(\mathbb {Z}/2\mathbb {Z}\). If \(q = e \in E\), then \((\widetilde{P} \cdot \widetilde{P}).\operatorname {xVec}(e) = 0 + 0 = 0\), which equals \(\mathbf{1}.\operatorname {xVec}(e)\).

For the \(\operatorname {zVec}\) component: if \(q = v \in V\), then \((\widetilde{P} \cdot \widetilde{P}).\operatorname {zVec}(v) = P.\operatorname {zVec}(v) + P.\operatorname {zVec}(v) = 0\) by the same characteristic-two identity. If \(q = e \in E\), then \((\widetilde{P} \cdot \widetilde{P}).\operatorname {zVec}(e) = \gamma (e) + \gamma (e) = 0\).

Lemma 141 Sum of Z-Support Equals Cardinality

For any Pauli operator \(P\) on \(V\),

\[ \sum _{v \in V} \operatorname {zSupportOnVertices}(P)(v) = |\{ v \in V \mid P.\operatorname {zVec}(v) \neq 0\} | \pmod{2}. \]
Proof

Expanding the definition of \(\operatorname {zSupportOnVertices}\), the left-hand side is \(\sum _{v \in V} \mathbf{1}_{P.\operatorname {zVec}(v) \neq 0}\), which by rewriting in terms of the boolean indicator function equals the cardinality of \(\{ v \in V \mid P.\operatorname {zVec}(v) \neq 0\} \) cast to \(\mathbb {Z}/2\mathbb {Z}\).

Theorem 142 Commutativity Iff Even Z-Support

A Pauli operator \(P\) commutes with the logical operator if and only if \(|\{ v \in V \mid P.\operatorname {zVec}(v) \neq 0\} |\) is even:

\[ \operatorname {CommutesWithLogical}(P) \iff 2 \mid |\{ v \in V \mid P.\operatorname {zVec}(v) \neq 0\} |. \]
Proof

Unfolding the definition of \(\operatorname {CommutesWithLogical}\), the condition becomes \(\sum _v \operatorname {zSupportOnVertices}(P)(v) = 0\) in \(\mathbb {Z}/2\mathbb {Z}\). By the lemma \(\operatorname {sum\_ zSupportOnVertices\_ eq\_ card}\), this sum equals the cardinality cast to \(\mathbb {Z}/2\mathbb {Z}\). The result then follows from the fact that \(n = 0\) in \(\mathbb {Z}/2\mathbb {Z}\) if and only if \(n\) is even.

Theorem 143 Boundary Sum Equals Zero

For any edge-path \(\gamma \in (\mathbb {Z}/2\mathbb {Z})^E\),

\[ \sum _{v \in V} (\partial \gamma )(v) = 0, \]

since each edge contributes to exactly two vertices.

Proof

Expanding the definition of the boundary map, we have

\[ \sum _{v \in V} (\partial \gamma )(v) = \sum _{v \in V} \sum _{e \in E} \begin{cases} \gamma (e) & \text{if } v \in e, \\ 0 & \text{otherwise.} \end{cases} \]

Swapping the order of summation, it suffices to show that each inner sum \(\sum _{v \in V} \mathbf{1}_{v \in e} \cdot \gamma (e)\) vanishes. We factor out \(\gamma (e)\) to obtain \(\bigl(\sum _{v \in V} \mathbf{1}_{v \in e}\bigr) \cdot \gamma (e)\).

For each edge \(e = \{ a, b\} \) with \(a \neq b\) (since the graph has no loops), we have \(\sum _{v \in V} \mathbf{1}_{v \in \{ a,b\} } = \mathbf{1}_{v=a} + \mathbf{1}_{v=b}\). After evaluating the sum over all vertices, we get the contribution \(1 + 1 = 0\) in \(\mathbb {Z}/2\mathbb {Z}\), so each edge’s contribution is \(0 \cdot \gamma (e) = 0\). The total sum is therefore \(0\).

Theorem 144 Boundary Condition Implies Commutativity

If the boundary condition \(\partial \gamma = \operatorname {zSupportOnVertices}(P)\) holds, then \(P\) commutes with the logical operator.

Proof

Unfolding the definition of \(\operatorname {CommutesWithLogical}\), we need to show \(\sum _v \operatorname {zSupportOnVertices}(P)(v) = 0\). Unfolding the boundary condition \(\partial \gamma = \operatorname {zSupportOnVertices}(P)\), we rewrite the goal as \(\sum _v (\partial \gamma )(v) = 0\). This follows directly from the theorem \(\operatorname {boundary\_ sum\_ eq\_ zero}\).

Let \(P\) be a Pauli operator on \(V\), \(\gamma \) an edge-path, and suppose the boundary condition \(\partial \gamma = \operatorname {zSupportOnVertices}(P)\) holds. Then for every vertex \(v \in V\), the deformed operator \(\widetilde{P}\) commutes with the Gauss’s law operator \(A_v\):

\[ \operatorname {PauliCommute}(\widetilde{P}, A_v). \]
Proof

Expanding the definition of \(\operatorname {PauliCommute}\) and \(\operatorname {symplecticInner}\), we need to show

\[ \sum _{q \in V \oplus E} \bigl(\widetilde{P}.\operatorname {xVec}(q) \cdot A_v.\operatorname {zVec}(q) + \widetilde{P}.\operatorname {zVec}(q) \cdot A_v.\operatorname {xVec}(q)\bigr) = 0. \]

We split the sum over the type \(V \oplus E\).

Vertex contribution: We first establish that

\[ \sum _{w \in V} \bigl(\widetilde{P}.\operatorname {xVec}(w) \cdot A_v.\operatorname {zVec}(w) + \widetilde{P}.\operatorname {zVec}(w) \cdot A_v.\operatorname {xVec}(w)\bigr) = P.\operatorname {zVec}(v). \]

Expanding the definitions of \(\widetilde{P}\) and \(A_v\), the \(A_v.\operatorname {zVec}\) component on vertices is \(0\), so the first term vanishes. The \(A_v.\operatorname {xVec}\) component on vertex \(w\) is \(\mathbf{1}_{w=v}\), so the sum reduces to \(\sum _w P.\operatorname {zVec}(w) \cdot \mathbf{1}_{w=v} = P.\operatorname {zVec}(v)\).

Edge contribution: We establish that

\[ \sum _{e \in E} \bigl(\widetilde{P}.\operatorname {xVec}(e) \cdot A_v.\operatorname {zVec}(e) + \widetilde{P}.\operatorname {zVec}(e) \cdot A_v.\operatorname {xVec}(e)\bigr) = \sum _{e \in E} \begin{cases} \gamma (e) & \text{if } v \in e, \\ 0 & \text{otherwise.} \end{cases} \]

Since \(\widetilde{P}.\operatorname {xVec}(e) = 0\) on edges, the first term vanishes. The second term is \(\gamma (e) \cdot \mathbf{1}_{v \in e}\), which gives the claimed expression after case-splitting on whether \(v \in e\).

Combining: The total symplectic inner product is \(P.\operatorname {zVec}(v) + \sum _e \mathbf{1}_{v \in e} \cdot \gamma (e)\). From the boundary condition, \((\partial \gamma )(v) = \operatorname {zSupportOnVertices}(P)(v)\). Expanding the boundary map, \((\partial \gamma )(v) = \sum _e \mathbf{1}_{v \in e} \cdot \gamma (e)\). Rewriting using the boundary condition, the total becomes \(P.\operatorname {zVec}(v) + \operatorname {zSupportOnVertices}(P)(v)\). If \(P.\operatorname {zVec}(v) = 0\), then \(\operatorname {zSupportOnVertices}(P)(v) = 0\) and the sum is \(0\). If \(P.\operatorname {zVec}(v) \neq 0\), then \(P.\operatorname {zVec}(v) = 1\) and \(\operatorname {zSupportOnVertices}(P)(v) = 1\) in \(\mathbb {Z}/2\mathbb {Z}\), so the sum is \(1 + 1 = 0\) by the characteristic-two identity.

Theorem 146 Compatibility with Multiplication

For Pauli operators \(P, Q\) on \(V\) and edge-paths \(\gamma _1, \gamma _2\),

\[ \widetilde{P}(\gamma _1) \cdot \widetilde{Q}(\gamma _2) = \widetilde{P \cdot Q}(\gamma _1 + \gamma _2). \]
Proof

By extensionality, we verify equality on each qubit \(q \in V \oplus E\).

For the \(\operatorname {xVec}\) component: if \(q = v \in V\), then both sides equal \(P.\operatorname {xVec}(v) + Q.\operatorname {xVec}(v)\) by simplification using the definition of \(\operatorname {deformedOpExt}\). If \(q = e \in E\), then both sides equal \(0 + 0 = 0\).

For the \(\operatorname {zVec}\) component: if \(q = v \in V\), then both sides equal \(P.\operatorname {zVec}(v) + Q.\operatorname {zVec}(v)\). If \(q = e \in E\), then both sides equal \(\gamma _1(e) + \gamma _2(e)\) by the pointwise addition of functions.

Lemma 147 Additivity of Z-Support on Vertices

The Z-support on vertices is additive under Pauli multiplication: for all \(v \in V\),

\[ \operatorname {zSupportOnVertices}(P \cdot Q)(v) = \operatorname {zSupportOnVertices}(P)(v) + \operatorname {zSupportOnVertices}(Q)(v). \]
Proof

Expanding the definition, \(\operatorname {zSupportOnVertices}\) is defined using the indicator \(\mathbf{1}_{P.\operatorname {zVec}(v) \neq 0}\), and \(P \cdot Q\) has \(\operatorname {zVec}(v) = P.\operatorname {zVec}(v) + Q.\operatorname {zVec}(v)\). We use the fact that in \(\mathbb {Z}/2\mathbb {Z}\), \(a \neq 0 \iff a = 1\). We then case-split on whether \(P.\operatorname {zVec}(v) = 0\) and \(Q.\operatorname {zVec}(v) = 0\):

  • If both are \(0\): both sides are \(0\).

  • If \(P.\operatorname {zVec}(v) = 0\) and \(Q.\operatorname {zVec}(v) \neq 0\): left side is \(1\), right side is \(0 + 1 = 1\).

  • If \(P.\operatorname {zVec}(v) \neq 0\) and \(Q.\operatorname {zVec}(v) = 0\): left side is \(1\), right side is \(1 + 0 = 1\).

  • If both are nonzero: \(P.\operatorname {zVec}(v) + Q.\operatorname {zVec}(v) = 1 + 1 = 0\) in \(\mathbb {Z}/2\mathbb {Z}\) by the characteristic-two identity, so the left side is \(0\), and the right side is \(1 + 1 = 0\).

Theorem 148 Boundary Condition Compatible with Multiplication

If \(\partial \gamma _1 = \operatorname {zSupportOnVertices}(P)\) and \(\partial \gamma _2 = \operatorname {zSupportOnVertices}(Q)\), then

\[ \partial (\gamma _1 + \gamma _2) = \operatorname {zSupportOnVertices}(P \cdot Q). \]
Proof

Unfolding the boundary condition at both hypotheses, we use the linearity of the boundary map: \(\partial (\gamma _1 + \gamma _2) = \partial \gamma _1 + \partial \gamma _2\). By extensionality, for each vertex \(v\) we compute

\[ \partial (\gamma _1 + \gamma _2)(v) = (\partial \gamma _1)(v) + (\partial \gamma _2)(v) = \operatorname {zSupportOnVertices}(P)(v) + \operatorname {zSupportOnVertices}(Q)(v), \]

using the hypotheses. By the additivity lemma \(\operatorname {zSupportOnVertices\_ mul}\), the right-hand side equals \(\operatorname {zSupportOnVertices}(P \cdot Q)(v)\).

Definition 149 No Z-Support on V

A Pauli operator \(P\) on \(V\) has no Z-support on \(V\) if its Z-support on vertices is the zero vector:

\[ \operatorname {zSupportOnVertices}(P) = 0. \]
Theorem 150 No Z-Support Implies Trivial Boundary

If \(P\) has no Z-support on \(V\), then the boundary condition is satisfied by \(\gamma = 0\):

\[ \operatorname {HasNoZSupportOnV}(P) \implies \operatorname {BoundaryCondition}(P, 0). \]
Proof

Unfolding the boundary condition, we need \(\partial 0 = \operatorname {zSupportOnVertices}(P)\). Since the boundary map is linear, \(\partial 0 = 0\). The hypothesis gives \(\operatorname {zSupportOnVertices}(P) = 0\), so the two sides are equal by symmetry.

Definition 151 Deformed Operator

The deformed operator \(\widetilde{P} = P \cdot \prod _{e \in \gamma } Z_e\) on the extended qubit system \(V \oplus E\) is the main construction from Definition 3. Given a Pauli operator \(P\) on \(V\) and an edge-path \(\gamma \) satisfying the boundary condition \(\partial \gamma = S_Z(P)|_V\), the deformed operator is defined as

\[ \widetilde{P} := \operatorname {deformedOpExt}(G, P, \gamma ). \]

On vertex qubits it acts as \(P\), and on edge qubits it acts as \(Z_e\) if \(\gamma (e) = 1\) and as the identity otherwise. It commutes with all Gauss’s law operators \(A_v\).