-
Notifications
You must be signed in to change notification settings - Fork 27
C4v QR-CTMRG #329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+534
−88
Merged
C4v QR-CTMRG #329
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
9e33f59
QR-CTMRG (forward pass)
Yue-Zhengyuan d1ea3a5
TODOs and cleanups
Yue-Zhengyuan 3ba7ef7
Improve QRCTM element-wise convergence with smaller tol
Yue-Zhengyuan 4151bb5
Add `@info` in CTMRG gaugefix tests
Yue-Zhengyuan 4a77577
Do not use `normalize` with Zygote
Yue-Zhengyuan 1b6c751
Make column enlarge corner work for any layers
Yue-Zhengyuan e086f89
Remove unused type specifications
Yue-Zhengyuan 8133de1
Error for non-bosonic in `symmetrize!`
Yue-Zhengyuan df627d1
More errors and TODOs for fermions
Yue-Zhengyuan 5bde9cd
Make `c4v_qr_renormalize_corner` work for any layers
Yue-Zhengyuan 2899a6a
Remove trunc, verbosity from C4vQRProjector
Yue-Zhengyuan 6b66223
Merge remote-tracking branch 'upstream/master' into c4v-qr-ctmrg
leburgel 87a535b
Add thorough input checking for C4v contractions
leburgel 7e3ba3e
Attempt to restore inferability
leburgel 60f4346
Add dummy physical flip for partition functions
leburgel 0da3c53
Merge remote-tracking branch 'upstream/master' into c4v-qr-ctmrg
Yue-Zhengyuan 6ebf5b9
Make QR CTMRG differentiable and add corresponding tests
leburgel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
24 changes: 24 additions & 0 deletions
24
src/algorithms/contractions/ctmrg/enlarge_corner_column.jl
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| # Column-enlarged corner contractions | ||
| # ---------------------------- | ||
|
|
||
| # Northwest corner | ||
| # ---------------- | ||
| """ | ||
| $(SIGNATURES) | ||
|
|
||
| Contract the half-enlarged northwest corner of the CTMRG environment. | ||
| ``` | ||
| C₁-←-E₁-←- | ||
| ↓ | | ||
| ``` | ||
| """ | ||
| @generated function column_enlarge_northwest_corner( | ||
| C_northwest::CTMRGCornerTensor, edge::CTMRGEdgeTensor{T, S, N} | ||
| ) where {T, S, N} | ||
| CE_e = tensorexpr(:CE, -(1:N), -(N + 1)) | ||
| C_e = tensorexpr(:C_northwest, -1, 1) | ||
| E_e = tensorexpr(:edge, (1, -(2:N)...), -(N + 1)) | ||
| return macroexpand(@__MODULE__, :(return @tensor $CE_e := $C_e * $E_e)) | ||
| end | ||
|
|
||
| # TODO: Other column-enlarged corners when QR-CTMRG for arbitrary unit cell is possible |
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.