Skip to content

Commit 32df16c

Browse files
committed
fix error for auto diff
1 parent 5512c09 commit 32df16c

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

src/time_evolution/lr_mesolve.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ A structure storing the results and some information from solving low-rank maste
2020
- `B::Vector{QuantumObject}`: The `B` matrix of the low-rank algorithm at each time point.
2121
"""
2222
struct TimeEvolutionLRSol{
23-
TT<:AbstractVector{<:Real},
23+
TT1<:AbstractVector{<:Real},
24+
TT2<:AbstractVector{<:Real},
2425
TS<:AbstractVector,
2526
TE<:Matrix{ComplexF64},
2627
RetT<:Enum,
@@ -29,8 +30,8 @@ struct TimeEvolutionLRSol{
2930
TSZB<:AbstractVector,
3031
TM<:Vector{<:Integer},
3132
}
32-
times::TT
33-
times_states::TT
33+
times::TT1
34+
times_states::TT2
3435
states::TS
3536
expect::TE
3637
fexpect::TE

src/time_evolution/time_evolution.jl

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,16 @@ A structure storing the results and some information from solving time evolution
6060
- `reltol::Real`: The relative tolerance which is used during the solving process.
6161
"""
6262
struct TimeEvolutionSol{
63-
TT<:AbstractVector{<:Real},
63+
TT1<:AbstractVector{<:Real},
64+
TT2<:AbstractVector{<:Real},
6465
TS<:AbstractVector,
6566
TE<:Union{AbstractMatrix,Nothing},
6667
RETT<:Enum,
6768
AlgT<:OrdinaryDiffEqAlgorithm,
6869
TolT<:Real,
6970
}
70-
times::TT
71-
times_states::TT
71+
times::TT1
72+
times_states::TT2
7273
states::TS
7374
expect::TE
7475
retcode::RETT
@@ -131,7 +132,8 @@ We also provide the following functions for statistical analysis of multi-trajec
131132
- [`std_expect`](@ref)
132133
"""
133134
struct TimeEvolutionMCSol{
134-
TT<:AbstractVector{<:Real},
135+
TT1<:AbstractVector{<:Real},
136+
TT2<:AbstractVector{<:Real},
135137
TS<:AbstractVecOrMat,
136138
TE<:Union{AbstractArray,Nothing},
137139
TJT<:Vector{<:Vector{<:Real}},
@@ -140,8 +142,8 @@ struct TimeEvolutionMCSol{
140142
TolT<:Real,
141143
} <: TimeEvolutionMultiTrajSol{TS,TE}
142144
ntraj::Int
143-
times::TT
144-
times_states::TT
145+
times::TT1
146+
times_states::TT2
145147
states::TS
146148
expect::TE
147149
col_times::TJT
@@ -205,16 +207,17 @@ We also provide the following functions for statistical analysis of multi-trajec
205207
- [`std_expect`](@ref)
206208
"""
207209
struct TimeEvolutionStochasticSol{
208-
TT<:AbstractVector{<:Real},
210+
TT1<:AbstractVector{<:Real},
211+
TT2<:AbstractVector{<:Real},
209212
TS<:AbstractVecOrMat,
210213
TE<:Union{AbstractArray,Nothing},
211214
TEM<:Union{AbstractArray,Nothing},
212215
AlgT<:StochasticDiffEqAlgorithm,
213216
TolT<:Real,
214217
} <: TimeEvolutionMultiTrajSol{TS,TE}
215218
ntraj::Int
216-
times::TT
217-
times_states::TT
219+
times::TT1
220+
times_states::TT2
218221
states::TS
219222
expect::TE
220223
measurement::TEM

0 commit comments

Comments
 (0)