MerLean-example

14 Def 4: Deformed Operator

In this chapter, we define the deformed operator \(\tilde{P}\) associated to a Pauli operator \(P\) that commutes with the logical operator \(L = \prod _{v \in V} X_v\). The deformation is constructed by choosing an edge-path \(\gamma \) whose boundary equals the \(Z\)-type support of \(P\) restricted to graph vertices, and forming \(\tilde{P} = P \cdot \prod _{e \in \gamma } Z_e\). The key result is that \(\tilde{P}\) commutes with all Gauss law operators.

Definition 387 \(Z\)-Support on Vertices
#

Given a graph \(G = (V, E, C)\) and a Pauli operator with \(Z\)-type support \(S_Z \subseteq V\), the \(Z\)-type support restricted to the graph vertices is \(S_Z \cap V_G\). Since \(S_Z\) is already given as a subset of \(V\), this is simply \(S_Z\) itself.

Definition 388 \(Z\)-Support Vector

Given a graph \(G\) and a subset \(S \subseteq V\), the \(Z\)-support vector is the binary vector \(\mathbf{s} \in \mathbb {Z}_2^V\) defined by

\[ \mathbf{s}(v) = \begin{cases} 1 & \text{if } v \in S, \\ 0 & \text{if } v \notin S. \end{cases} \]
Definition 389 Edge Path
#

An edge-path in a graph \(G\) is a subset \(\gamma \subseteq E\) of edges, represented as a finite set.

Definition 390 Edge Path Vector

Given a graph \(G\) and an edge-path \(\gamma \subseteq E\), the edge-path vector is the binary vector \(\boldsymbol {\gamma } \in \mathbb {Z}_2^E\) defined by

\[ \boldsymbol {\gamma }(e) = \begin{cases} 1 & \text{if } e \in \gamma , \\ 0 & \text{if } e \notin \gamma . \end{cases} \]
Definition 391 Edge Path Boundary

The boundary of an edge-path \(\gamma \) is defined as \(\partial \gamma = \partial _1(\boldsymbol {\gamma })\), where \(\partial _1\) is the boundary map and \(\boldsymbol {\gamma }\) is the binary vector representation of \(\gamma \). This gives a vector in \(\mathbb {Z}_2^V\) whose value at each vertex \(v\) counts (modulo 2) the number of edges in \(\gamma \) incident to \(v\).

Lemma 392 Edge Path Boundary at a Vertex

For a graph \(G\), an edge-path \(\gamma \), and a vertex \(v\),

\[ (\partial \gamma )(v) = \sum _{\substack {e \in \gamma \\ e \text{ incident to } v}} 1 \pmod{2}. \]
Proof

We unfold the definition of \(\partial \gamma \) using the boundary map applied at vertex \(v\). We establish that \(\mathrm{incidentEdges}(v) \cap \gamma = \gamma .\mathrm{filter}(\text{isIncident to } v)\) by extensionality, using the definition of incident edges and basic set membership. On the left-hand side, we rewrite using the edge-path vector definition. We then split the sum over \(\mathrm{incidentEdges}(v)\) into edges in \(\gamma \) and edges not in \(\gamma \). For edges \(e\) in the filter with \(e \in \gamma \), the indicator \(\mathbf{1}_{e \in \gamma }\) equals \(1\), so the first sum equals \(\sum _{e \in \mathrm{incidentEdges}(v) \cap \gamma } 1\). For edges \(e\) not in \(\gamma \), the indicator is \(0\), so the second sum equals \(0\). Adding, we get \(\sum _{e \in \mathrm{incidentEdges}(v) \cap \gamma } 1 + 0\). Finally, we rewrite the filter set as \(\gamma .\mathrm{filter}(\text{isIncident to } v)\) by extensionality.

Lemma 393 Boundary Equals One Iff Odd Incidence

For a graph \(G\), an edge-path \(\gamma \), and a vertex \(v\),

\[ (\partial \gamma )(v) = 1 \iff |\{ e \in \gamma \mid e \text{ incident to } v\} | \equiv 1 \pmod{2}. \]
Proof

