Skip to content

Commit c6fdeb0

Browse files
committed
fix tensor for ENR
1 parent 4d16b2c commit c6fdeb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/qobj/dimensions.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ struct Dimensions{N,T<:Tuple} <: AbstractDimensions{N,N}
1717
to::T
1818

1919
# make sure the elements in the tuple are all AbstractSpace
20-
Dimensions(to::NTuple{N,T}) where {N,T<:AbstractSpace} = new{N,typeof(to)}(to)
20+
Dimensions(to::NTuple{N,AbstractSpace}) where {N} = new{N,typeof(to)}(to)
2121
end
2222
function Dimensions(dims::Union{AbstractVector{T},NTuple{N,T}}) where {T<:Integer,N}
2323
_non_static_array_warning("dims", dims)
@@ -48,7 +48,7 @@ struct GeneralDimensions{M,N,T1<:Tuple,T2<:Tuple} <: AbstractDimensions{M,N}
4848
from::T2 # space acting on the right
4949

5050
# make sure the elements in the tuple are all AbstractSpace
51-
GeneralDimensions(to::NTuple{M,T1}, from::NTuple{N,T2}) where {M,N,T1<:AbstractSpace,T2<:AbstractSpace} =
51+
GeneralDimensions(to::NTuple{M,AbstractSpace}, from::NTuple{N,AbstractSpace}) where {M,N} =
5252
new{M,N,typeof(to),typeof(from)}(to, from)
5353
end
5454
function GeneralDimensions(dims::Union{AbstractVector{T},NTuple{N,T}}) where {T<:Union{AbstractVector,NTuple},N}

0 commit comments

Comments
 (0)