We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ADOs
reshape
1 parent 27bfb4e commit fd72319Copy full SHA for fd72319
src/ADOs.jl
@@ -62,7 +62,7 @@ Generate the object of auxiliary density operators for HEOM model.
62
- `parity::AbstractParity` : the parity label (`EVEN` or `ODD`). Default to `EVEN`.
63
"""
64
function ADOs(ρ::QuantumObject, N::Int = 1, parity::AbstractParity = EVEN)
65
- _ρ = sparsevec(ket2dm(ρ).data)
+ _ρ = sparse(vec(ket2dm(ρ).data)) # to avoid _ρ begin reshape type, which cannot do _ρ.nzind and _ρ.nzval
66
return ADOs(sparsevec(_ρ.nzind, _ρ.nzval, N * length(_ρ)), ρ.dimensions, N, parity)
67
end
68
ADOs(ρ, N::Int = 1, parity::AbstractParity = EVEN) =
0 commit comments