Skip to content

Commit eeac23c

Browse files
committed
fix definition of GeneralDimensions structure
1 parent e6166b8 commit eeac23c

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
@@ -35,14 +35,14 @@ Dimensions(dims::Any) = throw(
3535
)
3636

3737
@doc raw"""
38-
struct GeneralDimensions{N,T1,T2} <: AbstractDimensions{N}
38+
struct GeneralDimensions{N,T1<:Tuple,T2<:Tuple} <: AbstractDimensions{N}
3939
to::T1
4040
from::T2
4141
end
4242
4343
A structure that describes the left-hand side (`to`) and right-hand side (`from`) Hilbert [`Space`](@ref) of an [`Operator`](@ref).
4444
"""
45-
struct GeneralDimensions{N,T1,T2} <: AbstractDimensions{N}
45+
struct GeneralDimensions{N,T1<:Tuple,T2<:Tuple} <: AbstractDimensions{N}
4646
# note that the number `N` should be the same for both `to` and `from`
4747
to::T1 # space acting on the left
4848
from::T2 # space acting on the right

0 commit comments

Comments
 (0)