-
Notifications
You must be signed in to change notification settings - Fork 22
Fermion twist #703
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
Open
manuschneider
wants to merge
24
commits into
master
Choose a base branch
from
fermion_twist
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Fermion twist #703
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
93abc1d
updated comments and cleaned up debug lines
manuschneider 74b8822
updated method descriptions for UniTensor, added warnings where users…
manuschneider 6bc73d8
fixed old buggy version of _swapsigns_(const std::vector<cytnx_int64>…
manuschneider 1038410
implemented fermion twists (or self-swaps) on one leg, and on all bra…
manuschneider e47b859
moved implementation of twists from UniTensor_base to the implementat…
manuschneider f244159
-fixed bug when adding or subtracting fermionic tensors
manuschneider 5b9daf3
fixed pybind to return handles for inline functions
manuschneider 3afc022
for fermionic tensors: Transpose (and thus also Dagger) changes the r…
manuschneider f6ee7e7
Merge commit '9efeffc25b5c03bc29704507372ac1afdf2b4e7f' into fermion_…
manuschneider 06f03fa
Merge branch 'master' into fermion_twist
manuschneider 9170865
Merge commit 'cbdeebf53da122969e74026711bd4244fdafe9d5' into fermion_…
manuschneider 75edd6a
error with line endings in docs folder
manuschneider e681095
Merge commit '59a86466ee71c7e9da06d148aea7eac9ba93b087' into fermion_…
manuschneider b7807fd
Merge remote-tracking branch 'origin/master' into fermion_twist
manuschneider 66e21f0
Merge remote-tracking branch 'origin/master' into fermion_twist
manuschneider 099f0aa
Merge remote-tracking branch 'master' into fermion_twist
manuschneider 74caf0d
fixed merge issue
manuschneider ba15358
added gtests
manuschneider 9f61643
fixed issues:
manuschneider 553d75d
improved and unified error messages
manuschneider 79ea299
Merge remote-tracking branch 'master' into fermion_twist
manuschneider 2a39193
Merge remote-tracking branch 'master' into fermion_twist
manuschneider ccf0ab7
fixed issues:
manuschneider f298349
Merge master into fermion_twist, resolving conflicts in unitensor_py.cpp
pcchen 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
|
|
||
| # Cytnx error occur at virtual boost::intrusive_ptr<cytnx::UniTensor_base> cytnx::DenseUniTensor::contract(const boost::intrusive_ptr<cytnx::UniTensor_base>&, const bool&, const bool&) | ||
| # error: [ERROR][DenseUniTensor][contract] cannot contract common label: <c> @ self bond#2 & rhs bond#0, BRA-KET mismatch! | ||
| # error: [ERROR][DenseUniTensor][contract] Cannot contract common label: <c> @ self bond#2 & rhs bond#0, BRA-KET mismatch! | ||
|
|
||
| # file : /home/hunghaoti/Workplace/Cytnx_dir/Cytnx_dev/src/DenseUniTensor.cpp (994) |
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These new in-place bindings return from lambdas without an explicit return type, so C++ deduces
autoasUniTensor(by value) rather thanUniTensor&. That meansself.permute_nosignflip_(...)/self.twist_(...)mutateselfbut then return a copy, so chained calls execute on a temporary copy instead of the original object unless the caller reassigns (e.g.u.permute_nosignflip_(...).twist_()). Use an explicit-> UniTensor&return type (and reference return policy) for these overload lambdas.Useful? React with 👍 / 👎.