The finite-imaginary-time measure¶
Ordered trace¶
Split the binary Hamiltonian into commuting-within-family parts H_z containing the B projectors and hZ source, and H_x containing the A projectors and gX source. With \(\delta=\beta/M=1/(TM)\), define
The package’s ordered_v1 refers to this ordering. At fixed H,T and finite
Hilbert space the Trotter limit recovers \(e^{-\beta H}\) as M grows.
At finite M, \(Z_M\) is generally different from the exact Gibbs trace.
The package does not attach a universal M-error bound or automatic extrapolation.
The spacetime lattice is \(\Lambda\times S^1_M\), with time axis d. A spacetime cell is temporal precisely when its orientation contains that axis. A binary p-cochain \(\phi\) assigns a bit to every spacetime p-cell; write \(\sigma_e=(-1)^{\phi_e}\) and \(P_f=(-1)^{(d\phi)_f}\). Temporal p-cell bits are auxiliary variables arising in the transfer expansion, not additional physical qudits.
Unreduced local weights¶
For bit b in {0,1}, the positive local factors are
The exact finite-M partition sum is
The factor 1/2 in V_t and the constant part of W_s retain the projector normalization. They cannot be discarded when computing partition functions, free energies or derivatives. State-independent factors do cancel in normalized expectations for the same model.
Reduced action¶
For g>0,J>0, define
Then the unnormalized weight is \(w(\phi)=C\exp S(\phi)\), with
The implementation uses S as a log weight. A favorable move increases S; its Metropolis acceptance is min(1,exp(S_new-S_old)). If using a statistical mechanics convention \(e^{-S_E}\), its Euclidean action is \(S_E=-S\).
Let
The constant prefactor is
The spacetime spin and face counts are \(MV\binom{d+1}p\) and \(MV\binom{d+1}{p+1}\). The p=0 vertex specialization has no temporal p-cells and no C_v factor.
Constraints and numerical arithmetic¶
At g=0, W_t(1)=0. This defines an exact constrained measure; the reduced coupling kappa_t is infinite. Replacing g=0 by a small positive value relaxes that constraint and changes the model. Public Z-family sampling therefore requires g>0. The same issue applies to the X-family dual transverse source h.
Stable log-weight formulas use log1p/expm1 and avoid subtracting large nearly equal values. Positive derived quantities that underflow to zero, nonfinite actions and unsupported numerical ranges are refused where detected. Finite floating arithmetic is still an approximation to the algebraic measure.
Partition functions and energy¶
Ordinary normalized-observable sampling does not itself produce Z_M or its absolute normalization. The public API supplies expectations, histories and diagnostics, not a general free-energy integration method. A quantum energy response requires differentiating the represented trace, including the prefactor and all parameter-dependent reduced couplings. The reduced action of one sampled configuration is not a quantum energy eigenvalue.