Skip to content

Periodic indexing#377

Merged
lkdvos merged 12 commits into
mainfrom
ld-indexing
May 8, 2026
Merged

Periodic indexing#377
lkdvos merged 12 commits into
mainfrom
ld-indexing

Conversation

@lkdvos

@lkdvos lkdvos commented May 7, 2026

Copy link
Copy Markdown
Member

Not entirely sure why I didn't come up with this sooner, but this is a light version of the whole PeriodicArray machinery that just hides all of the mod stuff behind getters and setters.

I do still want to eventually allow more general array types with tilings etc, but this is non-breaking and at least slightly improves some of the more messy patches of code

@codecov

codecov Bot commented May 7, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 91.05691% with 22 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/utility/indexing.jl 64.70% 12 Missing ⚠️
src/algorithms/contractions/bp_contractions.jl 95.45% 2 Missing ⚠️
src/environments/ctmrg_environments.jl 50.00% 2 Missing ⚠️
src/algorithms/time_evolution/get_cluster.jl 83.33% 1 Missing ⚠️
src/environments/bp_environments.jl 66.66% 1 Missing ⚠️
src/networks/infinitesquarenetwork.jl 66.66% 1 Missing ⚠️
src/operators/infinitepepo.jl 83.33% 1 Missing ⚠️
src/states/infinitepartitionfunction.jl 66.66% 1 Missing ⚠️
src/states/infinitepeps.jl 75.00% 1 Missing ⚠️
Files with missing lines Coverage Δ
src/algorithms/bp/beliefpropagation.jl 93.93% <100.00%> (ø)
src/algorithms/bp/gaugefix.jl 97.53% <100.00%> (ø)
src/algorithms/contractions/absorb_weight.jl 100.00% <100.00%> (ø)
src/algorithms/contractions/bondenv/benv_ctm.jl 100.00% <100.00%> (ø)
.../algorithms/contractions/correlator/pepo_1layer.jl 100.00% <100.00%> (ø)
src/algorithms/contractions/correlator/peps.jl 100.00% <100.00%> (ø)
src/algorithms/contractions/ctmrg/gaugefix.jl 95.45% <ø> (ø)
...lgorithms/contractions/ctmrg/renormalize_corner.jl 94.73% <100.00%> (ø)
.../algorithms/contractions/ctmrg/renormalize_edge.jl 65.88% <ø> (ø)
src/algorithms/contractions/localoperator.jl 96.45% <100.00%> (ø)
... and 22 more
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Yue-Zhengyuan

Copy link
Copy Markdown
Member

I spotted places that have not been updated to use periodic indexing (mostly related to SU and BP). I'll push some changes on this.

@Yue-Zhengyuan Yue-Zhengyuan self-assigned this May 8, 2026

@Yue-Zhengyuan Yue-Zhengyuan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to go for me!

@lkdvos lkdvos merged commit 8a097b1 into main May 8, 2026
62 of 65 checks passed
@lkdvos lkdvos deleted the ld-indexing branch May 8, 2026 11:27
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.

2 participants