Homological-code Hamiltonians¶
Geometry and degrees¶
Let \(\Lambda\) be a d-dimensional periodic cubical lattice with lengths \(L_0,\ldots,L_{d-1}\) and spatial volume \(V=\prod_iL_i\). A canonically oriented k-cell is \((x,I)\), with integer anchor x and a strictly increasing k-tuple of axes I. Its boundary is
Anchors are periodic. If upper and lower terms coincide, combine their signed integer coefficients before reducing modulo N. This matters on length-one axes. The geometry satisfies \(\partial^2=0\) over the integers.
Chains \(C_k(\Lambda;\mathbb Z_N)\) are coefficients on k-cells; cochains \(C^k\) are functions on them. Evaluation pairs a cochain with a chain. The coboundary is \(d=\partial^\top\). A cycle has zero boundary; a cocycle has zero coboundary. They are different conditions. Use the unaugmented complex, \(C_{-1}=0\) and \(\partial_0=0\).
Physical N-state qudits occupy p-cells. There are \(n_q=\binom dp V\) physical qudits. For ordinary higher-degree models \(1\leq p<d\). The separately implemented vertex model has d=1,p=0.
Weyl operators and stabilizers¶
On each qudit take
For a (p-1)-cell a and (p+1)-cell b, define
The integer incidence coefficients fix the signs. The A and B families commute, by \(\partial^2=0\). Define projectors onto eigenvalue one:
With positive J,K, the source-free Hamiltonian favors their common +1 eigenspace. That ground subspace is the code space. Finite-temperature expectations in this package trace over the complete Hilbert space, including excited configurations and all logical sectors.
Uniform coherent sources¶
The mathematical family is
Hermiticity requires \(g_{N-n}=\overline{g_n}\) and the same condition for h. Self-inverse indices have real coefficients. These sources are constant in space; neither a site-dependent profile nor a general complex Monte Carlo weight is implemented by the public execution interfaces.
For N=2 there is exactly one nontrivial harmonic. Writing g=g1 and h=h1,
There is no extra conjugate copy of gX or hZ. The exchange-like character coefficients are J/2,K/2. Using the same numeric value for J in a convention with -J A instead of -J(1+A)/2 changes the model’s nonconstant interaction.
The package uses \(k_B=\hbar=1\). All J,K,g,h,T have energy units; products with \(\beta\) or \(\delta_\tau\) are dimensionless. The d=1,p=0 complex has no A stabilizers, hence no J coupling. Its implemented specialization also fixes h=0; see The vertex code and its two-dimensional image.
Measurement-model duality¶
For the supported binary periodic model, complementary primal/dual geometry and a local Fourier exchange give the parameter relabeling
with lengths,T,M unchanged. A physical X-family observable becomes a diagonal Z-family observable in that dual measurement model. This is the basis of the separate X execution group, including its need for a positive dual transverse source, which is the original h. The precise support correspondence is in Operators and joint functionals.