We rewrite using the edge path boundary formula. The sum \(\sum _{e \in \gamma \cap \mathrm{inc}(v)} 1\) equals \(|\gamma \cap \mathrm{inc}(v)|\) cast into \(\mathbb {Z}_2\). For the forward direction, we extract the \(\mathbb {Z}_2\)-value using ZMod.val, yielding \(|\gamma \cap \mathrm{inc}(v)| \bmod 2 = 1\). For the reverse direction, given \(|\gamma \cap \mathrm{inc}(v)| \bmod 2 = 1\), we use the fact that the natural number cast to \(\mathbb {Z}_2\) equals the cast of its residue modulo 2, rewrite with the hypothesis, and conclude by reflexivity.

Lemma 394 Boundary Equals Zero Iff Even Incidence

For a graph \(G\), an edge-path \(\gamma \), and a vertex \(v\),

\[ (\partial \gamma )(v) = 0 \iff |\{ e \in \gamma \mid e \text{ incident to } v\} | \equiv 0 \pmod{2}. \]
Proof

We rewrite using the edge path boundary formula. The sum \(\sum _{e \in \gamma \cap \mathrm{inc}(v)} 1\) equals \(|\gamma \cap \mathrm{inc}(v)|\) cast into \(\mathbb {Z}_2\). For the forward direction, we extract the \(\mathbb {Z}_2\)-value using ZMod.val, obtaining \(|\gamma \cap \mathrm{inc}(v)| \bmod 2 = 0\). For the reverse direction, given \(|\gamma \cap \mathrm{inc}(v)| \bmod 2 = 0\), we use the fact that the natural number cast to \(\mathbb {Z}_2\) equals the cast of its residue modulo 2, rewrite with the hypothesis, and conclude by reflexivity.

Definition 395 Valid Deforming Path

An edge-path \(\gamma \) is a valid deforming path for a \(Z\)-support \(S \subseteq V\) if the boundary of \(\gamma \) equals the \(Z\)-support vector:

\[ \partial \gamma = \mathbf{s}_S, \]

where \(\mathbf{s}_S\) is the binary vector representation of \(S\). Equivalently, \(\partial \gamma = S\) as subsets of \(V\) (via their characteristic functions in \(\mathbb {Z}_2^V\)).

Lemma 396 Characterization of Valid Deforming Path

An edge-path \(\gamma \) is a valid deforming path for \(S\) if and only if for all vertices \(v \in V\),

\[ (\partial \gamma )(v) = \mathbf{s}_S(v). \]
Proof

We unfold the definition of IsValidDeformingPath. For the forward direction, given the function equality \(\partial \gamma = \mathbf{s}_S\), we apply it at an arbitrary vertex \(v\) using congrFun. For the reverse direction, given pointwise equality \(\forall v, (\partial \gamma )(v) = \mathbf{s}_S(v)\), we conclude function equality by extensionality.

Lemma 397 Valid Path: Boundary on Support

If \(\gamma \) is a valid deforming path for \(S\) and \(v \in S\), then \((\partial \gamma )(v) = 1\).

Proof

We rewrite the valid path condition using the pointwise characterization. Then \((\partial \gamma )(v) = \mathbf{s}_S(v)\), and since \(v \in S\), we have \(\mathbf{s}_S(v) = 1\).

Lemma 398 Valid Path: Boundary off Support

If \(\gamma \) is a valid deforming path for \(S\) and \(v \notin S\), then \((\partial \gamma )(v) = 0\).

Proof

We rewrite the valid path condition using the pointwise characterization. Then \((\partial \gamma )(v) = \mathbf{s}_S(v)\), and since \(v \notin S\), we have \(\mathbf{s}_S(v) = 0\).

For any edge-path \(\gamma \) in a graph \(G\),

\[ \sum _{v \in V} (\partial \gamma )(v) = 0 \quad \text{in } \mathbb {Z}_2. \]

This holds because each edge is incident to exactly two vertices, and \(1 + 1 = 0\) in \(\mathbb {Z}_2\).

Proof

