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
!!! note "Solving dynamics with pre-defined problems"
42
43
`QuantumToolbox` provides two different methods to solve the dynamics. One can use the function calls listed above by either taking all the operators (like Hamiltonian and collapse operators, etc.) as inputs directly, or generating the `prob`lems by yourself and take it as an input of the function call, e.g., `sesolve(prob)`.
_mesolve_make_L_QobjEvo(H::Nothing, c_ops::Nothing) =throw(ArgumentError("Both H and
6
+
c_ops are Nothing. You are probably running the wrong function."))
5
7
6
8
@docraw"""
7
9
mesolveProblem(
@@ -31,7 +33,7 @@ where
31
33
# Arguments
32
34
33
35
- `H`: Hamiltonian of the system ``\hat{H}``. It can be either a [`QuantumObject`](@ref), a [`QuantumObjectEvolution`](@ref), or a `Tuple` of operator-function pairs.
34
-
- `ψ0`: Initial state of the system ``|\psi(0)\rangle``.
36
+
- `ψ0`: Initial state of the system ``|\psi(0)\rangle``. It can be either a [`Ket`](@ref) or a [`Operator`](@ref).
35
37
- `tlist`: List of times at which to save either the state or the expectation values of the system.
36
38
- `c_ops`: List of collapse operators ``\{\hat{C}_n\}_n``. It can be either a `Vector` or a `Tuple`.
37
39
- `e_ops`: List of operators for which to calculate expectation values. It can be either a `Vector` or a `Tuple`.
@@ -119,7 +121,7 @@ where
119
121
# Arguments
120
122
121
123
- `H`: Hamiltonian of the system ``\hat{H}``. It can be either a [`QuantumObject`](@ref), a [`QuantumObjectEvolution`](@ref), or a `Tuple` of operator-function pairs.
122
-
- `ψ0`: Initial state of the system ``|\psi(0)\rangle``.
124
+
- `ψ0`: Initial state of the system ``|\psi(0)\rangle``. It can be either a [`Ket`](@ref) or a [`Operator`](@ref).
123
125
- `tlist`: List of times at which to save either the state or the expectation values of the system.
124
126
- `c_ops`: List of collapse operators ``\{\hat{C}_n\}_n``. It can be either a `Vector` or a `Tuple`.
125
127
- `alg`: The algorithm for the ODE solver. The default value is `Tsit5()`.
0 commit comments