We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
GeneralDimensions
1 parent e6166b8 commit eeac23cCopy full SHA for eeac23c
src/qobj/dimensions.jl
@@ -35,14 +35,14 @@ Dimensions(dims::Any) = throw(
35
)
36
37
@doc raw"""
38
- struct GeneralDimensions{N,T1,T2} <: AbstractDimensions{N}
+ struct GeneralDimensions{N,T1<:Tuple,T2<:Tuple} <: AbstractDimensions{N}
39
to::T1
40
from::T2
41
end
42
43
A structure that describes the left-hand side (`to`) and right-hand side (`from`) Hilbert [`Space`](@ref) of an [`Operator`](@ref).
44
"""
45
-struct GeneralDimensions{N,T1,T2} <: AbstractDimensions{N}
+struct GeneralDimensions{N,T1<:Tuple,T2<:Tuple} <: AbstractDimensions{N}
46
# note that the number `N` should be the same for both `to` and `from`
47
to::T1 # space acting on the left
48
from::T2 # space acting on the right
0 commit comments