We unfold \(\partial \gamma \) and compute:

\begin{align*} \sum _{v \in V} (\partial \gamma )(v) & = \sum _{v \in V} \sum _{e \in \mathrm{inc}(v)} \boldsymbol {\gamma }(e) & & \text{(by the boundary map formula at each vertex)}\\ & = \sum _{e \in E} \sum _{v \in \mathrm{endpoints}(e)} \boldsymbol {\gamma }(e) & & \text{(by exchanging the order of summation)} \end{align*}

where the exchange of summation order uses the equivalence that \(e\) is incident to \(v\) if and only if \(v\) is an endpoint of \(e\). For each edge \(e\) with endpoints \(v_1, v_2\) (which are distinct by the graph axiom \(v_1 \neq v_2\)), we have \(\mathrm{endpoints}(e) = \{ v_1, v_2\} \). Thus

\[ \sum _{v \in \{ v_1, v_2\} } \boldsymbol {\gamma }(e) = \boldsymbol {\gamma }(e) + \boldsymbol {\gamma }(e). \]

The total sum becomes \(\sum _{e \in E} (\boldsymbol {\gamma }(e) + \boldsymbol {\gamma }(e)) = 0\), since \(a + a = 0\) in \(\mathbb {Z}_2\) for all \(a\).

Theorem 400 Even \(Z\)-Support from Valid Path

If a valid deforming path \(\gamma \) exists for \(S \subseteq V\), then \(|S| \equiv 0 \pmod{2}\).

Proof

Let \(\gamma \) be a valid deforming path for \(S\). By the boundary sum theorem, \(\sum _{v \in V} (\partial \gamma )(v) = 0\) in \(\mathbb {Z}_2\). Since \(\gamma \) is a valid path, \((\partial \gamma )(v) = \mathbf{s}_S(v)\) for all \(v\) (by the pointwise characterization). We compute

\[ \sum _{v \in V} \mathbf{s}_S(v) = \sum _{v \in S} 1 + \sum _{v \notin S} 0 = |S|, \]

where the first equality splits the sum into vertices in \(S\) (contributing \(1\)) and vertices not in \(S\) (contributing \(0\)). The filter of \(\mathrm{univ}\) by membership in \(S\) equals \(S\) itself, and the sum of zeros vanishes. Substituting into the boundary sum equation gives \(|S| = 0\) in \(\mathbb {Z}_2\). Extracting the \(\mathbb {Z}_2\)-value yields \(|S| \bmod 2 = 0\).

Theorem 401 No Valid Path if Odd Support

If \(|S| \equiv 1 \pmod{2}\), then there is no valid deforming path \(\gamma \) for \(S\):

\[ |S| \bmod 2 = 1 \implies \nexists \, \gamma \subseteq E,\; \partial \gamma = \mathbf{s}_S. \]
Proof

Suppose for contradiction that there exists a valid deforming path \(\gamma \) for \(S\). Decomposing the existential, let \(\gamma \) be such a path with \(h_\gamma \) witnessing validity. By the even \(Z\)-support theorem, \(|S| \bmod 2 = 0\). But we assumed \(|S| \bmod 2 = 1\), which is a contradiction by integer arithmetic.

Definition 402 Deformable Pauli Operator
#

A deformable Pauli operator on a graph \(G = (V, E, C)\) is a structure consisting of:

  • \(S_X^V \subseteq V\): the \(X\)-type support on vertices,

  • \(S_Z^V \subseteq V\): the \(Z\)-type support on vertices,

  • \(S_X^E \subseteq E\): the \(X\)-type support on edges,

  • \(S_Z^E \subseteq E\): the \(Z\)-type support on edges,

  • \(\sigma \in \mathbb {Z}_4\): the global phase (\(0 = +1\), \(1 = +i\), \(2 = -1\), \(3 = -i\)),

  • The deformability condition: \(|S_Z^V| \equiv 0 \pmod{2}\).

The deformability condition is equivalent to \(P\) commuting with the logical operator \(L = \prod _{v \in V} X_v\).

Theorem 403 Deformability Iff Commutes with \(L\)

