Skip to content
Condensed Matter Physics · Boundaries & Symmetries

Boundary Theories, Symmetry Breaking & Tensor Networks

Gapped boundaries classified by subgroup-cocycle pairs (K, ω), non-Abelian D(G) ribbon consistency equations, bulk-to-boundary functors, domain walls via folding, and MPO/PEPS virtual-symmetry representations in Weyl.

Gapped boundaries of 2+1D topologically ordered phases are far richer than mere lattice truncations: they encode spontaneous symmetry breaking (SSB), projective representations, and module categories over the bulk fusion category. Weyl treats gapped boundaries, domain walls, and ribbon-algebra consistency conditions as first-class typed constructs—spanning from Abelian rough/smooth Toric Code terminations to non-Abelian Kitaev quantum doubles D(G)D(G) and MPO-symmetric tensor network representations.

Classification of Gapped Boundaries: (K,ω)(K, \omega) and Lagrangian Algebras ​

For an untwisted 2+1D Kitaev quantum double D(G)≃Z(VecG)D(G) \simeq \mathcal{Z}(\mathrm{Vec}_G), every gapped boundary to vacuum is classified up to local unitary equivalence by a pair (K,[ω])(K, [\omega]). Here K≤GK \le G is a subgroup (up to conjugacy in GG) describing the residual unbroken gauge symmetry on the boundary, and [ω]∈H2(K,U(1))[\omega] \in H^2(K, U(1)) is a 2-cocycle cohomology class satisfying ω(k1,k2)ω(k1k2,k3)=ω(k2,k3)ω(k1,k2k3)\omega(k_1, k_2)\omega(k_1 k_2, k_3) = \omega(k_2, k_3)\omega(k_1, k_2 k_3) that specifies a projective 1+1D SPT twist on the boundary.

Equivalently, each (K,ω)(K, \omega) determines a Lagrangian algebra A(K,ω)=⨁a∈Ina(K,ω) a\mathcal{A}(K, \omega) = \bigoplus_{a \in \mathcal{I}} n_a(K, \omega) \, a in D(G)D(G) with ∑anada=∣G∣\sum_a n_a d_a = |G| and a module category M(K,ω)≃VecG(K,ω)\mathcal{M}(K, \omega) \simeq \mathrm{Vec}_G^{(K, \omega)} over VecG\mathrm{Vec}_G.

Bulk Phase D(G)D(G)Subgroup KKH2(K,U(1))H^2(K, U(1))Lagrangian Algebra A(K,ω)\mathcal{A}(K, \omega)Physical Boundary Type
D(Z2)D(\mathbb{Z}_2)K=Z2K = \mathbb{Z}_2Trivial1⊕e1 \oplus eRough (ee-condensed, unbroken Z2\mathbb{Z}_2)
D(Z2)D(\mathbb{Z}_2)K={1}K = \{1\}Trivial1⊕m1 \oplus mSmooth (mm-condensed, Z2→{1}\mathbb{Z}_2 \to \{1\} SSB)
D(S3)D(S_3){1},Z2,Z3,S3\{1\}, \mathbb{Z}_2, \mathbb{Z}_3, S_3All trivial4 algebras (dim⁡=6\dim = 6)Pure magnetic, partial SSB, mixed, pure electric
D(Z2×Z2)D(\mathbb{Z}_2 \times \mathbb{Z}_2)K=Z2×Z2K = \mathbb{Z}_2 \times \mathbb{Z}_2Z2\mathbb{Z}_2 (ω0,ω1\omega_0, \omega_1)2 distinct algebras for same KKTrivial vs. twisted cluster-state SPT boundary

On a finite cylinder with left boundary (K,ω)(K, \omega) and right boundary (K′,ω′)(K', \omega'), the ground-state degeneracy is determined directly by the inner product of Lagrangian multiplicity vectors:

GSD(K,ω; K′,ω′)=∑a∈Ina(K,ω) na(K′,ω′).\mathrm{GSD}(K, \omega;\, K', \omega') = \sum_{a \in \mathcal{I}} n_a(K, \omega) \, n_a(K', \omega').

