Skip to content

Commit 0da2c27

Browse files
committed
NMMC notebook: made sure ntraj is int, fixed e_ops warning
1 parent 58246e4 commit 0da2c27

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tutorials-v5/time-evolution/013_nonmarkovian_monte_carlo.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jupyter:
55
extension: .md
66
format_name: markdown
77
format_version: '1.3'
8-
jupytext_version: 1.16.4
8+
jupytext_version: 1.17.0
99
kernelspec:
1010
display_name: Python 3 (ipykernel)
1111
language: python
@@ -241,7 +241,7 @@ We will compare our results to the following exact `mesolve` simulation:
241241

242242
```python
243243
d_ops = [[qt.lindblad_dissipator(qt.sigmam(), qt.sigmam()), Gamma]]
244-
MESol = qt.mesolve([H, S], psi0, times, d_ops, e_ops, options=options)
244+
MESol = qt.mesolve([H, S], psi0, times, d_ops, e_ops=e_ops, options=options)
245245
```
246246

247247
##### Results
@@ -285,7 +285,7 @@ For clarity, we consider the same example as before, but with a shorter time int
285285

286286
```python
287287
times_is = np.linspace(ti, ti + duration / 2, steps + 1)
288-
ntraj_is = ntraj / 10
288+
ntraj_is = int(ntraj / 10)
289289

290290
MCSol_is = solver.run(psi0, tlist=times_is, ntraj=ntraj_is, e_ops=e_ops)
291291
MESol_is = qt.mesolve([H, S], psi0, times_is, d_ops, e_ops, options=options)

0 commit comments

Comments
 (0)