Skip to content

Fix bug impure tensors complex phi4 + added test for impure tensors for real and complex phi4#168

Merged
VictorVanthilt merged 4 commits into
QuantumKitHub:masterfrom
JaridPiceu:Fix-Bug-Impure-Tensors-Complex-Phi4
Apr 16, 2026
Merged

Fix bug impure tensors complex phi4 + added test for impure tensors for real and complex phi4#168
VictorVanthilt merged 4 commits into
QuantumKitHub:masterfrom
JaridPiceu:Fix-Bug-Impure-Tensors-Complex-Phi4

Conversation

@JaridPiceu
Copy link
Copy Markdown
Contributor

The two main changes:

1 - Fix bug in complex $\phi^4$
Resolved a bug that prevented the construction of impure tensors in the complex φ⁴ model.

2 - Add test for impure tensors of both real and complex $\phi^4$
Added tests for the construction of impure tensors in both the real and complex φ⁴ models. These tests were previously missing and help ensure that impure tensor construction works correctly.

Outlook
Several other models currently do not include tests for their impure tensor construction methods. Adding similar tests for those models would further improve test coverage.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 15, 2026

Your PR no longer requires formatting changes. Thank you for your contribution!

Comment thread src/models/phi4_complex.jl
@VictorVanthilt
Copy link
Copy Markdown
Member

Can you lower the initial bond dimension for the test? HOTRG with chi 64 is quite heavy, even if it only is for one step.

@VictorVanthilt
Copy link
Copy Markdown
Member

The tests are taking a very long time

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
src/models/phi4_complex.jl 74.90% <100.00%> (+9.56%) ⬆️

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@VictorVanthilt VictorVanthilt merged commit 734eaa3 into QuantumKitHub:master Apr 16, 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