Skip to content

Commit

Permalink
Merge pull request #17 from qojulia/tdop_fixes
Browse files Browse the repository at this point in the history
Fix syntax errors in TimeDependentSum examples
  • Loading branch information
amilsted authored Jun 20, 2024
2 parents 5392fa8 + 7663424 commit 4804595
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/timeevolution/timedependent-problems.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ H(t) = \sum_k c_k(t) h_k,
```
where `t` is time. They can be constructed directly, mixing static and time-dependent
coefficients, for example
* `TimeDepedentSum([1.0, cos, t->10.0 * sin(5*t)], [H_static, H_drive1, H_drive2])`
* `TimeDepedentSum(1.0=>H_static, cos=>H_drive1, t->10.0 * sin(5*t)=>H_drive2)`
* `TimeDependentSum([1.0, cos, (t->10.0 * sin(5*t))], [H_static, H_drive1, H_drive2])`
* `TimeDependentSum(1.0=>H_static, cos=>H_drive1, (t->10.0 * sin(5*t))=>H_drive2)`

or by composition
```julia
H = H_static + TimeDependentSum(cos=>H_drive1) + 10 * TimeDependentSum(t->sin(5*t)=>H_drive2)
H = H_static + TimeDependentSum(cos=>H_drive1) + 10 * TimeDependentSum((t->sin(5*t))=>H_drive2)
```

## Closed system evolution
Expand Down

0 comments on commit 4804595

Please # to comment.