In perturbative many-body physics, numerical exact diagonalization (ED) is inevitably limited by finite-size wrap-around effects and floating-point precision. Exact integrable models—especially free-fermion chains solvable via Jordan–Wigner and Bogoliubov–de Gennes (BdG) transformations—provide zero-epistemic-error analytical oracles. In Weyl, locking the symbolic algebraic kernel against an exact free-fermion oracle (Stage A of examples/toric_boundary.weyl) before turning on non-integrable bulk couplings (Stage B) guarantees zero false positives across all perturbation orders.
Jordan–Wigner Transformation, Parity, and Boundary Conditions
Consider the 1D transverse-field Ising model (TFIM) with coupling (which coincides with the boundary Hamiltonian of the toric code upon identifying , , and ):
The Jordan–Wigner (JW) transformation maps spin-1/2 operators to spinless canonical fermions , by attaching a non-local string operator:
For interior bonds (), the JW strings cancel cleanly: . On a periodic chain (), however, the closing bond retains the global fermion parity operator :
Because , the Hilbert space splits into two decoupled boundary-condition sectors:
| Parity Sector | Fermion Parity | Fermion Boundary Condition | Allowed Momenta | Toric-Code Cylinder Sector |
|---|---|---|---|---|
| Neveu–Schwarz (NS) | (even ) | Antiperiodic () | Vacuum () | |
| Ramond (R) | (odd ) | Periodic () | One-particle () |
Exact Correspondence with Cylinder Wilson Loops
On the rough–smooth toric-code cylinder, in the bulk sector. Thus the NS/R fermion boundary split is algebraically identical to the Wilson-loop sector split enforced by weyl-oracle in ED!
Majorana Fermions and Kitaev Models
Splitting each complex fermion into two Hermitian Majorana operators and yields the Clifford algebra , , .
In this representation, the 1D TFIM / -wave superconductor becomes the Kitaev chain,
where for under open boundary conditions the end Majoranas and decouple exponentially from the bulk, forming a topologically protected zero-energy fermion mode. The same construction extends to two dimensions in the Kitaev honeycomb model, , which is solved exactly by introducing four Majorana fermions per site, , subject to the local gauge constraint ; the bond operators commute with , reducing each flux sector to free itinerant Majoranas.
In Weyl's Phase 2 weyl-canonical, Majorana words share the same GradedAlgebra trait as Pauli strings: a word is stored as a sorted index list of site-flavor IDs, multiplication merges two sorted lists while counting inversions for the sign, and duplicate indices cancel via .
In the surface language, fermion, boson and Majorana fields share one exact normal form, the graded tensor product CAR ⊗ CCR (a Majorana mode is on a fermion mode of its own). Hermiticity of a define and every bracket claim are computed from it:
model Holstein coupling and a Majorana chain
given Λ : open chain of 4 sites
given c : fermion on vertices(Λ)
given a : boson on vertices(Λ)
given γ, η : Majorana on vertices(Λ)
given ω, g, t : real number
define H_ph ≔ ω Σ_i a†_i a_i
define H_g ≔ g Σ_i c†_i c_i (a_i + a†_i)
define H_K ≔ i t Σ_i η_i γ_{i+1}
define H ≔ H_ph + H_g + H_K
claim H : Hermitian
claim [a_i, a†_i] = 1
claim [a_i, a†_j] = 0
claim [a†_i a_i, c†_i c_i] = 0
claim [γ_i, η_i]₊ = 0
claim [γ_i, γ_i]₊ = 2
claim [i γ_i η_i, i η_j γ_j] = 0Dropping the factor i in H_K, or replacing the displacement a_i + a†_i by a_i, makes claim H : Hermitian fail with E0301; claiming [a_i, a†_i] = 0 or [γ_i, γ_i]₊ = 0 fails with E0340.
Bogoliubov–de Gennes (BdG) Diagonalization
Transforming within each parity sector decouples into Nambu–BdG blocks pairing :
Applying the unitary Bogoliubov rotation with diagonalizes , giving the exact single-quasiparticle dispersion and thermodynamic ground-state energy density:
where is the complete elliptic integral of the second kind. Expanding and as formal power series in yields exact rational coefficients at every order:
The single-particle gap has exact logarithmic derivative . Applying dlog-Padé yields and already at the minimal approximant with zero family spread—yet Weyl still preserves the Epi{PadeSpread(dlog-Padé)} tag because Padé extrapolation is intrinsically an epistemic inference.
Exact Real-Space Hopping Amplitudes
To compare the momentum-space dispersion against real-space pCUT hopping amplitudes , we factorize the square root into holomorphic and anti-holomorphic factors,
Extracting the Fourier coefficient of () gives an exact closed-form rational series for every hopping distance :
| Hopping Channel | Exact Rational Series through | Leading Cluster Length |
|---|---|---|
| On-site | ||
| Nearest neighbor | ||
| Next-nearest | ||
| Third neighbor |
Notice that , so every order satisfies the exact sum rule —an immediate internal cross-check on cluster inclusion–exclusion weights.
Yang–Baxter Equation and Bethe Ansatz Consistency Checks Draft
For interacting 1D integrable models—such as the Heisenberg XXZ chain or the 1D Hubbard model—free-fermion mappings break down, but integrability survives through an infinite tower of commuting charges generated by a transfer matrix whose -matrix obeys the Yang–Baxter equation (YBE):
Simultaneous eigenstates with magnons are parameterized by rapidities solving the Bethe ansatz equations (for isotropic XXX, ):
In Weyl, the YBE is verified as an exact symbolic operator identity in weyl-canonical, while Bethe-root energies serve as high-precision analytical benchmarks to cross-check finite-size ED and high-order series expansions in weyl-oracle:
model Heisenberg XXX Yang–Baxter and Bethe check
given u, v : spectral parameter
given P₁₂, P₁₃, P₂₃ : permutation operators on (ℂ²)⊗³
define R(w) ≔ w · 𝟙 + i · P
claim R₁₂(u − v) · R₁₃(u) · R₂₃(v) = R₂₃(v) · R₁₃(u) · R₁₂(u − v)
compare H_XXX on L = 12, M = 6 with bethe_ansatz_roots
using double-double arithmeticExact Analytical Oracles in Weyl (compare ... against exact)
In examples/toric_boundary.weyl, the free-fermion oracle validates every ground-state coefficient and every one-particle hopping amplitude of the pCUT effective Hamiltonian as exact rationals with zero tolerance:
expand H_eff ≔ pCUT of H around H₀
to O(x¹⁵) at κ₁ = κ₂ = 0, to total order 10 in (x, κ₁, κ₂) otherwise
in the sector where every conserved A_v, B_p equals +1
define e₀ ≔ (⟨vac| H_eff |vac⟩ − E_bulk) / L
define ω(k) ≔ one-particle dispersion of H_eff
define Δ ≔ ω(0)
estimate (x_c, zν) from Δ by dlog-Padé in x
compare H_eff with free fermions at κ₁ = κ₂ = 0$ weylc run examples/toric_boundary.weyl --stage A
[pcut.coeffs] generated C(m) for n ∈ {-2, 0, 2} up to order 14 (4,782,969 sequences)
[kir.cluster] evaluated linked clusters L ≤ 15 over 4 × 63-bit primes -> CRT exact
[oracle.ff] e₀(x) through O(x¹⁴): 15/15 rational coefficients EXACT MATCH (tol = 0)
[oracle.ff] t_δ(x) through O(x¹⁴): all hopping channels δ ∈ [0..14] EXACT MATCH
[pade.dlog] [0/1] approximant: x_c = 1.000000, zν = 1.000000 (tag: Epi{PadeSpread(dlog-Padé)})Kernel Architecture: GradedAlgebra and FreeFermionOracle
Inside weyl-canonical and weyl-oracle, Majorana canonicalization and exact series comparison are implemented with zero floating-point operations:
// weyl-canonical: unified trait for Pauli (Phase 1) and Majorana (Phase 2) words
pub trait GradedAlgebra: Clone + Ord {
fn mul_canonical(&self, rhs: &Self) -> (PhaseZ4, Self);
fn parity(&self) -> Grade; // Even for Pauli; len % 2 for Majorana words
}
// Majorana multiplication merges sorted mode lists, counts inversions for (-1)^inv,
// and cancels duplicate modes via gamma_a^2 = 1.
pub fn majorana_mul(lhs: &[u32], rhs: &[u32]) -> (i8, Vec<u32>) {
let (mut sign, mut out) = (1i8, Vec::with_capacity(lhs.len() + rhs.len()));
let (mut i, mut j) = (0, 0);
while i < lhs.len() && j < rhs.len() {
match lhs[i].cmp(&rhs[j]) {
std::cmp::Ordering::Less => { out.push(lhs[i]); i += 1; }
std::cmp::Ordering::Greater => {
if (lhs.len() - i) % 2 == 1 { sign = -sign; }
out.push(rhs[j]); j += 1;
}
std::cmp::Ordering::Equal => {
if (lhs.len() - i - 1) % 2 == 1 { sign = -sign; }
i += 1; j += 1; // gamma_a^2 = 1 cancellation
}
}
}
out.extend_from_slice(&lhs[i..]);
out.extend_from_slice(&rhs[j..]);
(sign, out)
}
// weyl-oracle: zero-tolerance exact rational comparator for Stage A
pub fn verify_tfim_series(
pcut_e0: &[Rational],
pcut_hoppings: &BTreeMap<usize, Vec<Rational>>,
max_order: usize,
) -> Result<(), OracleFailure>;Verification Oracle Comparison
| Oracle Type | Domain | Precision / Tolerance | Error Tag Impact | Primary Role in Weyl |
|---|---|---|---|---|
| Free-Fermion Exact | 1D TFIM / Kitaev / Stage A | Exact (zero tolerance) | Confirms Exact series coefficients | Locks pCUT & KIR correctness through |
| Yang–Baxter / Bethe | XXZ / 1D Hubbard | Exact YBE + arbitrary-precision roots | Confirms integrability & spectra | Validates interacting 1D models & ED sectors |
| Multi-Sector ED | Non-integrable Stage B () | Double-double (~106-bit mantissa) | Never upgrades to Exact | Checks residual slope across (k, W_e^top) |
| Schrieffer–Wolff spectrum | Fermion clusters, expand … ≔ SW of H around H₀ | Exact modulo two 63-bit primes | Confirms the stated remainder order | Block diagonality and identities, sector by sector |
| dlog-Padé | Critical point | Exact Padé + family spread | Always Epi{PadeSpread(dlog-Padé)} | Extracts critical exponents from verified series |
Mutation Testing Guarantees Oracle Sensitivity
Weyl's CI suite runs mutation tests against weyl-oracle—intentionally flipping a single sign in , dropping a cluster of length , or corrupting one entry in the Pauli phase table. Every mutation must fail the Stage A free-fermion oracle or Stage B ED residual-slope check and accurately report first_bad_order.