You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a tricky one. The unstable part is the ptrace() of a CompositeBasis, e.g. ptrace(a.basis_l, indices). This is hard to stabilize, as the type of the output depends on the index, or indices, selected. Stabilization would have to rely on constant propagation, which might sometimes work...
Oh, and we turn the rank into a Val type, which also can't generally be inferred at compile time.
I'm not sure how much we should worry, however, as ptrace() in any case needs to allocate memory for the output. I would hope the runtime dispatch does not add much overhead.
When one want to access its field to do something like:
typeof(projs)
will beVector{Any}
sincetypeof(rho_ptr.data)
isAny
And interesting thing is that, for
ket_ptr=ptrace(Ket,index)
, insdeat of recognizingket_ptr.data
to beAny
, it recognize it to beMatrix{ComplexF64}
.The text was updated successfully, but these errors were encountered: