Skip to content

Commit c65a0b9

Browse files
committed
fix: apply review suggestions from PR #138
1 parent 7715570 commit c65a0b9

File tree

4 files changed

+18
-14
lines changed

4 files changed

+18
-14
lines changed

tutorials-v4/lectures/Lecture-13-Resonance-flourescence.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,11 @@ axes[0].set_title("Bloch Vector Components vs Time")
105105

106106
axes[1].plot(result.times, result.expect[5], "b", label=r"$P_e$")
107107

108-
axes[1].set_ylabel(r"$P_e$", fontsize=16)
108+
axes[1].set_ylabel(r"$P_g$", fontsize=16)
109109
axes[1].set_xlabel("time", fontsize=16)
110110
axes[1].legend()
111111
axes[1].set_ylim(0, 1)
112-
axes[1].set_title("Excited State Population vs Time");
112+
axes[1].set_title("Ground State Population vs Time");
113113
```
114114

115115
```python
@@ -120,13 +120,15 @@ for idx, gamma0 in enumerate([0.1 * Omega, 0.5 * Omega, 1.0 * Omega]):
120120
HL, c_ops = system_spec(Omega, gamma0, N)
121121
result = mesolve(HL, psi0, tlist, c_ops, e_ops)
122122

123-
ax.plot(result.times, result.expect[5], "b",
124-
label=fr"$P_e$ ($\gamma_0={gamma0:.2f}$)")
123+
ax.plot(
124+
result.times, result.expect[5], "b",
125+
label=fr"$P_g$ ($\gamma_0={gamma0:.2f}$)"
126+
)
125127

126128
ax.set_ylim(0, 1)
127129
ax.set_xlabel("time", fontsize=16)
128-
ax.set_ylabel(r"$P_e$", fontsize=16)
129-
ax.set_title("Excited State Population for Different Decay Rates")
130+
ax.set_ylabel(r"$P_g$", fontsize=16)
131+
ax.set_title("Ground State Population for Different Decay Rates")
130132
ax.legend();
131133
```
132134

tutorials-v4/lectures/Lecture-3A-Dicke-model.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ fig, axes = plt.subplots(1, 1, figsize=(12, 6))
241241

242242
for NN in N_vec:
243243

244-
entropy_cavity, entropy_spin = calculcate_entropy(MM, NN, g_vec)
244+
entropy_cavity, entropy_spin = calculate_entropy(MM, NN, g_vec)
245245

246246
axes.plot(g_vec, entropy_cavity, "b", label="N = %d" % NN)
247247
axes.plot(g_vec, entropy_spin, "r--")

tutorials-v5/lectures/Lecture-13-Resonance-flourescence.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,11 @@ axes[0].set_title("Bloch Vector Components vs Time")
105105

106106
axes[1].plot(result.times, result.expect[5], "b", label=r"$P_e$")
107107

108-
axes[1].set_ylabel(r"$P_e$", fontsize=16)
108+
axes[1].set_ylabel(r"$P_g$", fontsize=16)
109109
axes[1].set_xlabel("time", fontsize=16)
110110
axes[1].legend()
111111
axes[1].set_ylim(0, 1)
112-
axes[1].set_title("Excited State Population vs Time");
112+
axes[1].set_title("Ground State Population vs Time");
113113
```
114114

115115
```python
@@ -120,13 +120,15 @@ for idx, gamma0 in enumerate([0.1 * Omega, 0.5 * Omega, 1.0 * Omega]):
120120
HL, c_ops = system_spec(Omega, gamma0, N)
121121
result = mesolve(HL, psi0, tlist, c_ops, e_ops=e_ops)
122122

123-
ax.plot(result.times, result.expect[5], "b",
124-
label=fr"$P_e$ ($\gamma_0={gamma0:.2f}$)")
123+
ax.plot(
124+
result.times, result.expect[5], "b",
125+
label=fr"$P_g$ ($\gamma_0={gamma0:.2f}$)"
126+
)
125127

126128
ax.set_ylim(0, 1)
127129
ax.set_xlabel("time", fontsize=16)
128-
ax.set_ylabel(r"$P_e$", fontsize=16)
129-
ax.set_title("Excited State Population for Different Decay Rates")
130+
ax.set_ylabel(r"$P_g$", fontsize=16)
131+
ax.set_title("Ground State Population for Different Decay Rates")
130132
ax.legend();
131133
```
132134

tutorials-v5/lectures/Lecture-2B-Single-Atom-Lasing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ if rate > 0.0:
130130
Here we evolve the system with the Lindblad master equation solver, and we request that the expectation values of the operators $a^\dagger a$ and $\sigma_+\sigma_-$ are returned by the solver by passing the list `[a.dag()*a, sm.dag()*sm]` as the fifth argument to the solver.
131131

132132
```python
133-
opt = {'nsteps': 2000} # allow extra time-steps
133+
opt = {'nsteps': 2000} # allow extra time-steps
134134
output = mesolve(H, psi0, tlist, c_ops, e_ops=[a.dag() * a, sm.dag() * sm],
135135
options=opt)
136136
```

0 commit comments

Comments
 (0)