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.
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.
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
An edge-path in a graph \(G\) is a subset \(\gamma \subseteq E\) of edges, represented as a finite set.
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
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\).
For a graph \(G\), an edge-path \(\gamma \), and a vertex \(v\),
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.
For a graph \(G\), an edge-path \(\gamma \), and a vertex \(v\),
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.
For a graph \(G\), an edge-path \(\gamma \), and a vertex \(v\),
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.
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:
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\)).
An edge-path \(\gamma \) is a valid deforming path for \(S\) if and only if for all vertices \(v \in V\),
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.
If \(\gamma \) is a valid deforming path for \(S\) and \(v \in S\), then \((\partial \gamma )(v) = 1\).
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\).
If \(\gamma \) is a valid deforming path for \(S\) and \(v \notin S\), then \((\partial \gamma )(v) = 0\).
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\),
This holds because each edge is incident to exactly two vertices, and \(1 + 1 = 0\) in \(\mathbb {Z}_2\).
We unfold \(\partial \gamma \) and compute:
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
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\).
If a valid deforming path \(\gamma \) exists for \(S \subseteq V\), then \(|S| \equiv 0 \pmod{2}\).
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
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\).
If \(|S| \equiv 1 \pmod{2}\), then there is no valid deforming path \(\gamma \) for \(S\):
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.
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\).
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,
This holds by reflexivity of the biconditional.
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\).
For a deformable operator \(P\) and edge-path \(\gamma \),
where \(\triangle \) denotes symmetric difference.
This holds by reflexivity (it is the definition of the deformed operator’s edge \(Z\)-support).
For finite sets \(S, T \subseteq E\) and an edge \(e\),
We consider four cases based on membership of \(e\) in \(S\) and \(T\):
\(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\)).
\(e \in S\) and \(e \notin T\): Then \(e \in S \triangle T\), so both sides equal \(1 + 0 = 1\).
\(e \notin S\) and \(e \in T\): Then \(e \in S \triangle T\), so both sides equal \(0 + 1 = 1\).
\(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.
For a deformable operator \(P\), edge-path \(\gamma \), and edge \(e\),
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.
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.
The symplectic form between the deformed operator \(\tilde{P}\) and the Gauss law operator \(A_v\) is defined as the count of anticommuting pairs:
where \(\mathrm{inc}(v)\) denotes the set of edges incident to \(v\).
When \(P\) originally has no \(Z\)-support on edges (i.e., \(S_Z^E(P) = \emptyset \)), the symplectic form simplifies to:
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\):
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}\).
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
That is, \(\tilde{P}\) commutes with all Gauss law operators.
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\).
If \(|S_Z^V| \equiv 1 \pmod{2}\), then \(P\) does not commute with \(L\) and no valid deforming path exists:
This follows directly from the theorem no_valid_path_if_odd.
If there exists a valid deforming path \(\gamma \) for \(S_Z^V\), then \(|S_Z^V| \equiv 0 \pmod{2}\).
This follows directly from the theorem zSupport_even_of_valid_path_exists.
For any deformable operator \(P\) and edge-path \(\gamma \),
This holds by reflexivity (definitional equality).
For any deformable operator \(P\) and edge-path \(\gamma \),
This holds by reflexivity (definitional equality).
For any deformable operator \(P\) and edge-path \(\gamma \),
This holds by reflexivity (definitional equality).
For any deformable operator \(P\) and edge-path \(\gamma \),
This holds by reflexivity (definitional equality).
For any deformable operator \(P\) and edge-path \(\gamma \), the deformability condition of \(\tilde{P}\) is inherited from \(P\):
This holds by reflexivity, since \(S_Z^V(\tilde{P}) = S_Z^V(P)\) and the proof of evenness is the same.
The weight of an edge-path \(\gamma \) is its cardinality:
An edge-path \(\gamma \) is a minimum-weight valid deforming path for \(S_Z^V\) if:
\(\gamma \) is a valid deforming path: \(\partial \gamma = \mathbf{s}_{S_Z^V}\), and
\(\gamma \) has minimum weight among all valid paths: for all valid paths \(\gamma '\), \(w(\gamma ) \leq w(\gamma ')\).
If any valid deforming path exists for \(S_Z^V\), then a minimum-weight valid deforming path exists:
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.