For pure SSB boundaries with trivial cocycles (ω=ω′=1\omega = \omega' = 1), this reduces to the double-coset count ∣K\G/K′∣|K \backslash G / K'|.

Rough vs. Smooth Boundaries of the Toric Code ​

In examples/toric_boundary.weyl, the bottom boundary ∂Λ\partial \Lambda at y=0y = 0 carries dangling edges did_i with three-body boundary plaquettes Pi=σdizσhizσdi+1zP_i = \sigma^z_{d_i}\sigma^z_{h_i}\sigma^z_{d_{i+1}}, while the top boundary ∂top\partial_{\mathrm{top}} at y=Wy = W has no dangling edges and retains three-body truncated stars Ai,W=σhi−1,Wxσhi,Wxσui,W−1xA_{i,W} = \sigma^x_{h_{i-1,W}}\sigma^x_{h_{i,W}}\sigma^x_{u_{i,W-1}}:

weyl
define P_i ≔ σᶻ_{d_i} σᶻ_{h_i} σᶻ_{d_{i+1}}   for i ∈ cells(∂Λ)
define H₀  ≔ − J Σ_v A_v − J Σ_p B_p − Σ_i P_i
define V   ≔ − x Σ_i σˣ_{d_i} − κ₁ Σ_i σᶻ_{d_i} − κ₂ Σ_i σᶻ_{h_i}

claim  ∂Λ condenses {1, e}   at x = 0, κ₁ = 0, κ₂ = 0
claim  ∂top condenses {1, m} at x = 0, κ₁ = 0, κ₂ = 0

At x=κ1=κ2=0x = \kappa_1 = \kappa_2 = 0, a single σdiz\sigma^z_{d_i} creates one bulk ee-anyon at vi,0v_{i,0} while commuting with all PiP_i and BpB_p, proving that ee condenses on ∂Λ\partial \Lambda. Turning on −x∑iσdix-x \sum_i \sigma^x_{d_i} drives a boundary phase transition along the 1D transverse-field Ising line H∂=−∑iτi+1/2x−x∑iτi−1/2zτi+1/2zH_\partial = -\sum_i \tau^x_{i+1/2} - x \sum_i \tau^z_{i-1/2}\tau^z_{i+1/2} from the rough (ee-condensed) fixed point at x=0x = 0 to the smooth (mm-condensed) fixed point as x→∞x \to \infty, with exact Kramers–Wannier self-duality at x=1x = 1.

Non-Abelian Boundaries of Quantum Double D(G)D(G) ​

For a non-Abelian finite group GG, each lattice edge carries a group-algebra qudit C[G]\mathbb{C}[G] (Qudit<G>) with basis {∣g⟩:g∈G}\{|g\rangle : g \in G\}. Left/right regular shifts L+g∣h⟩=∣gh⟩L_+^g |h\rangle = |gh\rangle, L−g∣h⟩=∣hg−1⟩L_-^g |h\rangle = |hg^{-1}\rangle, and diagonal projectors Th=∣h⟩⟨h∣T^h = |h\rangle\langle h| do not satisfy pure-phase commutation (L+gTh=TghL+gL_+^g T^h = T^{gh} L_+^g). weyl-types therefore assigns them Ungraded algebra kind (GroupQudit<G>) with canonical single-site normal form ∑h,k∈Gch,kL+hTk\sum_{h,k \in G} c_{h,k} L_+^h T^k over Q(ζexp⁡(G))\mathbb{Q}(\zeta_{\exp(G)}), obeying the O(1)O(1) generalized-permutation multiplication and adjoint rules:

(L+hTk)(L+h′Tk′)=δk, h′k′ L+hh′Tk′,(L+h)†=L+h−1,(Tk)†=Tk.(L_+^h T^k)(L_+^{h'} T^{k'}) = \delta_{k,\, h' k'} \, L_+^{h h'} T^{k'}, \qquad (L_+^h)^\dagger = L_+^{h^{-1}}, \qquad (T^k)^\dagger = T^k.

When GG is Abelian, the compiler automatically degrades GroupQudit<G> to the graded Γ=G×G^\Gamma = G \times \hat{G} fast path (for G=Z2G = \mathbb{Z}_2, the built-in isomorphism L+−1=σxL_+^{-1} = \sigma^x, T+1−T−1=σzT^{+1} - T^{-1} = \sigma^z cross-checks Qudit<ℤ₂> directly against Qubit).

Microscopic Commuting-Projector Boundary (quantum_double_boundary.weyl) ​

weyl
model  quantum double D(G) with a gapped boundary of type K

given  G : finite group
given  K : subgroup of G
given  Λ : oriented square lattice on a half-plane,   ∂Λ : boundary of Λ at y = 0
given  |g⟩ : basis of ℂ[G] on edges(Λ)                for g ∈ G

define L₊^g ≔ Σ_{h ∈ G} |g h⟩⟨h|
define L₋^g ≔ Σ_{h ∈ G} |h g⁻¹⟩⟨h|
define T^h  ≔ |h⟩⟨h|

define A_v^g ≔ ∏_{l out of v} L₊^g_l · ∏_{l into v} L₋^g_l
define A_v   ≔ 1/|G| Σ_{g ∈ G} A_v^g
define B_p   ≔ projector onto holonomy(∂p) = 1

define A_v^K ≔ 1/|K| Σ_{k ∈ K} A_v^k                  for v ∈ vertices(∂Λ)
define T_l^K ≔ Σ_{k ∈ K} T^k_l                        for l ∈ edges(∂Λ)

define H ≔ − Σ_{v ∉ ∂Λ} A_v − Σ_p B_p − Σ_{v ∈ ∂Λ} A_v^K − Σ_{l ∈ ∂Λ} T_l^K

claim  A_v^g : unitary,  and  g ↦ A_v^g : representation of G
claim  A_v, B_p, A_v^K, T_l^K : projector
claim  all terms of H commute

given  𝒞 : topological order D(G)
claim  ∂Λ condenses 𝒜(K) : Lagrangian algebra of 𝒞
claim  dim ground space on a cylinder with boundaries K, K′ = Σ_a n_a(K) n_a(K′)

check  all claims for G = S₃, K ∈ subgroups(S₃)
theorem for all G, K :  [A_v^K, T_l^K] = 0
        falsify on G ∈ {ℤ₂, S₃, D₄}

Solving Ribbon Consistency Conditions (ribbon_boundary.weyl) ​

Rather than guessing microscopic boundary projectors, Weyl can solve for all gapped boundaries directly in the ∣G∣2|G|^2-dimensional ribbon algebra Ribbon(G)\mathrm{Ribbon}(G) spanned by F[g,h]F[g, h] (with multiplication F[g,h]F[g′,h′]=δg,g′F[g,hh′]F[g,h]F[g',h'] = \delta_{g,g'}F[g,hh'], S[F[g,h]]=F[h,g−1]S[F[g,h]] = F[h,g^{-1}], T[F[g,h]]=F[g,gh]T[F[g,h]] = F[g,gh]):

weyl
model  boundaries of the quantum double D(G) from the consistency conditions

given  G : finite group
given  a : unknown coefficients of Ribbon(G)

solve for a such that  a a = a,  a Ω = Ω,  S[a] = a,  T[a] = a   modulo G   for G ∈ {ℤ₂, S₃}

weyl-num eliminates the linear constraints (aΩ=Ωa \Omega = \Omega, S[a]=aS[a] = a, T[a]=aT[a] = a) over Q(ζexp⁡(G))\mathbb{Q}(\zeta_{\exp(G)}), computes prime-field Gröbner bases across all φ(n)\varphi(n) cyclotomic roots, reconstructs the exact ideal via CRT, and classifies orbits under GG-conjugation—recovering exactly 22 boundaries for D(Z2)D(\mathbb{Z}_2), 66 for D(Z2×Z2)D(\mathbb{Z}_2 \times \mathbb{Z}_2), and 44 for D(S3)D(S_3) as Exact solutions.

Importantly, modulo G never restricts variables to the GG-invariant subspace VGV^G before solving: for D(S3)D(S_3), the three Z2\mathbb{Z}_2-subgroup boundaries form a length-3 orbit under conjugation where no individual point is S3S_3-invariant and their average is not idempotent. weyl-num solves the full algebraic variety first, verifies bidirectional ideal containment and S-polynomial reduction in Q(ζn)\mathbb{Q}(\zeta_n), and returns Solutions { components, complete: bool }. If a positive-dimensional family (e.g. a continuous gauge orbit of projectors) appears, Weyl emits warning W0376 and reports the component's dimension and stabilizer explicitly.

Concrete D(S3)D(S_3) Cylinder Degeneracy Matrix ​

On a cylinder with D(S3)D(S_3) bulk and boundary subgroups K,K′∈{{1},Z2,Z3,S3}K, K' \in \{\{1\}, \mathbb{Z}_2, \mathbb{Z}_3, S_3\}, check all claims for G = S₃, K ∈ subgroups(S₃) verifies that ∑ana(K)na(K′)=∣K\S3/K′∣\sum_a n_a(K) n_a(K') = |K \backslash S_3 / K'| across all 16 pairs:

