Remark 17: Hypergraph Generalization #
Statement #
The gauging measurement procedure can be generalized by replacing the graph G with a hypergraph H = (V, E) where each hyperedge e ∈ E is a nonempty subset of vertices.
Setup:
- Introduce one auxiliary qubit per hyperedge.
- Gauss's law operators: A_v = X_v ∏_{e ∋ v} X_e.
- Boundary map ∂: Z₂^E → Z₂^V with (∂γ)v = Σ{e ∋ v} γ_e.
Key result: γ ∈ ker(∂) corresponds to the X-type operator ∏v X_v^{(Σ{e ∋ v} γ_e mod 2)} which commutes with all A_v. The hypergraph gauging measures any such operator.
Main Results #
hyperBoundaryMap: the boundary map ∂ for hypergraphshyperGaussLawOp: hypergraph Gauss's law operator A_vhyperGaussLawOp_pure_X: A_v is pure X-typehyperGaussLaw_commute: all A_v mutually commutesymplecticInner_pureZ_gaussLaw: ⟨Z(γ), A_v⟩ = (∂γ)_vker_boundary_iff_commutes_all_gaussLaw: γ ∈ ker(∂) ↔ Z(γ) commutes with all A_vcssInit_boundary_eq: CSS initialization is a special casegraphLike_boundary_single_sum: graph case recovered when hyperedges have 2 vertices
Hyperedge incidence #
The finset of hyperedges incident to vertex v.
Equations
- HypergraphGeneralization.hyperIncidentEdges incident v = {e : E | incident v e}
Instances For
The finset of vertices in hyperedge e.
Equations
- HypergraphGeneralization.hyperedgeVertices incident e = {v : V | incident v e}
Instances For
Hypergraph Boundary Map #
The hypergraph boundary map ∂ : Z₂^E → Z₂^V. For γ ∈ Z₂^E, (∂γ)v = Σ{e ∋ v} γ_e (mod 2). This generalizes the graph boundary map: for graphs, each edge is incident to exactly 2 vertices; for hypergraphs, a hyperedge can be incident to any nonempty set of vertices.
Equations
Instances For
The boundary of a single hyperedge indicator: (∂ 1_e)(v) = 1 iff v ∈ e.
Hypergraph Coboundary Map #
δ is the transpose of ∂: ⟨δ f, γ⟩_E = ⟨f, ∂ γ⟩_V.
Extended Qubit Type #
The extended qubit type for hypergraph gauging: vertex qubits (Sum.inl v) and hyperedge qubits (Sum.inr e).
Equations
Instances For
Hypergraph Gauss's Law Operator #
The hypergraph Gauss's law operator A_v on the extended system V ⊕ E. A_v = X_v ∏_{e ∋ v} X_e: acts with X on vertex qubit v and all incident hyperedge qubits.
Equations
- One or more equations did not get rendered due to their size.
Instances For
A_v is pure X-type: its Z-vector is identically zero.
A_v has no Z support.
Commutation of Gauss's Law Operators #
All hypergraph Gauss's law operators mutually commute. This holds because they are all pure X-type (zVec = 0).
The X-Type Operator from an Edge Vector #
Given an edge vector γ : E → ZMod 2, the corresponding X-type operator on vertex qubits: ∏_{v ∈ V} X_v^{(∂γ)_v}. Acts as X on vertex v iff (∂γ)_v = 1.
Equations
- HypergraphGeneralization.xOpFromBoundary incident γ = { xVec := (HypergraphGeneralization.hyperBoundaryMap incident) γ, zVec := 0 }
Instances For
Product of Gauss's Law Operators #
On vertex qubits: each vertex w gets contribution 1 from A_w only.
On edge qubits: each hyperedge e gets |vertices(e)| mod 2.
Kernel of Boundary Map and Commutation #
γ ∈ ker(∂) iff the boundary is zero: (∂γ)_v = 0 for all v.
The X-type operator on V from γ ∈ ker(∂) is the identity (since ∂γ = 0).
Gauss Subset Product #
The Gauss subset product for hypergraphs: the product of A_v over vertices where c_v = 1. On vertex qubits, the X-vector is c; on edge qubits, it is δc.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The Gauss subset product for the all-ones vector gives L = ∏_v X_v on vertices.
On edge qubits, the all-ones Gauss product gives |vertices(e)| mod 2.
The Gauss subset product for the zero vector gives the identity.
The Gauss subset product is additive.
The edge X-vector of the Gauss subset product equals the coboundary.
Pure-Z Hyperedge Operator and Kernel Characterization #
A pure-Z hyperedge operator: acts as Z on hyperedge qubit e iff γ(e) = 1.
Equations
Instances For
The symplectic inner product of the pure-Z hyperedge operator for γ with A_v equals (∂γ)_v. This is the key computation connecting the boundary map to commutation with Gauss operators.
Key theorem: The pure-Z hyperedge operator for γ commutes with A_v iff (∂γ)_v = 0.
γ ∈ ker(∂) iff the pure-Z hyperedge operator commutes with ALL Gauss operators.
The set of pure-Z hyperedge operators commuting with all A_v is exactly the image of ker(∂): if P is pure-Z on edges, zero on vertices, and commutes with all A_v, then its edge Z-vector is in ker(∂).
Recovering the Graph Case #
A hypergraph comes from a simple graph when each hyperedge has exactly 2 vertices.
Equations
- HypergraphGeneralization.IsGraphLike incident = ∀ (e : E), (HypergraphGeneralization.hyperedgeVertices incident e).card = 2
Instances For
For a graph-like hypergraph, the boundary of a single edge sums to 0 over all vertices, because each edge has exactly 2 endpoints and 2 = 0 in ZMod 2.
CSS Code Initialization as a Special Case #
For CSS code initialization, the incidence relation is membership in check supports.
- V = set of physical qubits (Q)
- E = set of X-type checks (I)
- incident q i iff qubit q participates in X-check i The boundary map then encodes the X-check parity matrix.
Summary Theorems #
Summary: The hypergraph generalization extends the graph gauging framework.
- All Gauss operators mutually commute (pure X-type)
- Pure-Z edge operators commute with A_v iff γ ∈ ker(∂)
- The coboundary δ is the transpose of ∂
- The Gauss subset product is additive and encodes the vertex-edge duality