Skip to content

Improved algorithm for U1 implementation of Complex phi4#164

Merged
VictorVanthilt merged 1 commit into
QuantumKitHub:masterfrom
JaridPiceu:ImprovePerformanceComplexPhi4_U1
Apr 5, 2026
Merged

Improved algorithm for U1 implementation of Complex phi4#164
VictorVanthilt merged 1 commit into
QuantumKitHub:masterfrom
JaridPiceu:ImprovePerformanceComplexPhi4_U1

Conversation

@JaridPiceu
Copy link
Copy Markdown
Contributor

Improve construction of complex φ⁴ tensor with U(1) symmetry

Refactors the internal algorithm for phi4_complex(U1Irrep, ...) to exploit sparsity.

Before: A K⁸ array was allocated and filled, then converted into a U(1)-symmetric TensorMap.

After: An empty U(1) TensorMap is constructed first and filled directly by iterating over fusion tree pairs. Reducing memory usage from O(K⁸) to O(K⁶) (?) and enabling larger truncation dimensions (K=12 and beyond).

The interface is unchanged.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 3, 2026

Codecov Report

❌ Patch coverage is 97.67442% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/models/phi4_complex.jl 97.67% 1 Missing ⚠️
Files with missing lines Coverage Δ
src/models/phi4_complex.jl 65.33% <97.67%> (+3.70%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@VictorVanthilt VictorVanthilt merged commit d39c2ab into QuantumKitHub:master Apr 5, 2026
9 checks passed
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