For a Pauli operator with \(Z\)-support \(S_Z\) on vertices, the deformability condition \(|S_Z| \equiv 0 \pmod{2}\) is equivalent to \(P\) commuting with \(L = \prod _v X_v\). Formally,

\[ |S_Z| \bmod 2 = 0 \iff |S_Z| \bmod 2 = 0. \]
Proof

This holds by reflexivity of the biconditional.

Definition 404 Deformed Operator

Given a deformable Pauli operator \(P\) on graph \(G\) and an edge-path \(\gamma \subseteq E\), the deformed operator \(\tilde{P} = P \cdot \prod _{e \in \gamma } Z_e\) is defined as the deformable Pauli operator with:

  • \(S_X^V(\tilde{P}) = S_X^V(P)\) (X-support on vertices unchanged),

  • \(S_Z^V(\tilde{P}) = S_Z^V(P)\) (Z-support on vertices unchanged),

  • \(S_X^E(\tilde{P}) = S_X^E(P)\) (X-support on edges unchanged),

  • \(S_Z^E(\tilde{P}) = S_Z^E(P) \oplus \gamma \) (Z-support on edges is the symmetric difference with \(\gamma \)),

  • \(\sigma (\tilde{P}) = \sigma (P)\) (phase unchanged).

The deformability condition \(|S_Z^V(\tilde{P})| \equiv 0 \pmod{2}\) is inherited from \(P\).

Lemma 405 Deformed Edge \(Z\)-Support is Symmetric Difference

For a deformable operator \(P\) and edge-path \(\gamma \),

\[ S_Z^E(\tilde{P}) = S_Z^E(P) \triangle \gamma , \]

where \(\triangle \) denotes symmetric difference.

Proof

This holds by reflexivity (it is the definition of the deformed operator’s edge \(Z\)-support).

Lemma 406 Symmetric Difference as Binary Vector Addition
#

For finite sets \(S, T \subseteq E\) and an edge \(e\),

\[ \mathbf{1}_{e \in S \triangle T} = \mathbf{1}_{e \in S} + \mathbf{1}_{e \in T} \quad \text{in } \mathbb {Z}_2. \]
Proof

We consider four cases based on membership of \(e\) in \(S\) and \(T\):

  1. \(e \in S\) and \(e \in T\): Then \(e \notin S \triangle T\) (since symmetric difference excludes elements in both), so the left side is \(0\). The right side is \(1 + 1 = 0\) in \(\mathbb {Z}_2\) (by the self-addition lemma \(a + a = 0\)).

  2. \(e \in S\) and \(e \notin T\): Then \(e \in S \triangle T\), so both sides equal \(1 + 0 = 1\).

  3. \(e \notin S\) and \(e \in T\): Then \(e \in S \triangle T\), so both sides equal \(0 + 1 = 1\).

  4. \(e \notin S\) and \(e \notin T\): Then \(e \notin S \triangle T\), so both sides equal \(0 + 0 = 0\).

In each case the equality holds by simplification.

Theorem 407 Deformed \(Z\)-Support as Vector Sum

For a deformable operator \(P\), edge-path \(\gamma \), and edge \(e\),

\[ \mathbf{1}_{e \in S_Z^E(\tilde{P})} = \mathbf{1}_{e \in S_Z^E(P)} + \mathbf{1}_{e \in \gamma } \quad \text{in } \mathbb {Z}_2. \]

That is, the binary vector representation of the deformed operator’s edge \(Z\)-support is the \(\mathbb {Z}_2\)-sum of \(P\)’s edge \(Z\)-support vector and \(\gamma \)’s characteristic vector.

Proof

We rewrite the deformed operator’s edge \(Z\)-support as the symmetric difference \(S_Z^E(P) \triangle \gamma \) using the previous lemma, then apply the symmetric difference vector identity.

Definition 408 Deformed–Gauss Law Symplectic Form

The symplectic form between the deformed operator \(\tilde{P}\) and the Gauss law operator \(A_v\) is defined as the count of anticommuting pairs:

\[ \omega (\tilde{P}, A_v) = \mathbf{1}_{v \in S_Z^V(P)} + |S_Z^E(\tilde{P}) \cap \mathrm{inc}(v)|, \]

where \(\mathrm{inc}(v)\) denotes the set of edges incident to \(v\).

Definition 409 Simplified Symplectic Form

When \(P\) originally has no \(Z\)-support on edges (i.e., \(S_Z^E(P) = \emptyset \)), the symplectic form simplifies to:

\[ \omega _{\mathrm{simple}}(S_Z^V, \gamma , v) = \mathbf{1}_{v \in S_Z^V} + |\gamma \cap \mathrm{inc}(v)|. \]
Theorem 410 Deformed Operator Commutes with Gauss Law

If \(\gamma \) is a valid deforming path for \(S_Z^V\) (so that \(\partial \gamma = \mathbf{s}_{S_Z^V}\)), then the deformed operator commutes with the Gauss law operator \(A_v\) for every vertex \(v\):

\[ \omega _{\mathrm{simple}}(S_Z^V, \gamma , v) \equiv 0 \pmod{2} \quad \text{for all } v \in V. \]
Proof

We unfold the simplified symplectic form and use the pointwise characterization of the valid path condition. Let \(v\) be an arbitrary vertex. We have \((\partial \gamma )(v) = \mathbf{s}_{S_Z^V}(v)\).

Case 1: \(v \in S_Z^V\). Then \(\mathbf{1}_{v \in S_Z^V} = 1\). By the valid path condition, \(\mathbf{s}_{S_Z^V}(v) = 1\), so \((\partial \gamma )(v) = 1\). By the boundary-one characterization, \(|\{ e \in \gamma \mid e \text{ incident to } v\} | \equiv 1 \pmod{2}\). We establish that \(\gamma \cap \mathrm{inc}(v) = \gamma .\mathrm{filter}(\text{isIncident to } v)\) by extensionality using the definition of incident edges. Therefore \(\omega = 1 + |\gamma \cap \mathrm{inc}(v)|\) where \(|\gamma \cap \mathrm{inc}(v)|\) is odd, so \(\omega \) is even. This follows by integer arithmetic (omega).

Case 2: \(v \notin S_Z^V\). Then \(\mathbf{1}_{v \in S_Z^V} = 0\). By the valid path condition, \(\mathbf{s}_{S_Z^V}(v) = 0\), so \((\partial \gamma )(v) = 0\). By the boundary-zero characterization, \(|\{ e \in \gamma \mid e \text{ incident to } v\} | \equiv 0 \pmod{2}\). Again \(\gamma \cap \mathrm{inc}(v) = \gamma .\mathrm{filter}(\text{isIncident to } v)\). Therefore \(\omega = 0 + |\gamma \cap \mathrm{inc}(v)|\) where \(|\gamma \cap \mathrm{inc}(v)|\) is even, so \(\omega \equiv 0 \pmod{2}\).

Theorem 411 Deformed Operator Commutes with All Gauss Laws

If \(P\) is a deformable operator with no \(Z\)-support on edges (\(S_Z^E(P) = \emptyset \)) and \(\gamma \) is a valid deforming path for \(S_Z^V(P)\), then

\[ \forall v \in V, \quad \omega _{\mathrm{simple}}(S_Z^V(P), \gamma , v) \equiv 0 \pmod{2}. \]

That is, \(\tilde{P}\) commutes with all Gauss law operators.

Proof

Let \(v\) be an arbitrary vertex. The result follows directly from the previous theorem applied to \(S_Z^V(P)\), \(\gamma \), the valid path hypothesis, and \(v\).

Theorem 412 No Deformation for Odd \(Z\)-Support

If \(|S_Z^V| \equiv 1 \pmod{2}\), then \(P\) does not commute with \(L\) and no valid deforming path exists:

\[ |S_Z^V| \bmod 2 = 1 \implies \nexists \, \gamma \subseteq E,\; \partial \gamma = \mathbf{s}_{S_Z^V}. \]
Proof

This follows directly from the theorem no_valid_path_if_odd.

Theorem 413 Valid Path Implies Commutation

If there exists a valid deforming path \(\gamma \) for \(S_Z^V\), then \(|S_Z^V| \equiv 0 \pmod{2}\).

Proof

This follows directly from the theorem zSupport_even_of_valid_path_exists.

Theorem 414 Deformation Preserves \(X\)-Support on Vertices

For any deformable operator \(P\) and edge-path \(\gamma \),

\[ S_X^V(\tilde{P}) = S_X^V(P). \]
Proof

This holds by reflexivity (definitional equality).

Theorem 415 Deformation Preserves \(Z\)-Support on Vertices

For any deformable operator \(P\) and edge-path \(\gamma \),

\[ S_Z^V(\tilde{P}) = S_Z^V(P). \]
Proof

This holds by reflexivity (definitional equality).

Theorem 416 Deformation Preserves \(X\)-Support on Edges

For any deformable operator \(P\) and edge-path \(\gamma \),

\[ S_X^E(\tilde{P}) = S_X^E(P). \]
Proof

This holds by reflexivity (definitional equality).

Theorem 417 Deformation Preserves Phase

For any deformable operator \(P\) and edge-path \(\gamma \),

\[ \sigma (\tilde{P}) = \sigma (P). \]
Proof

This holds by reflexivity (definitional equality).

Theorem 418 Deformation Preserves Deformability

For any deformable operator \(P\) and edge-path \(\gamma \), the deformability condition of \(\tilde{P}\) is inherited from \(P\):

\[ |S_Z^V(\tilde{P})| \bmod 2 = 0. \]
Proof

This holds by reflexivity, since \(S_Z^V(\tilde{P}) = S_Z^V(P)\) and the proof of evenness is the same.

Definition 419 Edge Path Weight
#

The weight of an edge-path \(\gamma \) is its cardinality:

\[ w(\gamma ) = |\gamma |. \]
Definition 420 Minimum-Weight Valid Path

An edge-path \(\gamma \) is a minimum-weight valid deforming path for \(S_Z^V\) if:

  1. \(\gamma \) is a valid deforming path: \(\partial \gamma = \mathbf{s}_{S_Z^V}\), and

  2. \(\gamma \) has minimum weight among all valid paths: for all valid paths \(\gamma '\), \(w(\gamma ) \leq w(\gamma ')\).

Theorem 421 Existence of Minimum-Weight Valid Path

If any valid deforming path exists for \(S_Z^V\), then a minimum-weight valid deforming path exists:

\[ (\exists \, \gamma ,\; \partial \gamma = \mathbf{s}_{S_Z^V}) \implies (\exists \, \gamma ^*,\; \text{IsMinWeightValidPath}(G, S_Z^V, \gamma ^*)). \]
Proof

We argue by finiteness. Let \(\mathcal{V} = \{ \gamma \mid \text{IsValidDeformingPath}(G, S_Z^V, \gamma )\} \) be the set of valid paths. By hypothesis, \(\mathcal{V}\) is nonempty. Since \(\mathcal{V}\) is a subset of the powerset of \(E\) (which is a finite type), \(\mathcal{V}\) is finite. We convert \(\mathcal{V}\) to a finite set \(S\), which is nonempty.

Consider the image \(\mathrm{cards} = \{ |\gamma | \mid \gamma \in S\} \), which is nonempty since \(S\) is nonempty. Let \(m = \min (\mathrm{cards})\) be the minimum cardinality. Since \(m \in \mathrm{cards}\), there exists \(\gamma _{\min } \in S\) with \(|\gamma _{\min }| = m\).

We claim \(\gamma _{\min }\) is a minimum-weight valid path. First, \(\gamma _{\min } \in S\) means it is a valid deforming path. Second, for any other valid path \(\gamma '\), we have \(\gamma ' \in S\), so \(|\gamma '| \in \mathrm{cards}\), and therefore \(m \leq |\gamma '|\). Since \(|\gamma _{\min }| = m\), we conclude \(|\gamma _{\min }| \leq |\gamma '|\), establishing the minimum weight property.