Left KK \ Right K′K'{1}\{1\} (1⊕B⊕2C1 \oplus B \oplus 2C)Z2\mathbb{Z}_2 (1⊕C⊕D1 \oplus C \oplus D)Z3\mathbb{Z}_3 (1⊕B⊕2F1 \oplus B \oplus 2F)S3S_3 (1⊕D⊕F1 \oplus D \oplus F)
{1}\{1\}66332211
Z2\mathbb{Z}_233221122
Z3\mathbb{Z}_322112233
S3S_311223366

Bulk-to-Boundary Functors & Domain Walls (Folding Trick) ​

When a bulk anyon a∈Ca \in \mathcal{C} approaches a gapped boundary ∂Λ\partial \Lambda labeled by A\mathcal{A}, it maps via the bulk-to-boundary condensation functor

FA:C⟶CA≃FunVecG(M,M),F_{\mathcal{A}} : \mathcal{C} \longrightarrow \mathcal{C}_{\mathcal{A}} \simeq \mathrm{Fun}_{\mathrm{Vec}_G}(\mathcal{M}, \mathcal{M}),

where CA\mathcal{C}_{\mathcal{A}} is the fusion category of boundary excitations (for D(G)D(G) with K=GK = G, CA≃VecG\mathcal{C}_{\mathcal{A}} \simeq \mathrm{Vec}_G; for K={1}K = \{1\}, CA≃Rep(G)\mathcal{C}_{\mathcal{A}} \simeq \mathrm{Rep}(G)). Anyons with na>0n_a > 0 map to a direct sum containing the trivial boundary excitation 1∂\mathbf{1}_\partial with multiplicity nan_a—meaning they can terminate on the boundary without creating a local energy cost.

