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
Copy file name to clipboardExpand all lines: docs/src/users_guide/time_evolution/solution.md
+14-8Lines changed: 14 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,15 +24,16 @@ using QuantumToolbox
24
24
To understand how to access the data in solution, we will use an example as a guide, although we do not worry about the simulation details at this stage. The Schrödinger equation solver ([`sesolve`](@ref)) used in this example returns [`TimeEvolutionSol`](@ref):
To see what is contained inside the solution, we can use the `print` function:
@@ -46,15 +47,17 @@ It tells us the number of expectation values are computed and the number of stat
46
47
```@example TE-solution
47
48
expt1 = real(sol.expect[1,:])
48
49
expt2 = real(sol.expect[2,:])
49
-
expt3 = real(sol.expect[3,:]); nothing # hide
50
+
expt3 = real(sol.expect[3,:])
51
+
nothing # hide
50
52
```
51
53
52
54
Recall that `Julia` uses `Fortran`-style indexing that begins with one (i.e., `[1,:]` represents the 1-st observable, where `:` represents all values corresponding to `tlist`).
53
55
54
56
Together with the array of times at which these expectation values are calculated:
0 commit comments