@@ -222,26 +222,22 @@ end
222222
223223# this returns `to` in GeneralProductDimensions representation
224224get_dimensions_to (A:: AbstractQuantumObject{Ket,<:ProductDimensions} ) = A. dimensions. to
225- get_dimensions_to (A:: AbstractQuantumObject{Bra,<:ProductDimensions} ) = space_one_list (A. dimensions. to)
225+ get_dimensions_to (A:: AbstractQuantumObject{Bra,<:ProductDimensions} ) = hilbertspace_one_list (A. dimensions. to)
226226get_dimensions_to (A:: AbstractQuantumObject{Operator,<:ProductDimensions} ) = A. dimensions. to
227227get_dimensions_to (A:: AbstractQuantumObject{Operator,<:GeneralProductDimensions} ) = A. dimensions. to
228228get_dimensions_to (
229229 A:: AbstractQuantumObject{ObjType,<:ProductDimensions} ,
230230) where {ObjType<: Union{SuperOperator,OperatorBra,OperatorKet} } = A. dimensions. to
231231
232232# this returns `from` in GeneralProductDimensions representation
233- get_dimensions_from (A:: AbstractQuantumObject{Ket,<:ProductDimensions} ) = space_one_list (A. dimensions. to)
233+ get_dimensions_from (A:: AbstractQuantumObject{Ket,<:ProductDimensions} ) = hilbertspace_one_list (A. dimensions. to)
234234get_dimensions_from (A:: AbstractQuantumObject{Bra,<:ProductDimensions} ) = A. dimensions. to
235235get_dimensions_from (A:: AbstractQuantumObject{Operator,<:ProductDimensions} ) = A. dimensions. to
236236get_dimensions_from (A:: AbstractQuantumObject{Operator,<:GeneralProductDimensions} ) = A. dimensions. from
237237get_dimensions_from (
238238 A:: AbstractQuantumObject{ObjType,<:ProductDimensions} ,
239239) where {ObjType<: Union{SuperOperator,OperatorBra,OperatorKet} } = A. dimensions. to
240240
241- # this creates a list of HilbertSpace(1), it is used to generate `from` for Ket, and `to` for Bra
242- space_one_list (dimensions:: NTuple{N,AbstractSpace} ) where {N} =
243- ntuple (i -> HilbertSpace (1 ), Val (sum (length, dimensions)))
244-
245241# functions for getting Float or Complex element type
246242_float_type (A:: AbstractQuantumObject ) = _float_type (eltype (A))
247243_complex_float_type (A:: AbstractQuantumObject ) = _complex_float_type (eltype (A))
0 commit comments