Transparent & Non-Invertible Domain Walls via Folding ​

A 1+1D gapped domain wall between two 2+1D topological phases C1\mathcal{C}_1 and C2\mathcal{C}_2 is classified by folding the plane along the wall into a single gapped boundary of the stacked phase C1⊠C‾2\mathcal{C}_1 \boxtimes \overline{\mathcal{C}}_2 (where C‾2\overline{\mathcal{C}}_2 has conjugated spins θˉa=θa∗\bar{\theta}_a = \theta_a^*):

weyl
-- Folding trick: domain walls between D(ℤ₂) and D(ℤ₂) are Lagrangian algebras of D(ℤ₂) ⊠ D(ℤ₂)
define 𝒲_triv ≔ {1, e₁e₂, m₁m₂, f₁f₂}         -- trivial identity wall
define 𝒲_em   ≔ {1, e₁m₂, m₁e₂, f₁f₂}         -- invertible e ↔ m duality wall
define 𝒲_ee   ≔ {1, e₁, e₂, e₁e₂}             -- non-invertible factorized rough–rough wall
claim  𝒲_em : Lagrangian algebra of D(ℤ₂) ⊠ D(ℤ₂)

In D(Z2)⊠D(Z2)D(\mathbb{Z}_2) \boxtimes D(\mathbb{Z}_2), weyl-topo enumerates all 6 Lagrangian subgroups: 2 invertible walls (identity and e↔me \leftrightarrow m swap) and 4 non-invertible factorized walls ({e,m}×{e,m}\{e, m\} \times \{e, m\}).

MPO & PEPS Virtual-Symmetry Representations Draft ​

In the tensor-network formulation of 2+1D topological order, fixed-point ground states are GG-injective (or more generally MPO-injective) Projected Entangled Pair States (PEPS). A bulk PEPS tensor AαβγδsA^s_{\alpha\beta\gamma\delta} satisfies the MPO pulling-through condition for a matrix product operator OgO_g acting on virtual indices:

∑α′β′(Og)αβ,α′β′Aα′β′γδs=∑γ′δ′Aαβγ′δ′s(Og)γ′δ′,γδ,\sum_{\alpha'\beta'} (O_g)_{\alpha\beta,\alpha'\beta'} A^s_{\alpha'\beta'\gamma\delta} = \sum_{\gamma'\delta'} A^s_{\alpha\beta\gamma'\delta'} (O_g)_{\gamma'\delta',\gamma\delta},

where the virtual symmetry algebra is C[G]\mathbb{C}[G] for untwisted D(G)D(G) (or the twisted group algebra / fusion category MPO algebra for general string-net models). Terminating the PEPS on a gapped boundary (K,ω)(K, \omega) attaches a 1D boundary Matrix Product State (MPS) whose virtual bond transforms as a projective representation of KK with 2-cocycle ω\omega, realizing the boundary module category directly at the tensor level. Under this virtual symmetry breaking, the bulk GG-MPO splits into KK-invariant blocks on the boundary MPS, reproducing the double-coset ground-state degeneracy ∣K\G/K′∣|K \backslash G / K'| when contracting a finite cylinder PEPS between boundaries KK and K′K'.

How Weyl Verifies Boundary Hamiltonians ​

For both Abelian stabilizer boundaries and non-Abelian Qudit<G> boundaries, Weyl runs three static verification passes before any numerical or perturbative step:

CheckRule / PassMechanismDiagnostic on Failure
Hermiticity & localityT-HamChecks ch,k=ch−1,hk‾c_{h,k} = \overline{c_{h^{-1}, hk}} in GroupQudit<G> normal form; diameter ≤Rmax⁡\le R_{\max}E0301 (non-Hermitian), E0201 (non-local)
Commuting projectorsT-CommExact commutator [a,b]=0[a, b] = 0 on overlap ss in O(∣G∣2s)O(|G|^{2s}) time (independent of LL); checks P2=PP^2 = PE0413 (non-commuting H0H_0), E0371 (Ungraded mismatch)
Boundary excitation fusionT-BdyComputes absorbed multiplicity vector na∂n^\partial_a from boundary ribbon quotient module vs. constructive (K,ω)(K, \omega) tableE0372 (invalid LagAlg), E0373 (microscopic n∂≠nn^\partial \neq n)

When a boundary specification fails any of these checks, weylc check pinpoints the algebraic obstruction before lowering to numerical or symbolic solvers:

bash
error[E0372]: claimed Lagrangian algebra is not in the constructive (K, ω) enumeration of D(S₃)
  --> bad_s3_bdy.weyl:26:8
   |  claim ∂Λ condenses (1 ⊕ 2 B ⊕ C ⊕ D) : Lagrangian algebra of 𝒞
   |  multiplicity vector satisfies dim = 6 but fails modular invariance (S·n ≠ n)
   = help: valid Lagrangian algebras of D(S₃) are {1⊕B⊕2C, 1⊕C⊕D, 1⊕B⊕2F, 1⊕D⊕F}

warning[W0376]: `solve` returned a 1-dimensional component of Ribbon(G) projectors
  --> ribbon_boundary.weyl:6:1
   |  component #2 has dim = 1 (continuous gauge family under residual conjugation)
   = help: add or widen `modulo G` if gauge-equivalent projectors should be quotiented

Finite Check + General Proof Pipeline

In quantum_double_boundary.weyl, check all claims for G = S₃, K ∈ subgroups(S₃) verifies every projector, commutator, and cylinder GSD on the concrete group S3S_3 in weyl-topo + weyl-canonical, while theorem for all G, K : [A_v^K, T_l^K] = 0 first runs bounded falsification on {Z2,S3,D4}\{ \mathbb{Z}_2, S_3, D_4 \} and then dispatches the universally quantified identity to the Lean 4 theorem backend.

Weyl v0.1 · MIT License