Skip to content

Commit 93da705

Browse files
authored
fix typo in docs
1 parent 201e066 commit 93da705

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/users_guide/time_evolution/mesolve.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ tlist = LinRange(0.0, 10.0, 20)
3838
sol = mesolve(H, state0, tlist, e_ops = [sigmaz()])
3939
```
4040

41-
!!! note "Type of initial state"
42-
The initial state `state0` here can be given as a state vector ``|\psi(0)\rangle`` (in the type of [`Ket`](@ref)) or a density matrix ``\hat{\rho}(0)`` (in the type of [`Operator`](@ref)). If it is given as a [`Ket`](@ref), it will be transformed to density matrix ``\hat{\rho}(0) = |\psi(0)\rangle\langle\psi(0)|`` internally in [`mesolve`](@ref).
41+
!!! note "Use sesolve for improved efficiency"
42+
Here, if the Hamiltonian `H` is given as an [`Operator`](@ref), and the initial state `state0` is given as a state vector ``|\psi(0)\rangle`` (in the type of [`Ket`](@ref)), it will automatically call [`sesolve`](@ref) for improved efficiency.
4343

4444
The function returns [`TimeEvolutionSol`](@ref), as described in the previous section [Time Evolution Solutions](@ref doc-TE:Time-Evolution-Solutions). The stored `states` will always be in the type of [`Operator`](@ref) (density matrix).
4545

0 commit comments

Comments
 (0)