-
Notifications
You must be signed in to change notification settings - Fork 125
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
[NDTensors] In the effort to replace EmptyStorage with an empty DataType #1161
Conversation
@mtfishman I am having an issue here where code like
The code is ignoring my definition of |
The definition of import .SetParameters: set_parameter in |
…nsors.jl into kmp5/refactor/fillarrays_redo
(specifically for fermion system)
Codecov ReportPatch coverage:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #1161 +/- ##
===========================================
- Coverage 85.41% 66.72% -18.70%
===========================================
Files 88 91 +3
Lines 8426 7885 -541
===========================================
- Hits 7197 5261 -1936
- Misses 1229 2624 +1395
☔ View full report in Codecov by Sentry. |
@mtfishman It looks like one test case that fails is related to the |
Oh yeah, sorry about that. Fixing that should align with other things we talked about with making the contract code generic and efficient for both CPU and GPU operations. Thanks, that sounds like a good plan. |
@mtfishman not a problem, this was mainly just a note to remind both of us where I am in this PR next time we look at it! |
Description
In general there can be problems with the EmptyStorage type as it does not act like the other storage types (i.e. store a datatype and a element type). This requires us to often solve corner cases. Replacing EmptyStorage with a Zeros for the datatype with understanding of what kind of datatype is being used (not simply FillArrays::Zeros). Additionally, use
FillArrays::Diag
as a replacement foruniformDiag
number storage.Checklist:
using JuliaFormatter; format(".")
in the base directory of the repository (~/.julia/dev/ITensors
) to format your code according to our style guidelines.