Skip to content

Support fermionic sites in simple update and belief propagation#6

Merged
mtfishman merged 3 commits into
mf/itensorbase-backendfrom
mf/fermion-signs
Jul 21, 2026
Merged

Support fermionic sites in simple update and belief propagation#6
mtfishman merged 3 commits into
mf/itensorbase-backendfrom
mf/fermion-signs

Conversation

@mtfishman

Copy link
Copy Markdown
Owner

Summary

Makes the belief-propagation simple-update path sign-correct on parity-graded (fermionic) sites, and adds the operator-construction support fermionic sites need.

The simple-update gauge reads each environment's ket and bra legs from the state tensor and takes the Hermitian square root in the transposed bipartition, which carries the fermionic braid sign on the odd-parity sector. Doubled ket/bra messages normalize by their trace rather than an entrywise sum, which is sign-correct on fermionic bonds. Operator construction routes through project_aux, so a parity-odd operator (X/Y, bare c/c†) gets an auxiliary charge leg instead of throwing, and project_pair builds operator pairs that share a contractible auxiliary leg for fermion strings like c†c.

Builds on the ITensorBase backend work in JoeyT1994#78, which it targets as its base.

mtfishman and others added 3 commits July 20, 2026 15:06
The simple-update gauge reads each environment's ket and bra legs from the state
tensor and takes the Hermitian square root in the transposed bipartition, which
carries the fermionic braid sign on the odd-parity sector. Doubled ket/bra messages
normalize by their trace rather than an entrywise sum, which is sign-correct on
fermionic bonds. Operator construction routes through project_aux, so a parity-odd
operator gets an auxiliary charge leg instead of throwing, and project_pair builds
operator pairs that share a contractible aux leg for fermion strings like c†c.
Rename local index variables (ket_ind/bra_ind, codomain_inds/domain_inds,
projected_a), factor an is_operator predicate out of the belief-propagation
message normalization instead of inlining the primed-index check, and tighten
comments.
The fermionic simple-update and belief-propagation path relies on the corrected
fermionic operator contraction from GradedArrays 0.14, which requires TensorAlgebra
0.17.6.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mtfishman
mtfishman merged commit 47995cb into mf/itensorbase-backend Jul 21, 2026
3 checks passed
@mtfishman
mtfishman deleted the mf/fermion-signs branch July 21, 2026 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant