Skip to content

Conversation

@ytdHuang
Copy link
Member

@ytdHuang ytdHuang commented Sep 19, 2024

In GPU calculations, the arrays might be specified with 32-bit element type.

The current conversion of tlist always converts to Float64, which might cause extra memory allocation or potential errors (for supporting different GPU platforms) in the future development.

@codecov
Copy link

codecov bot commented Sep 19, 2024

Codecov Report

Attention: Patch coverage is 51.51515% with 16 lines in your changes missing coverage. Please review.

Project coverage is 93.24%. Comparing base (fb48447) to head (725fa0b).
Report is 11 commits behind head on main.

Files with missing lines Patch % Lines
src/utilities.jl 28.57% 10 Missing ⚠️
ext/QuantumToolboxCUDAExt.jl 0.00% 5 Missing ⚠️
src/qobj/functions.jl 75.00% 1 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

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)
Copy link
Member

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.

@ytdHuang ytdHuang merged commit 5af51a2 into qutip:main Sep 20, 2024
7 of 9 checks passed
@ytdHuang ytdHuang deleted the fix/tlist branch September 20, 2024 10:23
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