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
Thanks for the report! The fact that the metadata is missing here is definitely an oversight on our end. However, that's not the whole story. I wouldn't expect expand to work properly on QNumber types right now. What we also need is an overload to expand similar to what we are doing with simplify so Symbolics can work on numbers. Something like this:
function Symbolics.expand(q::QTerm)
q |> average |> expand |> undo_average
end
The package defines a function to extract the metadata of the
QAdd
type butQAdd
does not have ametadata
field.QuantumCumulants.jl/src/qnumber.jl
Line 232 in 1d144b1
The function is used when you try to use
Symbolics.expand
on aQAdd
expression:The text was updated successfully, but these errors were encountered: