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: tutorials-v5/time-evolution/023_dysolve_propagator.md
+4-8Lines changed: 4 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -22,15 +22,15 @@ This notebook shows how to compute time propagators with Dysolve using QuTiP. Dy
22
22
23
23
For the moment, Dysolve can be used with the class `DysolvePropagator` and the function `dysolve_propagator` from QuTiP's solvers. They follow a similar structure to the class `Propagator` and the function `propagator`, another solver that also computes time propagators.
24
24
25
-
### One qubit example using `DysolvePropagator`
26
-
27
25
Let's start by importing the necessary packages.
28
26
29
27
```python
30
-
from qutip.solver.dysolve_propagator import DysolvePropagator
31
-
from qutip import sigmax, sigmaz
28
+
from qutip.solver.dysolve_propagator import DysolvePropagator, dysolve_propagator
29
+
from qutip importqeye, sigmax, sigmay, sigmaz, tensor, about
32
30
```
33
31
32
+
### One qubit example using `DysolvePropagator`
33
+
34
34
We have to define what $H_0$, $X$ and $\omega$ will be. Let's say $H(t) = \sigma_z + \cos(10t)\sigma_x$.
35
35
36
36
```python
@@ -66,9 +66,6 @@ This returns a single time propagator $U(t_f, t_i)$.
66
66
We proceed like the previous example.
67
67
68
68
```python
69
-
from qutip.solver.dysolve_propagator import dysolve_propagator
70
-
from qutip import qeye, sigmax, sigmay, sigmaz, tensor
0 commit comments