CFT spectrum for fermions#192
Open
Yue-Zhengyuan wants to merge 6 commits into
Open
Conversation
Codecov Report❌ Patch coverage is
... and 2 files with indirect coverage changes 🚀 New features to boost your workflow:
|
VictorVanthilt
requested changes
Jun 16, 2026
VictorVanthilt
left a comment
Member
There was a problem hiding this comment.
Looks good already, I like the tuples for labeling the different spin structures. We need docs
- Add Base.vcat(v1, v2) for StructuredVector: concatenates underlying data
and merges sector-index dictionaries, shifting v2's indices by length(v1)
- Add Base.reduce(::typeof(vcat), ...) override: Julia Base's specialised
reduce(::vcat, A) bypasses pairwise vcat and loses the container, so we
delegate to foldl(vcat, A) instead
- Remove unused V type parameter from StructuredVector (always Vector{Int})
and propagate the simplification to CFTData
- Extract _row_transfer_matrix helper in transfer_matrix.jl, used by the
refactored _scaling_dimensions in cft.jl
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds the ability to calculate CFT spectrum for fermionic tensor networks. Closes #188.
@tensor; APBC (Neveu-Schwarz) sector does not need it, and is cancelled by an addition twist in transfer matrices. The identity field should be in the NS sector without additional symmetry charges.(:NS, charge)and(:R, charge).Secondary changes
run!interface forLoopTNRis now more flexible.Base.vcatis implemented forStructuredVectorto join CFT data from different spin structures.structurein aStructuredVectoris always of typeDict{K, Vector{Int}}, I removed one type parameter from bothStructuredVectorandCFTData.TODO