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
julia> op = Operator(GenericBasis(1),GenericBasis(2),[1,1]')
Operator(dim=1x2)
basis left: Basis(dim=1)
basis right: Basis(dim=2)
[1 1]
julia> op'
ERROR: DimensionMismatch: Tried to assign data of size (2,) to bases of length 2 and 1!
This error happens because Julia does not guarantee that size(a')==reverse(size(a)). In particular:
julia> size([1,1])
(2,)
julia> size([1,1]')
(1, 2)
julia> size([1,1]'') # Quantum optics currently expects the answer to be (2,1)
(2,)
julia> size([1;;1])
(1, 2)
julia> size([1;;1]')
(2, 1)
This error happens because Julia does not guarantee that
size(a')==reverse(size(a))
. In particular:Related to solutions provided in qojulia/QuantumOptics.jl#322
The text was updated successfully, but these errors were encountered: