You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Solve the Schrödinger equation for multiple initial states and parameter sets using ensemble simulation.
182
194
183
-
(TBA)
195
+
This function computes the time evolution for all combinations (Cartesian product) of initial states and parameter sets, solving the Schrödinger equation (see [`sesolve`](@ref)):
- `H`: Hamiltonian of the system ``\hat{H}``. It can be either a [`QuantumObject`](@ref), a [`QuantumObjectEvolution`](@ref), or a `Tuple` of operator-function pairs.
206
+
- `ψ0`: Initial state(s) of the system. Can be a single [`QuantumObject`](@ref) or a `Vector` of initial states.
207
+
- `tlist`: List of time points at which to save either the state or the expectation values of the system.
208
+
- `alg`: The algorithm for the ODE solver. The default is `Tsit5()`.
209
+
- `ensemblealg`: Ensemble algorithm to use for parallel computation. Default is `EnsembleThreads()`.
210
+
- `e_ops`: List of operators for which to calculate expectation values. It can be either a `Vector` or a `Tuple`.
211
+
- `params`: A `Tuple` of parameter sets. Each element should be an `AbstractVector` representing the sweep range for that parameter. The function will solve for all combinations of initial states and parameter sets.
212
+
- `progress_bar`: Whether to show the progress bar. Using non-`Val` types might lead to type instabilities.
213
+
- `kwargs`: The keyword arguments for the ODEProblem.
214
+
215
+
# Notes
216
+
217
+
- The function returns an array of solutions with dimensions matching the Cartesian product of initial states and parameter sets.
218
+
- If `ψ0` is a vector of `m` states and `params = (p1, p2, ...)` where `p1` has length `n1`, `p2` has length `n2`, etc., the output will be of size `(m, n1, n2, ...)`.
219
+
- See [`sesolve`](@ref) for more details.
220
+
221
+
# Returns
222
+
223
+
- An array of [`TimeEvolutionSol`](@ref) objects with dimensions `(length(ψ0), length(params[1]), length(params[2]), ...)`.
0 commit comments