1- export TimeEvolutionSol, TimeEvolutionMCSol, TimeEvolutionSSESol
1+ export TimeEvolutionSol, TimeEvolutionMCSol, TimeEvolutionStochasticSol
22
33export liouvillian_floquet, liouvillian_generalized
44
@@ -149,61 +149,7 @@ function Base.show(io::IO, sol::TimeEvolutionMCSol)
149149end
150150
151151@doc raw """
152- struct TimeEvolutionSSESol
153-
154- A structure storing the results and some information from solving trajectories of the Stochastic Shrodinger equation time evolution.
155-
156- # Fields (Attributes)
157-
158- - `ntraj::Int`: Number of trajectories
159- - `times::AbstractVector`: The time list of the evolution.
160- - `states::Vector{Vector{QuantumObject}}`: The list of result states in each trajectory.
161- - `expect::Union{AbstractMatrix,Nothing}`: The expectation values (averaging all trajectories) corresponding to each time point in `times`.
162- - `expect_all::Union{AbstractArray,Nothing}`: The expectation values corresponding to each trajectory and each time point in `times`
163- - `converged::Bool`: Whether the solution is converged or not.
164- - `alg`: The algorithm which is used during the solving process.
165- - `abstol::Real`: The absolute tolerance which is used during the solving process.
166- - `reltol::Real`: The relative tolerance which is used during the solving process.
167- """
168- struct TimeEvolutionSSESol{
169- TT<: AbstractVector{<:Real} ,
170- TS<: AbstractVector ,
171- TE<: Union{AbstractMatrix,Nothing} ,
172- TEA<: Union{AbstractArray,Nothing} ,
173- AlgT<: StochasticDiffEqAlgorithm ,
174- AT<: Real ,
175- RT<: Real ,
176- }
177- ntraj:: Int
178- times:: TT
179- states:: TS
180- expect:: TE
181- expect_all:: TEA
182- converged:: Bool
183- alg:: AlgT
184- abstol:: AT
185- reltol:: RT
186- end
187-
188- function Base. show (io:: IO , sol:: TimeEvolutionSSESol )
189- print (io, " Solution of quantum trajectories\n " )
190- print (io, " (converged: $(sol. converged) )\n " )
191- print (io, " --------------------------------\n " )
192- print (io, " num_trajectories = $(sol. ntraj) \n " )
193- print (io, " num_states = $(length (sol. states[1 ])) \n " )
194- if sol. expect isa Nothing
195- print (io, " num_expect = 0\n " )
196- else
197- print (io, " num_expect = $(size (sol. expect, 1 )) \n " )
198- end
199- print (io, " SDE alg.: $(sol. alg) \n " )
200- print (io, " abstol = $(sol. abstol) \n " )
201- print (io, " reltol = $(sol. reltol) \n " )
202- return nothing
203- end
204-
205- @doc raw """
206- struct TimeEvolutionSMESol
152+ struct TimeEvolutionStochasticSol
207153
208154A structure storing the results and some information from solving trajectories of the Stochastic Master Equation time evolution.
209155
@@ -219,7 +165,7 @@ A structure storing the results and some information from solving trajectories o
219165- `abstol::Real`: The absolute tolerance which is used during the solving process.
220166- `reltol::Real`: The relative tolerance which is used during the solving process.
221167"""
222- struct TimeEvolutionSMESol {
168+ struct TimeEvolutionStochasticSol {
223169 TT<: AbstractVector{<:Real} ,
224170 TS<: AbstractVector ,
225171 TE<: Union{AbstractMatrix,Nothing} ,
@@ -239,8 +185,8 @@ struct TimeEvolutionSMESol{
239185 reltol:: RT
240186end
241187
242- function Base. show (io:: IO , sol:: TimeEvolutionSMESol )
243- print (io, " Solution of quantum trajectories\n " )
188+ function Base. show (io:: IO , sol:: TimeEvolutionStochasticSol )
189+ print (io, " Solution of stochastic quantum trajectories\n " )
244190 print (io, " (converged: $(sol. converged) )\n " )
245191 print (io, " --------------------------------\n " )
246192 print (io, " num_trajectories = $(sol. ntraj) \n " )
0 commit comments