-
Notifications
You must be signed in to change notification settings - Fork 31
Fix type conversion of tlist in time evolution
#229
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
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #229 +/- ##
==========================================
- Coverage 94.74% 93.24% -1.51%
==========================================
Files 30 30
Lines 2151 2175 +24
==========================================
- Hits 2038 2028 -10
- Misses 113 147 +34 ☔ View full report in Codecov by Sentry. |
| QuantumObject(SparseMatrixCSC{T}(A.data), A.type, A.dims) | ||
|
|
||
| # functions for getting Float or Complex element type | ||
| _FType(::QuantumObject{<:AbstractArray{T}}) where {T<:Number} = _FType(T) |
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.
I think it is better to put them together with the othe definitions in the utilities file.
In GPU calculations, the arrays might be specified with 32-bit element type.
The current conversion of
tlistalways converts toFloat64, which might cause extra memory allocation or potential errors (for supporting different GPU platforms) in the future development.