Skip to content

Commit 7715570

Browse files
committed
Zero Divide & Cell Removal
1 parent 04e4377 commit 7715570

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

tutorials-v5/lectures/Lecture-16-Gallery-of-Wigner-functions.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,6 @@ plot_wigner_2d_3d(psi)
132132

133133
## Fock states: $\left|n\right>$
134134

135-
```python
136-
137-
```
138-
139135
```python
140136
for n in range(6):
141137
psi = basis(N, n)

tutorials-v5/lectures/Lecture-5-Parametric-Amplifier.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,9 @@ line1 = axes[0].plot(tlist, cs_lhs, "b", tlist, cs_rhs, "r", linewidth=2)
254254
axes[0].set_xlabel("$t$", fontsize=18)
255255
axes[0].set_title(r"Cauchy-Schwarz inequality", fontsize=18)
256256

257-
line1 = axes[1].plot(tlist, cs_lhs / (cs_rhs), "k", linewidth=2)
257+
cs_ratio = safe_divide(cs_lhs, cs_rhs)
258+
259+
line1 = axes[1].plot(tlist, cs_ratio, "k", linewidth=2)
258260
axes[1].set_xlabel("$t$", fontsize=18)
259261
axes[1].set_title(r"Cauchy-Schwarz ratio inequality", fontsize=18)
260262

0 commit comments

Comments
 (0)