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
Yes, but I am worried something as simple would cause surprises down the line. Having indices == 1 || indices == (1,) || indices == [1] with a clear error message would be safer.
Also, ops should probably be typed, to avoid type piracy against QuantumInterface.jl
I have some generic code looking like this:
that occasionally at runtime ends up being
embed(SpinBasis(1//2), i, gate)
which fails.embed
expects a composite basis andbasis^1
autosimplifies tobasis
, so the generic code above fails.We need a small stub distpatch for these "do not operation" edge cases.
The text was updated successfully, but these errors were encountered: